[MPlayer-users] Audio sync during encode
Bradley Alexander
storm at tux.org
Thu Dec 26 17:44:02 CET 2002
I captured a couple of movies yesterday from TV that I was trying to
deinterlace and compress down to a 700MB file suitable for writing to a
CD-R.
The problem, which I have posted about before, is that the audio on the
final output is out of sync with the video. The machine is running
Debian/sid, and was freshly rebuilt two months ago, and I am using the
mencoder-k6 and mplayer-k6 debs (both 0.90rc2-0.0) from
marillat.free.fr.
I use the following steps in postprocessing:
Capture using vcr [audio synced]
Remove commercials using avidemux [audio synced]
mencoder $infile -ovc frameno -oac mp3lame -o frameno.avi
mencoder ${infile} -oac copy -ovc lavc -lavcopts
vcodec=mpeg4:vbitrate=${bitrate}:vhq:vqmin=1:vqmax=31:vpass=1 -vop pp lb
-o ${outfile}
mencoder ${infile} -oac copy -ovc lavc -lavcopts
vcodec=mpeg4:vbitrate=${bitrate}:vhq:vqmin=1:vqmax=31:vpass=2 -vop pp lb
-o ${outfile}
After pass 2, though the mplayer status display shows the audio is
synced, the actual audio is around 2-3 seconds off, and seems to vary
over the course of the movie, which is very distracting.
The last time I was able to successfully able to do this was with
0.90pre5. I am trying to compile pre5 from source, but apparently have
something missing, for in the make, I am getting
./darwinfixlib.sh mplayer.o mp_msg.o xacodec.o cpudetect.o codec-cfg.o
cfgparser.o my_profile.o spudec.o playtree.o playtreeparser.o
asxparser.o vobsub.o subreader.o find_sub.o lirc_mp.o mixer.o
mp-opt-reg.o dll_init.o loader/libloader.a loader/dshow/libDS_Filter.a
libavcodec/libavcodec.a libmpdemux/libmpdemux.a
libmpcodecs/libmpcodecs.a libao2/libao2.a liba52/liba52.a
mp3lib/libMP3.a libmpeg2/libmpeg2.a linux/libosdep.a
postproc/libpostproc.a input/libinput.a libdha/libdha.so
vidix/libvidix.a libvo/libvo.a libmpdvdkit/libmpdvdkit.a
gcc -O4 -march=pentiumpro -mcpu=pentiumpro -pipe -ffast-math
-fomit-frame-pointer -D_REENTRANT -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -Ilibmpdemux -Iloader -Ilibvo -o mplayer
mplayer.o mp_msg.o xacodec.o cpudetect.o codec-cfg.o cfgparser.o
my_profile.o spudec.o playtree.o playtreeparser.o asxparser.o vobsub.o
subreader.o find_sub.o lirc_mp.o mixer.o mp-opt-reg.o dll_init.o -Llibvo
-lvo -Llibmpcodecs -lmpcodecs -Lmp3lib -lMP3 -Lliba52 -la52 -Llibmpeg2
-lmpeg2 -Llibavcodec -lavcodec -Llibmpdemux -lmpdemux -Linput -linput
-Lloader -lloader -Lloader/dshow -lDS_Filter -L/usr/lib -ldl -lartsc
-DPIC -fPIC -lpthread -laudio -L/usr/X11R6/lib -lX11 -lXext -lnsl -lXt
-lmad -Llibmpdvdkit -lmpdvdkit -lpthread -ldl -rdynamic -Lpostproc
-lpostproc -ldivxdecore -Llinux -losdep -ltermcap -lnsl -lz -lpng -lz
-ljpeg -lgif -lm -Llibao2 -lao2 -L/usr/X11R6/lib -lX11 -lXext -lnsl
-lGL -lXxf86dga -lXv -lXxf86vm -lXinerama -lmad -lnsl -lggi -L/usr/lib
-lSDL -lpthread -lvgagl -lvga -laa -Lvidix -lvidix
libao2/libao2.a(ao_nas.o)(.text+0x5a): In function `nas_readBuffer':
: undefined reference to `AuWriteElement'
libao2/libao2.a(ao_nas.o)(.text+0x73): In function `nas_readBuffer':
: undefined reference to `AuGetErrorText'
libao2/libao2.a(ao_nas.o)(.text+0xee): In function `nas_readBuffer':
: undefined reference to `AuPauseFlow'
libao2/libao2.a(ao_nas.o)(.text+0x107): In function `nas_readBuffer':
: undefined reference to `AuGetErrorText'
libao2/libao2.a(ao_nas.o)(.text+0x342): In function `init':
: undefined reference to `AuOpenServer'
libao2/libao2.a(ao_nas.o)(.text+0x3ac): In function `init':
: undefined reference to `AuCreateFlow'
libao2/libao2.a(ao_nas.o)(.text+0x3d9): In function `init':
: undefined reference to `AuCloseServer'
libao2/libao2.a(ao_nas.o)(.text+0x4b8): In function `init':
: undefined reference to `AuSetElements'
libao2/libao2.a(ao_nas.o)(.text+0x4d8): In function `init':
: undefined reference to `AuGetErrorText'
libao2/libao2.a(ao_nas.o)(.text+0x525): In function `init':
: undefined reference to `AuRegisterEventHandler'
libao2/libao2.a(ao_nas.o)(.text+0x53d): In function `init':
: undefined reference to `AuSetErrorHandler'
libao2/libao2.a(ao_nas.o)(.text+0x5c6): In function `uninit':
: undefined reference to `AuStopFlow'
libao2/libao2.a(ao_nas.o)(.text+0x5e6): In function `uninit':
: undefined reference to `AuGetErrorText'
libao2/libao2.a(ao_nas.o)(.text+0x624): In function `uninit':
: undefined reference to `AuCloseServer'
libao2/libao2.a(ao_nas.o)(.text+0x673): In function `play':
: undefined reference to `AuStartFlow'
libao2/libao2.a(ao_nas.o)(.text+0x693): In function `play':
: undefined reference to `AuGetErrorText'
libao2/libao2.a(ao_nas.o)(.text+0x6e8): In function `play':
: undefined reference to `AuDispatchEvent'
libao2/libao2.a(ao_nas.o)(.text+0x702): In function `play':
: undefined reference to `AuScanForTypedEvent'
libao2/libao2.a(ao_nas.o)(.text+0x80c): In function `reset':
: undefined reference to `AuStopFlow'
libao2/libao2.a(ao_nas.o)(.text+0x82c): In function `reset':
: undefined reference to `AuGetErrorText'
libao2/libao2.a(ao_nas.o)(.text+0x954): In function `audio_resume':
: undefined reference to `AuStartFlow'
libao2/libao2.a(ao_nas.o)(.text+0x974): In function `audio_resume':
: undefined reference to `AuGetErrorText'
libao2/libao2.a(ao_nas.o)(.text+0x9c8): In function
`nas_event_thread_start':
: undefined reference to `AuDispatchEvent'
libao2/libao2.a(ao_nas.o)(.text+0x9dd): In function
`nas_event_thread_start':
: undefined reference to `AuScanForTypedEvent'
libao2/libao2.a(ao_nas.o)(.text+0xa25): In function `nas_error_handler':
: undefined reference to `AuGetErrorText'
collect2: ld returned 1 exit status
make: *** [mplayer] Error 1
I have libao0 and libao2 installed as well as libao-dev...
Any ideas on either issue?
Regards,
--
--Brad
============================================================================
Bradley M. Alexander |
Debian Developer, Security Engineer | storm [at] tux.org
Debian/GNU Linux Developer | storm [at] debian.org
============================================================================
Key fingerprints:
DSA 0x54434E65: 37F6 BCA6 621D 920C E02E E3C8 73B2 C019 5443 4E65
RSA 0xC3BCBA91: 3F 0E 26 C1 90 14 AD 0A C8 9C F0 93 75 A0 01 34
============================================================================
I have a firm grasp on reality. Now I can strangle it.
More information about the MPlayer-users
mailing list