Log in

View Full Version : x264 audio sync problem


musky5789
9th August 2007, 22:16
hi all,
ive encoded a film with the following

x264_663f_ptw32_hrd_pulldown_aq

DirectShowSource("C:\Documents and Settings\1\Desktop\FEATURE.rebuilt.EVO",fps=23.98,audio=false)
#deinterlace
#crop
BicubicResize(1920,1080,0,0.5) # Bicubic (Neutral)
#denoise
#source=AssumeFPS(source,24000,1001)
ConvertToYV12()


x264.exe --threads 2 --thread-input --keyint 12 --min-keyint 4 --vbv-maxrate 28000 --vbv-init 1.0 --vbv-bufsize 14745 --mvrange 511 --level 4.1 --nal-hrd --bframe 2 --bime --weightb --ref 4 --mixed-refs --direct auto --deblock -1:-1 --bitrate 11129 --pass 1 --stats "x264_stat.log" --qcomp 0.75 --ipratio 1.10 --pbratio 1.10 --partitions "all" --8x8dct --me "hex" --subme 5 --aud --sar 1:1 --deadzone-intra 6 --deadzone-inter 6 --progress -o lakehouse.264 h:\l.avs


everytime i mux with sonic scenarist 4.1 the audio is allways miles in front of the video!
anbody tell me what im doing wrong
thanks

Trahald
10th August 2007, 04:08
use the build labeled x264test.... should fix the problem

im also assuming your command line has --pulldown 32 in it too?

musky5789
10th August 2007, 22:03
trahald m8
i got x264_663g_test build of x264 and used the --pulldown 32 code.
im still having the same problem with the audio playing in front of the video.
i tried to mux the video and audio with mkv merge and i still got the same results, the audio is about 10secs in front of the video.
I have seen in other post that ppl put the frame count into the avs, but i dont.does this matter that much?
i have used cinevision but the resulting video has a jerk all the way thorough the film, but the audio does match.
i think it has to do with the frame rate.
cinevision said the video was 29.97fps!and it encodeed the video to 29.97fps
please help me im starting to pull my hair out!!!

musky5789
11th August 2007, 14:19
just a little update,ive just encoded the same video, but ive removed --thread-input and changed --threads 2 to --threads 3. ive also changed --keyint 12 --min-keyint 4 --ref 3
and the video now seems to be in sync!!
it was only a 5min test i did but im now doing a full 2hour film!!

Trahald
11th August 2007, 14:50
well.. i was thinking its the fps issue.. x264 is honoring avisynth @ 23.976 (which im not sure if directshowsource on an evo will output 23.976?) and cinevision is ignoring fps and doing 29.97 so thats why it was syncing. However, the fps difference should show even on 5 mins so im a bit confused. let me know how it goes musky

musky5789
12th August 2007, 03:36
trahald m8,
done another 2 hour film and after 5mis or so the sound goes out!
im going to demux vc1 stream from evo and see if that changes anything, will let you know if that works
cheers

musky5789
12th August 2007, 14:40
got it!!!
i demuxed the vc1 stream from the evo and added a framecount muxed withscenarist and bingo the sound stays in sync!!!!!!!!!!!:)