Broadcast on YouTube Live via RTMP using VLC from a terminal

At startup:

cvlc -vvv 'Bootstrap Tutorial.mp4' --sout '#rtp{dst=rtmp://a.rtmp.youtube.com/live2,name=pa1p-8c4m-zzvp-5j6t,mux=ts}'

I get this debug log .

With an additional indication of the access method:

cvlc -vvv 'Bootstrap Tutorial.mp4' --sout '#std{access=rtmp,dst=rtmp://a.rtmp.youtube.com/live2/pa1p-8c4m-zzvp-5j6t,mux=ts}'

I get this debug log .

How to stream video and audio to YouTube using VLC from a terminal?

Resources I looked at:

+4
source share
2 answers

i youtube vlc.

:

cvlc  -vvv FILE016.MP4 --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-name}'

. youtube h264 ab 128, FLV -.

+4
VLC "${PATHTOFILE}" --sout '#transcode{vcodec=FLV1,acodec=mp3,samplerate=44100}:std{access=rtmp,mux=ffmpeg{mux=flv},dst=rtmp://a.rtmp.youtube.com/live2/'${STREAMID}

YouTube Live VLC FFMPEG

0

Source: https://habr.com/ru/post/1659852/


All Articles