<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Linux and Virtualization &#187; mplayer</title>
	<atom:link href="http://fclose.com/b/linux/tag/mplayer/feed/" rel="self" type="application/rss+xml" />
	<link>http://fclose.com/b/linux</link>
	<description>Clear solutions, tutorials and tips on Linux and virtualization from the author&#039;s experience with clusters.</description>
	<lastBuildDate>Thu, 09 Feb 2012 14:49:48 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Taking Screenshot in MPlayer</title>
		<link>http://fclose.com/b/linux/2990/taking-screenshot-in-mplayer/</link>
		<comments>http://fclose.com/b/linux/2990/taking-screenshot-in-mplayer/#comments</comments>
		<pubDate>Wed, 19 Jan 2011 16:24:20 +0000</pubDate>
		<dc:creator>Zhiqiang Ma</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Command line]]></category>
		<category><![CDATA[mplayer]]></category>
		<category><![CDATA[shell]]></category>
		<category><![CDATA[Tip]]></category>
		<category><![CDATA[Tutorial]]></category>

		<guid isPermaLink="false">http://fclose.com/b/?p=2990</guid>
		<description><![CDATA[Taking screenshots in mplayer is simple. mplayer can also take continuous snapshots. Enable screenshot filter When we want to take screenshots when playing video, first we need to set the &#8220;-vf screenshot&#8221; option: $ mplayer -vf screenshot video.file If we want to enable the screenshot filter by default, we may put the option by adding [...]]]></description>
			<content:encoded><![CDATA[<p>Taking screenshots in mplayer is simple. mplayer can also take continuous snapshots.</p>
<h3>Enable screenshot filter</h3>
<p>When we want to take screenshots when playing video, first we need to set the &#8220;-vf screenshot&#8221; option:</p>
<pre>$ mplayer <strong>-vf screenshot</strong> video.file</pre>
<p>If we want to enable the screenshot filter by default, we may put the option by adding one line into ~/.mplayer/config :</p>
<pre>vf=screenshot</pre>
<h3>To take a single screenshot</h3>
<p>Just press &#8216;<strong>s</strong>&#8216;.</p>
<h3>To take continuous screenshots</h3>
<p>To start taking continuous screenshots, press &#8216;<strong>S</strong>&#8216;; press &#8216;<strong>S</strong>&#8216; again to stop.</p>
<p>Remember to stop it, otherwise mplayer will keep taking screenshots.</p>
<p>Screenshots will be stored under the current directory with name &#8220;shot00001.png&#8221;, &#8220;shot00002.png&#8221;, and so on.</p>
<p>That&#8217;s quite easy, right? Then enjoy it~</p>
]]></content:encoded>
			<wfw:commentRss>http://fclose.com/b/linux/2990/taking-screenshot-in-mplayer/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Useful Mplayer/Mencoder Commands</title>
		<link>http://fclose.com/b/linux/1671/useful-mplayermencoder-commands/</link>
		<comments>http://fclose.com/b/linux/1671/useful-mplayermencoder-commands/#comments</comments>
		<pubDate>Sat, 22 May 2010 16:50:03 +0000</pubDate>
		<dc:creator>Zhiqiang Ma</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Fedora]]></category>
		<category><![CDATA[mplayer]]></category>
		<category><![CDATA[Tip]]></category>

		<guid isPermaLink="false">http://pkill.info/blog/?p=1671</guid>
		<description><![CDATA[mplayer/mencoder are powerful tools. This is a list of useful mplayer/mencoder commands. Extract the audio, convert it to PCM and write the resulting wave file to audio.wav: mplayer -vo null -hardframedrop -ao pcm:file=audio.wav video.avi Convert .wav file to .mp3 file: lame -h out.wav out.mp3 Preview a video composed of all jpeg files from the current [...]]]></description>
			<content:encoded><![CDATA[<p>mplayer/mencoder are powerful tools. This is a list of useful mplayer/mencoder commands.</p>
<h4>Extract the audio, convert it to PCM and write the resulting wave file to audio.wav:</h4>
<pre>mplayer -vo null -hardframedrop -ao pcm:file=audio.wav video.avi</pre>
<h4>Convert .wav file to .mp3 file:</h4>
<pre>lame -h out.wav out.mp3</pre>
<h4>Preview a video composed of all jpeg files from the current folder at 15fps:</h4>
<pre>mplayer "mf://*.jpg" -mf fps=15</pre>
<h4>Create a 15fps video from all jpeg files of the current folder:</h4>
<pre>mencoder "mf://*.jpg" -mf fps=15 -ovc lavc -o ./output.avi</pre>
<h4>Cut a video from second 6 to second 206 (which is 200+6, the output.avi is 200 seconds long):</h4>
<pre>mencoder big-file.avi -ss 6 -endpos 200 -ovc copy -oac copy -o output.avi</pre>
<h4>Convert raw videos into ISO standard MPEG-4 (DivX 5, XVID compatible) videos:</h4>
<pre>mencoder source.avi -ovc lavc -oac lavc -ffourcc DX50 -lavcopts
 vcodec=mpeg4:vbitrate=400:v4mv:mbd=2:trell:autoaspect:dia=2:acodec=mp3:abitrate=32:vpass=1
 -vf hqdn3d -o output.avi</pre>
<h4>Get informations about a video:</h4>
<pre>mplayer -frames 0 -identify ./video.avi</pre>
<h4>Show all mplayer filter list:</h4>
<pre>mplayer -vf help</pre>
<h4>Play audio files over ssh connection</h4>
<pre>ssh user@example.com "cat audio.mp3" | mplayer -cache 8192 -</pre>
<h4>Play files from FTP:</h4>
<pre>wget ftp://example.com/file.avi -O - | mplayer -cache 8192 -</pre>
<h4>Repeat a file multiple times:</h4>
<pre>mplayer file1 -loop 2 file2 -loop 1 file3 -loop 4</pre>
<h4>Record stream:</h4>
<pre>mplayer -dumpstream -dumpfile output.rm -cache 4096 rtsp://example.com/file.rm</pre>
<p><span style="font-size: x-small"><strong>Update history:</strong><br />
Jun 23, 2010. Correct the errors about vcodec and endpos options.</span></p>
]]></content:encoded>
			<wfw:commentRss>http://fclose.com/b/linux/1671/useful-mplayermencoder-commands/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>MPlayer on Fedora</title>
		<link>http://fclose.com/b/linux/1493/mplayer-on-fedora/</link>
		<comments>http://fclose.com/b/linux/1493/mplayer-on-fedora/#comments</comments>
		<pubDate>Wed, 31 Mar 2010 05:19:17 +0000</pubDate>
		<dc:creator>Zhiqiang Ma</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Fedora]]></category>
		<category><![CDATA[mplayer]]></category>
		<category><![CDATA[Tutorial]]></category>

		<guid isPermaLink="false">http://zhiqiangma.info/?p=1493</guid>
		<description><![CDATA[Fedora does not support MPlayer for some reason. But rpmfusion does it for us. Let&#8217;s install mplayer and learn some tricks to play rmvb files. 1. Add rpmfusion repository: Enable RPM Fusion repositories 2. Install MPlayer # yum install mplayer 3. Get codecs Dowload all-yyyymmdd.tar.bz2 from http://www1.mplayerhq.hu/MPlayer/releases/codecs Let&#8217;s use all-20100303.tar.bz2 now. # tar xf all-20100303.tar.bz2 [...]]]></description>
			<content:encoded><![CDATA[<p>Fedora does not support MPlayer for some reason. But rpmfusion does it for us. Let&#8217;s install mplayer and learn some tricks to play rmvb files.</p>
<h3>1. Add rpmfusion repository:</h3>
<p><a href="http://fclose.com/t/go/enable-rpmfusion/">Enable RPM Fusion repositories</a></p>
<h3>2. Install MPlayer</h3>
<pre># yum install mplayer</pre>
<h3>3. Get codecs</h3>
<p>Dowload all-yyyymmdd.tar.bz2 from <a href="http://www1.mplayerhq.hu/MPlayer/releases/codecs" target="_blank">http://www1.mplayerhq.hu/MPlayer/releases/codecs</a></p>
<p>Let&#8217;s use all-20100303.tar.bz2 now.</p>
<pre># tar xf all-20100303.tar.bz2
# mkdir -p /usr/local/lib/codecs/
# mv all-20100303/* /usr/local/lib/codecs/</pre>
<h3>4. Enjoy it!</h3>
<h3>5. Play rmvb files</h3>
<p>If there is no video or mplayer crashes when playing .rmvb files, you need to install libstdc++ libraries:</p>
<pre># yum install libstdc++ compat-libstdc++-33 compat-libstdc++-296</pre>
<p>Then try using mplay to play rmvb files again. It should work now.</p>
<p><span style="font-size: x-small;"> Update history<br />
Dec. 21, 2010. Change codecs</span></p>
]]></content:encoded>
			<wfw:commentRss>http://fclose.com/b/linux/1493/mplayer-on-fedora/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Mostly Used MPlayer Keyboard Control</title>
		<link>http://fclose.com/b/linux/663/mostly-used-mplayer-keyboard-control/</link>
		<comments>http://fclose.com/b/linux/663/mostly-used-mplayer-keyboard-control/#comments</comments>
		<pubDate>Sat, 16 Jan 2010 07:16:52 +0000</pubDate>
		<dc:creator>Zhiqiang Ma</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[mplayer]]></category>
		<category><![CDATA[Tip]]></category>

		<guid isPermaLink="false">http://zhiqiangma.info/mostly-used-mplayer-keyboard-control/</guid>
		<description><![CDATA[MPlayer has a fully configurable, command-driven control layer which allows you to control MPlayer using keyboard. Below is a list of mostly used MPlayer keyboard control. They comes from the mplayer manual, you can get it by &#8220;man mplayer&#8221;. But a web page may be more convenient. Mplayer keyboard control: Seek backward/forward 10 seconds. up [...]]]></description>
			<content:encoded><![CDATA[<p>MPlayer has a fully configurable, command-driven control layer which allows you to control MPlayer using keyboard. Below is a list of mostly used MPlayer keyboard control. They comes from the mplayer manual, you can get it by &#8220;man mplayer&#8221;. But a web page may be more convenient.</p>
<pre>
Mplayer keyboard control:

      Seek backward/forward 10 seconds.
    up and down
      Seek forward/backward 1 minute.
    pgup and pgdown
      Seek forward/backward 10 minutes.
    [ and ]
      Decrease/increase current playback speed by 10%.
    { and }
      Halve/double current playback speed.
    backspace
      Reset playback speed to normal.

      Go backward/forward in the playlist.
    enter
      go forward in the playlist, even over the end.
    home and end
      next/previous playtree entry in the parent list
    ins and del (asx playlist only)
      next/previous alternative source.
    p / space
      pause (pressing again unpauses).
    .
      step forward. pressing once will pause movie, every con-
      secutive press will play one frame and then go into pause
      mode again (any other key unpauses).
    q / esc
      stop playing and quit.
    u
      stop playing (and quit if -idle is not used).
    + and -
      adjust audio delay by +/- 0.1 seconds.
    / and *
      decrease/increase volume.
    9 and 0
      decrease/increase volume.
    ( and )
      adjust audio balance in favor of left/right channel.
    m
      mute sound.
    _ (mpeg-ts, avi and libavformat only)
      cycle through the available video tracks.
    # (dvd, mpeg, matroska, avi and libavformat only)
      cycle through the available audio tracks.
    tab (mpeg-ts and libavformat only)
      cycle through the available programs.
    f
      toggle fullscreen (also see -fs).
    t
      toggle stay-on-top (also see -ontop).
    w and e
      decrease/increase pan-and-scan range.
    o
      toggle osd states: none / seek / seek + timer / seek +
      timer + total time.
    d
      toggle frame dropping states: none / skip display / skip
      decoding (see -framedrop and -hardframedrop).
    v
      toggle subtitle visibility.
    j
      cycle through the available subtitles.
    y and g
      step forward/backward in the subtitle list.
    f
      toggle displaying "forced subtitles".
    a
      toggle subtitle alignment: top / middle / bottom.
    x and z
      adjust subtitle delay by +/- 0.1 seconds.
    r and t
      move subtitles up/down.
    i (-edlout mode only)
      set start or end of an edl skip and write it out to the
      given file.
    s (-vf screenshot only)
      take a screenshot.
    s (-vf screenshot only)
      start/stop taking screenshots.
    i
      show filename on the osd.
    ! and @
      seek to the beginning of the previous/next chapter.
    d (-vo xvmc, -vo vdpau, -vf yadif, -vf kerndeint only)
      activate/deactivate deinterlacer.
    a  cycle through the available dvd angles.

    (the following keys are valid only when using a hardware accel-
    erated video output (xv, (x)vidix, (x)mga, etc), the software
    equalizer (-vf eq or -vf eq2) or hue filter (-vf hue).)

    1 and 2
      adjust contrast.
    3 and 4
      adjust brightness.
    5 and 6
      adjust hue.
    7 and 8
      adjust saturation.

    (the following keys are only valid if gui support is compiled in
    and will take precedence over the keys defined above.)

    enter
      start playing.
    esc
      stop playing.
    l
      load file.
    t
      load subtitle.
    c
      open skin browser.
    p
      open playlist.
    r
      open preferences.
</pre>
]]></content:encoded>
			<wfw:commentRss>http://fclose.com/b/linux/663/mostly-used-mplayer-keyboard-control/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>MPlayer使用中文字幕</title>
		<link>http://fclose.com/b/linux/603/mplayer%e4%bd%bf%e7%94%a8%e4%b8%ad%e6%96%87%e5%ad%97%e5%b9%95/</link>
		<comments>http://fclose.com/b/linux/603/mplayer%e4%bd%bf%e7%94%a8%e4%b8%ad%e6%96%87%e5%ad%97%e5%b9%95/#comments</comments>
		<pubDate>Tue, 12 Jan 2010 16:04:08 +0000</pubDate>
		<dc:creator>Zhiqiang Ma</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Chinese]]></category>
		<category><![CDATA[Client config]]></category>
		<category><![CDATA[mplayer]]></category>
		<category><![CDATA[Tutorial]]></category>

		<guid isPermaLink="false">http://zhiqiangma.info/mplayer%e4%bd%bf%e7%94%a8%e4%b8%ad%e6%96%87%e5%ad%97%e5%b9%95/</guid>
		<description><![CDATA[mplayer 使 用 中 文 字 幕 文 件 时 经 常 会 出 现 乱 码 问 题. 以 下 是 解 决 办 法: 1. 外挂字体方法 比如当前目录下有文件为Gone with the Wind.avi, 字幕文件为: Gone.With.the.Wind.1939.Bluray.720p.DTS.2Audio.x264-CHD.chs.srt 可以使用如下命令来播放, 将不会出现中文字幕乱码的问题了: mplayer -ass -subcp cp936 Gone with the Wind.avi -sub Gone.With.the.Wind.1939.Bluray.720p.DTS.2Audio.x264-CHD.chs.srt 对于以上参数的解释: -ass: Turn on SSA/ASS subtitle rendering. With this [...]]]></description>
			<content:encoded><![CDATA[<p>mplayer 使 用 中 文 字 幕 文 件 时 经 常 会 出 现 乱 码 问 题. 以 下 是 解 决 办 法:</p>
<h3>1. 外挂字体方法</h3>
<p>比如当前目录下有文件为Gone with the Wind.avi, 字幕文件为: Gone.With.the.Wind.1939.Bluray.720p.DTS.2Audio.x264-CHD.chs.srt</p>
<p>可以使用如下命令来播放, 将不会出现中文字幕乱码的问题了:</p>
<pre>mplayer -ass -subcp cp936  Gone with the Wind.avi -sub Gone.With.the.Wind.1939.Bluray.720p.DTS.2Audio.x264-CHD.chs.srt</pre>
<p>对于以上参数的解释:<br />
-ass: Turn  on SSA/ASS subtitle rendering. With this option, libass will be used for SSA/ASS external subtitles and Matroska tracks.  You may also want to use -embeddedfonts. NOTE: Unlike normal OSD, libass uses fontconfig by default. To disable it, use -nofontconfig.</p>
<p>-subcp codepage: Specify the subtitle codepage.<br />
The Chinese character codepages:<br />
936 — GBK Supports Simplified Chinese 简体中文<br />
950 — Supports Traditional Chinese 繁体中文</p>
<p>-sub: Use these subtitle files.</p>
<p>另外可以使用sub-fuzziness参数来自动加载字幕文件:<br />
-sub-fuzziness mode: Adjust matching fuzziness when searching for subtitles:<br />
0    exact match<br />
1    Load all subs containing movie name.<br />
2    Load all subs in the current directory.</p>
<h3>2. 内嵌字体方法</h3>
<p>对于mkv, ogm等内嵌字体文件格式, 可以使用 sid 选项选择内嵌字体:<br />
-sid ID: Display  the subtitle stream specified by ID (0-31).  MPlayer prints the available subtitle IDs when run in verbose (-v) mode.  If you cannot select one of the subtitles on a DVD, also try -vobsubid.</p>
<p>如ID为1的字幕为简体中文:</p>
<pre>mplayer *.mkv -sid 1 -subcp cp936</pre>
<p>硬盘上的DVD内容:</p>
<pre>
mplayer dvd://1 -dvd-device /xxx/dvd -sid 0 -subcp cp936</pre>
]]></content:encoded>
			<wfw:commentRss>http://fclose.com/b/linux/603/mplayer%e4%bd%bf%e7%94%a8%e4%b8%ad%e6%96%87%e5%ad%97%e5%b9%95/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Convert Movie File to wav and mp3 File Using MPlayer and lame</title>
		<link>http://fclose.com/b/linux/138/convert-movie-file-to-wav-and-mp3-file-using-mplayer-and-lame/</link>
		<comments>http://fclose.com/b/linux/138/convert-movie-file-to-wav-and-mp3-file-using-mplayer-and-lame/#comments</comments>
		<pubDate>Sun, 10 May 2009 05:12:00 +0000</pubDate>
		<dc:creator>Zhiqiang Ma</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[mplayer]]></category>

		<guid isPermaLink="false">http://zhiqiangma.info/convert-movie-file-to-wav-and-mp3-file-using-mplayer-and-lame/</guid>
		<description><![CDATA[(1) convert .avi, .wmv etc. to .wav: mplayer -ao pcm:file=%7%out.wav MOVIE_FILES (2) then it is easy to convert .wav file to .mp3 file: lame -h out.wav out.mp3]]></description>
			<content:encoded><![CDATA[<p>(1) convert .avi, .wmv etc. to .wav:</p>
<pre>mplayer -ao pcm:file=%7%out.wav MOVIE_FILES</pre>
<p>(2) then it is easy to convert .wav file to .mp3 file:</p>
<pre>lame -h out.wav out.mp3</pre>
]]></content:encoded>
			<wfw:commentRss>http://fclose.com/b/linux/138/convert-movie-file-to-wav-and-mp3-file-using-mplayer-and-lame/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

