Log in

View Full Version : audio not syncing with x264 encoded video played back on a PSP


ildarian
30th August 2006, 23:47
I used DGDecode to create a d2v file for encoding the video via x264. I have tried using BeSweet to convert the audio from the vob and from the ac3 that DGDecode creates to mp4 but when I join them the plackback is fine on a PC but on the PSP the audio is out of sync and by the end of the 9min 13s video the audio is about 1min 20s longer...

Here is the contents of my AVS file:

LoadPlugin("D:\avs\avisynth\plugins\DGDecode.dll")
MPEG2Source("D:\avs\vts_01_1.d2v")

#crop video must be positive
cleft=0
ctop=70

#crop video must be negative
cright=0
cbot=-70

Crop(cleft,ctop,cright,cbot)

#resize video variables
pspwidth=368
pspheight=208

#adjust colour and luma
sat=0.4

ColorYUV(gamma_y=(sat)*128, gamma_u=(sat)*256, gamma_v=(sat)*256, off_y=(sat)*-16)
Sharpen(0.3)

#resize video
BilinearResize(pspwidth,pspheight)
ConvertToYV12


Here are the contents of my bat file:

x264\x264 --progress --bitrate 768 --ref 2 --mixed-refs --bframes 16 --subme 7 --b-rdo --weightb --trellis 2 --analyse p8x8,p4x4,b8x8,i4x4 --me esa --merange 64 --no-psnr --output %1.264 vts_01_1.avs

besweet\besweet -core( -input d:\avs\VTS_01_1.vob -output d:\avs\%1_audio.mp4 ) -azid( -s surround2 -c normal -L -3db --maximize ) -bsn( -2ch -aacprofile_lc -vbr_extreme --codecquality_high )

MP4Box.exe -add %1.264 %1.mp4
MP4Box.exe -add %1_audio.mp4 %1.mp4
ATOMChanger %1.mp4 MAQ10001.MP4 AtomAVC.ini



It doesnt matter if I MP4Box with the -fps command it still does the same thing. An ideas?

Sirber
31st August 2006, 00:19
you need to set the FPS with MP4Box. Default is sadly 25FPS

ildarian
31st August 2006, 04:08
Should have mentioned is a PAL DVD, so source is already 25fps. I have tried using MP4box -fps 25.000 but it doesnt make any difference.

When you fast forward the movie on the psp the audio catches up but then starts falling behind the video almost straight away.

deets
31st August 2006, 06:13
whats your firmware? 25fps is only supported in 2.80 and there is then no need for atomchanger :)

use megui, x264 and the free Nero CLI for audio.

see my sig for some info

ildarian
31st August 2006, 06:37
Am using 2.60 FW. So I should convert it down??

deets
31st August 2006, 06:45
any reason for using 2.6 and not upgrading?

if so, yep you will need to use the old style stuff, slow your audio and video and then atomchanger.

add /old/ to my url to see the old site for pre 2.8 info

Sharktooth
31st August 2006, 14:18
update your PSP... it's the most logical thing to do.

bond
31st August 2006, 18:16
-fps is only needed when importing raw sources

ildarian
2nd September 2006, 09:29
I use my PSP to use SNES emulators and the like, which is why I haven't upgraded to 2.80 yet.