[FFmpeg-user] Submitting a Feature Request

Chris c319chris at aol.com
Tue Jan 21 20:31:25 EET 2020


-----Original Message-----
From: Carl Eugen Hoyos <ceffmpeg at gmail.com>
To: FFmpeg user questions <ffmpeg-user at ffmpeg.org>
Sent: Sun, Jan 19, 2020 11:34 am
Subject: Re: [FFmpeg-user] Submitting a Feature Request


> ffmpeg with the command-line interface forces video levels to either 0 - 255 or 16 - 235

> Ok.
> Could you 1) repeat the usecase for other levels and 2) post the command line
> that produces a file for this use-case but with wrong video levels.

> Carl Eugen
Here is the code that invokes ffmpeg (ffmpeg is invoked from a C language program).

// Open an input pipe from ffmpeg and an output pipe to a second instance of ffmpeg

FILE *pipein = popen("ffmpeg -i C0015.MP4 -f image2pipe -vcodec rawvideo -pix_fmt rgb24 -s 1280x720 -", "r");
FILE *pipeout = popen("ffmpeg -y -f rawvideo -vcodec rawvideo -pix_fmt rgb24 -s 1280x720 -r 59.94 -i - -f mp4 -q:v 5 -vcodec rawvideo -pix_fmt rgb24  -an  output.avi", "w");

Again, this code works perfectly fine, exactly as expected.
I want to add a feature where ffmpeg does not force the levels to 0 - 255 or 16 - 235: out_range=unity.


More information about the ffmpeg-user mailing list