How to publish silent IP camera to YOUTUBE?


I trying to restream my rtsp ip camera to youtube live stream but youtube isn’t accepting it due missing audio track. How I can fix it? Any fake audio track or mixing with online radio?!

Thank you.

Looks like this is exactly what you need:

It is possible to use the Mixer to create a new stream that will add sound from another source (e.g. a radio):

stream cam1 {
url rtsp://cam1.local/h264;
dvr /storage 7d;
stream radio {
url shout://example.com/fm;
stream cam1radio {
url mixer://cam1,radio;
push rtmp://a.youtube.com/test/example;

In this configuration we will have a stream called cam1radio that we can add to our website. Viewers will be able to listen to radio while watching the video stream, which can be useful during emergency situations. The original stream cam1 with the sound from the camera will be saved to the archive.

Thanks, will try it. And what about fake audio track? Is it possible?

Try this configuration:

stream mix {
url mixer://camera,silent;
push rtmp://a.youtube.com/a/b;

stream camera {
url rtsp://example.com/stream;
stream silent;
url “ffmpeg -re -f lavfi -i anullsrc=channel_layout=stereo:sample_rate=44100 -c:a aac -strict -2 -f mpegts http://localhost:8080/silent/mpegts”;

1 Like

Works like a charm, now I can stream silent video from my rtsp camera to any streaming service like twitch or youtube. Thank you!!