I've searched and can't find this simple answer, I even posted this as a job on freelancer.com with no successful proposals.
I'm trying to stream my hikvision DS-2CD2347G1 to YouTube with FFmpeg.
I'm able to stream to YouTube, but the command line I'm using inserts a blank audio stream.
My camera has audio, and I would like to modify the FFmpeg CMD line to include the audio.
My current CMD line is: ffmpeg -f lavfi -i anullsrc -rtsp_transport udp -i rtsp:/usernameassword@192.168.0.63:554/Streaming/channels/101 -tune zerolatency -vcodec libx264 -t 12:00:00 -pix_fmt + -c:v copy -c:a aac -ar 44100 -strict experimental -f flv rtmp:/a.rtmp.youtube.com/live2/YouTube Stream Code
according to IP Camera RTSP Stream to Youtube Live
the line I'm using inserts a blank audio with the filter anullsrc, but I can't figure out how to remove that filter and still have the code function correctly.
also according to that site, if I need audio they recommend:
ffmpeg -i rtsp:/IPaddress -vcodec copy -acodec copy -f flv rtmp:/a.rtmp.youtube.com/live2/your stream name
but YouTube doesn't accept that stream at all
My target result:
I'm trying to stream my hikvision DS-2CD2347G1 to YouTube with FFmpeg.
I'm able to stream to YouTube, but the command line I'm using inserts a blank audio stream.
My camera has audio, and I would like to modify the FFmpeg CMD line to include the audio.
My current CMD line is: ffmpeg -f lavfi -i anullsrc -rtsp_transport udp -i rtsp:/usernameassword@192.168.0.63:554/Streaming/channels/101 -tune zerolatency -vcodec libx264 -t 12:00:00 -pix_fmt + -c:v copy -c:a aac -ar 44100 -strict experimental -f flv rtmp:/a.rtmp.youtube.com/live2/YouTube Stream Code
according to IP Camera RTSP Stream to Youtube Live
the line I'm using inserts a blank audio with the filter anullsrc, but I can't figure out how to remove that filter and still have the code function correctly.
also according to that site, if I need audio they recommend:
ffmpeg -i rtsp:/IPaddress -vcodec copy -acodec copy -f flv rtmp:/a.rtmp.youtube.com/live2/your stream name
but YouTube doesn't accept that stream at all
My target result: