Hello Mortiz, Thanks for getting back to me so quickly! Here is my command line I currently use:
ffmpeg -rtsp_transport tcp -i "rtsp://xxxx:[email protected]:554/cam/realmonitor?channel=1&subtype=0" -i "rtsp://xxxx:[email protected]:554/cam/realmonitor?channel=2&subtype=0" -f lavfi -i anullsrc -filter_complex " [0:v] setpts=PTS-STARTPTS, scale=1920x1080,setsar=1[upperleft]; [1:v] setpts=PTS-STARTPTS, scale=1920x1080,setsar=1[upperright]; [upperleft][upperright]hstack[base]" -map [base] -map 2 *-b 4000k -minrate 4000k -maxrate 4000k -bufsize 1835k <-- I just added that, but does not seem to help* -f flv rtmp://x.rtmp.youtube.com/live2/xxxx-xxxx-xxxx-xxxx And here is the live stream on YouTube: https://www.youtube.com/watch?v=Z5ZMPCuDAKA Another thing that also keeps happening is that the stream just freezes up after 24hrs or so... I have to stop and restart the command to get it going again.... :( https://www.screencast.com/t/ZgPhP8vMAz And after I restart I keep getting bunch of errors (that's normal tho... it still works, but can I fix those?) https://www.screencast.com/t/DRuWBg3zDi Thanks, Rad On Tue, Oct 16, 2018 at 6:28 AM Moritz Barsnick <[email protected]> wrote: > On Mon, Oct 15, 2018 at 23:04:39 -0500, Rad J wrote: > > However I'm having some issues with the stream quality and frame loss... > > also YouTube is complaining about my stream type... > > You sometimes need to fiddle against YouTube's expectation. I remember > that YouTube didn't see my live stream actually starting, without > giving me detailed errors like yours. When I improved some parameters > (such as GOP size), it suddenly worked. > > > This is what I'm getting: > > > > *Bad video settings* > > *The video is encoded with an unsupported codec. Please set the video > codec > > for the stream to a supported codec (H.264).* > > > > *10:54 PM Bad Bad video settings* > > *The video is encoded with an unsupported codec. Please set the video > codec > > for the stream to a supported codec (H.264).* > > *Please check the video resolution. The current resolution is > (3840x1080), > > which is not optimal.* > > *The stream's current bitrate (992.00 Kbps) is lower than the recommended > > bitrate. We recommend that you use a stream bitrate of 4500 Kbps.* > > > > Do you know how to fix this? How to increase the bitrate? > > Sure we know. But please show your currently used command line(s) which > provoke(s) these warnings. We can try to fine-tune or reproduce. > > Cheers, > Moritz > _______________________________________________ > ffmpeg-user mailing list > [email protected] > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > > To unsubscribe, visit link above, or email > [email protected] with subject "unsubscribe". _______________________________________________ ffmpeg-user mailing list [email protected] http://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email [email protected] with subject "unsubscribe".
