Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

I haven't gotten it to work either. I say "fourcc = -1" and then use the codec picker to choose x264vfw.

giving the fourcc is supposed to work for installed codecs that announce to the system media APIs which fourccs they can encode. maybe no codec claims "H264", or the right codec is not configured to claim this fourcc.

I haven't gotten it to work properly either. I say "fourcc = -1" and then use the system codec picker to choose x264vfw.x264vfw. if I give "X264" as the codec, it complains about "codec ID 28" but still produces a video. when I give a completely random fourcc, it doesn't complain and doesn't produce a video.

giving if you give a fourcc, it's passed to avcodec_find_encoder() in sources\modules\highgui\src\cap_ffmpeg_impl.hpp line 1591 (in v2.4.8), so somewhere there is the fourcc is supposed to work for installed codecs that announce to the system media APIs which fourccs they can encode. maybe no codec claims "H264", or the right codec is not configured to claim this fourcc.bug.

I haven't gotten it to work properly either. I say "fourcc = -1" and then use the system codec picker to choose x264vfw. if I give "X264" as the codec, it complains about "codec ID 28" but still produces a video. video (provided I ignore isOpened() being false). when I give a completely random fourcc, it doesn't complain about "codec id 28" and doesn't produce a video.

if you give a fourcc, it's passed to avcodec_find_encoder() in sources\modules\highgui\src\cap_ffmpeg_impl.hpp line 1591 (in v2.4.8), so somewhere there is the bug.