what is the 4 char id for mpeg decoder in opencv

mans picture mans · Jun 7, 2013 · Viewed 7.5k times · Source

I want to create a mpeg4 stream whith the following specs:

Container mp4.mov m4v

Resolution 1920 X 1080

Codec h264 main profile 4.1

I am wondering what CV_FOURCC and file extension should I use?

Any help appreciated.

I am using C++

In general where can find the fourcc for any coded?

Answer

vyndor picture vyndor · Jun 7, 2013

If you read a file, you don't need to specify any codec.

If you write to a file, I think you need to specify X264. Full list of FOURCC codes avaliable here.