#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:
- #include "libavutil/pixdesc.h"
- 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 , 12 years ago
| Keywords: | pixel format removed |
|---|
comment:2 by , 12 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 , 12 years ago
| Resolution: | → fixed |
|---|---|
| Status: | new → closed |
Changes applied in 90ca8142673697980a740ea2f723aa7a6d13b267
comment:4 by , 12 years ago
| Version: | 2.0.1 → git-master |
|---|
Note:
See TracTickets
for help on using tickets.



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