VideoHelp Forum




+ Reply to Thread
Results 1 to 13 of 13
  1. Member
    Join Date
    Mar 2011
    Location
    Paris, France
    Search PM
    Hello

    I have very shallow knowledge of audio and video.

    On the one hand, I have an AVI movie that was ripped from a DVD. According to MediaCodec, it's in "MPEG-4 Visual" encoded with "FMP4", while the sound is in MP3.

    On the other hand, I have its English subtitles in .sub and .ssa, which appear about 30s after what is actually said in the documentary.

    I'd like...
    1. To move subtitles about 30s earlier, so they show up at the right time
    2. Insert the subtitles within the AVI file, so that users can simply view the file in VLC instead of having to open both the AVI and the subtitle file.

    What would be the easiest way to do this in Windows, preferably with free/affordable applications?

    Thank you.
    Last edited by yetanotherlogin; 11th Mar 2013 at 17:21.
    Quote Quote  
  2. I'm a MEGA Super Moderator Baldrick's Avatar
    Join Date
    Aug 2000
    Location
    Sweden
    Search Comp PM
    1. Try subtitle edit. See http://www.nikse.dk/SubtitleEdit/Help#sync Or maybe aegisub for ssa/ass subs.

    2. Name the avi and subtitle same like video.avi and video.ssa/sub and it should load automatically.
    Quote Quote  
  3. Member
    Join Date
    Mar 2011
    Location
    Paris, France
    Search PM
    Thanks for the tip. I'll give Subtitle Edit a try.

    Incidently, I managed to adjust the delay in VLC, and noticed that about 2/3 in the movie, a few seconds were removed from the movie, so I should remove the corresponding subtitles.

    The section that is no longer needed in the .sub file looks like this:
    Code:
    65630}{65838}<first line>
    ...
    {66534}{66572}<last line>
    What would be the right way to doctor the subtitle file so that the subtitles are in sync with the movie until the end?

    Thank you.
    Quote Quote  
  4. Member
    Join Date
    Mar 2011
    Location
    Paris, France
    Search PM
    For the benefit of other users who might need this, here's a newbie Python that does this:
    Code:
    import re
    
    #substration of start frame in next block to start frame of block to be removed = 942
    DIFF_FILE = 942
    
    f = open("c:\\input.sub", "r")
    textlines = f.readlines()
    f.close()
    
    #rewrite lines to new file
    log = open('output.sub','w')
    
    p = re.compile('^\{(.+?)\}\{(.+?)\}')
    for line in textlines:
    	m = p.search(line)
    	start = int(m.group(1))
    	end = int(m.group(2))
    	DIFF_FRAME = end - start
    	start = start - DIFF_FILE
    	end = start + DIFF_FRAME
    	
    	#update line
    	start = str(start)
    	end = str(end)
    	new = "{%s}{%s}" % (start,end)
    	line = p.sub(new,line)
    
    	#save line to new file
    	log.write("%s" % line)
    log.close()
    Quote Quote  
  5. Member
    Join Date
    Mar 2011
    Location
    Paris, France
    Search PM
    However, I noticed that further in the movie, there's once again too many subtitles and not enough movie

    It looks like Subtitle Workshop would be the perfect tool to manage subtitles and video, but there's no tutorial on their site, their forum is pretty much empty, and the four articles on VideoHelp don't show how to use that application.

    I need to perform the following tasks:
    1. The subtitles start about 5s too early: How can I tell Subtitle Workshop to wait 5s, and renumber all the subtitles start/end frame numbers?
    2. About 2/3 into the movie, a few seconds of the movie are missing in the movie, so there are extra subtitles I must remove: How can I do this, and have Subtitle Workshop renumber the remaining subtitles start/end frame numbers accordingly?

    Thank you.
    Quote Quote  
  6. For your case, SubtitlePlus may be an solution for you.
    1. First, you need a format converter to convert .sub and .ssa data into *.SRT, or other supported formats in SubtitlePlus application.
    2. Import subtitle data (like *.SRT)
    3. Data->Timecode Offset to offset all timecode.
    4. Data->Delete Data to delete any subtitles.
    5. Export data to specific format
    If you need to check subtitle against video, use File->Video Convert to convert your video file into the format (MPEG1), which is internal supported format in software.


    The following information may help.
    Protection-keys:
    100B-9488E7ED-0010---try version key

    The software is all-in-one solution for subtitle editing, formatting, localization, rendering and streaming, such as DVD, Blu-Ray, Line21, closed caption and YouTube.
    The software is on http://www.subtitleplus.com/ to download, there are
    3 steps to use:
    1. Prepare video/audio (MPEG1) and load to the software
    2. Edit subtitle like using Microsoft Excel+Word
    3. Import/Export as WINCap RTF, UIP RTF, Microsoft SMI, SMPTE Text/Image, SubRip, Line21, or render as DVD and Blu-Ray,

    ---SubtitlePlus
    Quote Quote  
  7. Originally Posted by yetanotherlogin View Post
    However, I noticed that further in the movie, there's once again too many subtitles and not enough movie.
    It would have been better to add the subs in when the DVD was converted; at least the timing would have been preserved. If you still have access to the DVD, you would save yourself a lot of trouble by just re-doing the job.

    AutoGK will make XVID AVI's with burned in subs from the original DVD (you'll need to rip the DVD with DVDfab HD Decrypter first). If you need to trim any part of the documentary use SolveigMM AVI Trimmer + MKV, it trims without re-encoding.
    Quote Quote  
  8. Member
    Join Date
    Mar 2011
    Location
    Paris, France
    Search PM
    Thanks both the infos. After a bit of work, I managed to edit the subs with SubTitle Workshop and hard-code them using VirtualDub.
    Quote Quote  
  9. Member AlanHK's Avatar
    Join Date
    Apr 2006
    Location
    Hong Kong
    Search Comp PM
    Originally Posted by yetanotherlogin View Post
    It looks like Subtitle Workshop would be the perfect tool to manage subtitles and video, but there's no tutorial on their site, their forum is pretty much empty, and the four articles on VideoHelp don't show how to use that application.
    Why doesn't anyone ever read the manual? It's linked from the Help button and explains exactly how to do all that.

    Syncing is very easy, applying delays and using the 1,2,S buttons while playing the movie.
    Last edited by AlanHK; 13th Sep 2012 at 09:54.
    Quote Quote  
  10. Member
    Join Date
    Mar 2011
    Location
    Paris, France
    Search PM
    I have a problem with an MPEG-4 file (AVC + AAC): After loading its SRT file, I can hear the audio playing, but no video (dark screen).

    I tried running Subtitle Workshop 2.51 and 2.52RC on an XPSP3 host, same result. Apparently, the software is no longer maintained.

    Has someone experienced the same thing? Any idea what to try?

    Thank you.
    Quote Quote  
  11. Member AlanHK's Avatar
    Join Date
    Apr 2006
    Location
    Hong Kong
    Search Comp PM
    Originally Posted by yetanotherlogin View Post
    I have a problem with an MPEG-4 file (AVC + AAC): After loading its SRT file, I can hear the audio playing, but no video (dark screen).

    I tried running Subtitle Workshop 2.51 and 2.52RC on an XPSP3 host, same result. Apparently, the software is no longer maintained.

    Has someone experienced the same thing? Any idea what to try?
    SW uses Windows to display video.
    So if you can play it in Windows Media Player, it should display in SW.

    If you have ffdshow installed, it should be able to play just about anything.
    Quote Quote  
  12. Member
    Join Date
    Mar 2011
    Location
    Paris, France
    Search PM
    Thanks.

    Windows Media Player 11.0.5721.5280 plays the video just fine.

    After installing ffdshow 1.2.4499 (20130104) with default options, still no video in SW.

    Do I need to do something in ffdshow or SW for video to be displayed?
    Quote Quote  
  13. Member
    Join Date
    Mar 2011
    Location
    Paris, France
    Search PM
    Problem solved by installing DirectVobSub, as explained here.

    No idea what ffdshow and DirectVobSub do that is required for Subtitle Workshop to work, but anyhow.

    Thank you.
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!