Home > other >  Caton librtmp push flow how to solve the problem
Caton librtmp push flow how to solve the problem

Time:09-30

The great spirit is good, recently I use librtmp push flow

Problem description: I use librtmp push live streaming to selectively platform, there will be more small caton and calories, 1, and the amplitude of the caton refers to the video is slightly, but still can continue to play; 2, calories, is refers to the video stream stuck pictures, need to click the refresh button to continue to play, and continue to play dance when the period of play or rollback the replay of the situation,


I pushed the process flow, I is to use opencv to obtain local video, the video frame goes into standby queue, then use the original frame of ffmpeg coding queue for encoded naked flow, and then use the RTMP_SendPacket librtmp send bettas are naked flow,


Encoding the key data:
The encoder: x264
Bitrate: 2000 ~ 3000 k
The video resolution: 1920 * 1080
Preset: veryfast


Environment:
Ubuntu16.04
The local network:
The upside: 3 m/s


Do you have a great god know how to solve this problem, in which direction or thinking

Note: I try to put the ffmpeg output flow of naked wrote a local file, can be played normally, so caton should not is my video card itself, or the said not cause caton encoding speed slower, should be RTMP_SendPacket speed than coding block, I'm a beginner rookie, a great god, please advice,
  • Related