View Full Version : DV AVI vs. Uncompressed
Jim Justice November 21st, 2007, 12:05 PM I keep seeing folks mentioning to render out a timeline to Uncompressed as opposed to rendering out to the NTSC DV AVI. What exactly is the difference besides uncompressed being an astronomical file size? 5:1 if I understand correctly. I understand that uncompressed is...well....uncompressed, but what purpose does it serve to uncompress a format that is originally already compressed? Does it help with a better mpeg2 compression if its "uncompressed"?....and how much wood could a wood chuck chuck..
Daniel Browning November 21st, 2007, 12:19 PM what purpose does it serve to uncompress a format that is originally already compressed?
The purpose is to avoid compressing it *again*.
Jim Justice November 21st, 2007, 12:22 PM Say I capture an hour of DV footage....it's 13 gig....if I render it out to AVI...its still 13 gig...so its not compressing it again. Am I just completely missing something here?
Seth Bloombaum November 21st, 2007, 12:24 PM IMHO uncompressed is madness, madness I say.
Possible exception is when going back and forth with after effects or other external graphics.
When I'm done I render to MPEG2 from the timeline - you don't get any better with generational loss than that, even with uncompressed. DV is darn good for an intermediate format for standard def, almost always good enough.
Another alternative is Cineform - usually we just think about it as an intermediate for HD, but it can be used with SD as well.
Lessee'... if "Content is King", then workflow is an usurper of the throne, who, if you're not careful, will poison the king, leading to a lengthy convalescense and poor governance...
Daniel Browning November 21st, 2007, 12:29 PM Say I capture an hour of DV footage....it's 13 gig....if I render it out to AVI...its still 13 gig...so its not compressing it again. Am I just completely missing something here?
The file size is irrelevant. If you changed a frame (e.g. major color grading), it will be re-compressed, and that may cause compression artifacts that an uncompressed format would not have had. (Generally, DV-AVI is a light-enough codec that the generational loss is acceptable for most work.)
Bill Ravens November 21st, 2007, 12:33 PM DV is very much like the JPEG photo format. Everytime you view it, it is uncompressed for viewing. Every time you save it, it is recompressed for saving. If you've made no changes, don't resave it. If you have made edits and it must be resaved, you'll suffer a generational loss in the recompression.
Mike Kujbida November 21st, 2007, 12:37 PM I don't deal with uncompressed files so the following is based on what I've read here and elsewhere.
You want uncompressed so that, no matter what you do to it (color correction, adding FX, etc.), the image quality is degraded as little as possible.
Here's an example for you.
Bring a copy of an image from your digital camera into Photoshop and save it as a JPEG without doing anything to it. Repeat this process 7 or 8 times. Compare the multiple saved one to the original and you should see a loss in picture quality.
Now repeat this process but save it as a PNG each time. With PNG being a lossless format, the loss in image quality should be negligble.
Jim Justice November 21st, 2007, 12:56 PM OK...So in your professional opinions...I have a documentary project that has over 70 timelines and is 90 mins long. I would say that 90 percent of it has some type of color correction filters applied to various clips. What I had been doing is rendering that project to DV AVI and then rendering that avi file to my mpeg2 file. It seemed easier to do it that way, simply because it took 2 hours to render to the avi and another 2 hours to mpeg2 so it basically knocked off 2-4 hours of render time if I was to just render the project directly to mpeg2. I know...you cant rush quality!! So,...should I render the project out to uncompressed or should I render directly to mpeg2? Im thinking either will end in the same results, but If I have the master uncompressed, I can play with my mpeg2 settings alot easier after that. This whole explanation would explain why there is one perticular interview that is HEAVY on the color correction more so than the others, and looks like complete junk!
By the way,...this piece actually won Best Documentary at the Colony Film festival this past weekend. It looked great on the big screen, but on the smaller screen, the bad stuff really comes out!
Daniel Browning November 21st, 2007, 01:11 PM So, should I render the project out to uncompressed or should I render directly to mpeg2?
You have two separate questions. To answer the second, lesser one: if you knew the mpeg2 settings, it would be fastest to encode directly to mpeg2. Plus, it would be equal in quality to using uncompressed as an intermediary.
The more pressing question is based on your desire to get a full render of the entire project that you can use to play with different mpeg2 encoder settings. I assume you desire this because your NLE doesn't support scripting so that you could encode just several dozen selected clips.
Uncompressed will have higher quality; that's given, but many people can't tell the difference in analyzing stills, let alone moving images. In any case, the difference will not be as big as, say, source material codec differences. There are several orders of magnitude between uncompressed 4:4:4 and DV-AVI as source material.
Jim Justice November 21st, 2007, 01:36 PM I dont know my mpeg2 setting quite yet...thats my whole objective. I am trying to perfect it before I give the final project to the manufacturer for pressing.
I like to render a full project out, just to have the master print when I am done with my editing. From that master print, I toy with the mpeg2 rates, try to get that optimal size (etc, etc) that I need, slap it on a disc, verify it...by watching the whole thing....over and over ,...and if something is screwed up in the mix,...go back and edit, and then render back out to avi and start all over.
Im on Vegas 7, but I dont really use alot of scripting! Actually I dont use any...that I am aware of. I think the only scripting I have ever done is image sequencing. Never really learned the finer points of it...my editing skills and proficency levels are pretty primitive.
Mike Kujbida November 21st, 2007, 01:57 PM I dont know my mpeg2 setting quite yet...thats my whole objective. I am trying to perfect it before I give the final project to the manufacturer for pressing.
Sounds like you need a bitrate calculator.
Here's a link (http://www.johncline.com/bitcalc110.zip) (to a zipped file) to the one that I use.
Enter in the type of DVD (single or dual layer, the type of audio file (AC-3 default for Vegas default is 192 Kb/s), the program length and whether you want CBR (Constant Bit Rate) or VBR (Variable Bit Rate).
The usual recommendation is to not exced 8 MB for video but, based on suggestions from Spot (Douglas Spotted Eagle), I've bumped this up to 9 MB. As long as you stick to good quality media (Taiyo Yuden or Verbatim), you should be OK.
When your done with your Vegas project, render to MPEG -2 & AC-3 separately.
Make sure both files have the same surname (eg. MyVideo.mpg & MyVideo.ac3).
Select the "DVD Architect NTSC video stream" as the render template.
then click "Custom" and then the "Video" tab.
Click either CBR or VBR and enter the settings you got from the bitrate calculator.
This can be saved as a preset in the box at the top of this same tab.
Give it a name that makes sense to you and click the "Save" icon (looks like a floppy disc).
BTW, Vol. 1 #7 (http://www.jetdv.com/vegas/forum/viewtopic.php?t=15) of Edward Troxel's excellent newsletters is devoted to DVD authoring and I recommend reading it.
Michael Jouravlev November 21st, 2007, 01:59 PM Unless one works in a highly ineffective manner like add an effect, then save, then reload the saved project, add another effect, save, then reload the saved project, add another effect, save... so unless one does that, uncompressed format should not be needed.
Obviously, making effects in 8-bit transport colorspace is not precise enough, so an NLE should uncompress behind the scenes into something with 10 or 12 bit per component, perform needed effects, then recompress back. Also, it should not recompress portions that have not been modified if the target format is the same as the source format.
Another reason for uncompressed format or for frame-by-frame compression like MJPEG/DV is lower requirements for computing power.
With a powerful computer and with good NLE I don't see any reason for explicit conversion into uncompressed format. Do I not see something that everyone else sees?
Jim Justice November 21st, 2007, 02:07 PM Michael,
I'm still working in the same original timelines with all the original assets..they have never been rendered out and then added to if that is what you are refering to, but as far as adding,...saving,...adding & saving,...I've been doing that for 2 years now on this project. But like I said,..its still all the original raw assets.
Glenn Chan November 21st, 2007, 02:09 PM DV compression is 5:1 DCT-based, and the chroma format is 4:1:1 (chroma subsampled 4x horizontally)... the effective bandwidth reduction is actually more than 5X. It's something like 10X bandwidth/datarate reduction. Uncompressed 4:4:4 files are really big. (There are also uncompressed 4:2:2 files... e.g. no DCT-based or wavelet-based compression, but the chroma has been reduced 2X horizontally).
You might want to render to a cineform intermediate since it's more practical and you're not really losing quality. It's good to have an intermediate render sticking around in case you need to make additional outputs (e.g. web streaming, or you screwed up the MPEG-2 render, etc.).
2- Audio is calculated separately. In this case, the audio is uncompressed so it stays the same size.
Seth Bloombaum November 21st, 2007, 02:29 PM ...Here's an example for you.
Bring a copy of an image from your digital camera into Photoshop and save it as a JPEG without doing anything to it. Repeat this process 7 or 8 times. Compare the multiple saved one to the original and you should see a loss in picture quality...
I'll certainly agree with Mike on that, however...
In jpg you have that quality setting (compression setting) that will determine how lossy the compression is. With minimum compression I think jpg uses run-length-encoding (RLE), which is not lossy.
More importantly, we're talking about adding one generation of DV, not seven or eight.
Ya' know, this is one of those questions that's very difficult to answer, "How good is good enough?" I remember doing tests back quite a few years ago and only seeing visible artifacts after more than 10 generations of DV. But memory fades... Maybe I'll repeat that test this weekend.
And this is perhaps the real answer - test and see what works for you in your workflow, with your content, your desired output. And do check out cineform at standard def! It's a great codec and far more economical than uncompressed.
It is far too easy to say "uncompressed is best". Well, it is, however, we also have to deal with several other factors (time, money, storage) in a professional workflow. Back in my days in broadcasting, we used to ask "will they see it at home?" If not, it didn't matter.
May I also suggest that you prepare a 5-minute version of your project for MPEG2 encoding tests. Include representative scenes as to color and action, and you can do a lot of testing in a hurry!
Bill Ravens November 21st, 2007, 02:29 PM There are also a number of lossless compressed formats available, altho they don't provide much reduction in size over uncompressed. Formats like PicVideo or HuffyUV will provide lossless reductions in total file size at the expense of CPU processing cycles. Personally, I think Cineform is the best thing going for intermediate file format.
Glenn Chan November 21st, 2007, 02:54 PM Some notes...
1- If you do chroma subsampling correctly, you will get generation loss (this is pretty noticeable and way more than the generation loss you get from repeated DCT transform + quantization).
If you use one of the "passthrough" chroma schemes (my term; vegas always does box reconstruction on chroma), then you won't get generation loss from chroma subsampling/resampling the chroma over and over. However, 1st generation material will look a lot worse than doing chroma subsampling the right way. (Though eventually with the right way of doing things, with enough generations you'll accumulate enough generation loss that it looks really bad.)
Right now none of the major NLEs handle chroma subsampling correctly. They all do the passthrough schemes.
One situation where doing the chroma the wrong way will bite you in the butt is if you have a red title and you render that to DV. If you did it the right way then it wouldn't look nearly as bad. (You can sort of see this if you change the Vegas prefs to use Microsoft's DV codec. You will need to restart Vegas. But don't do that for real projects, you will likely get worse results than using Vegas' codec.)
2- I remember the Vegas DV codec holding up very/extremely well over 50 generations (looks very similar to the original).
John Cline November 21st, 2007, 05:13 PM Technically, it would be best to render straight from the timeline, applying all transitions, filters and color corrections, directly to MPEG2 and bypass the AVI step altogether.
NTSC DV is sampled in the 4:1:1 colorspace, but MPEG2 is sampled at 4:2:0, and to complicate things, in each line only one color difference channel is stored with half the horizontal resolution. The channel which is stored flips each line, so the ratio is 4:2:0 for one line, 4:0:2 in the next, then 4:2:0 again, and so on. This leads to half the horizontal as well as half the vertical resolution, giving a quarter of the color resolution overall. 4:1:1 DV only has 1/4 the color resolution relative to the luminance resolution to begin with, and 4:2:0 is also 1/4 chroma resolution, but when going from 4:1:1 to 4:2:0 some of the chroma samples don't line up in the conversion and they get lost, consequently, a DVD MPEG2 file encoded from a DV AVI file only has 1/8th or 12.5% of the original color information left.
Transitions, color correction, filters, generated media and titling in Vegas is all done in the RGB colorspace, which is 1:1:1, or more accurately, 4:4:4. So any of these things wouldn't take as big a chroma sampling hit if you rendered directly to MPEG2 from the timeline. The DV footage would still take to the 4:1:1 to 4:2:0 hit and there is nothing you can do to avoid this, but anything that Vegas has generated would go directly from 4:4:4: to 4:2:0 and look much better chroma-wise.
John
Glenn Chan November 21st, 2007, 10:36 PM Rendering to a 4:4:4 intermediate like Cineform and then from there going to MPEG2 might be helpful for some workflows. You avoid problems with 4:1:1 DV (as an intermediate) that way.
Anyways, there are lots of different ways to go about it.
2-
4:2:0 applied to interlaced material is screwed up.
Usually, the effective performance is kind of 2X reduction in chroma resolution horizontally, and 4X reduction vertically (not 2X).
This is un-ituitive and took me some time to digest.
The 4:2:0 information here explains why you can't apply 4:2:0 subsampling in a straightforward manner (like you would on progressive material):
http://en.wikipedia.org/wiki/Chroma_subsampling
Then read this:
http://www.hometheaterhifi.com/volume_8_2/dvd-benchmark-special-report-chroma-bug-4-2001.html
For progressive footage, you can avoid that nastiness by encoding your footage correctly.
Annie Haycock December 13th, 2007, 12:55 PM Hi
I'm new here, and this thread seems as close as I've found to answering a question, but it's getting a bit too technical.
My normal way of working in SD was to download the whole tape into Premiere Elements (I'm not shelling out for a more expensive program until I have time to make good use of it). Then I go through and cut out a clip, put it on the timeline, then export movie to an AVI file.
Now I've got a Canon XH A1, will there be any noticeable loss of quality by doing the same thing with HDV as it involves two lots of compression? And then there will obviously be a further lot of compression when I make a complete video.
Premiere elements doesn't chop HDV into scenes, and anyway, a lot of my stuff (wildlife) involves leaving the camera running for long periods. I don't have a separate deck (I'm broke after buying the camcorder).
Thanks
PS sorry if I'm in the wrong place, I got here by doing a search on compression.
|
|