MyTetra Share
Делитесь знаниями!
Streaming from network or pipes
Время создания: 26.03.2015 12:39
Раздел: root - Linux - Console
Запись: Yurons/mytetra/master/base/1427362763101t6tsmjw/text.html на

3.4. Streaming from network or pipes

MPlayer can play files from the network, using the HTTP, FTP, MMS or RTSP/RTP protocol.

Playing works simply by passing the URL on the command line. MPlayer honors the http_proxy environment variable, using a proxy if available. Proxies can also be forced:

mplayer http_proxy://

MPlayer can read from stdin (not named pipes). This can for example be used to play from FTP:

wget -O - | mplayer -


It is also recommended to enable -cache when playing from the network:

wget -O - | mplayer -cache 8192 -

3.4.1. Saving streamed content

Once you succeed in making MPlayer play your favorite internet stream, you can use the option -dumpstream to save the stream into a file. For example:

mplayer -dumpstream -dumpfile stream.asf

will save the content streamed from into stream.asf. This works with all protocols supported by MPlayer, like MMS, RTSP, and so forth.

MyTetra Share v.0.60
Яндекс индекс цитирования