VideoHelp Forum




+ Reply to Thread
Results 1 to 10 of 10
  1. Hey there,

    I experience a problem while hardsubbing my self-created subs with a movie.

    Software used:

    Aegisub
    VirtualDub

    The FPS of the movie is 23.000 as well as the subtitle's FPS. At least VLC plays them synchronized as long as they are softsubbed.

    As soon as I load the movie and the subs in VirtualDub (using either ffvdub or TextSub) and save it as a movie, the subs get out of sync (the preview in VirtualDub is already out of sync as well). The subs appear a little bit too early. Any suggestions?

    I've searched heaps in the net, especially in this forum, but couldn't find any working solution so far. You'd be of great help!

    Thanks,
    Klaster


    Edit: The synch was good with AutoGK as well (https://forum.videohelp.com/threads/256625-How-to-add-permanent-subtitles-with-AutoGK-a...I-DivX-or-XviD), but the quality wasn't sufficient, especially in parts of the movie with white font on black ground. If I could increase the quality here, that would be fine with me too, but I assume I'd need to open another thread for that...!?
    Last edited by Klaster; 13th Jan 2013 at 20:03.
    Quote Quote  
  2. Member
    Join Date
    Mar 2008
    Location
    United States
    Search Comp PM
    Provide some details about your AutoGK settings.
    Quote Quote  
  3. Originally Posted by davexnet View Post
    Provide some details about your AutoGK settings.
    Hey,

    thanks for your relpy!
    my settings are the following:

    Click image for larger version

Name:	autogk_settings.jpg
Views:	243
Size:	132.5 KB
ID:	15732


    Unfortunately, rendering the video with this settings again showed me the following result:
    Click image for larger version

Name:	old_and_new_file.jpg
Views:	328
Size:	90.9 KB
ID:	15733

    The FPS changed from 23 to 22, the bitrate changed as well as the length. ?!?!

    I'm totally lost here! Any help appreciated (as I said - solving my problem with VideoDub is fine, too!)!

    Klaster
    Quote Quote  
  4. So I looked into the .ssa-file today and saw that it doesn't contain any information about the fps-rate. Is that normal?

    Code:
    [Script Info]
    ; Script generated by Aegisub 3.0.2
    ; http://www.aegisub.org/
    Title: Default Aegisub file
    ScriptType: v4.00
    WrapStyle: 0
    ScaledBorderAndShadow: yes
    Collisions: Normal
    PlayResX: 640
    PlayResY: 480
    Scroll Position: 0
    Active Line: 0
    Video Zoom Percent: 1
    Video File: 2011.avi
    Video Aspect Ratio: c1.33333
    Video Position: 115
    Export Encoding: Unicode (UTF-8)
    YCbCr Matrix: TV.601
    
    [V4 Styles]
    Format: Name, Fontname, Fontsize, PrimaryColour, SecondaryColour, TertiaryColour, BackColour, Bold, Italic, BorderStyle, Outline, Shadow, Alignment, MarginL, MarginR, MarginV, AlphaLevel, Encoding
    Style: Default,Candara,26,16777215,255,0,0,0,0,1,2,0,3,10,10,10,0,1
    
    [Events]
    Format: Marked, Start, End, Style, Name, MarginL, MarginR, MarginV, Effect, Text
    Dialogue: Marked=0,0:00:11.97,0:00:13.50,Default,,0,0,0,,April 30
    Dialogue: Marked=0,0:00:13.50,0:00:15.63,Default,,0,0,0,,May 01
    Dialogue: Marked=0,0:00:15.63,0:00:17.40,Default,,0,0,0,,May 02
    Dialogue: Marked=0,0:00:17.40,0:00:19.02,Default,,0,0,0,,May 03
    Dialogue: Marked=0,0:00:19.02,0:00:20.36,Default,,0,0,0,,May 04
    Dialogue: Marked=0,0:00:20.36,0:00:21.80,Default,,0,0,0,,May 05
    Dialogue: Marked=0,0:00:21.80,0:00:23.54,Default,,0,0,0,,May 06
    Dialogue: Marked=0,0:00:23.54,0:00:25.19,Default,,0,0,0,,May 07
    ...
    ....
    .....
    Is there any need for more information? I'd be more than happy to give it to you!
    Quote Quote  
  5. Originally Posted by Klaster View Post
    So I looked into the .ssa-file today and saw that it doesn't contain any information about the fps-rate. Is that normal?
    Yes. The sub formats that use frame numbers to set how long the subs are on use framerates. SSA uses times so there's no need for a framerate.

    Also, 23fps is an unheard of framerate. How did you get a video with that? It's always 23.976fps and AutoGK would say so. Why Intel H.264 input? AutoGK accepts various kinds of MPEG and AVI input, but that's all.

    And these subs play more and more early as the movie goes along? Or they play early by a fixed amount all the way through?

    Also, doesn't Aegisub creates subs in ASS format? How did you get an SSA sub out of it?
    Quote Quote  
  6. Originally Posted by manono View Post
    Originally Posted by Klaster View Post
    So I looked into the .ssa-file today and saw that it doesn't contain any information about the fps-rate. Is that normal?
    Yes. The sub formats that use frame numbers to set how long the subs are on use framerates. SSA uses times so there's no need for a framerate.
    [...]
    Also, doesn't Aegisub creates subs in ASS format? How did you get an SSA sub out of it?
    Yes, that's right, Aegisub created an ASS which I converted to SSA in one of my attempts to deal with the problem on my own. I still have the ASS, but it basically looks the same (besides one line determining UTF-8 as the used format)


    Originally Posted by manono View Post
    Also, 23fps is an unheard of framerate. How did you get a video with that? It's always 23.976fps and AutoGK would say so. Why Intel H.264 input? AutoGK accepts various kinds of MPEG and AVI input, but that's all.
    Honestly, I don't know. I shot several clips with my phone mixed them with VideoPad. The clips already have 23 FPS when I shoot them (I just tested. Some even have 22FPS ?!).

    There are also 3 short clips of another camera with 25fps in the mix, but the project's FPS is 23 anyway:
    Click image for larger version

Name:	film_info.jpg
Views:	623
Size:	65.4 KB
ID:	15742



    Originally Posted by manono View Post
    And these subs play more and more early as the movie goes along? Or they play early by a fixed amount all the way through?
    It seems as they are just played early by a fixed amount (or at least just very small variation). What I'll try now is using the ffvdub-setting to adjust a displacement.

    However, I don't understand how that happened?
    Quote Quote  
  7. It worked with the adjustment configuration. If you guys have any ideas about the problem anyway, I'd be more than happy to know about it!

    Thanks to davexnet and manono for their replies!
    Quote Quote  
  8. Member
    Join Date
    Aug 2007
    Location
    Isle of Man
    Search Comp PM
    Originally Posted by Klaster View Post
    It worked with the adjustment configuration.
    For future reference, what do you mean by that?

    I'm wondering whether your footage was shot in variable frame rate mode which is possibly confusing your software? For instance, see how MediaInfo reports a video clip taken on my phone:

    Frame rate mode : Variable
    Frame rate : 29.946 fps
    Minimum frame rate : 6.292 fps
    Maximum frame rate : 60.000 fps
    Original frame rate : 60.000 fps
    When working with variable frame rate clips (or formats VirtualDub just plain doesn't understand), I normally pre-index before loading the clip into VirtualDub, e.g. Avisynth with FFIndex() and FFVideoSource() -> VirtualDub.
    Quote Quote  
  9. This is what I meant regarding the delay (sry for German): [Edit: the box containing 142ms right now]
    Click image for larger version

Name:	delay.jpg
Views:	209
Size:	110.8 KB
ID:	15744


    MediaInfo gives me this for my video:
    Code:
    Frame rate mode                          : Variable
    Frame rate                               : 23.000 fps
    I checked a few of the raw camera clips and MediaInfo doesn't give out any information about frame rates here... ?!

    Pre-indexing sounds good, is there any tutorial on how to do that with Avisynth since it doesn't have any GUI?
    Quote Quote  
  10. Member
    Join Date
    Aug 2007
    Location
    Isle of Man
    Search Comp PM
    Originally Posted by Klaster View Post
    I checked a few of the raw camera clips and MediaInfo doesn't give out any information about frame rates here... ?!
    You'll have to find a way of determining your camera's nominal frame rate so you can ensure your editor/subtitles/encoder are set accordingly... Perhaps in its settings or documentation?

    Originally Posted by Klaster View Post
    Pre-indexing sounds good, is there any tutorial on how to do that with Avisynth since it doesn't have any GUI?
    I use FFMpegSource2 for indexing and reading clips in Avisynth. The FFMepgSource2 documentation is excellent. Although it's a lot, I suggest you read it to familiarise yourself especially with how indexing works. I normally use code like:
    Code:
    source  = "C:\Users\fvisagie\Videos\Home Videos\20121224 Williston\2012-12-24_13-22-30.mp4"
    FFIndex(source=source, cachefile=source+".ffindex", indexmask=-1, dumpmask=0, errorhandling=3, overwrite=false)
    Audio   = FFAudioSource(source=source, track=-1, cache=true, cachefile=source+".ffindex", adjustdelay=-1)
    Video   = FFVideoSource(source=source, track=-1, cache=true, cachefile=source+".ffindex", seekmode=1, rffmode=0, width=-1, height=-1, colorspace="YV12")
    AudioDub(Video, Audio)
    This ensures:
    • The index file name and location are unique to the input clip
    • The index file name and location are the same each time the Avisynth script is run,
    • Which together with the "overwrite=false" option ensures that the index file is created only once when the script is run the very first time
    Make sure colorspace is set correctly for your input clip.


    AvsPmod is an excellent integrated development environment for Avisynth scripts.


    Good luck!
    Quote Quote  



Similar Threads

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