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. |
28th November 2005, 12:06 | #1 | Link |
Learning...
Join Date: Nov 2005
Location: 12.97°N, 77.56°E
Posts: 135
|
lossless YV12 codecs (was: YV12 FAQ)
I am looking for a lossless YV12 codec to save the output of avisynth. Seems like vble and loco can do it. But neither can handle interlaced video, is that correct ? Are there any new codecs now ?
|
28th November 2005, 14:07 | #2 | Link | |
Pig on the wing
Join Date: Mar 2002
Location: Finland
Posts: 5,733
|
Quote:
__________________
And if the band you're in starts playing different tunes I'll see you on the dark side of the Moon... |
|
28th November 2005, 16:19 | #3 | Link |
Learning...
Join Date: Nov 2005
Location: 12.97°N, 77.56°E
Posts: 135
|
That's nice. But ffdshow looks like one of the all-in-one codec packs. Will it interfere with my existing codec setup ? Is it possible to limit it to just the yv12 encoding/decoding ?
Also, how can I determine which codec is being used by avisynth (or other app) at any time ? |
28th November 2005, 16:23 | #4 | Link | ||
Moderator
Join Date: Nov 2001
Location: Netherlands
Posts: 6,364
|
Look in the documentation of AviSource and the fourCC option.
I splitted the thread from the sticky if you don't mind. Quote:
Quote:
|
||
28th November 2005, 17:35 | #5 | Link | |
Useless idea generator
Join Date: Apr 2004
Location: Europe, Czech Republic, Brno
Posts: 332
|
Quote:
Edit: Not sure about interlacing.... http://lags.leetcode.net/codec.html
__________________
Vista64 Premium SP2 / C2D E4700 2.6GHz/ 6GB RAM/ Intel GMA 3100 / DTV Leadtek DONGLE GOLD USB2 / focused to DVB-T MPEG2 PS capture -> ProjectX -> M2V/MP2 -> MeGUI/AVS -> MP4[AVC/AAC] Last edited by Poutnik; 28th November 2005 at 17:40. |
|
28th November 2005, 19:22 | #6 | Link | |
Guest
Posts: n/a
|
Quote:
|
|
29th November 2005, 00:07 | #8 | Link |
Avisynth Developer
Join Date: Jan 2003
Location: Melbourne, Australia
Posts: 3,167
|
Think about it guys. A YV12 frame does not know it is interlaced it just has 3 planes of data a Y plane and 2 of 0.25 sized U and V planes. A lossless codec will just store the plane data and return it unchanged.
As for being able to tell the codec the plane data is interlaced there may be a slight improvement in correlation within a single field that might allow a slightly better compression but it is probably not worth the hassle with intermediate workfiles. If your are really worried about it do a SeparateFields() at the end of the script and an AssumeFieldBased().Weave() when you re-import the data. Last edited by IanB; 29th November 2005 at 00:09. |
29th November 2005, 00:35 | #9 | Link | |
Moderator
Join Date: Nov 2001
Location: Netherlands
Posts: 6,364
|
Quote:
|
|
29th November 2005, 01:24 | #10 | Link | |
Avisynth Developer
Join Date: Jan 2003
Location: Melbourne, Australia
Posts: 3,167
|
Quote:
|
|
29th November 2005, 10:33 | #12 | Link | |
Learning...
Join Date: Nov 2005
Location: 12.97°N, 77.56°E
Posts: 135
|
The author of Lagarith claims the codec is fast and compresses better than other codecs. (FFV1 only slightly better but slower). Tried it, works well, supports interlacing (but then IanB pointed out, it's irrelevant if there's no colorspace conversion)
Is this a good way to determine if the codec is lossless ? orig=AviSource("orig_pal_dv.avi") # 50 frames, 7041 KB lags=AviSource("lags_pal.avi") # 50 frames, 10900 KB Subtract(orig, lags).Histogram("levels") BTW, uncompressed YV12 was 30385 KB. EDIT: Interlacing support not available !! Mail from author... Quote:
Last edited by ariga; 1st December 2005 at 16:22. |
|
29th November 2005, 13:46 | #13 | Link |
Angel of Night
Join Date: Nov 2004
Location: Tangled in the silks
Posts: 9,559
|
An easier method is a PSNR (or any other metric) comparison. In fact, MSU has a tool for this.
Which brings me around to my suggestion, the MSU Lossless codec is basically the most efficient lossless available, more so than lag or loco, and still reasonably fast (it's around half the speed of huffyuv on mine, I think, but I use the fastest mode). And it does support interlaced YV12, fwiw. |
30th November 2005, 15:44 | #14 | Link |
Learning...
Join Date: Nov 2005
Location: 12.97°N, 77.56°E
Posts: 135
|
With uncompressed YV12 (480 frames of 720x576 @ 25fps) 292 MB
Code:
Codec Duration Size Settings MSUD 1:58 137 MB !! Lossless; Mode=Maximise speed; Enable delta frames MSUD 0:59 121 MB Lossless; Mode=Maximise speed MSUD 0:59 121 MB Lossless; Mode=Max compression,slow decomp LAGS 0:22 130 MB Default settings MSU decompression was similarly slow. I'd say good for archiving only. |
30th November 2005, 16:35 | #16 | Link |
Learning...
Join Date: Nov 2005
Location: 12.97°N, 77.56°E
Posts: 135
|
Links vble and loco are available via the YV12 FAQ, particularly in this thread
But it would help if comparison/stats were posted here along with the time. Mostly the comparison is only w.r.t size and not time. |
30th November 2005, 22:21 | #17 | Link |
Registered User
Join Date: May 2005
Posts: 236
|
What about Helix codec 1.2 ? Don't know if it handles interlaced video though
|
1st December 2005, 07:28 | #19 | Link | |
Useless idea generator
Join Date: Apr 2004
Location: Europe, Czech Republic, Brno
Posts: 332
|
Quote:
or I recall badly....
__________________
Vista64 Premium SP2 / C2D E4700 2.6GHz/ 6GB RAM/ Intel GMA 3100 / DTV Leadtek DONGLE GOLD USB2 / focused to DVB-T MPEG2 PS capture -> ProjectX -> M2V/MP2 -> MeGUI/AVS -> MP4[AVC/AAC] |
|
1st December 2005, 12:26 | #20 | Link | |
ffdshow/AviSynth wrangler
Join Date: Feb 2003
Location: Austria
Posts: 2,441
|
Quote:
|
|
|
|