Created
May 6, 2012 00:09
-
-
Save fernyb/2606456 to your computer and use it in GitHub Desktop.
vlc streaming
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Stream to UDP 127.0.0.1, Port 2222 | |
vlc qtcapture:// -vvv input_stream --sout='#duplicate{dst=display, dst="transcode{venc=x264{keyint=60,idrint=2},vcodec=h264,vb=300,acodec=mp4a,ab=32,channels=2, samplerate=22050}:standard{access=udp,mux=ts,dst=127.0.0.1:2222}"}' | |
# Stream to local file: | |
vlc --ttl 12 qtcapture:// -vvv input_stream --sout="#transcode{venc=x264{keyint=60,idrint=2},vcodec=h264,vb=300,acodec=mp4a,ab=32,channels=2, samplerate=22050}:\ | |
duplicate{dst=file{mux=ts,dst=/Users/fernyb/live/vlclive.ts},dst=display}" | |
# Stream to local and pipe to media stream segmenter, which creates index file and can be streamed to iOS | |
vlc --ttl 12 qtcapture:// -vvv input_stream --sout="#transcode{venc=x264{keyint=60,idrint=2},vcodec=h264,vb=300,acodec=mp4a,ab=32,channels=2, samplerate=22050}:\ | |
duplicate{dst=file{mux=ts,dst='-'},dst=display}" | mediastreamsegmenter -s 10 -D -f /Users/fernyb/hls/live | |
# Another stream | |
vlc --ttl 12 qtcapture:// -vvv input_stream --sout-x264-level=31 --sout-x264-profile=baseline \ | |
--sout-x264-aud \ | |
--sout="#transcode{venc=x264{keyint=60,idrint=2},vcodec=h264,vb=600,acodec=mp3,ab=128,channels=2,samplerate=44100}:\ | |
duplicate{dst=file{mux=ts,dst='-'},dst=display}" | mediastreamsegmenter -s 10 -D -f /Users/fernyb/hls/live | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment