[FFmpeg-user] preprocess rawdata to RTMP
yanetagiu at yahoo.com
Wed May 3 18:22:42 EEST 2017
Im just trying to use ffmpeg command to transport a preprocess video to RTMP ( It is a youtube live streaming )
So my input is a rawvideo and my output a RTMP address.
Before, i was using this command to transport RTSP to RTMP:
ffmpeg -f lavfi -i anullsrc -rtsp_transport tcp -i rtsp://admin:email@example.com:554/h264/ch1/main/av_stream -tune zerolatency -vcodec libx264 -pix_fmt + -c:v copy -c:a aac -strict experimental -f flv rtmp://a.rtmp.youtube.com/live2/4584-gfjh-28g5-88k0
Now, what are the changes in this command to transport a rawvideo?
I do the preprocess of the RTSP video with openCV library in C++. Which are the ways (and format) I can feed ffmpeg with these frames?
Is this correct if my program output is a string "form" of the frames?$ my_cpp_program < ffmpeg
More information about the ffmpeg-user