Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion. Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules. |
15th March 2004, 13:51 | #1 | Link |
Registered User
Join Date: Mar 2004
Posts: 23
|
ffv1 - lossless codec?
Hi!
I have read several places that the ffv1 codec is lossless. But as far as I can see, the codec has some form of quantization, and therefore by defenition can't be lossless. Have also done some tests with SSIM and PSNR, and these tests show that the codec is visually very good, but not lossless. Any opinions on this? If ffv1 isn't truly lossless, which is the the best lossless codec then? HLW |
15th March 2004, 15:09 | #2 | Link |
Registered User
Join Date: Mar 2002
Posts: 1,075
|
If the results arent lossless then you either have found a bug or a non reversible colorspace transform is being applied somewhere along the line.
The quantization is used when determining the context for entropy coding, it doesnt quantize the to be coded prediction error. |
15th March 2004, 15:20 | #3 | Link |
Registered User
Join Date: Mar 2004
Posts: 23
|
Thanks for answer!
It may be possible that there has been some kind of unwanted colorspace conversion. I'll have a check on that! I'm not shure if I got what you meant by "The quantization is used when determining the context for entropy coding", can you explain that in other words? Doesn't all kind og quantizing lead to some kind of loss? |
15th March 2004, 20:40 | #4 | Link |
Registered User
Join Date: Oct 2001
Location: Outside the Bush INSanatory - Lisbon
Posts: 330
|
What (I guess) MfA means, is that somewhere there is a quantization process that looses quality, but the codec (and this is what makes it lossless) also keeps the error diference, so you can rebuild the original data.
|
15th March 2004, 20:46 | #5 | Link |
Registered User
Join Date: Mar 2002
Posts: 1,075
|
Not exactly, it quantizes the already coded differences for pixels in a certain neighbourhood to determine the context for the present pixel ... it quantizes them because you need a small number of contexts, but that actual entropy coding is always lossless regardless of the context.
I said as much before though, if you want to know what it means then read up on context selection and entropy coding. |
27th April 2004, 09:48 | #9 | Link |
Registered User
Join Date: Mar 2004
Posts: 23
|
Now I've dove quit a lot of testing on the ffv1 (ffdshow, 18. april build), and I can't find that it is completely lossless. My source material are in yv12, so there should be no mysterious color space conversions. I've tested with both SSIM and PSNR, and I get SSIM around 98-99 and PSNR over 50 dB. Very good vaules, but not lossless. I think there must be a bug somewhere! Or has anyone done some truly lossless encoding with this codec?
|
27th April 2004, 12:28 | #10 | Link | |
Senior n00b
Join Date: Jan 2004
Location: Italy
Posts: 446
|
Quote:
@MfA: do you know what reversible RGB2YUV transform ffmpeg uses? hope this helps virus |
|
27th April 2004, 14:16 | #12 | Link | |
Senior n00b
Join Date: Jan 2004
Location: Italy
Posts: 446
|
Quote:
Also, be sure to disable any postprocessing and use VDub's "Fast Recompress" mode for encoding. |
|
11th December 2004, 19:01 | #13 | Link |
Seņor Member
Join Date: May 2002
Location: Austin, Texas
Posts: 915
|
Using the Dec 05, 2004 build, if I select the encode colorspace to be RGB32, the decoded output is random purple and green static. It also outputs automatically to YV12. If I select RGB32 as the only output option in FFDshow, then it crashes on playback. YV12 seems to work fine.
I have a YV12 FFV1 encoded clip from 2004-10-29 that crashes too and causes VirtualDub to just close as soon as it tries to open. That isn't surprising as the codec is in an unstable development state. Oddly though, the YV12 encoded file is the exact same size, down to the byte, of the newer YV12 encoded file. |
11th December 2004, 19:26 | #14 | Link |
Registered User
Join Date: Apr 2002
Location: Germany
Posts: 4,926
|
be sure to use Fast Recompres with VirtualdubMod
Virtualdub 1.6.x ouptuts only YUV in Fast Recompres
__________________
all my compares are riddles so please try to decipher them yourselves :) It is about Time Join the Revolution NOW before it is to Late ! http://forum.doom9.org/showthread.php?t=168004 |
|
|