[FFmpeg-devel] PixelFormat support for ffserver.conf

Michael Niedermayer michaelni at gmx.at
Sat Sep 14 03:59:48 CEST 2013

On Thu, Sep 12, 2013 at 12:48:22PM +0400, Alexey Balekhov wrote:
> 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);
>                 }
>             }

changes applied

In the future please submit actual patches
this way we can be sure that the changes made are identical to the
ones you use and have tested.


Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Asymptotically faster algorithms should always be preferred if you have
asymptotical amounts of data
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20130914/632765e2/attachment.asc>

More information about the ffmpeg-devel mailing list