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...!?
+ Reply to Thread
Results 1 to 10 of 10
-
Last edited by Klaster; 13th Jan 2013 at 20:03.
-
Hey,
thanks for your relpy!
my settings are the following:
Unfortunately, rendering the video with this settings again showed me the following result:
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 -
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 ... .... .....
-
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? -
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)
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:
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? -
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! -
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 -
This is what I meant regarding the delay (sry for German): [Edit: the box containing 142ms right now]
MediaInfo gives me this for my video:
Code:Frame rate mode : Variable Frame rate : 23.000 fps
Pre-indexing sounds good, is there any tutorial on how to do that with Avisynth since it doesn't have any GUI? -
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?
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)
- 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
AvsPmod is an excellent integrated development environment for Avisynth scripts.
Good luck!
Similar Threads
-
Subtitles out of sync
By patryk8820 in forum SubtitleReplies: 2Last Post: 30th Oct 2012, 12:51 -
Time sync on subtitles
By Seeker47 in forum Authoring (DVD)Replies: 4Last Post: 4th Jul 2010, 10:49 -
Subtitles goes Off Sync
By ClownInBrown in forum SubtitleReplies: 7Last Post: 29th Oct 2009, 09:08 -
subtitles not in sync
By carlos28355 in forum SubtitleReplies: 31Last Post: 31st Jul 2009, 07:33 -
Encore subtitles out of sync.
By FrancoAnselmo in forum Authoring (DVD)Replies: 1Last Post: 20th Jun 2008, 01:06