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?
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?