Opened 20 years ago

Closed 19 years ago

Last modified 19 years ago

#97 closed enhancement (invalid)

Cannot use "-ao pcm -aofile -" to write to stdout

Reported by: craig.eales@… Owned by: alex@…
Priority: normal Component: ao
Version: 1.0pre5 Severity: minor
Keywords: Cc:
Blocked By: Blocking:
Reproduced by developer: no Analyzed by developer: no

Description

You cannot select stdout as the target of the "pcm" audio driver.

e.g.

mplayer bob.ogg -ao pcm -aofile - > test.wav

Does not write the pcm file to test.wav but instead creates a local file called
"-". This means that I cannot pipe the output through custom filters, etc.

Craig

Change History (1)

comment:1 by poirierg@…, 19 years ago

Resolution: invalid
Status: newclosed

(In reply to comment #0)

You cannot select stdout as the target of the "pcm" audio driver.

e.g.

mplayer bob.ogg -ao pcm -aofile - > test.wav

Does not write the pcm file to test.wav but instead creates a local file called
"-". This means that I cannot pipe the output through custom filters, etc.

Wouldn't it be better to use a named pipe instead?.
Plus, in MPlayer, using the special file "-" is to take INPUT from STDIN, not
output.

Note: See TracTickets for help on using tickets.