View Full Version : HD to SD DVD interlace questions


Tripp Woelfel
March 27th, 2009, 06:38 AM
Starting with 1080i 29.97 HDV edited footage in a Premier Pro CS3 project, I output both BD and DVD legal files using Debugmode frameserving to TMPGEnc. The BD side of the workflow works just fine. However, I get a bit wrapped around the axle sorting out the correct field settings.

I know that HD is upper field first and NTSC SD is lower first. My question is where and how to set the field settings to avoid mice teeth/jaggies and other weird interlace settings. In the File>Export>Movie dialog, I am wanting to select a resolution of 720x480 and lower field first. I'll then keep the same settings in TMPGEnc. I'm making the assumption that PP is smart enough to correctly convert the 1080i UFF to 480i LFF, but it doesn't quite work that way. I end up with nasty and weird artifacts and shuddering on fast action.

My temporary workaround is to select no fields/progressive out of PP. This eliminates the artifacts but PP stops using field information to create smooth slomo clips via Time Remapping.

What settings/workflow should I use? If anyone has one that works, I'd appreciate it if you'd share it with us.

Aric Mannion
March 31st, 2009, 08:49 AM
I always interpret footage in after effects, which de-interlaces the video. Then I use the progressive video, whether going to a DVD or Blu-Ray. Since I have to interpret footage anyway to do keying and special effects.
I've noticed that when I give DVD Studio Pro a progressive file it seems to stay that way on dvd, even though it says it's 480i. When I make the same DVD on iDVD, it actually adds interlace lines. With Studio Pro, keeping everything progressive works for me.

Tripp Woelfel
April 1st, 2009, 07:50 AM
Aric... Thanks. My current workflow does essentially the same thing but without going to AE. It works fine and eliminates jaggies but I don't get to use fields from 60i footage for smoother slomo.

I'm still looking for a way to get that smooth slomo and haven't quite figured it out yet.

Pat Reddy
April 1st, 2009, 08:36 AM
I use Vegas and a Virtualdub plugin to generate 59.94p files. I use the "Smart Deinterlacer" plugin which will work in Virtualdub or Vegas to deinterlace the footage and then render it at double the frame rate. This plugin does a great job of preserving detail and giving you smooth crisp "60p" footage:

Smart Deinterlacer Filter for VirtualDub (http://neuron2.net/smart/smart.html)

Pat

Tripp Woelfel
April 1st, 2009, 09:27 PM
Pat... Very cool. I'll check that out tomorrow. It'd be nice if it also works in Premier, but VD will do very nicely. I just hate to give up that nice, smooth slomo.

Jon Geddes
April 2nd, 2009, 06:31 PM
My Workflow has excellent results:

1) Export your HD project out of Premiere using Debugmode Frameserver

2) Open the frameserved file in Virtual Dub, and apply these filters in this order:

- Deinterlace using blend fields method
- Resize to absolute: 720x480, Aspect Ratio Disabled, using Lanczos3 method
- Sharpen by 10

3) Save this file out of Virtual Dub as AVI.

4) Turn off Frameserver

5) Open new avi in ProCoder or TMPGEnc and encode to mpeg2, widescreen aspect ratio, using VBR 2 Pass, minimum bitrate: 1.5 mbps, target bitrate: (depends on how much footage you have, set to 7 if you have less than 90 minutes for a single layer disc), max bitrate: 8 mbps

6) Import m2v/ac3 into authoring app of your choice.

The above method yields extremely good quality results, far superior to anything adobe products or final cut studio is capable of producing... and virtual dub is free! You will be impressed. The most important part is what virtual dub does in the resizing process. If your source footage is progressive from premiere, you will want to leave out the deinterlace step. Make sure you export in the full HD resolution out of premiere, keeping it the same size as the source footage, and make sure you don't have Recompress checked.

Tripp Woelfel
April 2nd, 2009, 07:54 PM
Jon... Excellent! I'm actually transcoding a short HD project to SD using my standard method now but I'll give yours a go once the coffee's on in the morning. I can transcode with your workflow whilst I'm authoring and then build disks using both methods. It'll be interesting to see the differences between the two. I'll post my findings in a new thread.

Thanks mate! No go on down the The Fisherman and have a good nosh on me. (grin)

Tripp Woelfel
April 3rd, 2009, 01:07 PM
Jon... Just wanted to follow up on your workflow. It works really well and I think creates an incrementally better output than mine. I can notice an improvement with your workflow.

One thing I notice that is different is that the gamma with my workflow appears to be a tiny bit higher than yours. Again, the difference would not probably be noticeable even in side-by-side comparison. It's only when I click between the two in the same space do I notice it.

I've extracted nine pair of comparative images and I'll try to write up a detailed post over the weekend.

Again, thanks for your help in making my DVD better.

Jon Geddes
April 3rd, 2009, 06:44 PM
Great, I'm glad to hear you were successful.

Markus Klatt
April 15th, 2009, 03:44 AM
I am just at the same point that I need to film with my EX1 in 1080/50i (I live in PAL-coutry, want to have a 1080-resolution and need 50 frames because of movements of my filmed objects, so 720/50p or 1080/25p is not my choice).
So I think I stick with 1080i - that is a valid resolution within Blu-ray standard? So I should be able to use it with Encore CS4, am I right?

But further I need to downscale it to 576/50i for PAL-DVDs too. As a lot off people, I run into problems when downscaling it to 576/50i DVD-PAL-resolution.Although I've tried exporting an AVI from PP CS4 with HuffYuv codec and resizing+encoding that AVI in TMPGEnc I still have some jagged and flickering horizontal lines. Much better then directly converting in PP CS4, but still not perfect. After reading your post I have the slight hope that this can be improved.

As you mentioned, my beloved debugframeserver is not working in PP CS4 anymore. Same with the frameserver from videotools.net. But I cannot use my old PP 1.5 for first steps since I need to use mp4/mxf-streams from Sony EX1.
What I tried is to export a "Microsoft AVI" with lossless HuffYuv-codec from PP CS4. Although everybody says, that HD footage is UFF, the only playable video after exporting 1080i was LFF. What reason could that have - is EX1-footage LFF?

The resulting files are huge, 12GB for say 3 minutes, but it is a way at all.

I will try your mentioned Virtual Dub process to deinterlace -> downscale to see if it is better quality than just scaling in TMPGEnc. But where do you interlace again in your process? Do you use interlaced or progressive streams for DVDs? Shouldn't they be interlaced as used from DV-footage?

Further: to avoid the rerendering as AVI from virtual dub one maybe could use avisynth as importing frameserver into TMPGEnc. The process would be like this:

PP CS4 --> exporting as "Microsoft AVI" with HuffYuv Codec as 1080i temp.avi --> convert temp.avi in avisynth on demand --> while encoding in TMPGEnc.

Does anyone have similar settings as used in virtual dub for an avisynth.script, please?

Thanks a lot for any hint!

Markus

Ps.: I use Windows XP and do not own After Effects CS4, just PP CS4, PP 1.5 and AE Std. 6.5 and a Trial of Neo-CineForm PP1.51-HD-Plugin.

Tripp Woelfel
April 15th, 2009, 05:18 AM
I can address a couple of bits here. SD PAL and HD PAL are both upper fields first. Unless Sony have done something different in the camera, which I doubt, stay UFF.

Once you deinterlace, I cannot see any advantage to re-interlacing. I don't know if 25p is legal in the BD world. I know 24p is but 30p is not. I know nothing about SD PAL DVD standards so I cannot comment on that.

There's a bit of an art, I think, in knowing where and when to deinterlace. It's also key to know how your software tools perform deinterlacing. For example, when one tells PP CS3 to deinterlace on export, it seems to throw away one field and or looses any ability to deal with the 1/60 candence. I'm guessing the same is true for 1/50 in PAL.

Markus Klatt
April 15th, 2009, 08:59 AM
Is there a simple tool to find the filed order from a mp4 or avi-container? MediaInfo won't do this, I guess?!

I could swear that PAL-DV was LFF and the with the experience of yesterday (only LFF playable when encoding in HuffYuv) I would guess this for HD from EX1 too. So better check with an appropriate tool. Is there any? Does PP CS4 shows such information, maybe somewhere hidden?

And you are right - deinterlacing in PP CS4 is throwing away lots of information.

Jon Geddes
April 15th, 2009, 10:27 AM
Markus,

Regarding the field order, HD is upper field first, so keep it that way.

You can use avisynth on the frameserved file if you are comfortable using that program.

About the re-interlacing, not entirely necessary since the mpeg encoder will encode it as 60i.

Microsoft AVI doesn't seem to be a good intermediate export format. I'm still researching the best method for CS4 and will post my findings when I have them.

Markus Klatt
April 15th, 2009, 03:31 PM
Thank you so much, Jon. So, the resulting DVD-mpeg2-stream is of course always interlaced, I understand.

Somehow you are right with the UFF at HD, but when I choose that when exporting in HuffYuv, the resulting video is simply black. I don't know what exactly is happening there, but ok...
But if I choose UFF in TMPGEnc (even when exported as LFF from PP) then I have almost no flickerung and jagged lines anymore in the resulting DVD-stream. Something is wrong there in my thoughts and tries, but it works.
Next step is to see if deinterlacing and resizing in VDub makes it even better. I'll try.

At the moment I have no choice not to export as Microsoft AVI container with HuffYuv-codec, because somehow I have to get the edited video out of PP CS4. I would be very happy if you find any other solution - I'll wait.

And, some OT: I LOVE your animated Blu-ray menu and your tutorials in your blog site! This is awesome. When I could somehow edit it to my "fireworks" needs I would be even willing to buy an upgrade for my AE 6.5 std to AE CS4 - just for that. Simply great design.

John Gerard
May 17th, 2009, 08:05 PM
Hi all,

Rereading this note I think I figured out my problem. I think. My problem is as follows if this is a problem it depends how you look at it. I tried Debug Mode Framesever in Premiere Pro CS3 with the options described below. I did every step described up to and including step #4. I then imported the saved AVI file into Encore as a timeline and wrote an ISO file then a sample DVD to see how it looks on my Standard TV. I found out that the converted output from 1440x1080 16:9 to 720x480 turned out to be or close to 4:3 in size. It appears with out further analysis to contain all the information and did not crop anything. At least it look great to me. So if anyone wants to convert 16:9 to 4:3 try the steps below leaving out step #5. All other information I have read on converting 16:9 to 4:3 looked really complicated. :-)

Am I correct in assuming that by performing step #5 this is where the aspect ratio gets turned back into 16:9 content? Or is there another way to keep the 16x9 ratio format when resizing to 720x480?

Thanks,

John Gerard

My Workflow has excellent results:

1) Export your HD project out of Premiere using Debugmode Frameserver

2) Open the frameserved file in Virtual Dub, and apply these filters in this order:

- Deinterlace using blend fields method
- Resize to absolute: 720x480, Aspect Ratio Disabled, using Lanczos3 method
- Sharpen by 10

3) Save this file out of Virtual Dub as AVI.

4) Turn off Frameserver

5) Open new avi in ProCoder or TMPGEnc and encode to mpeg2, widescreen aspect ratio, using VBR 2 Pass, minimum bitrate: 1.5 mbps, target bitrate: (depends on how much footage you have, set to 7 if you have less than 90 minutes for a single layer disc), max bitrate: 8 mbps

6) Import m2v/ac3 into authoring app of your choice.

The above method yields extremely good quality results, far superior to anything adobe products or final cut studio is capable of producing... and virtual dub is free! You will be impressed. The most important part is what virtual dub does in the resizing process. If your source footage is progressive from premiere, you will want to leave out the deinterlace step. Make sure you export in the full HD resolution out of premiere, keeping it the same size as the source footage, and make sure you don't have Recompress checked.

John Gerard
May 17th, 2009, 10:56 PM
Hi,

I figured out the problem I stated in the last message. It is in Encore as an option/setting called Interprete Footage. Encore was originally interpreting the footage as 4:3. As soon as I changed this setting to 16:9 the DVD was written in the Widescreen format. I also changed the Pixel aspect ratio to 16:9 widescreen. I think I will go back and make this video in the 4:3 format.

I still have Jaggies/Diagonal problem showing up in all the lines of the Tennis court. I have the same problem around the edges of the players but this is much less noticeable. The slow mo parts are really smooth, though. Maybe it is in the Encore AVI to Mpeg2 conversion that is not very good. I don't know. Other than that the DVD looks great. What do you think?

John Gerard

Markus Klatt
May 18th, 2009, 03:37 AM
720x480 (NTSC) or 720x576 (PAL) is normally 4:3 aspect ratio, you are right.
You have to tell the authoring tool (eg. Encore) to set to 16:9 / widescreen and to show it as "letterboxed" on 4:3 TVs.

The secret is: both, 4:3 and 16:9 have the same resolution 720x480 / 720x576, but 16:9 is safed "anamorphic". This means it looks squeezed (Egg-heads) when the medium is not set to 16:9. If it is set, then the TV streches the image horicontally to correct 16:9 widescreen.

There is no further cropping/manipulation of the image.

Markus Klatt
May 18th, 2009, 03:48 AM
To your second question: yes, Adobe CS3/CS4 does no good job in downscaling to DVD-resolution. I use a very complex workflow with interims-lossless-avi, VirtualDub/AviSynth and TMPGEnc for encoding.
There are lots of threads in this forums about this topics...

John Gerard
May 18th, 2009, 09:59 AM
Hi,

I keep forgetting that I can post pics on this site. The following pics will explain what I am experiencing when it comes to Jaggie or the diagonal problem. The first photo was exported from Premiere Pro CS3 looks correct no Jaggies. If you enlarge the first photo full screen you will see that there is pretty much no jaggies or very little. The photo at the smaller size look to me like there are jaggies but no jaggies in Premiere Pro.The original photo was in 1440x1080i. The second photo I took a screen shot of my computer screen of the video in Encore CS3 after exporting the Video from Premiere Pro to VirtualDub using Debug fameserver. This shows the correct amount of jaggies. I then imported the saved avi file from Virtualdub to Encore. I used the following filters in Videodub...

Deinterlace using Blend field method.
Resize to Absolute 720x480, Aspect Ratio Disabled, using Lanczos3
Sharpen by 10

I took this info from one of the messages on this board. I don't remember the persons name to give him credit. It was under the heading "HD to SD DVD interlace questions."

At some point in the process of creating the final DVD I set the Field order to Lower first. The problem shows up on the DVD, also. Although, the problem fades in and out so I think not every frame might be having this problem or frames are being blended together to cut down on some of this issue. Deinterlacing make the Slow mo parts look great.

Thanks,

John Gerard

Jon Geddes
May 19th, 2009, 02:33 AM
It was me who suggested that workflow.

Does the preview in Virtual Dub display those jagged edges on the white lines? It does appear as if something went wrong (almost like a field reversal before deinterlacing). Is it possible for you to send me a 3 to 5 second clip of the original 1440x1080 footage so I can test it on my end?

you can send me an email: jon (at) precomposed.com

John Gerard
May 23rd, 2009, 12:39 PM
Hi Jon,

As I talked about in my other note I tried your steps up to and including step #4. All went well once I figured out the concept of frameserving. I still get Jaggies in the final output on DVD everything else looks great. I assume I am converting the footage to MPG2 using the Encore codecs by importing the resulting AVI file into Encode CS3. So, will it eliminate the Jaggies problem if I use another program as you suggest in step 5 or is this related to a different problem such as field order. I have yet to try a progressive scan version of my video to see what that looks like.

Thanks for the information,

John Gerard

My Workflow has excellent results:

1) Export your HD project out of Premiere using Debugmode Frameserver

2) Open the frameserved file in Virtual Dub, and apply these filters in this order:

- Deinterlace using blend fields method
- Resize to absolute: 720x480, Aspect Ratio Disabled, using Lanczos3 method
- Sharpen by 10

3) Save this file out of Virtual Dub as AVI.

4) Turn off Frameserver

5) Open new avi in ProCoder or TMPGEnc and encode to mpeg2, widescreen aspect ratio, using VBR 2 Pass, minimum bitrate: 1.5 mbps, target bitrate: (depends on how much footage you have, set to 7 if you have less than 90 minutes for a single layer disc), max bitrate: 8 mbps

6) Import m2v/ac3 into authoring app of your choice.

The above method yields extremely good quality results, far superior to anything adobe products or final cut studio is capable of producing... and virtual dub is free! You will be impressed. The most important part is what virtual dub does in the resizing process. If your source footage is progressive from premiere, you will want to leave out the deinterlace step. Make sure you export in the full HD resolution out of premiere, keeping it the same size as the source footage, and make sure you don't have Recompress checked.

John Gerard
May 23rd, 2009, 12:53 PM
I will try to send you the clip today or tomorrow. How and were should I send/post the clip? I am going to cut it out of the AVI file produced from VirtualDub assuming that what you are after?

Thanks,
John Gerard

It was me who suggested that workflow.

Does the preview in Virtual Dub display those jagged edges on the white lines? It does appear as if something went wrong (almost like a field reversal before deinterlacing). Is it possible for you to send me a 3 to 5 second clip of the original 1440x1080 footage so I can test it on my end?

you can send me an email: jon (at) precomposed.com

Jon Geddes
May 26th, 2009, 10:27 AM
Having a clip of the original mpeg format would be better, before it goes out of Premiere through the frameserver. Maybe cut a small clip from the timeline, apply an adobe color correction filter (but don't change the colors), and render it. Now in your Adobe Premiere Preview folder, you should see the clip. Send me an email and let me know how big it is, maybe you can just email it.

Jon Geddes
May 31st, 2009, 01:52 AM
I have just reviewed your clip, and was able to deinterlace/resize flawlessly without those anomalies you experienced.

My guess as to why you had issues is that Premiere's Keyframe and Rendering settings on your export were set to Lower Field First, when it should be Upper Field First for HDV footage.

I am attaching my results to this message.

John Gerard
December 20th, 2009, 03:20 PM
Hi Jon,

You helped me before with setting up a good HDV to SD workflow in Premiere Pro before. I am having a really hard time figuring out this late issue. I wondered if you have any thoughts or anyone else reading this message. Here is the problem.

Mainly I have been shooting in all HDV with my Sony FX7. I output as you suggested by using Virtualdub and framserver by adding these filters...

Deinterlace
Resize
Sharpen

This gives me great results most of the time. On occasion the output AVI file comes out where the Audio is all screwed up. The best way I can explain it is that the audio bumps along or cuts in and out, sort of issue. This starts at the very beginning of the AVI file. Usually if I re-encode the file it is OK the second time.
My current project is as follows.....
Main part is DV footage that I captured from my FX-7.
I imported 2 short clips from another project that is HDV footage.
The Premier Pro CS3 project is a SD project.

I was able to output this combined footage for a few sequences as separate AVI files and everything was running Ok. PP did crash a few times but this is normal for me. I just restart the project and usually all is well. I just keep saving a lot. The project runs really great in the PP timeline, no problems at all. Then it seen that Premiere or Virtualdub or my computer did not like something. Now the next sequence or any other sequence will not export correctly. I tried creating a few tests by creating a new project and importing a one 3 clip long HDV sequence and then exporting it in Virtualdub. I can not get it to work correctly. When I play back the AVI file in WMP sometimes it is so bad that the Audio as well as the video just bumps along at about 10 FPS or so, guestimating. It appears like my computer has a problem keeping up the streaming speed during export. I am trying right now an SD only sample to see if this is a problem only with the HDV footage. I also, tried exporting the footage using Microsoft uncompressed AVI just to see if I could get the project done but I get the same problem in that AVI file as well. It does not appear that the Audio is out of sync just choppy,and or video but mainly the audio which has a problem. Outputting to virtualdub I have PP write an audio signpost PCM file but I always do this with no problems in the past. I am now also checking my computer for viruses just to see if something unexplained like that was going on.

Thanks for your help,

John Gerard

My Workflow has excellent results:

1) Export your HD project out of Premiere using Debugmode Frameserver

2) Open the frameserved file in Virtual Dub, and apply these filters in this order:

- Deinterlace using blend fields method
- Resize to absolute: 720x480, Aspect Ratio Disabled, using Lanczos3 method
- Sharpen by 10

3) Save this file out of Virtual Dub as AVI.

4) Turn off Frameserver

5) Open new avi in ProCoder or TMPGEnc and encode to mpeg2, widescreen aspect ratio, using VBR 2 Pass, minimum bitrate: 1.5 mbps, target bitrate: (depends on how much footage you have, set to 7 if you have less than 90 minutes for a single layer disc), max bitrate: 8 mbps

6) Import m2v/ac3 into authoring app of your choice.

The above method yields extremely good quality results, far superior to anything adobe products or final cut studio is capable of producing... and virtual dub is free! You will be impressed. The most important part is what virtual dub does in the resizing process. If your source footage is progressive from premiere, you will want to leave out the deinterlace step. Make sure you export in the full HD resolution out of premiere, keeping it the same size as the source footage, and make sure you don't have Recompress checked.