0

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?

MasterWizard
  • 857
  • 2
  • 15
  • 44
  • Using FFMPEG libraries or ffmpeg executable? In the latter case, are the frames stored as separate files on disk, or one file, or will be piped via standard input? – Alex Cohn Sep 28 '14 at 18:01
  • they are passed as lists containing the values of the image. I guess piped then. – MasterWizard Sep 29 '14 at 18:28

1 Answers1

2

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
Alex Cohn
  • 56,089
  • 9
  • 113
  • 307