Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

push mat to rtmp stream

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

push mat to rtmp stream

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

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

push mat to rtmp stream

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

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

push mat to rtmp stream

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);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