I was wondering about this, as I've never seemed to encounter them before. Are lossless video compression schemes just not good enough at creating a good compression ratio for video?
+ Reply to Thread
Results 1 to 22 of 22
-
-
Like with audio, lossless compression algorithms rarely result in much compression. And there never will be. It's just the nature of the beast.
-
Originally Posted by jagabo
Can anyone explain to me exactly why video cannot be compressed this way? This is an obviously ignorant statement but I just figured that video would be ripe with redundancy. -
Originally Posted by CursedLemon
The same can be said for video. If you start from uncompressed RGB, you can get 50% reduction in filesize using lossless compression too.
The analogy would be taking a compressed audio file , eg. mp3, and converting to FLAC. So of course the filesize is going to be huge, but much smaller than uncompressed. The same thing happens in video, taking a compressed video file (e.g. h.264, xvid etc...) and converting to lossless compression eg.. lagarith = filesize huge , but much smaller than uncompressed RGB -
Also note that all the high compression lossy codecs use lossless compression (huffman) as the last step in their compression.
-
Originally Posted by poisondeathray
-
Yes, but it also depends on source complexity, much like audio
What is your source format? uncompressed RGB or some other format? and what are your goals (what are you using it for)?
The higher the compression, the less likely you will get real time playback or editing capability in a NLE
There are many different lossless video codecs. You can choose one that offers better compression at the expense of encode or decode speed (tradeoffs)
Lagarith RGB is probably one of the most commonly used because of it's high compression but very poor for decode speed/editing. Huffyuv or huffyuv-mt is less compressed but much faster. UT is even faster, and can offer realtime editing/playback in NLE's on 1080p material with a fast i7
Do a search, as this topic has been addressed before here and on other forums. If you have specific requirements, then ask. -
Originally Posted by poisondeathray
-
While the conversion from original format to lossless format is "lossless", the conversion back is not.
For archiving/storage - It's usually a better idea to store it in the original format, whatever that is. Chances are it will be smaller in filesize/bitrate (e.g. DVD, blu-ray, camcorder video, virtually anything). The same can be said for lossy audio. e.g. you buy some itunes , it would be better of leaving it as aac or mp3 vs. converting to a lossless format.
It's only the case when your original format is uncompressed, that using a lossless format might might sense (e.g. video capture, CGI renders & animation, etc...)
In video, lossless intermediates usually have a role in intermeditate stages of video editing only. e.g. where you need to import between applications or you have render heavy effects that you want to only render once (vs. at multiple stages) -
Well I just found it a little odd, personally. As someone who deals with audio, I pass around uncompressed .wav files all the time. Obviously uncompressed video is going to be a little less practical, but I figured that I might at least HEAR of small project videos being uploaded on the internet fully uncompressed (but in a lossless scheme, of course).
-
Well uncompressed stereo WAV audio is about 1.536Mbit/s right?
The data rates for 1080p24 uncompressed are like 800-900Mbit/s. Regular hard drives cannot handle it , you need to put them in RAID-0 array. "Passing around" uncompressed HD video for fun is a lot less practical -
Originally Posted by poisondeathray
Makes a little more sense, that.
-
For example, In VirtualDub I created a 720x400, 60 fps RGB video from a 1920x1080 60fps source and saved it as uncompressed RGB. The resulting file was 651 MB. Using Lagarith in RGB mode reduced the file to 305 MB. So the compression ratio is similar to the rates you see with losslessly compressed audio.
Note that video generally doesn't have more redundancy than audio when using lossless compression techniques. Even in a still shot with nothing moving and large areas of flat color/shading pixels will be different from their neighbors and from frame to frame because of noise. Lossless compression requires that all the noise be preserved. -
and also..
lossless (in theory) works when the "source" (assuming multiple frames) are in very close relation from one frame to the next, usually in the prev/curr/next (P/C/N) sequence, until a scene-change occurs.
The cleaner the source (based on origin: ie, vhs vs cabtv vs laserdisc vs dvd vs bluray, etc) the better the compression and/or filesize.
what minimizes some of the compression (aka, lossless-ness) is how much PCN differs from each frame, frame to frame. If there are more random pixels (noise or chroma crosstalk) in the images then the compression will not be optimum. The more each frame look a like the better there compression ratio depending on the algo used in the compression in question..there are many different types of compression algorithms.
when people apply a certain type of "filter" chain in their video it is to help to some degree with compressing the images, which also helps in filesize, too..though sometimes at the expense of one aspect of the image/video, aka artifact or other (lossy-ness) error. So some compression may not work in respect to PCN image processing, although I was giving an example of one way of looking at compression from this perspective.
an crude example:
in theory, these numbers would compress more effeciantly
because most numbers are repeated in each of the matrix, temporally.
1 1 1 .. 1 1 1 .. 1 1 1
2 2 1 .. 2 2 1 .. 2 2 2
2 2 2 .. 2 2 1 .. 2 2 1
than say, these, will not because virtually none of the numbers
are repeated in each of the matrix's, temporally or otherwise.
1 1 1 .. 2 1 3 .. 1 4 5
1 5 6 .. 2 3 1 .. 0 1 6
0 6 4 .. 6 1 5 .. 7 6 4
-vhelp 5219 -
The VfW version of "Motion PNG" has an inter-frame compression option,
but its author warns that the feature is buggy (and slow as hell).
-
Originally Posted by poisondeathrayWant my help? Ask here! (not via PM!)
FAQs: Best Blank Discs • Best TBCs • Best VCRs for capture • Restore VHS -
Originally Posted by lordsmurf
Conversion from a lossy format (like MPEG or DV) to a lossless format is lossless (assuming no colorspace or subsampling conversion). Any program accessing the lossless file will be getting exactly the same data that it would get by accessing the original lossy file directly. But converting that lossless file back to the original lossy format will be lossy. It would be the same, for example, as recompressing an MPEG file to MPEG again.
Converting a lossless format to another lossless format and back is lossless (again, assuming no colorspace or subsampling conversion). You can go back and forth a hundred times and the final data will be exactly the same as the original. -
That's not entirely true either. The various "lossless" don't have the same colorspace conversion.
There are definite losses between something like HuffYUV and uncompressed YUY2, but I really have to search in high action scenes for it. It is near-invisible.
A lot of people get confused over what lossless means, why it exists, etc. You know. I know. Poison knows.Want my help? Ask here! (not via PM!)
FAQs: Best Blank Discs • Best TBCs • Best VCRs for capture • Restore VHS -
Originally Posted by lordsmurf
Originally Posted by lordsmurf
Originally Posted by lordsmurf
Originally Posted by lordsmurf
Similar Threads
-
What parameters for good quality compression with Xmedia recode ?
By guiton2002 in forum Video ConversionReplies: 8Last Post: 21st Jun 2013, 18:14 -
Help with lossless ffmpeg command [video => png => back to video]
By vidgem in forum EditingReplies: 12Last Post: 15th Nov 2011, 10:30 -
Lossless Video Compression for Movie Making
By Sparehead01 in forum Video ConversionReplies: 4Last Post: 6th May 2009, 18:43 -
Ive captured a good lossless AVI file, now what!
By Darkstraw in forum Video ConversionReplies: 3Last Post: 12th Aug 2008, 00:10 -
lossless video-codec good for editing in Premiere
By phpmysql348 in forum Video ConversionReplies: 4Last Post: 11th Jun 2008, 21:41