Advanced Streaming from command line
Siehe auch ffmpeg
vlc -I dummy -vvv {args}
// udp streaming --sout=udp://:8080 // stream to ogg (Audio) --sout=#transcode{vcodec=none,acodec=vorb,ab=128,channels=2,samplerate=44100}:file{dst=record.ogg} // stream to mp4 --sout=#standard{mux=ts,access=file{no-overwrite},dst="record.mp4"} // screen streaming screen:// :screen-fps=1 :screen-left=0 :screen-top=0 :screen-width=960 :screen-height=540 :sout=#transcode{vcodec=h264,acodec=mpga,ab=128,channels=2,samplerate=44100}:http{mux=ffmpeg{mux=flv},dst=:8080/live} :sout-keep dshow:// :screen-fps=60 --sout=#transcode{vcodec=h264,acodec=mpga,ab=128,channels=2,samplerate=44100}:std{access=rtmp,mux=ffmpeg{mux=flv},dst=rtmp://:1935/source/test} // apple streaming (hls) --sout=#std{access=livehttp{seglen=10,delsegs=true,numsegs=5,index=mystream.m3u8,index-url=http://localhost/mystream-########.ts},mux=ts{use-key-frames},dst=mystream-########.ts} // http streaming --sout=#duplicate{dst=http{mux=ffmpeg{mux=flv},dst=:8080/live},dst=display} // rtsp streaming --sout=#rtp{sdp=rtsp://:8080/live} --ttl=128 --sout-keep // rtmp streaming using nginx --sout=#std{access=rtmp,mux=ffmpeg{mux=flv},dst=rtmp://:1935/<APP NAME>/<STREAM KEY>}
Stream to platforms like youtube or twitch
// twitch streaming --sout=#transcode{vcodec=h264,scale=Auto,width=1280,height=720,acodec=mp3,ab=128,channels=2,samplerate=44100}:std{access=rtmp,mux=ffmpeg{mux=flv},dst=rtmp://live.twitch.tv/app/<STREAM_KEY>} // youtube streaming --sout=#transcode{vcodec=h264,scale=Auto,width=1280,height=720,acodec=mp3,ab=128,channels=2,samplerate=44100}:std{access=rtmp,mux=ffmpeg{mux=flv},dst=rtmp://a.rtmp.youtube.com/live2/<STREAM_KEY>}
// mp4 to mp3 vlc -I dummy "input.mp4" --sout=#transcode{acodec=mp3,ab=128,vcodec=dummy}:std{access="file",mux="raw",dst="output.mp3"} vlc://quit