[MPlayer-users] Re: mencoder re-encoding with a/v delay correction

Rémi Guyomarch rguyom at pobox.com
Wed Dec 25 13:43:02 CET 2002


On Wed, Dec 25, 2002 at 01:23:38PM +0100, Robin Redeker wrote:
...
> Copy the audio-stream in pcm to my harddisk and re-enconde it after
> cutting off the start of the stream is no real alternative ;)

Use fifos. An example :

-------
!/bin/sh

ADELAY="-delay 0.5"
AQUALITY="-q 5"

rm -f audiodump.pcm ; mkfifo -m 600 audiodump.pcm
mplayer $ADELAY -quiet -vc null -vo null -noframedrop -ao pcm -nowaveheader $1 &
oggenc --raw --raw-bits=16 --raw-chan=2 --raw-rate=48000 $AQUALITY -o audio.ogg audiodump.pcm &
wait
rm -f audiodump.pcm
-------

Other solutions are available. The latest ogmtools can delay audio
tracks very easily while muxing for example.

-- 
Rémi




More information about the MPlayer-users mailing list