Happy New Year all!
I am having some problems. I have some AVI files which if I check in windows media player or get a screen grab appear to be 512x384 pixels and 4:3 aspect ratio. Thats fine and the ratio corresponds to 720:540.
This leads me to believe that they were recorded in NTSC format?
My probem is that I can't work out what settings to use in TMPGEnc when converting to a PAL 4:3 standard. Whatever I seem to to, I end up with a vertically stretched picture as TMPGEnc converts to a 720:576 as required.
I understand that this stretching is expected - 540 to 576, sure. But how can I avoid this? I don't mind a black bar on top and bottom to correspond to the extra lines for example, but even if I tell TMPGEnc to Centre and Keep the aspect ratio, I end up with this problem.
This must be a common problem, and I have done some searches, but couldn't find a resolution to this.
Would appreciate any help!
Cheers
Jub
+ Reply to Thread
Results 1 to 15 of 15
-
-
If the source is 4:3, and you encode it to 4:3 mpg, the mpg resolution is irrelevant - the player should resize it to a 4:3 aspect ratio regardless of resolution. (Both 16:9 and 4:3 DVD's are 720x576 PAL)
/Mats -
Thanks for the comment Mats, but the picture is definately stretched, so I must be doing something wrong....
-
How do you play back the MPG? Seems like not all software players take note of the AR.
/Mats -
Hi
I am using the MPG created in DVD-LAB Pro, but I noticed what I thought might be some of the pic missing, so I had a look in Media Player. Attached two grabs taken with imageGrab30n to show what i mean:
FROM AVI
FROM created MPG
see how her face is longer?
there is some thin black bands on the left and right, which only seem to be there if i use centre (keep aspect ratio) option
jub
(the loss in quality is another question :0) ) -
Originally Posted by jubbely2
Note that the DVD spec for wide screen videos uses the same number of pixels in each dimension -- the player just stretches the picture horizontally to make it wide on a 16:9 TV. Or squishes it vertically (and adds black bars to the top and bottom) for a 4:3 TV. -
Thanks Jagabo
So you are saying that my DVD player should compensate for this and I wont see the stretching when I play back?
That is good. Thank you.
What about the loss of quality that is seen on the picture? Is this also something to do with how I am viewing the file or will it always happen when I convert avi to mpg?
Cheers
jub -
Every conversion to a not lossless compressed format (like mpg) will result in loss of quality. Generally, for DivX/XviD sources, using an mpg bitrate of about 4x AVI bitrate will do the AVI full justice - a rough but useful rule of thumb. Resizing up like you've done also leads to quality loss - generally, it's better to resize down to nearest DVD resolution.
/Mats -
Originally Posted by jubbely2
Originally Posted by jubbely2
Some common resizing filters: Bilinear will be the least clear. Bicubic should be better. Lanczos will be even better.
Many people say you should never resize up, you should use the next lower valid DVD resolution. But I disagree with that. With your 512x384 source you can go to 720x576, 352x576, or 352x288. Your DVD player will play all of those the same size on your TV screen. The question becomes: will resizing up look worse than resizing down and then having the DVD player resize up? As long as you used a decent resizing filter and enough bitrate (the larger the frame size the more bitrate you need to retain picture quality) resizing up will look better than resizing down.
Your source video doesn't appear to be all that sharp to start with. You may not notice much difference either way. But if you use a resolution test pattern, or a very clear source, the differences will be obvious. And this also depends on what you're viewing the final result on. A 13" screen won't have enough resolution to see the difference. A 32" or larger screen will. -
"I have some AVI files which if I check in windows media player or get a screen grab appear to be 512x384 pixels and 4:3 aspect ratio. Thats fine and the ratio corresponds to 720:540.
This leads me to believe that they were recorded in NTSC format? "
512 x 384 sizes to both square pixel NTSC 640 x 480 or PAL 768 x 576 maintaining aspect ratios. Easy way to tell, create new image in image editing software at 512 x 384, then resize maintaining proportions. Enter new size of 576 height, get new width of 768 or PAL square pix spec.
To reach DVD spec...
NTSC - resize to 704 x 480 (cropped NTSC accepted by some authoring prog) or 720 x 480 (slight distortion but more widely accepted in software).
PAL - resize to 720 x 576.
PAL DVD player (hard or soft) will automatically stretch frame wider, NTSC will automatically shrink.
Problem as I see it, original grab to me looks too narrow -- maybe see if you can find trailer etc. on-line to compare?
FWIW, correct way to go from DVD, D1 etc to square pixel involves some slight cropping. Perhaps whomever did the original conversion did not? I could be wrong, and would need to see other things in original, but from your snapshot alone I would crop a bit on the sides, and see how that looked sized back to orig. 512 width.
Edit, while I was writing this you got another reply, also correct. I simply wanted to point out something I forgot, and it reminded me -- often I do preview in Power DVD which approximates what the TV will look like. -
Originally Posted by jagabo
-
Originally Posted by mikiem
I keep trying different guides from here for converting to MPG using TMPGenc, but the picture quality always seems poor and the motion jerky. I must be doing something wrong
(I tried to resize to both 720x576 and 352x576 but both seem pretty naff)
I realise my source material isnt all that great, but thats why I dont want to lose any more quality if I can help it.
Here a screenshot of my gspot analysis:
Anyone got any hints on how I can go forward? -
I would keep it NTSC, as software format conversions are usually far more effort than the results justify.
I would try this script
# -= AviSynth v2.5.5.0 script by FitCD v1.2.4 =-
LoadPlugin("C:\Video\avisynth 2.5\Plugins\aSharp.dll")
LoadPlugin("C:\Video\avisynth 2.5\Plugins\BlockBuster.dll")
AVISource("path_to_source_file")
BlockBuster(method="noise", block_size=8, detail_min=1, detail_max=16)
LanczosResize(704,480,0,0,512,384)
aSharp(2,4,-1,false)
AddBorders(8,0,8,0)
Just cut and paste it into a text file, change the paths appropriately, and save it with the extension .avs (apologies if I an teaching you how to suck eggs). It is a modified FitCD script, similar to one I have used successfully a number of times. You can load this into tmpgenc or cce etc to encode the video to DVD compliance.Read my blog here.
-
"but the picture quality always seems poor and the motion jerky. I must be doing something wrong" "Anyone got any hints on how I can go forward?"
*Sometimes*, rarely, all that stuff meaning if you have time to kill and don't mind an experiment or 3...
From a lower quality, highly compressed video, it *might* (every once in a while) look better at 352 x 240, using the player to stretch it. If you've got a whole lot of time to kill, there's an article at creativecow on using supersampling in vegas to improve video, though we're talking some hefty render times.
Otherwise do like guns1inger suggested and that should get you there.
Similar Threads
-
Need help quickly converting (stretching, really) a 4:3 mpeg into 16:9
By rhaynes999 in forum Video ConversionReplies: 14Last Post: 26th Feb 2010, 19:20 -
Problems with mpeg after conversion, or with original avi - help
By krisbee in forum LinuxReplies: 1Last Post: 30th Oct 2007, 16:56 -
avi conversion problems
By olson311dude in forum Video ConversionReplies: 14Last Post: 9th Oct 2007, 04:27 -
TMPGEnc & EO Video mpeg-2 conversion problems
By jtalpur in forum Video ConversionReplies: 2Last Post: 28th Aug 2007, 15:46 -
Quicktime to Windows MOV-mpeg-4 conversion problems?
By Simone in forum ffmpegX general discussionReplies: 4Last Post: 16th Jun 2007, 06:50