Magic Lantern Forum

Using Magic Lantern => Raw Video => Raw Video Postprocessing => Topic started by: RenatoPhoto on May 21, 2013, 01:07:20 AM

Title: 60fps -- RAW video Post-Processing Workflow
Post by: RenatoPhoto on May 21, 2013, 01:07:20 AM
First get the dng frames out of raw video file using raw2dng.exe
Get it here: http://acoutts.com/a1ex/raw2dng.exe

Now that we have a squashed 60 fps image sequence (dng) that needs to be stretched by 1.674 factor in the vertical direction...

What is the best workflow?

If you want to know how to get 60fps RAW video go here:
http://www.magiclantern.fm/forum/index.php?topic=5472.0

To begin with we could aim for HD 720-60p (1280x720, 59,940 fps)

To get this we need to begin with a vertical height of 720/1.674 = 430. 

So we should nicely to our DEVs if this makes sense and to add a new Height selection of 430 pix to our already huge selection.

Currently we could start with 1280x480 stretch it to = 1280x803 and crop it back to 1280x720.

-------------------------

My quick and dirty workflow goes:

Open DNG with ACR and correct for White Balance, Tint and anything else required except height.
Export from ACR to jpg at Quality 12
Open VirtualDub  (Free, Excellent, and Powerful Software)
File Open
Select Image Sequence from selection type
Go to Video and Filters
Select Add
Pick the resize filter (Must install filter packages)
Enter the Absolute pixels : 1280x720
Click OK and OK to accept the filter
Again Click on Video and Frame Rate
Change Frame Rate to (fps): 59.94 Click OK
Again Click on Video and Compression
Select new Codec Like CineForm (Must install this one)
Click OK
Click File Save AS AVI

That is it!

This should render a very smooth replay in Windows Media Player.

Optional Workflow with Vegas Pro12:

Import the sequence to Vegas Pro 12
Set Project Properties at HD 720-60p
Open Sequence of Jpg
Click on the Event/Pan Crop Tool on the Video
Deselect the Lock Aspect Ratio
Click on Position Height and change it to 720
Close PAN/Crop tool
Click on the Event FX tool on the Video
Select Sony Deform Plug-inn
Select the Compress Vertically Preset
Slide the Amount slider till the frame fills.  Aprox -053
Close the FX window
Now you can Render it as avi with Template HD 720-60p YUV
For better replay performance change the codec to something like Lagarith or CineForm

I am not an expert so I invite the AE experts and such to show their Workflow since mine is very rudimentary.
Title: Re: 60fps -- RAW video Post-Processing Workflow
Post by: lostincode on June 05, 2013, 10:11:06 PM
Thanks for sharing this, it was helpful. I will share my workflow soon.
Title: Re: 60fps -- RAW video Post-Processing Workflow
Post by: Danne on June 08, 2013, 09:28:11 PM
Quote from: lostincode on June 05, 2013, 10:11:06 PM
Thanks for sharing this, it was helpful. I will share my workflow soon.
Really interested in your workflow. You state to be filming 1920x672 converting to 1280x720? How is this done? IN After effects?
Thanks for sharing
//D
Title: Re: 60fps -- RAW video Post-Processing Workflow
Post by: Danne on June 08, 2013, 11:29:19 PM
Ok, so I found out there is a way to change the interpretation rules that could make a template for when you import the squeezed files into adobe premiere pro. The problem is I have no idea how to create this new interpretation rule that will squeeze the footage back again. I will provide the information I found andr if anybody likes to give it a go be my guest.

This information is in the interpretation Rules that is in the plug-Ins folder in adobe premiere pro cs 5


# Premiere pixel aspect ratio rules and names
# note: Premiere only uses the width, height, and pixel aspect ratio information
#
# adapted from:
# "Interpretation Rules.txt"
# After Effects 4.1 Automatic Footage Interpretation

# lines beginning with "#" are comments
#
# basic format of a rule: {match requirements} = {set interpretation}
#
# + for each rule that matches, the interpretation is set; wild-cards ("*") allowed
#   on both sides; wildcard match matches anything, wildcard set sets nothing
# + multiple rules are allowed to match, later matches override earlier matches
# + all rules are scanned in order, one rule per line
# + rules are applied after the automatic setting of D1 pixel aspect and automatic
#   field separation from field-labeled files
#
# width, height, frame-rate, file-type, codec =
#    pixel aspect ratio/name, field order, conform frame-rate, alpha interp
#
# width & height are integer numbers
# frame-rate is a decimal number
# file-type is four characters in quotes (4c's)
# codec (applicable for QT & AVI only) is also 4c's
#
# the pixel aspect ratio is a ratio of integers (e.g. 10/11)
#   optionally followed by a name for that ratio (e.g. 10/11/"My Aspect")
# the field order is a single character, (F=frame, U=upper field, or L=lower field)
# the conform frame-rate is a decimal number
# alpha interp: (I=ignore, S=straight, P=premul/black, W=premul/white)
#   alpha interp is ignored for footage without an alpha channel
#

# assume ATSC 704x480 in any format is D1 aspect
704, 480, *, *, * = 10/11, *, *, *

# assume NTSC DV is D1 aspect
720, 480, *, *, * = 10/11, *, *, *

# NTSC D1 is D1 aspect
720, 486, *, *, * = 10/11, *, *, *

# PAL D1/DV
720, 576, *, *, * = 768/702, *, *, *

# HD 1080 Anamorphic
1440, 1080, *, *, * = 1920/1440, *, *, *

# only adds a custom pixel aspect ratio to the UI
# uncomment the next line to try it out
# 0, 0, 0, "0000", * = 10/11/"Custom Aspect", *, *, *
Title: Re: 60fps -- RAW video Post-Processing Workflow
Post by: Danne on June 09, 2013, 10:57:32 AM
Spent the evening yesterday doing some research on the interpretation rules. Most likely they can,t be changed in premiere, maybe can be done in after effects. For now I,m working on a simple workflow in after effects with scaling function. I,ll post a tutorial later if it,s any good
//D
Title: Re: 60fps -- RAW video Post-Processing Workflow
Post by: Danne on June 10, 2013, 02:16:55 PM
How to unsqueeze 50 or 60fps files in after effects
Title: Re: 60fps -- RAW video Post-Processing Workflow
Post by: squig on June 10, 2013, 02:33:21 PM
Oooh "fit to comp". I was stretching by hand, hehe, thanks for that.
Title: Re: 60fps -- RAW video Post-Processing Workflow
Post by: Shield on June 13, 2013, 10:15:37 PM
Thanks Danne!  Will try this later..
Title: Re: 60fps -- RAW video Post-Processing Workflow
Post by: JePe on June 16, 2013, 07:19:39 PM
movie starts, but gives error after few seconds...
Quote from: Danne on June 10, 2013, 02:16:55 PM
How to unsqueeze 50 or 60fps files in after effects

Title: Re: 60fps -- RAW video Post-Processing Workflow
Post by: DjJuvan on July 03, 2013, 07:04:47 PM
isn't 60/50 fps footage too f*cked up to be useful? Aliasing is killing the footage when you un-squeeze it.
Title: Re: 60fps -- RAW video Post-Processing Workflow
Post by: anchoricex on July 22, 2013, 04:49:05 PM
Since a lot of the continuous 60fps results in ~1600x900 resolutions after being unsqueezed, what needs to be done in say premiere pro to fit this into a 1080p sequence
Title: Re: 60fps -- RAW video Post-Processing Workflow
Post by: core_32 on July 22, 2013, 06:33:50 PM
Quote from: DjJuvan on July 03, 2013, 07:04:47 PM
isn't 60/50 fps footage too f*cked up to be useful? Aliasing is killing the footage when you un-squeeze it.
Aliasing isn't thAt bad at 1080p, but I would really love my 5d3 to to shoot 60p without any squeeze
Title: Re: 60fps -- RAW video Post-Processing Workflow
Post by: jake badlands on July 22, 2013, 09:08:55 PM
Quote from: DjJuvan on July 03, 2013, 07:04:47 PM
isn't 60/50 fps footage too f*cked up to be useful? Aliasing is killing the footage when you un-squeeze it.

some Fu*ing aliasing after un-squeeze footage...https://www.dropbox.com/s/l4uin30my0h10ko/aliasing%20ml%20raw%2060fps.jpg (https://www.dropbox.com/s/l4uin30my0h10ko/aliasing%20ml%20raw%2060fps.jpg)

any ideas to minimize aliasing?
Title: Re: 60fps -- RAW video Post-Processing Workflow
Post by: hjfilmspeed on August 09, 2013, 05:16:17 AM
If you dont care about 16:9 you can go for 2:35:1 1920x508 with fps overide @ 48fps looks a lot cleaned when stretched out i think
Title: Re: 60fps -- RAW video Post-Processing Workflow
Post by: RenatoPhoto on September 01, 2013, 08:34:05 PM
Quote from: jake badlands on July 22, 2013, 09:08:55 PM
some Fu*ing aliasing after un-squeeze footage...https://www.dropbox.com/s/l4uin30my0h10ko/aliasing%20ml%20raw%2060fps.jpg (https://www.dropbox.com/s/l4uin30my0h10ko/aliasing%20ml%20raw%2060fps.jpg)

any ideas to minimize aliasing?

Maybe our devs can allow the cr2hdr to have a fix for these dng.  I tried but the app does not detect it like a dual ISO image and thus it does not correct the aliasing.

I put them through ACR and turn all sharpening off plus Luminance correction +50 which kills almost all aliasing.  I do the sharpening in the video editor.
Title: Re: 60fps -- RAW video Post-Processing Workflow
Post by: jake badlands on September 16, 2013, 08:50:24 AM
Quote from: RenatoPhoto on September 01, 2013, 08:34:05 PM
Maybe our devs can allow the cr2hdr to have a fix for these dng.  I tried but the app does not detect it like a dual ISO image and thus it does not correct the aliasing.

I put them through ACR and turn all sharpening off plus Luminance correction +50 which kills almost all aliasing.  I do the sharpening in the video editor.

Thanks! You export in TIFF from ACR?
Title: Re: 60fps -- RAW video Post-Processing Workflow
Post by: RenatoPhoto on September 16, 2013, 12:51:07 PM
Quote from: jake badlands on September 16, 2013, 08:50:24 AM
Thanks! You export in TIFF from ACR?
Yes, tiff is best.
Title: Re: 60fps -- RAW video Post-Processing Workflow
Post by: stevethornton on February 24, 2014, 10:09:38 PM
Quote from: RenatoPhoto on September 16, 2013, 12:51:07 PM
Yes, tiff is best.

Why TIFF? A PSD of the same file will be smaller due to it's ability to have lossless compression plus it is a native Photoshop file meaning it will open and save quicker.

ST
Title: Re: 60fps -- RAW video Post-Processing Workflow
Post by: dmilligan on February 25, 2014, 05:59:10 PM
TIFF can have lossless compression too (or even lossy compression). http://en.wikipedia.org/wiki/Tagged_Image_File_Format

Quotea native Photoshop file meaning it will open and save quicker
I doubt that. The two formats are extremely similar. 'Native' doesn't really mean anything.
Title: Re: 60fps -- RAW video Post-Processing Workflow
Post by: Kharak on May 27, 2014, 06:40:04 PM
So say I unsqueeze 1920x540p to 2:35.1 1920x818

In reality I am just upscaling 540 to 818? am I right ?

Or is there something I don't know?

Edit: found this post which explains it http://www.magiclantern.fm/forum/index.php?topic=5472.0