Page 1 of 1

x264 - lossless encoding (and decoding) of 10 bits images

Posted: 29 Oct 2013 14:08
by cyberfaber
Hi,

I have 10 bits images, phisically stored in 16 bits files.
I am looking for a way to produce a lossless mp4 movie out of them, and to get the images back.

PNG --> MP4 --> PNG

I correctly managed to do it with 8 bit images, but for some reason I can't do it with 10 bits ones.
Of course, I compiled x264 with the option to use 10 bits of depth.

I actually get a warning about the "full-chroma interpolation for destination format 'rgb48le' not yet implemented", and I guess it has something to do with it.

Any idea on how to do it?

A single channel lossless 10 bits encoding/decoding procedure would also help.

Thanks.

Re: x264 - lossless encoding (and decoding) of 10 bits images

Posted: 21 Nov 2019 05:21
by Amit_al
Hello,

I was also trying to convert from PNG-->MP4, but no luck. :( :(

Can you help me with how you did it with only x264 and without using ffmpeg or any other stuff like that.

I am really looking for this solution.

Thanks in advance.

Re: x264 - lossless encoding (and decoding) of 10 bits images

Posted: 21 Nov 2019 10:48
by InTheWings
Don't feed x264 with RGB but with YUV 10 bit

Re: x264 - lossless encoding (and decoding) of 10 bits images

Posted: 25 Nov 2019 13:22
by Amit_al
Thanks @InTheWings for replying.

Actually, I am looking for some X264 command line statement, which can take input as set of some PNG files(started from 0) and provide output as .mp4 file.

For example, in case of bmp input files, below command in working fine -
x264 --crf 10 -o "<directory path>test.mp4" "<Directory path>%04d.bmp" --fps 30 --vf crop:0,0,1,0"

Similarly, I want to create .mp4 with PNG instead of bmp files, something like below -
x264 --crf 10 -o "<directory path>test.mp4" "<Directory path>%04d.png" --fps 30 --vf crop:0,0,1,0" --> this is not working

I am not implementing the library of X264. I am just creating a process and invoking X264 command line statement, in my code.

Hope you got my query.

Please help with any of the suggestions..I am even not sure, if it is possible or not.

Thanks in advance.