Prompt a program or a bunch of programs with which you can organize a broadcast from an IP camera on Youtube.

Camera: TP-Link TL-SC3130G .

Camera stream URL: rtsp://192.168.0.100:554/video.mp4

I try through ffmpeg under Windows like this:

ffmpeg -i rtsp://admin:admin@192.168.0.100:554/video.mp4 -s 640×480 rtmp://a.rtmp.youtube.com/live2/[мой код трансляции]

It does not work through ffmpeg. Tell me what am I doing wrong?

  • And what does not work? What error messages are displayed? What version of ffmpeg is used? - Monah Tuk
  • ffmpeg version N-66116-g720c21d The console displays the configuration and nothing else happens - Lana Samusa

1 answer 1

Look here for SoEN , in particular the question itself, and the answer to it. You have a big error in the flags, for example, there are more flags here:

 ffmpeg -r 18 -f dshow -s 1280x720 -i video="USB2.0 HD UVC WebCam":audio="Microphone (Realtek High Definition Audio)" -vcodec h264 -b:v 1800k -acodec aac -strict experimental -f flv "rtmp://a.rtmp.youtube.com/live2/useruser.useruser.codecodecodecode" 

You should also take a look at the page with descriptions of flags and examples of streaming using ffmpeg .

In dogonku, on GitHub there is a small bash skriptik from olasd (C)

I will add with the answer from the link to SoEN:

  1. For streaming video from IP camera with rtsp video only output:

    ffmpeg -re -i input-file -rtsp_transport tcp -i rtsp://password@(streamaddress with local IP) -acodec libmp3lame -ar 44100 -b:a 128k -pix_fmt yuv420p -profile:v baseline -s 426x240 -bufsize 2048k -vb 400k -maxrate 800k -deinterlace -vcodec libx264 -preset medium -g 30 -r 30 -f flv "rtmp://a.rtmp.youtube.com/live2/(Stream name/key)"

    Brijesh Verma (C)

  • What is the biggest mistake in the flags of the vehicle you found? Your example for a UVC camera connected via USB. The vehicle has an IP camera connected via the network. It is better to publish the olasd code as an answer - it will be more accurate (with abstraction from bash). - Monah Tuk
  • @MonahTuk, bit rates, buffer, codecs. There is not much that YouTube needs. That is why I indicated that it is necessary to consider a previously asked "similar" question, ask for flags, see an example of a script. And then, write something that will work. But he didn’t give just the finished version so that everything was “OK” - LamerXaKer