Snipt.net is closing on December 31st, 2016

For more information, please visit this blog post.

snipt

Ctrl+h for KB shortcuts

Bash

Watch a real 3D movie in 2D with MPlayer

mplayer <VIDEO_FILE> -vo gl:stereo=3
https://snipt.net/embed/11c192fc1ffbad4aff016669c8578b23/
https://snipt.net/raw/11c192fc1ffbad4aff016669c8578b23/
11c192fc1ffbad4aff016669c8578b23
bash
Bash
1
2016-12-07T12:40:20
True
False
False
Dec 02, 2013 at 07:48 AM
/api/public/snipt/97932/
watch-a-real-3d-movie-in-2d-with-mplayer
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a>mplayer &lt;VIDEO_FILE&gt; -vo gl:stereo<span class="o">=</span>3 </span></pre></div> </td></tr></table>
2d, 3d, bash, movie, mplayer, video

Bash

Play dvd menu from the command line with mplayer

1
2
3
4
5
6
mplayer -dvd-device /dev/sr0 dvdnav://<dvd-name>

#<dvd-name> is the name given to the dvd when burning it.

Also when mounted through the loop device and you have no idea what the dvd-name is:
sudo mplayer dvdnav:////dev/loop0
https://snipt.net/embed/0eb49cee4349e5247975e5995a3de732/
https://snipt.net/raw/0eb49cee4349e5247975e5995a3de732/
0eb49cee4349e5247975e5995a3de732
bash
Bash
7
2016-12-06T07:42:19
True
False
False
/api/public/snipt/28154/
play-dvd-menu-from-the-command-line-with-mplayer
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a> <a href="#L-2">2</a> <a href="#L-3">3</a> <a href="#L-4">4</a> <a href="#L-5">5</a> <a href="#L-6">6</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a>mplayer -dvd-device /dev/sr0 dvdnav://&lt;dvd-name&gt; </span><span id="L-2"><a name="L-2"></a> </span><span id="L-3"><a name="L-3"></a><span class="c1">#&lt;dvd-name&gt; is the name given to the dvd when burning it.</span> </span><span id="L-4"><a name="L-4"></a> </span><span id="L-5"><a name="L-5"></a>Also when mounted through the loop device and you have no idea what the dvd-name is: </span><span id="L-6"><a name="L-6"></a>sudo mplayer dvdnav:////dev/loop0 </span></pre></div> </td></tr></table>
dvd, mplayer

Text only

Ver TV en mplayer en ntsc

mplayer -tv driver=v4l2:device=/dev/video1:noaudio:width=640:height=480:input=1:norm=ntsc:chanlist=us-cable:channel=40 tv:// 
https://snipt.net/embed/b7df546e23621750414e146eeece73c6/
https://snipt.net/raw/b7df546e23621750414e146eeece73c6/
b7df546e23621750414e146eeece73c6
text
Text only
2
2016-12-08T00:33:43
True
False
False
/api/public/snipt/26402/
ver-tv-en-mplayer-en-ntsc
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a>mplayer -tv driver=v4l2:device=/dev/video1:noaudio:width=640:height=480:input=1:norm=ntsc:chanlist=us-cable:channel=40 tv:// </span></pre></div> </td></tr></table>
mplayer, saa7130, tv

Bash

nice settings for mplayer. I call it turtle-player

1
2
3
4
5
6
7
8
# dev: Italo Maia
# description: nice settings for mplayer. Those nasty hard-to-play videos will run better with
# this.
# date: 06/06/2010
# ----
# save to a file called turtle-player.sh and link it in /usr/bin/ as 
# turtle-player
mplayer -cache 8912 -cache-min 20 -af volnorm -vo xv x11 -ao alsa oss -framedrop "$1"
https://snipt.net/embed/949f3f25d2f220ac8cb96e832f7af91e/
https://snipt.net/raw/949f3f25d2f220ac8cb96e832f7af91e/
949f3f25d2f220ac8cb96e832f7af91e
bash
Bash
8
2016-12-08T01:48:52
True
False
False
/api/public/snipt/15414/
nice-settings-for-mplayer
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a> <a href="#L-2">2</a> <a href="#L-3">3</a> <a href="#L-4">4</a> <a href="#L-5">5</a> <a href="#L-6">6</a> <a href="#L-7">7</a> <a href="#L-8">8</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a><span class="c1"># dev: Italo Maia</span> </span><span id="L-2"><a name="L-2"></a><span class="c1"># description: nice settings for mplayer. Those nasty hard-to-play videos will run better with</span> </span><span id="L-3"><a name="L-3"></a><span class="c1"># this.</span> </span><span id="L-4"><a name="L-4"></a><span class="c1"># date: 06/06/2010</span> </span><span id="L-5"><a name="L-5"></a><span class="c1"># ----</span> </span><span id="L-6"><a name="L-6"></a><span class="c1"># save to a file called turtle-player.sh and link it in /usr/bin/ as </span> </span><span id="L-7"><a name="L-7"></a><span class="c1"># turtle-player</span> </span><span id="L-8"><a name="L-8"></a>mplayer -cache <span class="m">8912</span> -cache-min <span class="m">20</span> -af volnorm -vo xv x11 -ao alsa oss -framedrop <span class="s2">&quot;</span><span class="nv">$1</span><span class="s2">&quot;</span> </span></pre></div> </td></tr></table>
mplayer, script

Bash

Rip audio from a video file.

mplayer -ao pcm -vo null -vc dummy -dumpaudio -dumpfile <output-file> <input-file>
https://snipt.net/embed/d9b39c8ceac8a96a1cda5c5929c2739e/
https://snipt.net/raw/d9b39c8ceac8a96a1cda5c5929c2739e/
d9b39c8ceac8a96a1cda5c5929c2739e
bash
Bash
1
2016-12-02T17:26:35
True
False
False
/api/public/snipt/4243/
rip-audio-from-a-video-file
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a>mplayer -ao pcm -vo null -vc dummy -dumpaudio -dumpfile &lt;output-file&gt; &lt;input-file&gt; </span></pre></div> </td></tr></table>
audio, bash, mplayer, video

Text only

Enable mplayer's .ass subtitles support

1
2
3
## Enable stylized subtitles
ass=yes
embeddedfonts=yes
https://snipt.net/embed/d65e586d6df9607405a8a7d64ef1f22a/
https://snipt.net/raw/d65e586d6df9607405a8a7d64ef1f22a/
d65e586d6df9607405a8a7d64ef1f22a
text
Text only
3
2016-12-07T05:30:19
True
False
False
/api/public/snipt/1201/
enable-mplayers-ass-subtitles-support
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a> <a href="#L-2">2</a> <a href="#L-3">3</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a>## Enable stylized subtitles </span><span id="L-2"><a name="L-2"></a>ass=yes </span><span id="L-3"><a name="L-3"></a>embeddedfonts=yes </span></pre></div> </td></tr></table>
mplayer
Copyrighted, illegal, or inappropriate content? Email [email protected].