[FFmpeg-devel] PixelFormat support for ffserver.conf

Alexey Balekhov a at balek.ru
Thu Sep 12 10:48:22 CEST 2013


Hello. There is no way to choose pixel format, when streaming with
ffserver. Patch for ffserver.c is simple:
1. #include "libavutil/pixdesc.h"
2. Somewhere in parsing part:
        } else if (!av_strcasecmp(cmd, "PixelFormat")) {
            get_arg(arg, sizeof(arg), &p);
            if (stream) {
                video_enc.pix_fmt = av_get_pix_fmt(arg);
                if (video_enc.pix_fmt == AV_PIX_FMT_NONE) {
                    ERROR("Unknown pixel format: %s\n", arg);
                }
            }

It works perfectly. Ticket: https://ffmpeg.org/trac/ffmpeg/ticket/2954 .

---
Alexey Balekhov


More information about the ffmpeg-devel mailing list