Opened 11 years ago

Closed 11 years ago

Last modified 11 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

Description

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, 11 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, 11 years ago

Sorry, I apparently forgot to point you to the relevant documentation:
http://ffmpeg.org/developer.html#Submitting-patches-1
Please excuse and please consider to read it!

comment:3 by Michael Niedermayer, 11 years ago

Resolution: fixed
Status: newclosed

comment:4 by Carl Eugen Hoyos, 11 years ago

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