Opened 14 years ago

Last modified 14 years ago

#1721 new enhancement

Reading from pipes fail for MPEG streams

Reported by: drees76@… Owned by: reimar
Priority: normal Component: core
Version: HEAD Severity: minor
Keywords: Cc:
Blocked By: Blocking:
Reproduced by developer: no Analyzed by developer: no

Description

r31471 built using defaults on Fedora 12.

If I cat a MPEG file to mplayer and read from stdin, it fails to
read the file. If I open the file directly, the file plays fine.

The 110kB test file from here reproduces the issue:

http://www-eng-x.llnl.gov/documents/tests/mpeg.html

Interestingly, the larger 4.9MB file does not.

Here is the output from mplayer when it fails reading from stdin:

# cat ~/a_movie.mpeg | ./mplayer -nosound -nolirc -nojoystick -
MPlayer SVN-r31471-4.4.3 (C) 2000-2010 MPlayer Team

Playing -.
Reading from stdin...
Cannot seek backward in linear streams!
Seek failed
Cannot seek backward in linear streams!
Seek failed
Cannot seek backward in linear streams!
Seek failed
Cannot seek backward in linear streams!
Seek failed
Cannot seek backward in linear streams!
Seek failed
Cannot seek backward in linear streams!
Seek failed
Cannot seek backward in linear streams!
Seek failed
Cannot seek backward in linear streams!
Seek failed
Cannot seek backward in linear streams!
Seek failed
Cannot seek backward in linear streams!
Seek failed
Cannot seek backward in linear streams!
Seek failed
Cannot seek backward in linear streams!
Seek failed
Cannot seek backward in linear streams!
Seek failed
Cannot seek backward in linear streams!
Seek failed
Cannot seek backward in linear streams!
Seek failed
Cannot seek backward in linear streams!
Seek failed
Cannot seek backward in linear streams!
Seek failed
Cannot seek backward in linear streams!
Seek failed
Cannot seek backward in linear streams!
Seek failed
Cannot seek backward in linear streams!
Seek failed
Cannot seek backward in linear streams!
Seek failed
Cannot seek backward in linear streams!
Seek failed
Cannot seek backward in linear streams!
Seek failed
Cannot seek backward in linear streams!
Seek failed

Exiting... (End of file)


And what it says when opening the file directly:


# ./mplayer -nosound -nolirc -nojoystick ~/a_movie.mpeg
MPlayer SVN-r31471-4.4.3 (C) 2000-2010 MPlayer Team

Playing /home/drees/a_movie.mpeg.
MPEG-ES file format detected.
VIDEO: MPEG1 320x288 (aspect 1) 30.000 fps 0.0 kbps ( 0.0 kbyte/s)
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffmpeg1] vfm: ffmpeg (FFmpeg MPEG-1)
==========================================================================
Audio: no sound
Starting playback...
Movie-Aspect is 1.11:1 - prescaling to correct movie aspect.
VO: [xv] 320x288 => 320x288 Planar YV12
[VO_XV] Shared memory not supported
Reverting to normal Xv.
[VO_XV] Shared memory not supported
Reverting to normal Xv.
V: 1.1 34/ 34 7% 2% 0.0% 0 0

Exiting... (End of file)


Change History (1)

comment:1 by reimar, 14 years ago

Severity: normalenhancement

For most files to work well via stdin you will need to use -cache.
As long as this workaround works I'll mark this as an enhancement request, and I think it's not that likely it will be improved significantly anytime soon.

Note: See TracTickets for help on using tickets.