Motion - Bug Report 2005x 05x 22x 213229

BUG: ffmpeg reports only YUV420 is supported

Jeff A. Volckaert reported on the Motion mailing list

To: <>
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?


Test case


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: ";

Topic revision: r2 - 27 May 2005, KennethLavrsen
Copyright © 1999-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Please do not email Kenneth for support questions (read why). Use the Support Requests page or join the Mailing List.
This website only use harmless session cookies. See Cookie Policy for details. By using this website you accept the use of these cookies.