I have a standalone dvd recorder that records vhs into 4:3 pal 352x576 vobs. I am trying to re-encode the vob into mkv but the result is a narrow strip of video, like a vertical rectangular. I am using MeGUI for the first time, so I was wondering if there is a way to pre-define the 4:3 aspect ratio. Is it something I can do with MeGUI or should I add something on the script?
+ Reply to Thread
Results 1 to 24 of 24
-
-
Aspect ratio signaling:
http://mewiki.project357.com/wiki/MeGUI/Aspect_Ratio_Signalling_in_AviSynth_Scripts -
Hi and thank you for the information. As I said, I am new to this and I don't understand much of the jargon. So, if I add
global MeGUI_darx = 4
global MeGUI_dary = 3
in my script, will that do the trick? Do I have to add anything to MeGUI or add any resizing lines to the script? And finally could anyone explain to me what do the following lines do and if I need them?
global MeGUI_darx = my_avs_func_x()
global MeGUI_dary = my_avs_func_y() -
Just paste:
Code:global MeGUI_darx = 4 global MeGUI_dary = 3
-
-
-
Yes it does. I tried with vlc and pot player
MediaInfo gives 0.651 aspect ratio for the MKV whereas it gives 4:3 for the initial vob.
I also tried to paste it in various positions in the script.Last edited by lascetic; 14th Nov 2013 at 10:34.
-
-
That's essentially the same as the script that I used. Try adding Info=3 to Mpeg2Source(), after CPU=0.
-
-
I just noticed "--sar 16:15" in the x264 command line. That's not right. It should be 24:11.
-
jagabo is right
Go into the advanced settings and look at the command line box and see if any values are entered in (some presets have values entered)
If not, just enter --sar 24:11 in the box , but erase the Megar_dar_x , y stuff from the script first -
When I do the sar test for Pal full screen 4:3, I only can choose between ITU 12:11 and Non-ITU 16:15.
12:11 seems a bit stretched (to my eye)
@poisondeathray
I tried all 3 players you mention with the same result. The thing is that the converted file in MediaInfo shows 0.651 aspect ratio. Log file attached. -
-
Well, the tutorial from which I am learning loads this script to avisynth and by setting the values for pal/ntsc and wide/full screen you can compare the same frame as ITU or non-ITU and determine the SAR. Maybe it doesn't work for all videos or the tutorial was not detailed and I missed something.
Anyway 24:11 seems to have done the trick
Could you please elaborate a bit more over (or refer me to) how does one determine the SAR value? How does one know if it is ITU or non-ITU?
Oh and another thing. Shouldn't it be 720 rather than 768 since the original source is vhs?
I really appreciate your help and patience. -
No, and the original source hasn't much to do with it. You want it to play in a 4/3 or 1.33:1 ratio, one such as 768x576. If you used a SAR that output 720x576 that ratio would be 5/4 or 1.25:1 and people would appear slightly too thin and too tall. Round things would be slightly oval-shaped. A 720x576 DVD, for example, gets resized during playback to either a 4:3 or 16:9 ratio, depending on the DAR set while encoding. VHS tapes, though, are always 4:3. And they use ITU resizing.
I think that's right. jagabo can confirm (or contradict). -
DAR = FAR * SAR
DAR = display aspect ratio (shape of the final displayed picture)
FAR = frame aspect ratio (relative frame dimensions)
SAR = storage aspect ratio (aspect ratio of individual pixels)
4:3 = 704:576 * 12:11
4/3 = 704/576 * 12/11
4/3 = 704 * 12 / (576 * 11)
1.33 = 1.33
The ITU spec for digitizing analog video indicates that a ~702x576 pixel frame contains the 4:3 (or 16:9) image. That's generally just rounded to 704x576 to keep mod 16 frame dimensions. (It's actually even more complicated than this but I'll ignore those complications.)
The DVD spec refers to the MPEG 2 spec for aspect ratios. The MPEG 2 spec does not specify the sample aspect ratio, only the display aspect ratio -- so, the final shape of the picture can be either 4:3 or 16:9 (as far as DVD is concerned). It has no direct method of specifying the sample aspect ratio.
This leads to a problem: Most PAL DVDs use a 720x576 frame size. But an ITU spec capture uses a 704x576 frame size, usually padded with another 8 pixels at the left and right edges to fill out a 720x576 frame. Since the 4:3 image of such a capture is stored in the inner 702x576 pixels the full 720 pixel wide frame is slightly wider than 4:3. But the MPEG 2 spec has no way to account for that (actually it does but it's never used). The issue is mostly ignored by producers of DVDs and by DVD players. ITU captures are just mastered to DVD as is. In my experience, players use the ITU spec at their analog outputs (s-video, composite) but the MPEG 2 spec at the HDMI output.
Generally, nobody notices the ~2 percent difference between the two specs. But if you're a stickler for accuracy there are a few methods for determining whether the pixels are ITU or MPEG 2. If you have a 352x576 or 704x576 frame then the ITU and DVD specs are essentially the same. If you have a 720x576 frame with obvious ~8 pixel borders left and right the video was probably digitized from analog tape following the ITU spec then simply mastered to DVD. If there are no borders the DVD probably follows the MPEG 2 spec. To be sure you have to find an object of known aspect ratio and measure it on-screen. -
That's really useful information. I appreciate your help. I'm gonna take advantage and ask a couple of more questions. First. what would be the difference if instead of adding the lines
global MeGUI_darx = 4
global MeGUI_dary = 3
I have added a resize command in the script, say for example Spline36Resize(768,576)? Would this have the same results?
Secondly, is there a way to remove (at conversion) the black bars that appear on the sides of the film when played in full screen, without a distorted outcome?
-
I don't really use MeGUI so I'm not familiar with its peculiarities. But if it encodes the 768x576 frame as square pixel (1:1 SAR) then you'll be ok. But some programs try to be "helpful" and make adjustments for you -- screwing up the picture in this case. Try it and find out.
No, not without distorting or cropping the frame.Last edited by jagabo; 15th Nov 2013 at 11:43.
-
How many pixels per side should be cropped to remove the bars from a 352x576 video and what would be the result dimension-wise and image-wise? Will it be stretched? Will there be image lost? Sorry for bombarding you with all these questions, but I guess I opened the pandora's box.
-
You want to crop from the top and bottom to make 16:9 out of 4:3 DAR material -- a total of 144 lines, leaving 352x432 (24:11 SAR) or 768x432 (1:1 SAR).
-
Similar Threads
-
DVD has turned 720 into 352x576 ... can this be undone?
By Spiny Norman in forum Authoring (DVD)Replies: 15Last Post: 8th Apr 2013, 17:19 -
Encoding Problem
By mdnightsky in forum ffmpegX general discussionReplies: 3Last Post: 29th Jun 2011, 13:35 -
Cuttermaran Encoding Problem
By SkyIs2Blue in forum EditingReplies: 4Last Post: 9th Jun 2010, 15:15 -
Problem with Encoding
By benchlol in forum Newbie / General discussionsReplies: 1Last Post: 4th Jul 2009, 19:04 -
Problem when encoding ts
By GB1337 in forum Video ConversionReplies: 4Last Post: 24th Nov 2008, 06:08