Lossless video export

Lossless video export
input: YUV4:2:0 8bit
output: FFV1 + pix_fmt=yuv420p

In my previewer, they are not consistent with the source comparison
I don’t care about video size, please tell me how to do it?


ps:
I export FFV1 video using ffmpeg,They are the same.
So the problem may lie in the former? [ source >> Shotcut >> ffmpeg ]

What I want to achieve is 100% lossless
Just like FFV1 in ffmpeg.

In the export panel, scroll down to the “lossless” section and choose “FFV1”

image
I have already exported using FFV1.The result is not the same as the source.

It works for me. You will need to provide a more detailed test example.

Here is my example.

I use the Video Zoom Scope to inspect my .mp4 file:

Then, i export using the FFV1 export preset (and not other changes), open the export in Shotcut and inspect the same pixel:

The values are exactly the same.


The color has changed


This is the source

You can test any normal video clip.This is the test clip from the above picture


(I don’t know if uploading will compress the video)

I do not have any experience with VSPreview. And I do not volunteer to debug it.

But your file comes out as an exact replica when I use the zoom tool in Shotcut to compare.

Here pixel 300x300 in your origional video:

And here is pixel 300x300 in the FFV1 export:

The pixel values are exactly the same.

Whatever program you are using to compare the files is probably reading the FFV1 file incorrectly.

Can you perform the same comparison that I did using Shotcut and the Video Zoom scope?

VSPreview is accurate.
5
You can check x,y (500,890)

I assume this is coming?

If you are never going to filters or track blending and just want lossless cutting, you can add to Export > Other mlt_image_format=yuv420p. That tells the engine what to render to; it defaults to yuv422. Most of the effects are in rgb(a) and some in yuv422. Rarely, yuv420p. So, as you introduce anything that affects the image, it will likely go through some color or pixel format conversions. Shotcut’s Video Mode is a also big factor here when it does not match the source.

After adding “mlt_image_format” ,
8bit ,Same as the source
10bit ,Different
16bit, Different
Only 8bit achieves lossless…

1 Like

Correct, it is not a lossless video editor as explained in the FAQ.

How can I achieve lossless in 10 bit and 16 bit?

Not supported