Try StreamFab Downloader and download from Netflix, Amazon, Youtube! Or Try DVDFab and copy Blu-rays! or rip iTunes movies!
+ Reply to Thread
Results 61 to 77 of 77
Thread
-
-
It's not possible to spend the next few weeks discussing pixel aspect ratios in this thread. All that can be said at this point is: resizing low-resolution video such as VHS source is a bad bad bad bad idea. The VHS source has already been resized a few times on its way from tape to MPEG and then to your computer. When the original 4:3 image was encoded to MPEG it was placed into a 720x480 frame in such a way that it would display as 4:3 when played on TV or played in a PC media player that correctly resizes the video's encoded rectangular pixels into square pixels for 4:3 display on a computer monitor. The original image in the encoded 720x480 MPEG frame occupies 704x480 pixels inside that frame. As it happens, this a normal storage area for 4:3 source video. Many commercial DVD's are already formatted at 704x480 for 4:3 content. There have been DVD recorders that can record to that frame size. 704x480 is valid for standard definition digital video.
You can encode the 704X480 AVI images at 704X480 with an MPEG encoder and flag it for 4:3 display. It will display properly on a TV or in a media player at 4:3, with no distortion of the original image. However, if you crop off the side borders and leave the 704x480 image as-is and then encode it into a 720x480 frame, or if you stretch that image so that it is 720x480, you would alter the physical aspect ratio of the original image and aspect ratio within the encoded frame. A display device would play a 4:3 image that would be "thinner" than the original by several pixels on each side -- and on a 16x9 display, you would still see black borders on each side of the image, whether you crop the image or not.
If you want VirtualDub to display your video frames at 4:3 aspect ratio, right-click on the image in VirtualDub. From the popup menu that results, click "4:3" image display ratio from the right-hand side of the menu.Last edited by sanlyn; 25th Mar 2014 at 06:53.
-
Two mkv's attached:
A = 704x480 4:3 DAR video at 23.972
B= same 704x480 video with pulldown flags added for smoother motion and 29.972FPS playback
I used QTGMC in progressive mode with higher repair settings and nnedi3 to clean up some motion and edge artifacts due to (apparently) poor tape playback. Not 100% perfect. Stab() used to stablize frame hopping. Also arbitrarilly corrected some color. The 16-bit version of Dfftest was used for more denoising and flicker reduction. The original image was cropped but not resized.
I ran my scripts in 2 steps because (a) QTGMC at high power runs slow in my system, (b) separate step for the versions of masktools and mvtools used by dither plugins. Suggestions, corrections and tweaks welcome.
Code:# --------------------------- # STEP 1 # --------------------------- # Plugins used: #- TIVTC.dll #- Stab.avs #- ReplaceFramesMC2.avs #- QTGMC-3.32.avsi #- santiag.avsi #- HQdering.avs # MPEG2Source("path\to\d2v Project file\dbz1v2.d2v") TFM(order=1).TDecimate() Stab() # ---- correction for borders changed by Stab() --------- Crop(12,2,-8,0).AddBorders(2,2,2,0) # <- frame = 704x480 ReplaceFramesMC2(851,3) Santiag(1,2) HQDering() QTGMC(InputType=1,TR1=2,TR2=3) # --- Save output with Lagarith as YV12 ---- # --------------------------- # STEP 2 # --------------------------- # Plugins used: #- Dither.avs #- mt_xxpand_multi.avs #- avstp.dll #- dither.dll #- dfttest.dll (dither package 16-bit version) #- mt_masktools-26.dll #- masktools.dll (v1.5.8 for FastLineDarken) #- FastLineDarken 1.3.avs #- TTempTempSmooth.dll #- RemoveGrainSSE2.dll #- LSFMod.avsi #- GradFun3 (from the dither package) #- AddGrainC.dll # AVISource("path\to\STEP1 AVI\dbz1v2_01.avi") dfttest (lsb=true) f = DitherPost (mode=-1) s = f.TTempSMooth().RemoveGrain() d = mt_makediff (s, f) DitherPost () mt_adddiff (last, d, u=2, v=2) ## ----- partial repair of some broken lines + edges ---- w = width h = height nnedi3_rpow2(opt=2,rfactor=2,cshift="spline64resize").TurnLeft().\ RemoveGrain().NNEDI3().TurnRight().NNEDI3().spline64resize(w,h) FastLineDarken(thinning=48) MergeChroma(aWarpSharp2(depth=30)) LSFMod(strength=75) GradFun3(thr=1.8,mask=0) AddGrainC(2.0, 2.0) # ------ to RGB32 for RGB color work ------ Dither_convert_yuv_to_rgb(matrix="601",interlaced=false,tv_range=true,\ cplace="MPEG2",lsb_in=false,output="rgb32") return last
Last edited by sanlyn; 25th Mar 2014 at 06:54.
-
I'm not quite certain what you mean. If you crop the image to 704x480, and then resize it to 720x480,you have added width that was not in the original image. The same thing would happen if you crop to 704x480 and then resize to a full 4:3 image size (720x536, which is not quite 4:3). When either of those resized videos is encoded to 720x480, the displayed image will be a 4:3 picture but it will be wider than the original. The difference in width might not always be apparent, but people will be slightly fatter and circles will no longer be perfect circles.
Both images below are displayed in a 16x9 panel. The top image has been cropped to 704x480 but not resized.It has been encoded at 704x480 with a flag for 4: display.
The bottom image was cropped to 704x480, resized to 720x480, and encoded at 720x480 with a flag for 4:3 display. You can see that the bottom image is wider in the bottom panel. The same thing would happen if the 704x480 image had been resized to 720x536 and resized again by the encoder at 720x480.
If you click either image to enlarge, you can switch your view back and forth in the forum viewer by clicking "Previous" and "Next" in the viewer. The change in size will be even more apparent.
Besides that, all the resizing will introduce artifacts to some degree into the bottom image.Last edited by sanlyn; 25th Mar 2014 at 06:55.
-
I think there is only one way to solve the problem of edges, is upscaling to 960x720, someone suggest me some script? But it's something that does not change the colors.
-
That won't solve the problem. I don't know what you expect from the "edges", but if you think you can make a VHS source look like HD, it won't happen. The best one can do with such a source is clean it up and make some improvements, but noisy analog source won't look like a well-produced digital original. Poor playback in the original doesn't help matters.
Last edited by sanlyn; 25th Mar 2014 at 06:55.
-
The point is not to see in HD, because it never will be, just upped the resolution to solve that problem of ill-defined borders that is bothering me, and actually decided. Pretty soon post the video and screens to prove it.
Encode:
http://uploaded.net/file/pyorrgh6
password:dfg
Original:
The colors were changed, that filter should I use to fix this?Last edited by charlesn73z; 29th Aug 2013 at 16:23.
-
-
Last edited by sanlyn; 25th Mar 2014 at 06:56.
-
Last edited by charlesn73z; 29th Aug 2013 at 17:09.
-
Wait a moment. You introduce a different video than the one we've been discussing, The later sample doesn't have the problem you were complaining about concerning Raditz. You also claimed that resizing the Raditz clip would solve the problem you complained about. If you already have the solution, why didn't you use it yourself? On top of that, the lines in your "improved" sample are no "sharper" than the Raditz mkv posted above, and in some frames they look rather soft. So if you want sharper lines, use more sharpeners. In short, if you already know how to solve the problem, just do it.
Last edited by sanlyn; 25th Mar 2014 at 06:56.
-
I managed to solve the problem, thanks to jagabo and sanlyn and everyone who helped me, thanks guys!
-
Last edited by charlesn73z; 29th Aug 2013 at 22:05.
Similar Threads
-
ffmpeg vob -> h264 antialiasing
By leandro in forum DVD RippingReplies: 4Last Post: 3rd May 2012, 22:28 -
Haali Media Splitter, LAV Filters, AV Splitter...How do these filters work?
By Moontrash in forum Software PlayingReplies: 3Last Post: 25th Feb 2012, 18:00 -
Need some filters or something
By salatoimikud in forum Video ConversionReplies: 1Last Post: 28th Nov 2011, 13:33 -
why do we use deinterlacing filters?
By deadrats in forum Video ConversionReplies: 12Last Post: 26th Dec 2010, 16:58 -
[Solved] Question about MPlayer filters in FFDShow and Mencoder filters
By BlooderButcher in forum Video ConversionReplies: 4Last Post: 24th Nov 2008, 11:32