Opened 11 years ago

Closed 8 years ago

#1266 closed defect (worksforme)

yuv4mpeg streaming to stdout breaks because mplayer prints it's ID also to stdout

Reported by: panteltje@… Owned by: reimar
Priority: normal Component: streaming
Version: unspecified Severity: normal
Keywords: Cc:
Blocked By: Blocking:
Reproduced by developer: Analyzed by developer:

Description

When using mplayer with the -vo yuv4mpeg:file=/dev/stdout option,
so as to stream to for example to a rescaler, like this:
mplayer -vo yuv4mpeg:file=/dev/stdout movie.avi | \
y4mscaler -Isar=1:1 -Iilace=NONE -Osize=160x120 > little_movie.yuv
then it seems mplayer starts by writing
'MPlayer 1.0pre7try2-3.3.6 (C) 2000-2005 MPlayer Team'
via stdout, this results in the mjpeg programs aborting with
error message 'no YUV4MPEG2 header found'.

So mplayer should not do any ID output to stdout during writing of streams
to stdout, in fact it would be better to always use stderr for user releated
messages.
I can work around it by creating a fifo, but that makes the piping a lot more complicated.

Change History (2)

comment:1 Changed 8 years ago by compn

  • Owner changed from r_togni@… to reimar

comment:2 Changed 8 years ago by reimar

  • Resolution set to worksforme
  • Status changed from new to closed

MPlayer doesn't print anything to stdout for me with -really-quiet.

Note: See TracTickets for help on using tickets.