问题
Im trying to stream raw YUV frames in an array generated in a C++ program to video using FFPEG. Can anyone point me to the right direction?
回答1:
To stream piped YUV420 planar frames to RTMP try e.g.
ffmpeg -f rawvideo -c:v rawvideo -s 1920x1080 -r 25 -pix_fmt yuv420p -i - -c:v libx264 -f flv rtmp:///live/myStream.sdp
来源:https://stackoverflow.com/questions/26085282/yuv-raw-frames-to-video-stream