PDA

View Full Version : My Workflow: Editing native, reversed telecined, 24p footage in Premiere for FREE



blazer003
01-26-2010, 04:45 PM
See down toward the bottom for more of a Step by Step Guide.

I figure there must be a rule about noobs offering up help in their first post, but I suppose I'll just have to be a rebel. :happy:

My GH1 just arrived yesterday and so I went right to work trying to figure out how to pull my 24p footage out of the 60i wrapper. I own a Canon HV-20 and 30 and so have worked a bit with reverse telecine, but now I've just come up with a process that costs nothing (assuming you have premiere, though you can convert and even edit in VirtualDub), and though it's a little daunting at first, it has some pretty big advantages.

The Applications and Scripts:

AviSynth (http://sourceforge.net/projects/avisynth2/) from here (http://avisynth.org/mediawiki/Main_Page).
DGAVCDecode (http://www.videohelp.com/tools/DGAVCDec) (I have DGDecodeNV which is GPU accelerated if you have an Nvidia card that is CUDA compatable, but it does cost $15. If you're interested, it works very well and You can get that here (http://neuron2.net/dgavcdecnv/dgavcdecnv.html).)
The Decomb AviSynth Filter (http://avisynth.org/warpenterprises/files/decomb522_25_dll_20050904.zip) Package From Here (http://avisynth.org/warpenterprises/)
NicAudio Audio filters (http://avisynth.org/warpenterprises/files/nicaudio_20070821.zip) for AC3 Audio from Here (http://avisynth.org/warpenterprises/)
VirtualDub (http://prdownloads.sourceforge.net/virtualdub/VirtualDub-1.9.8.zip?download) from here (http://www.virtualdub.org/).


For Premiere (http://neuron2.net/www.math.berkeley.edu/benrg/avisynth-premiere.html), there is this import script (http://neuron2.net/www.math.berkeley.edu/benrg/avisynth/avisynth-premiere-0.25.zip) so you can import your avs scripts directly into Premiere and they play just like any other clip.

The General Process

The premise is that when you make the correct AviSynth script, AviSynth reads your MTS file using DGAVCDecode. The decomb filter then takes the 2 interlaced frames and deinterlaces them and then removes the duplicate frame. Then that fixed video stream is reunited with the audio which is read by the NicAudio filter. (See the script below)

Now you can simply open this script in VirtualDub and export it to whatever VfW or DShow codec that you wish. It is read by VirtualDub as a 23.97 FPS pure progressive video (Yay!).

Or, after installing the AVISynth Premiere Plug-in, you can import the AVISynth script directly into Premiere. Playback is not smooth, so editing here could be a pain, so this brings me to my workflow.

My Workflow

My workflow will be to use VirtualDub to open the scripts and compress the videos to lower res proxy files as widescreen format DV using the MainConcept DV codec to compress.

I will then edit these DV files in Premiere. I will then offline all the DV files and relink the abandoned clips in Premiere to all the corresponding scripts. This way, when I'm rendering, I'm using the original clips with no conversions.


The Advantages
I'm working in Premiere CS3, but this will work in CS2, Pro 1.5, 1, or even 6.5.
The new version of Sony Vegas also natively supports AVISynth scripts.

This gives me the flexibility of flying around with high quality mini DV clips that are incredibly stable, but pulling directly from the original AVCHD files and not recompressing them at any point until export.


The Script
So here is my AVISynth script. By no means am I sure if this is the best or most efficient script, but it works. I'm wide open to any suggestions if there are AVISynth Gurus out there!


LoadPlugin("C:\Program Files\DG Software\dgavcdec109\DGDecodeNV.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\decomb.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\NicAudio.dll")
DGSource("00013.dgi")
AssumeTFF()
Telecide(guide=1)
video=Decimate()
audio=NicAC3Source("00013 PID 1100 2_0ch 48KHz 192Kbps DELAY 0ms.ac3").ConvertAudioto16bit()
AudioDub (video, audio)

--------------------------------------------------------------------------------------------------------
Step by Step Guide:

1. Install AviSynth (http://sourceforge.net/projects/avisynth2/) from here (http://avisynth.org/mediawiki/Main_Page).

2. Install DGAVCDecode (http://www.videohelp.com/tools/DGAVCDec) or pay the $15 for DGDecodeNV which is GPU accelerated if you have an Nvidia card that is CUDA compatable and you can get that here (http://neuron2.net/dgavcdecnv/dgavcdecnv.html).) Extract the files into some directory.
I put mine in C:\Program Files\DG Software\
This directory comes into play later.

3. Download the The Decomb AviSynth Filter (http://avisynth.org/warpenterprises/) Package From Here (http://avisynth.org/warpenterprises/files/decomb522_25_dll_20050904.zip) and put it into the plugins directory in your AVISynth installation directory.

4. Download the NicAudio Audio filters (http://avisynth.org/warpenterprises/files/nicaudio_20070821.zip) so you can import your AC3 Audio from Here (http://avisynth.org/warpenterprises/) and put it into your AVISynth Plugin directory.

5. Download VirtualDub (http://prdownloads.sourceforge.net/virtualdub/VirtualDub-1.9.8.zip?download) from here (http://www.virtualdub.org/) and unpack it somewhere (I just made a folder in Program Files for it and I create a shortcut for it manually for the start menu as it has no installer.)

6. I forgot to mention this when I posted above. If you're using Premiere and want to use AVISynth scripts in your timeline download the Premiere Plugin (http://neuron2.org/www.math.berkeley.edu/benrg/avisynth/avisynth-premiere-0.25.zip) and follow the directions for installation.

Ok, now that everything is set up, we can start with the meat and potatoes.

7. Open your original footage with DGAVCDecode. You should be able to scrub the play bar and see your video.

8. Go file, save project. I always name this the same as my clip.
The computer now processes the video.

9. Make a new avs script (or plain text file that you'll save with a .avs extension).

Here is a breakdown of the script. My actual script can be seen above for reference.

LoadPlugin("C:\Path to this file where you put your DG software\DGDecodeNV.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\decomb.dll") Assuming this is where you put it.
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\NicAudio.dll")Assuming this is where you put it.
DGSource("name of your saved dgi or dga file (depending on your program version)") If the video file is in the same folder as your AVS script, you only need to put the name, otherwise put the whole path.
AssumeTFF() This is calling on the decomb filter and telling it that your footage is Top Field First.
Telecide(guide=1) This is telling the script to take the 2nd field of the 4th frame and first field of the 5th frame and deinterlace and combine them and replace frames 4 and 5 with this resulting progressive frame, giving you (AA)(BB)(CC)(DD)(DD) frames instead of (AA)(BB)(CC)(CD)(DE) where each letter represents a field. You don't really need to know this part, but to read about the telecine process, check out the wiki page (http://en.wikipedia.org/wiki/Telecine).
video=Decimate() This removes every 5th frame, getting rid of one of those duplicate (DD) frames.
audio=NicAC3Source("name of the audio file created by DGDecodeNV.acr[/i]").ConvertAudioto16bit() Brings the audio back in and coverts it to play in Premiere.
AudioDub (video, audio) Tells the script to play the audio and video together.

10. Now that you have the script together, open it in VirtualDub. Choose a compression for the video and save the AVI.

Alternately, just import the script into Premiere and convert it there, but do not expect this script to play smoothly. It's doing a lot of processing of the video. I doubt that even on the highest end computers it will playback smoothly.

I'm sorry this got a little rushed at the end. I will try to complete this a little better later, but I've run out of time. Hopefully some people find this useful.

tzchaiboy
02-15-2010, 07:35 AM
I'm definitely interested in getting a step-by-step from you. I'm working in Premiere Pro CS4, and looking for a way to extract the 60i footage into useable 24p.