Currently bits_per_raw_sample is exposed as an AVCodecContext option.
The option is not very useful, because ffmpeg 1) overwrites it with
a value from the upstream codec, or 2) it resets the value whenever
the video is resampled.
This patch adds the -bits_per_raw sample option to FFmpeg, and
caches the value like is done for the -pix_fmt option.
Example usage:
ffmpeg v210.avi -pix_fmt rgb48 -bits_per_raw_sample 10 out%d.dpx
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
oldabi
Peter Ross14 years agocommitted byMichael Niedermayer
{"s",HAS_ARG|OPT_VIDEO,{(void*)opt_frame_size},"set frame size (WxH or abbreviation)","size"},
{"aspect",HAS_ARG|OPT_VIDEO,{(void*)opt_frame_aspect_ratio},"set aspect ratio (4:3, 16:9 or 1.3333, 1.7777)","aspect"},
{"pix_fmt",HAS_ARG|OPT_EXPERT|OPT_VIDEO,{(void*)opt_frame_pix_fmt},"set pixel format, 'list' as argument shows all the pixel formats supported","format"},
{"bits_per_raw_sample",OPT_INT|HAS_ARG|OPT_VIDEO,{(void*)&frame_bits_per_raw_sample},"set the number of bits per raw sample","number"},
{"croptop",OPT_FUNC2|HAS_ARG|OPT_VIDEO,{(void*)opt_frame_crop},"Removed, use the crop filter instead","size"},
{"cropbottom",OPT_FUNC2|HAS_ARG|OPT_VIDEO,{(void*)opt_frame_crop},"Removed, use the crop filter instead","size"},
{"cropleft",OPT_FUNC2|HAS_ARG|OPT_VIDEO,{(void*)opt_frame_crop},"Removed, use the crop filter instead","size"},