push mat to rtmp stream

asked 2020-10-21 22:18:13 -0500

mayday0208 gravatar image

updated 2020-10-22 04:18:15 -0500

supra56 gravatar image

Code:

cv::VideoWriter out("appsrc ! videoconvert ! video/x-raw,format=I420,clock-rate=90000 ! omxh264enc ! video/x-h264,stream-format=(string)byte-stream,alignment=(string)au ! h264parse ! queue ! flvmux ! rtmpsink location=rtmp://192.168.165.56:1935/live/0/", 0, fps, size, true);

push stream sucess. i play the rtmp use VLC. the video play so fast. 1920*1080. how can make it right

edit retag flag offensive close merge delete