From df29331ce3499c37f86318f1f023955f0eab31d4 Mon Sep 17 00:00:00 2001 From: gabucino Date: Fri, 4 May 2001 12:00:28 +0000 Subject: [PATCH] stdin stuff commited git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@694 b3059339-0415-0410-9bf9-f77b7e298cf2 --- DOCS/README | 27 +++++++++++++++++++++++++++ DOCS/mplayer.1 | 2 +- 2 files changed, 28 insertions(+), 1 deletion(-) diff --git a/DOCS/README b/DOCS/README index 60884e8a94..a8c283aaa2 100644 --- a/DOCS/README +++ b/DOCS/README @@ -70,6 +70,7 @@ Supported input formats: - MPEG 1/2 System Stream (PS/PES/VOB) and Elementary Stream (ES) file formats - RIFF AVI file format - ASF 1.0 file format +- supports reading from file or stdin Supported audio & video codecs: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ @@ -167,6 +168,32 @@ Usage: alias char-major-178 mga_vid and run 'depmod -a' . +Playing from stdin: +~~~~~~~~~~~~~~~~~~~ +Now it's possible. + +To play something by reading from stdin, just use '-' as filename: + +cat test.mpg | mplayer -vo xv - + +Restrictions: + mpg: no backward seeking + asf: no backward seeking + avi: no index reading -> no seeking at all, and playing of some files are + +impossible + +No control from controlling terminal/xterm, but hotkeys and osd works +from the window. or course LIRC still works everywhere. + +This feature combined with external wrappers extends possibilities. +For example, to play a movie just downloaded from your favourite divx +server: + rar p ast-nssvcd.rar | mplayer -vo xmga -fs - + +With an asf grabber or http dump program you can play from the net. +(however we planned to add direct asf/http/ftp inputs with seeking and other +stuff, but for now it's a good workaround) + TV output: ~~~~~~~~~~ If you have a Matrox G400 Dual-Head card, you can watch movies on TV, using diff --git a/DOCS/mplayer.1 b/DOCS/mplayer.1 index c1d70c7711..f94252b0a1 100644 --- a/DOCS/mplayer.1 +++ b/DOCS/mplayer.1 @@ -41,7 +41,7 @@ mplayer \- Movie Player for Linux .RB [ \-noxv ] .RB [ \-forcexv ] .RB [ \-ss\ sec ] -.I file +.I - or file .PP .SH DESCRIPTION .I mplayer