[FFmpeg-user] How are ffmpeg internal frames structured?

Mark Filipak (ffmpeg) markfilipak at bog.us
Sun Feb 7 02:31:19 EET 2021


[decoder] --> [filters] --> [codecs] --> [encoder]

My question is:
How are docoder.output and encoder.input structured?

Yes, I know that filters can reformat the video, deinterlace, stack fields, etc.

I have been assuming that the structure is frames of pixels like this:
pixel[0,0] pixel[1,0] ... pixel[in_w-1,0] pixel[0,1] pixel[1,1] ... pixel[in_w-1,in_h-1]
In other words, raw video frames with lines abutted end-to-end (i.e. not deinterlaced).

Am I correct?

-- 
I don't have a dog.
And furthermore, my dog doesn't bite.
And furthermore, you provoked him.


More information about the ffmpeg-user mailing list