De-interlacing DV

Steve Mason wrote on 7/20/2013, 10:21 AM
Greetings,

I filmed some footage back in 2010 on a Canon XL2 (DV) @60i and I need to use some of it for B-roll in a web-commercial I'm working on. I will likely host the video on my own server and it will be available to the viewer via an HTML5 player. These players generally require mpeg4 H.264 for cross-browser compatibility and V11 will not permit me to render an mpeg4 interlaced - not to mention it looks abysmal on PC playback.

I've fiddled around with a few Avisynth scripts and the results were sub-par. While I was able to tweak the image to varying degrees, the image quality suffered due to the resolution loss.

Is there any practical solution to this interlaced DV issue other than a long walk off a short pier?

Good advice is always appreciated!
Steve M.

Comments

musicvid10 wrote on 7/20/2013, 10:30 AM
Handbrake. Try the Decomb presets.
It still imports DV natively, afaik.
Steve Mason wrote on 7/20/2013, 10:32 AM
I shall have to try that thanks. Any other settings/parameters per chance?
musicvid10 wrote on 7/20/2013, 10:42 AM
Just start with the Normal preset with SD, except you may want to use fixed frame rate.

If you have NeatVideo, it's worth trying that first to clean up noise before Handbrake.
Steve Mason wrote on 7/20/2013, 10:44 AM
I'll try and report back - thanks again MV.
TheHappyFriar wrote on 7/20/2013, 12:09 PM
Any reason you couldn't render out a video @ 1/2 the horizontal res & disable resampling? Ditching every other field automatically deinterlaces.
Steve Mason wrote on 7/20/2013, 1:19 PM
Sounds low-qual.
kb_de wrote on 7/20/2013, 5:10 PM
The way to deinterlace everything in a NLE is: progressive scan type + double frame rate. Because your footage is 60 times/minute, no matter whether interlaced or progressive, your output must also be 60 times/m.
John_Cline wrote on 7/20/2013, 5:16 PM
An fine implementation of the Yadif deinterlacer is available for Vegas. Follow the specific usage instructions on the web page and you're good to go.

http://www.yohng.com/software/yadifvegas.html
musicvid10 wrote on 7/20/2013, 5:17 PM
kb_de,
That's not exactly correct. The OP is encoding for web delivery, so the only logical encoding will be 30p. Handbrake's superior decomb algorithms will give him just what he (and his servers) want.
kb_de wrote on 7/21/2013, 2:06 AM
It's correct and it suffers!
I do think people mix the 2 things together: de-interlace and de-interlacing.
The one is to compensate the time difference between fields so that a clean frame comes. All NLE can do this well. No need of yadish.
The other one is to get smooth motion (especially these quick motions) with reduction of frequences. Equipment or recapture will do it.
Grazie wrote on 7/21/2013, 2:09 AM
+ 1 YADIF (John Cline)

G

musicvid10 wrote on 7/21/2013, 8:50 AM
Yadif in Vegas will work fine with the poster's source.
Handbrake decomb offers some refinements not possible with Yadif alone, including Mcdeint and EEDI2..
But yadif by itself is a huge improvement over blend or interpolate.
The correct term for interpolating 50p or 60p from interlaced is "Bob" or "2X." It's not yet practical for HD internet streaming / progressive download because the bandwidth load is doubled, thus faster connections and processors are needed to deliver and decode, which many consumers simply do not have.

http://www.sonycreativesoftware.com/forums/ShowMessage.asp?MessageID=864729

Steve Mason wrote on 7/23/2013, 3:55 AM
Results so far:

Yadif - I tried every possible variation (temporal/spatial, field order, etc.) within V11 and it just doesn't like my footage. The program (specific to my DV material) appears to respectably de-interlace static areas of the image; portions of significant movement however are tattered - my misuse notwithstanding.

Handbrake - As MV10 stated, it is superior. The results I've achieved are markedly better than anything else I or a few others have delivered to this point using software solutions. As I currently don't own Neatvideo, I've found that applying both the denoiser filer (weak-medium) and the deblocking filter (+5) in Handbrake yields the best result (after a bit of trial and error).

I've used the trial version of Neatvideo and (due to the white cyclorama set dominating the footage) I was unable to create a high percentile noise profile (max achieved was 35-40%). I'd gladly invest in the program if I were able to attain a better noise profile - for the moment I've used Handbrake's denoise filter as a testing stopgap.

While the Handbrake image is the best so far, I'm still not 100% satisfied with the end result. I wonder if any hardware solutions exist to better address this task. If said hardware solution does indeed exist, I would gladly pay a reasonable service fee rather than investing big bucks in equipment I'll never use again. If anyone is equipped to handle this task and is looking for a quick, small budget job - message me please. I also have a job posted on freelancer.com for this with a full description.

If what Handbrake has achieved is the best I can expect, my next tests will be to determine:

(1) whether to individually de-interlace V11 smart-rendered .avi clips from the source files, rendering out of Handbrake as lossless .mp4 for the project timeline first - then render progressive.

(2) or to create and render the entire project (web commercial) as interlaced - using the DV .avi clips from the source files, then de-interlace the finished clip in Handbrake.

Any further suggestions are greatly appreciated.

Steve M.
musicvid10 wrote on 7/23/2013, 8:04 AM
It depends on your other source material in the project, what is it?
musicvid10 wrote on 7/23/2013, 8:38 AM
"and the deblocking filter (+5) in Handbrake"
That deblock filter is for blocky source, is yours?
There is a separate output deblocking filter in the Advanced tab, that I usually set at [-1, 0] because it is slightly sharper (more deblocking = softer detail).
Steve Mason wrote on 7/23/2013, 11:50 AM
MV10,

The web-commercial timeline will consist of a number of media sources including .png with transparency, 3D animations as .mov, the DV source footage, and a mix of additional media types and FX.

As far as blocky goes - the source footage is relatively clean; it is only after de-interlacing that portions of the image exhibit tearing and aliasing. I added the deblocking filter as a means to improve the image through trial and error incrementally over numerous Handbrake renders. The image I currently have looks best to my eyes thus far with the filter combo I'd mentioned - but again I'm not hopelessly in love with it.

It irks me that the DV source footage (original files, before rendering out of V11) appears fairly decent on progressive playback in its native interlaced form - especially @ 100% scale. It is only after processing in V11 that it appears unacceptable for progressive viewing. I wonder if there is another way to process this footage allowing me to maintain the original clarity for web viewing without de-interlacing?

Thanks.
Steve M.
musicvid10 wrote on 7/23/2013, 2:20 PM
Have you tried rendering the project as interlaced and giving that to Handbrake? Or does that degrade your noninterlaced source?

Steve Mason wrote on 7/24/2013, 1:13 AM
I am just starting this project so I don't have much of it to test. I thought it wise to first address the de-interlacing issue before building out an involved and complex project only to be disappointed.

I was however able to render a brief test segment containing several media types from the new project out of V11 as interlaced and I converted to a progressive mp4 in Handbrake - the result was disappointing. I've to this point found the best render is generated by importing the Handbrake processed .mp4 in V11, adding sharpening @ zero, boosting the mid-tones and rendering out to Sony AVC .mp4.

If I limit the player's max size/resolution to 100% of the rendered AVC .mp4, it looks just fine - practically swell; if it opens to full screen however, it's simply sub-par - artifacting and motion trailing become evident. Depending on the HTML5 Player I choose, I will with any luck have the option to limit the maximum video size/res on playback. I guess I'll cross that bridge when I come to it.

The Sony AVC .mp4 renders out rather well - though I am forced to use a square pixel aspect and must render the original DV 720X480@1.2121 to 874X480@1.000. This frame size leaves a my video a couple of pixels short in the finished render widthwise. Should I simply deselect "maintain aspect ratio" in the clip properties to fill the frame?

And as always, all good advice is greatly appreciated!

Steve M.


marts wrote on 7/25/2013, 11:46 AM
I am usually using SmartDeinterlace filter http://www.sonycreativesoftware.com/forums/ShowMessage.asp?MessageID=742993

I remember trying yadiff with not much success, so I was looking for some other solution and I came by the above topic.

The SmartDeinterlace filter detects differences between fields and if there is no movement (no combing) then it uses both fields to create single frame, when there is a movement then It can either interpolate moving part of the picture from single field or blend two fields into frame - the exact behavior can be specified in filter settings.
willqen wrote on 7/27/2013, 3:41 AM
marts

I tried the manual install of the deint_x64.dll thru the command prompt as instructed and I received the following error message:

The module "C:\Program Files (x86)\Sony\Filters\deint_x64.dll" was loaded but the call to DllRegisterServer failed with error code 0x80070005

I did copy the deint_x64.dll file into the Filters folder under Program Files (x86)\Sony as suggested before running the command prompt.

Any ideas?? Maybe I missed something??

Thanks for any help you could give me ...

Will
John_Cline wrote on 7/27/2013, 4:18 AM
I have found the YADIF plugin for Vegas to work rather well, but you must follow the instructions carefully.

Specifically, set the Project Properties to "Progressive" and for good measure, set "Deinterlace Method" to "None."

Then, select the interlaced clip in "Project Media", right-click and go to "Properties" and set the clip's properties to "Progressive."

Then, right-click on the clip again in the Project Media tab, select "Media FX" and apply the YADIF deinterlacer. It will not work properly if applied as a Video FX or Track FX.
Steve Mason wrote on 7/27/2013, 9:09 AM
I'll give it another try - thanks John.
Tech Diver wrote on 7/28/2013, 10:13 AM
Out of curiosity I gave it a try but I was not particularly impressed. Yadif created too many artifacts for my liking and I think I'll stick with the deinterlace filter that came with Boris Red, as it gives me far more control and seemingly better results.

Peter