VideoWriter fails to open MP4 container (Bug #1536)
I have trouble to open MP4 file for writing using OpenCV 2.3.1 release. It seems to affect writing only. It is able to read MP4 file. And it seems specific to MP4 because I could write to AVI container with the same codec ('x','v','i','d').
Windows XP 32-bit
Sample Program: modified version of starter_video.cpp (sample). Writing the input frames to output as is. The input is AVI HuffYUV.
The error message from 'ffmpeg'(?):
Output #0, mp4, to 'starter_video_out.mp4':
Stream #0.0: Video: mpeg4, yuv420p, 640x480, q=2-31, 19660 kb/s, 90k tbn, 30
[mp4 @ 01497020] Tag xvid/0x64697678 incompatible with output codec id '13'
I am attaching the modified file for your reference.
current ffmpeg implementation only allows to create .mp4 containers using H264 codec. Since H264 encoder support in ffmpeg is optional and requires optional external GPLed X264 encoder, we can only live with it. Use avi or mov or mkv container instead.
- Status changed from Open to Cancelled
- Assignee changed from Alexander Reshetnikov to Vadim Pisarevsky