|
|||||||||
|
Thread Tools | Search this Thread |
December 29th, 2008, 04:58 PM | #1 |
Regular Crew
Join Date: Dec 2004
Location: Atlanta, GA
Posts: 190
|
Re-wrap from .mov to .mp4 seems to do something
Hey all,
I've been messing around a bit trying to circumvent the various issues with the 5D Mk II video files. I seem to have come across a workaround that fixes one of the issues related to the improper handling of the color gamut when opening the .mov files straight out of the camera. The first thing I tried was the CoreAVC codec. And the results were fabulous, but I was unable to figure out a way to leverage it into Sony Vegas Pro 8 (my preferred editing platform). All along I've been trying to figure out an easy way to extract the h.264 and audio data from the quicktime .mov container and re-wrap it into something else. This way requires no transcoding. I was hoping to find an easy to use tool in the public domain but haven't been able to find anything. So today I begrudgingly broke down and bought the update to quicktime pro. With quicktime pro, you can export the clips to .mp4 files ("Movie to MPEG-4"), and simply rewrap them. In order to do it, you have to set the video format to "Passthrough" in the options dialogue window. This seems to fix the color space issues - As you can see in the 2nd image, the histogram (from vegas pro 8) for the mp4 wrapped file now shows no gaps. now the only thing left that bugs me is vegas' miserably poor AVC decoding speed (using windows media player + coreAVC i can play these 1080p clips at ~20-25% CPU load on my machine (q6600) Last edited by Keith Paisley; December 29th, 2008 at 05:00 PM. Reason: accidentally clicked "submit" instead of preview |
December 29th, 2008, 07:11 PM | #2 |
Regular Crew
Join Date: Feb 2008
Location: Columbus, OH
Posts: 172
|
Does this make a "visible" difference in the video?
|
December 29th, 2008, 07:35 PM | #3 |
Regular Crew
Join Date: Dec 2004
Location: Atlanta, GA
Posts: 190
|
yes, there is clearly an improvement in the clips that I have tried, but at this point I'm not certain whether or not it's simply Quicktime's cruddy choice of gamma. I need to find a good clip with shadow and highlight detail to really expose whether or not this is pulling out all of the extra detail.
As a follow-on, I've stumbled across a little tool called mp4box which MAY be able to achieve the same results. So far I've managed to successfully re-wrapper the mov files into .mp4 but in my first few attempts I've been unable to get the audio to come along with it. I think with a bit of fooling around i will probably get it and so far I like it better than the Quicktime Pro way. |
December 29th, 2008, 10:03 PM | #4 |
Regular Crew
Join Date: Dec 2004
Location: Atlanta, GA
Posts: 190
|
I just grabbed this group of samples from Vegas 8 Pro. One thing I noticed is that there seems to be more visible detail in the darker areas if you set the pixel format to 8-bit rather than 32-bit in the project properties. You can even read the Garmin text in the standard "uncorrected" 8-bit MP4 sample (at least on my display I can read it fairly clearly).
These were grabbed from the timeline using Vegas' "copy to clipboard" feature. The project resolution is 1920x1080x30p. I have my preview window set at Best (Half) so i'm copying a 960x540 image to the clipboard and then cropping in GIMP and exporting to JPEG. I dunno, but it looks fairly promising to me. |
December 29th, 2008, 10:16 PM | #5 |
Inner Circle
Join Date: May 2006
Location: Camas, WA, USA
Posts: 5,513
|
I tested this on the "market" video available here: Canon EOS 5D Mark II Hands-on Preview: 15. Video Samples: Digital Photography Review
The effect is exactly as desired. I re wrapped the video and applied the Vegas color corrector with the Computer to Studio (0-255 -> 16-235) preset. Comparing the rewrapped video to the original, you can now see blue skies with detailed clouds, rather than white mush with a touch of blue. You can see the details in the blacks as well...
__________________
Jon Fairhurst |
December 29th, 2008, 10:16 PM | #6 |
Major Player
Join Date: Feb 2008
Location: Voorheesville, NY
Posts: 433
|
Keith, short of buying Cineform NEO HD, I haven't been able to come up with a decent workflow for Vegas and Canon 5D MKII files. Based on recent statements made in the Cineform forum here, I'm speculating that Cineform may drop the price a bit on a new product that is roughly the equivalent of NEO HD (full 1920 x 1080), but we will have to see.
|
December 30th, 2008, 07:01 AM | #7 | |
Regular Crew
Join Date: Dec 2004
Location: Atlanta, GA
Posts: 190
|
Quote:
|
|
December 30th, 2008, 08:27 AM | #8 |
Trustee
Join Date: Jun 2004
Location: Denver, Colorado
Posts: 1,891
|
I'm trying to follow this, but there is some confusion:
1.) The Vegas histogram is used to graph the luminance and rgb values, and this graph for the QT file shows the gaps. 2.) But if you unwrap the QT container to mp4 using QT Pro, the Vegas histogram now has the gaps filled in. But if the QT Pro is just unwrapping the native mp4 without re-encoding it, then the luminance and rgb values would not have changed. Could it be that Vegas histogram just doesn't display the graph properly for QT wrappers? And if I am to understand, after unwrapping the QT container to mp4, you would then use Vegas Color Corrector to convert 0-255 to 16-235? |
December 30th, 2008, 09:11 AM | #9 | |
Regular Crew
Join Date: Dec 2004
Location: Atlanta, GA
Posts: 190
|
Quote:
I've determined that mediacoder (100% free) can be used to quickly batch through the source files. Basically the audio clip in the source quicktime is uncompressed, so in order to use the source audio it needs to be compressed into AAC. Mediacoder makes this easy but it takes a little bit of configuration to get it going properly. One KEY thing that I determined is that the mp4 has to have a File Brand of mp42, or at least something other than the ISOM file brand that MP4BOX defaults to. http://mediacoder.sourceforge.net/index.htm |
|
December 30th, 2008, 06:20 PM | #10 |
Major Player
Join Date: Feb 2008
Location: Voorheesville, NY
Posts: 433
|
@Kieth,
I tried rewrapping to mp4 and it does work (good histograms), although the preview frame rate in Vegas is pretty slow for the mp4 file. BTW, when you rewrapped it to mp4, what bit rate did you use? |
December 31st, 2008, 07:56 AM | #11 | |
Regular Crew
Join Date: Dec 2004
Location: Atlanta, GA
Posts: 190
|
Quote:
the re-wrap process is basically demuxing the .mov file out into the h.264 video stream and "sowt" audio stream elements, and then transcoding the audio, and then remuxing the transcoded audio with the original h.264 elementary stream into an MP4 file container. |
|
December 31st, 2008, 03:26 PM | #12 | |
Regular Crew
Join Date: Jul 2007
Location: Milton, FL
Posts: 27
|
Quote:
|
|
January 1st, 2009, 07:04 PM | #13 | |
Regular Crew
Join Date: Dec 2004
Location: Atlanta, GA
Posts: 190
|
Quote:
|
|
| ||||||
|
|