BUG: ffmpeg reports only YUV420 is supported
Jeff A. Volckaert reported on the Motion mailing list
To: <motion-user@lists.sourceforge.net>
Subject: [Motion-user] [mpeg4 @ 0x377a10]only YUV420 is supported
I have a fresh install of snap 17 that gives me the following error:
[mpeg4 @ 0x377a10]only YUV420 is supported
avcodec_open - could not open codec: Success
Segmentation fault
Any help?
Thanks,
Jeff
Test case
Environment
Motion version: |
3.2.1_snap17 |
ffmpeg version: |
|
Shared libraries: |
ffmpeg, mysql, postgresql |
Server OS: |
|
--
KennethLavrsen - 22 May 2005
Follow up
Fix record
Angel Carpintero posted this fix.
--- motion-3.2.1/ffmpeg.c 2005-03-25 16:57:16.000000000 +0100
+++ motion-3.2.1-ffmpeg-fix/ffmpeg.c 2005-05-19 18:28:55.000000000 +0200
@@ -314,6 +314,9 @@ struct ffmpeg *ffmpeg_open(char *ffmpeg_
return (NULL);
}
+ ffmpeg->video_st->codec.pix_fmt=PIX_FMT_YUV420P;
+
/* open the codec */
if (avcodec_open(&ffmpeg->video_st->codec, codec) < 0) {
const char msg[]="avcodec_open - could not open codec: ";