[MEncoder-users] Problems with A/V sync when making mp4

Alex Samad alex at samad.com.au
Sat Jan 10 03:15:36 CET 2009


Hi

I seem to be having some problem keeping the a/v in sync when mencoding

mplayer -identify -frames 0 WhyCopyright.iso 

MPlayer dev-SVN-r26940
CPU: AMD Phenom(tm) 9750 Quad-Core Processor (Family: 16, Model: 2,
Stepping: 3)
CPUflags:  MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 1
Compiled with runtime CPU detection.

Playing WhyCopyright.iso.
Cache fill:  0.00% (0 bytes)   
ID_VIDEO_ID=0
MPEG-PS file format detected.
ID_SUBTITLE_ID=0
ID_AUDIO_ID=160
VIDEO:  MPEG2  720x480  (aspect 2)  29.970 fps  9800.0 kbps (1225.0
kbyte/s)
ID_FILENAME=WhyCopyright.iso
ID_DEMUXER=mpegps
ID_VIDEO_FORMAT=0x10000002
ID_VIDEO_BITRATE=9800000
ID_VIDEO_WIDTH=720
ID_VIDEO_HEIGHT=480
ID_VIDEO_FPS=29.970
ID_VIDEO_ASPECT=0.0000
ID_AUDIO_FORMAT=65537
ID_AUDIO_BITRATE=0
ID_AUDIO_RATE=0
ID_AUDIO_NCH=0
ID_LENGTH=2556.06
ID_SEEKABLE=1
vo: couldn't open the X11 display ()!
Error opening/initializing the selected video_out (-vo) device.
==========================================================================
Opening audio decoder: [dvdpcm] Uncompressed DVD/VOB LPCM audio decoder
AUDIO: 48000 Hz, 2 ch, s16be, 1536.0 kbit/100.00% (ratio:
192000->192000)
ID_AUDIO_BITRATE=1536000
ID_AUDIO_RATE=48000
ID_AUDIO_NCH=2
Selected audio codec: [dvdpcm] afm: dvdpcm (Uncompressed DVD/VOB LPCM)
==========================================================================
[AO_ALSA] Format floatle is not supported by hardware, trying default.
AO: [alsa] 48000Hz 2ch s16le (2 bytes per sample)
ID_AUDIO_CODEC=dvdpcm
Video: no video
Starting playback...


Exiting... (End of file)



These are the command I run

echo Video Pass 1/2
nice mencoder -really-quiet -vf hqdn3d=2:1:2,pp=de,uspp=5,harddup
-af volnorm=1  -ovc x264  -x264encopts
pass=1:turbo=2:nob_pyramid:bframes=1:subq=6:frameref=3:partitions=all:me=umh:weight_b:threads=auto:qcomp=0.75:mixed_refs:nofast_pskip:trellis=2:nodct_decimate:nopsnr:brdo:bitrate=2000
-oac faac  -faacopts br=128:object=2:tns:mpeg=4  -passlogfile
"/tmp/user/1000/myConvert.dG81M/divx2pass.log" -o /dev/null
"WhyCopyright.iso" -idx    >>"/tmp/user/1000/myConvert.dG81M/stdout.txt"
2>>"/tmp/user/1000/myConvert.dG81M/stderr.txt"


echo Video Pass 2/2
nice mencoder -really-quiet      -vf hqdn3d=2:1:2,pp=de,uspp=5,harddup
-af volnorm=1  -ovc x264  -x264encopts
pass=2:nob_pyramid:bframes=1:subq=6:frameref=3:partitions=all:me=umh:weight_b:threads=auto:qcomp=0.75:mixed_refs:nofast_pskip:trellis=2:nodct_decimate:nopsnr:brdo:bitrate=2000
-oac faac  -faacopts br=128:object=2:tns:mpeg=4  -passlogfile
"/tmp/user/1000/myConvert.dG81M/divx2pass.log" -o
"/tmp/user/1000/myConvert.dG81M/WhyCopyright.iso.avi" "WhyCopyright.iso"
-idx    >>"/tmp/user/1000/myConvert.dG81M/stdout.txt"
2>>"/tmp/user/1000/myConvert.dG81M/stderr.txt"

nice MP4Box -aviraw video
"/tmp/user/1000/myConvert.dG81M/WhyCopyright.iso.avi" -out
"/tmp/user/1000/myConvert.dG81M/WhyCopyright.iso.h264"
>>"/tmp/user/1000/myConvert.dG81M/stdout.txt"
>>2>>"/tmp/user/1000/myConvert.dG81M/stderr.txt"

nice MP4Box -aviraw audio
"/tmp/user/1000/myConvert.dG81M/WhyCopyright.iso.avi" -out
"/tmp/user/1000/myConvert.dG81M/WhyCopyright.iso.aac"
>>"/tmp/user/1000/myConvert.dG81M/stdout.txt"
>>2>>"/tmp/user/1000/myConvert.dG81M/stderr.txt"

nice  mv "/tmp/user/1000/myConvert.dG81M/WhyCopyright.iso_audio.raw"
"/tmp/user/1000/myConvert.dG81M/WhyCopyright.iso_audio.aac"
>>"/tmp/user/1000/myConvert.dG81M/stdout.txt"
>>2>>"/tmp/user/1000/myConvert.dG81M/stderr.txt"

nice MP4Box -add
"/tmp/user/1000/myConvert.dG81M/WhyCopyright.iso_video.h264" -add
"/tmp/user/1000/myConvert.dG81M/WhyCopyright.iso_audio.aac" -new
"/exports/video/Movies/UNCLASSIFIED/Why
Copyright.avivies/UNCLASSIFIED/Why Copyright.mp4"
>>"/tmp/user/1000/myConvert.dG81M/stdout.txt"
>>2>>"/tmp/user/1000/myConvert.dG81M/stderr.txt"

nice touch -r "WhyCopyright.iso" "/exports/video/Movies/UNCLASSIFIED/Why
Copyright.avivies/UNCLASSIFIED/Why Copyright.mp4"
>>"/tmp/user/1000/myConvert.dG81M/stdout.txt"
>>2>>"/tmp/user/1000/myConvert.dG81M/stderr.txt"

Finished output in [/exports/video/Movies/UNCLASSIFIED/Why
Copyright.avivies/UNCLASSIFIED/Why Copyright.mp4]


Any ideas why I am out of sync or what I can do to fix it ?

-- 
"The problem with the French is that they don't have a word for entrepreneur."

	- George W. Bush
discussing the decline of the French economy with British Prime Minister Tony Blair
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/mencoder-users/attachments/20090110/51fa2d9b/attachment.pgp>


More information about the MEncoder-users mailing list