snipt

Ctrl+h for KB shortcuts

Bash

Fire up an MKV-file with an external ac3-file in VLC

/Applications/VLC.app/Contents/MacOS/VLC file.mkv --input-slave file.ac3
https://snipt.net/embed/0e083fc0be5f32d5b7aacee1836f2d2a/
https://snipt.net/raw/0e083fc0be5f32d5b7aacee1836f2d2a/
0e083fc0be5f32d5b7aacee1836f2d2a
bash
Bash
1
2016-09-28T06:19:27
True
False
False
/api/public/snipt/22245/
fire-up-an-mkv-file-with-an-external-ac3-file-in-vlc
<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 id="L-1"><a name="L-1"></a>/Applications/VLC.app/Contents/MacOS/VLC file.mkv --input-slave file.ac3 </span></pre></div> </td></tr></table>
ac3, mkv, osx, video, vlc

Bash

RTSP stream on VLC with VLM

1
2
3
4
5
$vlc --ttl 12 -vvv --color -I telnet --telnet-password videolan --rtsp-host 0.0.0.0:5554

$telnet localhost 4212
> new Test vod enabled
> setup Test input {filename}.mp4
https://snipt.net/embed/37b3e3dbd500f999c1d7974185a6222c/
https://snipt.net/raw/37b3e3dbd500f999c1d7974185a6222c/
37b3e3dbd500f999c1d7974185a6222c
bash
Bash
5
2016-09-28T07:24:39
True
False
False
/api/public/snipt/12515/
rtsp-stream-on-vlc-with-vlm
<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></pre></div></td><td class="code"><div class="highlight"><pre><span id="L-1"><a name="L-1"></a><span class="nv">$vlc</span> --ttl <span class="m">12</span> -vvv --color -I telnet --telnet-password videolan --rtsp-host 0.0.0.0:5554 </span><span id="L-2"><a name="L-2"></a> </span><span id="L-3"><a name="L-3"></a><span class="nv">$telnet</span> localhost 4212 </span><span id="L-4"><a name="L-4"></a>&gt; new Test vod enabled </span><span id="L-5"><a name="L-5"></a>&gt; setup Test input <span class="o">{</span>filename<span class="o">}</span>.mp4 </span></pre></div> </td></tr></table>
rtp, rtsp, vlc, vlm

Bash

rtp stream on VLC

$cvlc -vvv avt.mp4 --sout '#rtp{dst=127.0.0.1,port=1234,sdp=rtsp://serverip:port/test.sdp}'
https://snipt.net/embed/0353978b02d993fc4ae298c20a2e3f32/
https://snipt.net/raw/0353978b02d993fc4ae298c20a2e3f32/
0353978b02d993fc4ae298c20a2e3f32
bash
Bash
1
2016-09-26T00:20:36
True
False
False
/api/public/snipt/12514/
rtp-stream-on-vlc
<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 id="L-1"><a name="L-1"></a><span class="nv">$cvlc</span> -vvv avt.mp4 --sout <span class="s1">&#39;#rtp{dst=127.0.0.1,port=1234,sdp=rtsp://serverip:port/test.sdp}&#39;</span> </span></pre></div> </td></tr></table>
rtp, rtsp, vlc

Bash

vlc live streaming from v4l

1
2
3
4
5
6
7
server :
cvlc v4l2:///dev/video0:norm=pal:size=720x576:input=1:adev=hw:0,0 \
--sout '#transcode{vcodec=mp1v,vb=8000,scale=1,acodec=mpga,ab=256,channels=2} \
:duplicate{dst=std{access=http,mux=ts,dst=:8080}}'

client :
mplayer http://server_address:8080
https://snipt.net/embed/c61b055ee159c95689dc4509d5fe23be/
https://snipt.net/raw/c61b055ee159c95689dc4509d5fe23be/
c61b055ee159c95689dc4509d5fe23be
bash
Bash
7
2016-09-28T06:17:41
True
False
False
/api/public/snipt/7903/
vlc-live-streaming-from-v4l
<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></pre></div></td><td class="code"><div class="highlight"><pre><span id="L-1"><a name="L-1"></a>server : </span><span id="L-2"><a name="L-2"></a>cvlc v4l2:///dev/video0:norm<span class="o">=</span>pal:size<span class="o">=</span>720x576:input<span class="o">=</span>1:adev<span class="o">=</span>hw:0,0 <span class="se">\</span> </span><span id="L-3"><a name="L-3"></a>--sout <span class="s1">&#39;#transcode{vcodec=mp1v,vb=8000,scale=1,acodec=mpga,ab=256,channels=2} \</span> </span><span id="L-4"><a name="L-4"></a><span class="s1">:duplicate{dst=std{access=http,mux=ts,dst=:8080}}&#39;</span> </span><span id="L-5"><a name="L-5"></a> </span><span id="L-6"><a name="L-6"></a>client : </span><span id="L-7"><a name="L-7"></a>mplayer http://server_address:8080 </span></pre></div> </td></tr></table>
lan, streaming, video, vlc

Bash

Rip DVD with VLV

vlc dvd:/dev/dvd@1 --sout "#standard{access=file,mux=ps,dst=movie.ps}"
https://snipt.net/embed/48c7dbb2448f3050128c18392b02c4bb/
https://snipt.net/raw/48c7dbb2448f3050128c18392b02c4bb/
48c7dbb2448f3050128c18392b02c4bb
bash
Bash
1
2016-09-27T18:18:45
True
False
False
/api/public/snipt/3466/
rip-dvd-with-vlv
<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 id="L-1"><a name="L-1"></a>vlc dvd:/dev/dvd@1 --sout <span class="s2">&quot;#standard{access=file,mux=ps,dst=movie.ps}&quot;</span> </span></pre></div> </td></tr></table>
dvd, rip, video, vlc

Bash

Transcode avi to PSP compatible mp4 using vlc

1
2
3
4
5
# First 30 seconds only
vlc --stop-time=30 -I dummy moviename.avi --sout #transcode{cropleft=31, cropright=31, croptop=16, cropbottom=16, width=960, height=544, deinterlace=enable, vcodec=h264, vb=1024, acodec=mp4a, ab=128}:standard{mux=mp4, dst="moviename.mp4", access=file} vlc://quit

# Transcode entire movie
vlc -I dummy moviename.avi --sout #transcode{cropleft=31, cropright=31, croptop=16, cropbottom=16, width=960, height=544, deinterlace=enable, vcodec=h264, vb=1024, acodec=mp4a, ab=128}:standard{mux=mp4, dst="moviename.mp4", access=file} vlc://quit
https://snipt.net/embed/e3e540f8144b334c608e89a52b9c90b0/
https://snipt.net/raw/e3e540f8144b334c608e89a52b9c90b0/
e3e540f8144b334c608e89a52b9c90b0
bash
Bash
5
2016-09-27T15:48:59
True
False
False
/api/public/snipt/2046/
transcode-avi-to-mpg-using-vlc
<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></pre></div></td><td class="code"><div class="highlight"><pre><span id="L-1"><a name="L-1"></a><span class="c"># First 30 seconds only</span> </span><span id="L-2"><a name="L-2"></a>vlc --stop-time<span class="o">=</span><span class="m">30</span> -I dummy moviename.avi --sout <span class="c">#transcode{cropleft=31, cropright=31, croptop=16, cropbottom=16, width=960, height=544, deinterlace=enable, vcodec=h264, vb=1024, acodec=mp4a, ab=128}:standard{mux=mp4, dst=&quot;moviename.mp4&quot;, access=file} vlc://quit</span> </span><span id="L-3"><a name="L-3"></a> </span><span id="L-4"><a name="L-4"></a><span class="c"># Transcode entire movie</span> </span><span id="L-5"><a name="L-5"></a>vlc -I dummy moviename.avi --sout <span class="c">#transcode{cropleft=31, cropright=31, croptop=16, cropbottom=16, width=960, height=544, deinterlace=enable, vcodec=h264, vb=1024, acodec=mp4a, ab=128}:standard{mux=mp4, dst=&quot;moviename.mp4&quot;, access=file} vlc://quit</span> </span></pre></div> </td></tr></table>
bash, linux, vlc
Copyrighted, illegal, or inappropriate content? Email support@snipt.net.