Opened 4 years ago

Closed 4 years ago

Last modified 4 years ago

#2954 closed enhancement (fixed)

No way to choose pixel format for ffserver

Reported by: balek 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 Changed 4 years ago by cehoyos

  • Keywords pixel format removed

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

comment:2 Changed 4 years ago by cehoyos

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 Changed 4 years ago by michael

  • Resolution set to fixed
  • Status changed from new to closed

comment:4 Changed 4 years ago by cehoyos

  • Version changed from 2.0.1 to git-master
Note: See TracTickets for help on using tickets.