M
M
MrTimon2017-11-21 17:31:50
RTMP
MrTimon, 2017-11-21 17:31:50

The idea is WEBRTC->RTP->ffmmeg->rtmp->Youtube. Problem with the second half of ffmmeg->RTMP. Has anyone worked in this direction?

Hello.
As I wrote in the topic, the idea is to make a stream from the browser on YouTube and on FB. For this I use Kurento Media Server(KMS). I did the implementation itself, not without extra effort, but the quality of the translation is not very good (if not expressed). I think the problem lies in the conversion, namely on the transition from rtp to rtmp and in the ffmpeg assembly itself, since the code either works or not, depending on which server I run and which OS (I mean, it works on the server with Ubuntu, but locally with Windows - no ). Can someone help with the options for the ffmpeg command and the correct build for ffmpeg for the task at hand (well, what bitrate to set, the number of frames, or whatever else is needed there)? I will be glad to any thoughts on this matter, I am not very experienced in matters of video conversion and streaming in general. Maybe there are some useful links, but there is very little worthy information, only in fits and starts, and then not of the best quality.
Now I use the following command:

ffmpeg -protocol_whitelist file,udp,rtp -fflags +genpts -analyzeduration 2148M -probesize 2148M -i 127.0.0.1_5500.sdp -vcodec libx264 -x264opts keyint=5:min-keyint=1 -acodec aac -strict -2 -r 12 -f flv rtmp://a.rtmp.youtube.com/live2/***-****-***-****

I am sure only in some parameters, the rest I selected in order for the broadcast to work at least somehow

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question