[FFmpeg-trac] #2954(FFserver:new): No way to choose pixel format for ffserver

FFmpeg trac at avcodec.org
Thu Sep 12 07:44:59 CEST 2013


#2954: No way to choose pixel format for ffserver
-------------------------------------+-------------------------------------
             Reporter:  balek        |                     Type:
               Status:  new          |  enhancement
            Component:  FFserver     |                 Priority:  normal
             Keywords:  pix_fmt,     |                  Version:  2.0.1
  pixel format                       |               Blocked By:
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------
 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.

-- 
Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/2954>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list