[MPlayer-users] SVN-r32479: pcm:file=fifo does not work

sean darcy seandarcy2 at gmail.com
Sun Oct 31 16:47:41 CET 2010


On 10/31/2010 05:59 AM, Oliver Seitz wrote:
>
>>> Considering that all applications _producing_ audio hang the far
>>> more reasonable approach is to look at the other end. [...]
>
>
>> Not sure I understand. How would you set this up in this script?
>
> Try the decoder:
>
> mkfifo test_fifo
> cat test_fifo > test_file &
> mplayer -ao pcm:file=test_fifo[:nowaveheader]
>
> Try the encoder:
>
> cat test_file >test_fifo &
> neroAacEnc -if test_fifo
>
> If one of them works and the other one doesn't, don't try to fix the
> running one :-)
>
> Greets,
> Kiste

Well both worked!

cat test_fifo > test_file & mplayer -nocorrect-pts -vo null -vc null 
-ao pcm:file=test_fifo:waveheader  test.dv
[1] 18447
MPlayer SVN-r32479-4.4.4 (C) 2000-2010 MPlayer Team
..............
Playing test.dv.
Seek failed
libavformat file format detected.
[dv @ 0x244dd80] Estimating duration from bitrate, this may be inaccurate
[lavf] stream 0: video (dvvideo), -vid 0
[lavf] stream 1: audio (pcm_s16le), -aid 0
VIDEO:  [dvsd]  720x480  0bpp  29.970 fps  28771.2 kbps (3512.1 kbyte/s)
==========================================================================
Forced video codec: null
...................
==========================================================================
Opening audio decoder: [pcm] Uncompressed PCM audio decoder
AUDIO: 48000 Hz, 2 ch, s16le, 1536.0 kbit/100.00% (ratio: 192000->192000)
Selected audio codec: [pcm] afm: pcm (Uncompressed PCM)
==========================================================================
[AO PCM] File: test_fifo (WAVE)
PCM: Samplerate: 48000Hz Channels: Stereo Format s16le
[AO PCM] Info: Faster dumping is achieved with -vc null -vo null -ao 
pcm:fast
[AO PCM] Info: To write WAVE files use -ao pcm:waveheader (default).
AO: [pcm] 48000Hz 2ch s16le (2 bytes per sample)
Starting playback...
A: 291.5 V: 291.5 A-V: -0.026 ct: -0.275 8738/8738  0%  0%  1.2% 3667 0

Could not seek to start, WAV size headers not updated!

Exiting... (End of file)
[1]+  Done                    cat test_fifo > test_file

Followed by:

cat test_file >test_fifo & 
/home/video/dvd/x264/NeroAACCodec/linux/neroAacEnc -ignorelength -q 0.5 
   -if test_fifo -of audio.aac  2>nero.log
[1] 18436
[1]+  Done                    cat test_file > test_fifo

Does the "WAV size headers not updated!" have anything to do with this?

Is it possible that mplayer is feeding the stream too slowly (too 
something) to neroAacEnc?

sean



More information about the MPlayer-users mailing list