Hi all. To avoid dumping the raw video to disk, I've been trying to use named pipes so that I don't need to store all the data. I figure I should be able to get the same to work for the audio track but I'm having some issues. (For these commands to work you'd first need to: mkfifo audio; mkfifo video) These commands work fine by omitting the audio stream: mplayer $MPLAYER_OPTS -ao null -vo yuv4mpeg:file=video in.mkv & mencoder video -ovc xvid -xvidencopts pass=1 -oac mp3lame -o out.avi (Yes, the -oac line was in there... I constructed these commands by removing bits from the ones below, and forgot to remove it. Still works though.) Attempting to add on the audio stream gives: mplayer $MPLAYER_OPTS -ao pcm:file=audio -vo yuv4mpeg:file=video in.mkv & mencoder video -audiofile audio -ovc xvid -xvidencopts pass=1 \ -oac mp3lame -o out.avi When I run this, I get all the initial output for both applications but the playing/encoding never begins. By omitting the audio I did manage to confirm that it was the audio which causes the problem. I have also tried to cat audio and pipe that to mencoder on stdin, but that gives the same result. That seems to suggest that it's the mplayer end causing the issue but I'm not certain either way. Any ideas? TX -- Email: trejkaz@trypticon.org Jabber ID: trejkaz@trypticon.org Web site: http://trypticon.org/ GPG Fingerprint: 9EEB 97D7 8F7B 7977 F39F A62C B8C7 BC8B 037E EA73
On Sun, 25 Feb 2007 22:37:56 +1100 Trejkaz <trejkaz@trypticon.org> wrote:
mplayer $MPLAYER_OPTS -ao pcm:file=audio -vo yuv4mpeg:file=video in.mkv & mencoder video -audiofile audio -ovc xvid -xvidencopts pass=1 \ -oac mp3lame -o out.avi
When I run this, I get all the initial output for both applications but the playing/encoding never begins. By omitting the audio I did manage to confirm that it was the audio which causes the problem.
The audio doesn't cause the problem... The video doesn't cause the problem. Both of them together do. Mencoder needs to read further ahead in one than the other, but MPlayer blocks until both are read. The only fix is to use two seperate instances of mplayer, one just writing audio to a pipe, and the other just writing video to a pipe.
Hello, On Sun, Feb 25, 2007 at 10:37:56PM +1100, Trejkaz wrote:
mplayer $MPLAYER_OPTS -ao pcm:file=audio -vo yuv4mpeg:file=video in.mkv & mencoder video -audiofile audio -ovc xvid -xvidencopts pass=1 \ -oac mp3lame -o out.avi
You can use -ao pcm:fast:file=audio but there is simply no point in letting mplayer decode the audio, just use "-audiofile in.mkv" for mencoder. Greetings, Reimar Döffinger
On Sunday 25 February 2007 23:30, Reimar Döffinger wrote:
Hello,
On Sun, Feb 25, 2007 at 10:37:56PM +1100, Trejkaz wrote:
mplayer $MPLAYER_OPTS -ao pcm:file=audio -vo yuv4mpeg:file=video in.mkv & mencoder video -audiofile audio -ovc xvid -xvidencopts pass=1 \ -oac mp3lame -o out.avi
You can use -ao pcm:fast:file=audio but there is simply no point in letting mplayer decode the audio, just use "-audiofile in.mkv" for mencoder.
There is actually a point. Going straight from vorbis to mp3 causes a floating point exception every time so I have to go via PCM. As an added bonus, -oac copy isn't permitted either... otherwise I would just copy it and save all that processing time. TX -- Email: trejkaz@trypticon.org Jabber ID: trejkaz@trypticon.org Web site: http://trypticon.org/ GPG Fingerprint: 9EEB 97D7 8F7B 7977 F39F A62C B8C7 BC8B 037E EA73
participants (3)
-
RC -
Reimar Döffinger -
Trejkaz