Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion. Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules. |
14th April 2011, 08:23 | #1 | Link |
Registered User
Join Date: Apr 2009
Posts: 287
|
x264 23.976 -> 25 without sound desync, how ?
I have an issue, i have an mkv progressive in 23.976 and i need to encode it in 25fps. everything is fine during the codage session but when i mux audio/video i get a sound desync.
Here's my line : x264 --bitrate 1100 --fake-interlaced --bluray-compat --vf resize:width=720,height=576,method=spline --preset superfast --tune animation --fps 25/1 --force-cfr --weightp 1 --bframes 3 --nal-hrd vbr --vbv-maxrate 40000 --vbv-bufsize 30000 --level 4.1 --keyint 25 --b-pyramid strict --slices 4 --ref 6 --aud --colorprim "bt470bg" --transfer "bt470bg" --colormatrix "bt470bg" --sar 16:11 -o out.264 ep1.mkv |
14th April 2011, 09:21 | #2 | Link |
Registered User
Join Date: May 2006
Posts: 957
|
Did you get a PAL audio source from somewhere? If not, it isn't very surprising that the video races ahead of the audio.
__________________
x264 log explained || x264 deblocking how-to preset -> tune -> user set options -> fast first pass -> profile -> level Doom10 - Of course it's better, it's one more. |
14th April 2011, 13:34 | #3 | Link |
Registered User
Join Date: Apr 2009
Posts: 287
|
I'm having a strange thing :
I have an mkv h264 movie fps 23.976 progressive and perfectly syncro sound/video. His resolution is 720x544. I must make a 720x576 at 25fps. If i convert with this line : x264 --bitrate 1100 --fake-interlaced --bluray-compat --vf resize:width=720,height=576,method=spline --preset superfast --tune animation --fps 25/1 --force-cfr --weightp 1 --bframes 3 --nal-hrd vbr --vbv-maxrate 40000 --vbv-bufsize 30000 --level 4.1 --keyint 25 --b-pyramid strict --slices 4 --ref 6 --aud --colorprim "bt470bg" --transfer "bt470bg" --colormatrix "bt470bg" --sar 16:11 -o out.264 ep1.mkv I get my h264 file but when i mux it with the original sound u have a sound desyncro. I found a way to make the resolution/fps mod with Pegasys encoder. With this tool i have a good 25 fps movie ready to be converted in x264 but it force me to make a lossless video in Tmpg and it's long Is there a way to outpast this in x264 command line ? |
14th April 2011, 13:43 | #4 | Link |
Registered User
Join Date: Dec 2002
Posts: 5,565
|
I already told you that it's not strange and not a bug at all in the other thread.
Also what you have done here (unknowingly) is actually the most accepted way to do 23.976 > 25. You also have to convert the audio now, for example with eac3to: eac3to input.ac3 output.ac3 -23.976 -speedup |
14th April 2011, 13:55 | #5 | Link | |
Registered User
Join Date: Apr 2009
Posts: 287
|
Quote:
I use Tmpg to change the movie, and i get a 25fps. I extract the 2 audio from the mkv without speed up. I mux the video from tmpg + the 2 extracted audio and all is syncro, how is it possible? |
|
14th April 2011, 14:00 | #6 | Link |
Registered User
Join Date: Dec 2002
Posts: 5,565
|
Tmpg will most likely duplicate frames to change the framerate, the total number of frames increases. x264 on the other hand will only change the duration of each frame from 41,7 ms to 40 ms, the total number of frames doesn't change. The method used by x264 is known as "pal speedup" and is the most common way to convert between the two formats.
|
14th April 2011, 14:15 | #7 | Link | |
Registered User
Join Date: Apr 2009
Posts: 287
|
Quote:
|
|
Thread Tools | Search this Thread |
Display Modes | |
|
|