[FFmpeg-user] FFv1: Encode rgb48le?

Paul B Mahol onemda at gmail.com
Fri Jun 8 13:22:43 CEST 2012

On 6/6/12, Peter B. <pb at das-werkstatt.com> wrote:
> Hello,
> I want to show that converting DPX to FFv1 is lossless.
> In my given scenario, I've got 48bit DPX (rgb48le), but when I use
> "-pix_fmt rgb48le" as parameter for FFv1 encoding, I get the following
> message:
> "Incompatible pixel format 'rgb48le' for codec 'ffv1', auto-selecting
> format 'yuv420p16le'"
> When generating framemd5 of the original DPX, I saw that it said
> "rgb48le", *but* used the FourCC "RGB0":
> "Stream #0:0: Video: rawvideo (RGB0 / 0x30424752), rgb48le, 1920x1080
> [SAR 1:1 DAR 16:9], q=2-31, 200 kb/s, 25 tbn, 25 tbc"
> I've browsed ffv1.c and saw that "PIX_FMT_0RGB32" should be supported,
> but when "-pix_fmt 0rgb32" didn't work - and using "-pix_fmt rgb32"
> effectively used "bgra".
> So, 2 questions about that:
> 1) When calculating the frame-md5 sums for the rgb48le DPX files, does
> "RGB0" mean that it's truncated to 32bits?

Not truncated but scaled, there is no unscaled variant yet.
> 2) How can I encode rgb48le in FFv1?

Lossless RGB48 encoding is not yet possible, but it can be done by
adding RGBA64 support and unscaled coversion rgb48 <-> rgba64.

More information about the ffmpeg-user mailing list