Updated by Alexander Shishkov about 13 years ago
I have trouble to open MP4 file for writing using OpenCV [[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').
Environment:
Windows XP 32-bit
VS2010 Express
Sample Program: modified version of starter_video.cpp (sample). Writing the input frames to output as is. The input is AVI HuffYUV. [[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
tbc
[mp4 @ 01497020] Tag xvid/0x64697678 incompatible with output codec id '13'
I am attaching the modified file for your reference.
Environment:
Windows XP 32-bit
VS2010 Express
Sample Program: modified version of starter_video.cpp (sample). Writing the input frames to output as is. The input is AVI HuffYUV. [[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
tbc
[mp4 @ 01497020] Tag xvid/0x64697678 incompatible with output codec id '13'
I am attaching the modified file for your reference.