Welcome Guest ( Log In | Register )


Important

The forums will be closing permanently the weekend of March 15th. Please see the notice in the announcements forum for details.

 
4:3 -> 16:9 Crop & Resize, Converting some 4:3 footage to 16:9
« Next Oldest | Next Newest » Track this topic | Email this topic | Print this topic
lordgoata
Posted: Feb 22 2005, 06:19 PM


Unregistered









Hi all - my first post here so I hope I have the correct forum, I wasn't sure if it was a Newbie (like me) question, or one for here smile.gif

Anyways, I have done a search for the answer to this, and although I have found a good number of replies, I couldn't find anything obvious relating to my problem, so thought it best to just ask.

I have two lots of footage from separate sources: one source was my Digital8 camcorder set to 16:9, and the other my friends Digital8 camcorder set to 4:3. I would like to use some of his footage combined with my own, and as my footage is basically the same as his but cropped and stretched by the camera to give the 16:9 effect, I thought I could just crop and stretch his footage in VDub.

Having tried, I have sucessfully acheived this. Source footage was 720x576 @ 4:3 as captured by Studio9, which I cropped 85px from the top, and 86px from the bottom to give me 720x405 16:9 ratio. I then resized this back to 720x576 and saved out the AVI from VDub, re-imported into Studio9, added to my footage, and the end result works just fine - except for one issue.

Rather than try and explain it - here is a grab: grab.jpg

The image on the left is the 4:3 source, and the image on the right is the cropped and stretched 16:9 result (with VDub showing both at the correct AR). As you can see, the image on the right has the really horrible jaggy lines (unsure of the technical name!), while the image on the left is just "blurred" as expected.

I have tried de-interlacing the footage before the resize, and that removed the jaggy effect on fast moving objects, but then the whole footage looks soft and slow.

Any suggestions on how to resolve this (assuming its possible) would be very welcome. I realise that this is probably not the best way to do this, but as 95% of the footage is in this format from my camera (as it was set to 16:9 when it was recorded), and only a small portion was from his camera, there isn't much else I can do. I believe I am trying to do the correct thing here, as I loaded some of my footage into VDub, and it is still the 720x576 size with the footage stretched to fill, which the TV then squashes back down when viewed, which works just fine when output from Studio9 to DVD.

Thanks in advance, and sorry for the waffle wink.gif

Best Regards,
Dave Fisher
 
  Top
TechMage89
Posted: Feb 22 2005, 07:02 PM


Contemporary Anachronism


Group: Members
Posts: 225
Member No.: 11344
Joined: 6-August 04



I'm afraid that you really shouldn't be resizing interlaced video. VirtualDub's internal deinterlacer is rather crude. Try using a better deinterlacer. I recommend AviSynth's TomsMoComp.

If you don't know how to use AviSynth, here's what to do:
Download AviSynth and TomsMoComp, and install them (just put TomsMoComp in the Plugins Directory). Go to the "examples" directory of the AviSynth Folder, and make a new text file. Name it anything you like, but give it the extension .avs (click through any windows warning). (I'm assuming your file is not in DV format) Open the file in textpad, and write in the following script.

LoadPlugin("c:\AviSynthPlugins\TomsMoComp.dll") [or whatever the path is for the file]
AviSource("c:\video\video.avi") [again, whatever your path is]
TomsMoComp(0,10,0)

Then open the script in VirtualDub, just like a video file, and it will open the video file with the deinterlacing. Then do your cropping and resizing and save the output.

--------------------
I'm not insane, everyone else is!
 
     Top
lordgoata
Posted: Feb 22 2005, 07:41 PM


Unregistered









Hi TechMage89,

I had a feeling it was to do with interlace rolleyes.gif

I have tried the script as you suggested, but it fails to load the avi file as it isn't in YUY2. I then realised thats what you meant by assuming its not in DV format - which it actually is. Its the capture straight from Studio9, and I load it into VDub via the Panasonic DV Codec.

I have since tried again with VDub, I ran the de-interlace filter, and then when I resized it I renabled the interlacing in the resize filter, and that seems to have worked rather well this time, but I expect its still wrong smile.gif

I'll freely admit I don't understand all these different sizes, formats, interlaced, progressive scan etc, but I have done some reading up. I assume that due to my other 16:9 footage that I use in Studio when I do my editing, being interlaced, that ideally the resulting file after cropping and resizing should also be interlaced ?

Thankyou for your help,

Best Regards,
Dave Fisher
 
  Top
Belial
Posted: Feb 23 2005, 12:13 AM


Advanced Member


Group: Members
Posts: 402
Member No.: 6667
Joined: 8-October 03



I don't know why you enable the interlaced box.You could just use the resize to add the letterbox black bars at top and bottom,instead of crop and stretch.What size is the 16:9 file(???x???)?
 
     Top
lordgoata
Posted: Feb 23 2005, 01:27 PM


Unregistered









I used interlace in the resize as the rest of the footage is interlaced (which I am combining it with during editing) and it looks different as it doesn't have the shimmering effect I see when I watch the DVD on the TV. It was just a personal preference as I could see a difference in what I was watching - it looks odd smile.gif

I can't just crop and add the black borders, as when its imported back into Studio9 for editing, it sees it as a 4:3 file. I then have to set the clip properties to 16:9, which just stretches out the footage, so with black borders I get the exact same effect as I do if I just convert the 4:3 footage to 16:9 without any cropping in the first place. Thats the whole reason why I am (was) trying to crop the picture and resize it - so that the clip becomes tall and thin - which Studio9 then squashes back down to the correct proportions by stetching out the footage.

The 16:9 files are all 720x576 (as are the 4:3 ones)

I have since read up some more, and looked at 100fps.com (iirc) which goes into great detail explaining about interlacing and deinterlacing, and it looks like I won't be able to do what I want to do really. I've already spent 2 evenings looking at this, and I still have 12 hours of footage to edit, so I think I'll just give up for now, and come back to it when I have a bit more time mellow.gif

Many thanks for the replies though,

Best Regards,
Dave Fisher
 
  Top
Belial
Posted: Feb 23 2005, 04:14 PM


Advanced Member


Group: Members
Posts: 402
Member No.: 6667
Joined: 8-October 03



Vdub should leave it as it is,shouldn't it?.If so,when you interlace an interlaced video it might look wierd.Vdub only deinterlaces,if you use a deinterlacing plugin,as far as I know.
 
     Top
TechMage89
Posted: Feb 28 2005, 04:03 PM


Contemporary Anachronism


Group: Members
Posts: 225
Member No.: 11344
Joined: 6-August 04



Using TomsMoComp (which is definitely what you want to do in this case) is slightly more complicated, but can still be done. The script to load your DV video:

LoadPlugin("c:\AviSynth\plugins\DirectShowSource.dll") [whatever your path is]
LoadPlugin("c:\AviSynth\plugins\TomsMoComp.dll") [whatever your path is]
DirectShowSource("c:\video\video.avi")
ConvertToYUY2
TomsMoComp(0,10,1)

You have to use DirectShowSource for DV video because DV is not compatible with VFW. This should solve your problem. If not, use the next best thing: Donald Graft's Smart Deinterlacer for VirtualDub.

Oh, and by the way, the video you're using isn't 16:9 (which is actually the same resolution as 4:3 in NTSC) its PAL video.

--------------------
I'm not insane, everyone else is!
 
     Top
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:
6 replies since Feb 22 2005, 06:19 PM Track this topic | Email this topic | Print this topic

<< Back to Advanced Video Processing