I'm looking to stream to Youtube with VLC and made the following command-string:
cvlc -vv screen:// --live-caching=0 --screen-fps=30 --screen-width=1920 --screen-height=1080 --sout='#transcode{vcodec=h264,scale=Auto,width=1920,height=1080,acodec=mp3,ab=128,channels=2,samplerate=44100}:std{access=rtmp,mux=ffmpeg{mux=flv},dst=rtmp://a.rtmp.youtube.com/live2/xxxxxxxxxxx}'
If I replace screen:// ..
with a videofile, the stream successfully uploads to Youtube.
But I have no idea why it won't cast the screen. Youtube briefly shows a connection but no image. The stream isn't interrupted by VLC and it shows the upload to keep proceeding, but it's never picked up by YT. Any help would be appreciated.
For the record, I am able to view the screen offline in VLC without streaming.
I get a particular error that stands out:
core mux warning: late buffer for mux input (repeated while streaming)
but this happens as well in the case of uploading the video and then doesn't seem to cause an issue.
Log
Below is the log when I try to set up an HTTP server streaming the desktop while also playing in VLC. I do get an image, but only a static one, the first frame of the stream.
It tells me a lot that my computer is slow, however it's a Corei5 and the VLC process only takes up 9% with a lot remaining. Saving to file works fine.
Note
I have two monitors. That might be a problem for it somehow, I don't know.
Update
I fixed the dropped frames issue by increasing the buffer with live-caching=2500
. Now it works fine with a local HTTP server, but still not with YT.
0 comments:
Post a Comment