Ask Your Question
2

Lossless video codecs in OpenCV?

asked 2012-07-25 13:30:16 -0600

Baris Evrim Demiroz gravatar image

updated 2012-10-24 01:58:23 -0600

Kirill Kornyakov gravatar image

Are there any lossless codecs for video that OpenCV support on Windows? If there are any such codecs, what are their 4 character codes like in CV_FOURCC('M','J','P','G')?

edit retag flag offensive close merge delete

Comments

Are there any lossless video codes except RAW format? I'm not en expert, but I've never heard of such codecs... BTW, do you know that you can provide -1 as an argument, and OpenCV will show you a window to choose the codec.

Kirill Kornyakov gravatar imageKirill Kornyakov ( 2012-07-26 02:52:33 -0600 )edit

@Kirill When you pass -1, it does not list all of the available codecs.

Baris Evrim Demiroz gravatar imageBaris Evrim Demiroz ( 2012-08-05 16:34:52 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2012-08-12 07:54:17 -0600

Adi gravatar image

There are lossless (VfW) codecs for Windows that you can install, but I am not sure OpenCV will accept their FourCC. They may also be a bit finicky about the input image format and size.

Alternatively, you might consider saving PNGs (or GIFs for gray images) instead of videos.

edit flag offensive delete link more

Question Tools

Stats

Asked: 2012-07-25 13:30:16 -0600

Seen: 5,018 times

Last updated: Aug 12 '12