Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

YouTube live says not receiving data

So, I'm using ffmpeg. I can stream videos to YouTube live I've downloaded from the internet successfully using this command:

ffmpeg -re -i "C:\video.flv" -c:v libx264 -preset slow -crf 18 -c:a copy -f flv "rtmp://a.rtmp.youtube.com/live2/xyz"

When I try to stream a video that's been recorded from a specific device, that is also flv and with same command, it's not working. FFMpeg says it's transmitting, no errors there. In the live dashboard on YouTube I get a green "Starting" briefly but then it goes grey to say it's not receiving data. The only difference is the actual flv files.

Any idea why YouTube Live would say it's not receiving any data instead of giving me an error, when it clearly is receiving it because it works with other video files? Thanks

like image 724
Steve Lobdell Avatar asked Dec 07 '22 21:12

Steve Lobdell


1 Answers

Well for anyone else that may come across this, my problem was that my video did not have audio. Not sure why that should matter, but putting a silent audio track over the video fixed my issue.

like image 141
Steve Lobdell Avatar answered Dec 28 '22 09:12

Steve Lobdell