Opened 10 years ago

Closed 10 years ago

Last modified 10 years ago

#2954 closed enhancement (fixed)

No way to choose pixel format for ffserver

Reported by: Alexey Balekhov Owned by:
Priority: normal Component: ffserver
Version: git-master Keywords: pix_fmt
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no


This feature can be simply added by two modifications in ffserver.c:

  1. #include "libavutil/pixdesc.h"
  2. Add 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.

Change History (4)

comment:1 by Carl Eugen Hoyos, 10 years ago

Keywords: pixel format removed

Please send patches to the ffmpeg-devel mailing list where they receive more attention.

comment:2 by Carl Eugen Hoyos, 10 years ago

Sorry, I apparently forgot to point you to the relevant documentation:
Please excuse and please consider to read it!

comment:3 by Michael Niedermayer, 10 years ago

Resolution: fixed
Status: newclosed

comment:4 by Carl Eugen Hoyos, 10 years ago

Version: 2.0.1git-master
Note: See TracTickets for help on using tickets.