TMPGenc changes dimensions on me...

If you have questions about compression/encoding/converting look here.
Locked
User avatar
TetsuyaDL
Joined: Sat May 26, 2007 5:23 am
Location: Illinois
Org Profile

TMPGenc changes dimensions on me...

Post by TetsuyaDL » Tue Apr 22, 2008 12:20 am

I'm trying to convert some Lagarith and huffYUV compressed .avi files to mpeg-2 for a convention. But, no matter what I do, the mpeg-2 file that comes out is in 720x540, and I need 720x480. In the 4 hours I've been trying, I ended up going past the deadline, but I hope they might still take it...

My source files are Lagarith and huffYUV compressed .avi files, 29.97 fps, 720x480, NTSC running them through avisynth.

I use the "AMV Profile @ 29.97 fps" format I got from the guides, I set stream type to MPEG-2, size 720 x 480, and aspect ratio to 4:3.

I go to Video Source setting under Advanced tab and set Source aspect ratio to 3:2 525 line (NTSC) because that's the closest to to "4:3 NTSC" I can find.

I've tried altering the dimensions of the source .avi files with avisynth before putting them into TMPGenc, but that doesn't change the output dimensions. I've tried changing video arrange method to full screen (keep aspect ratio), center (keep aspect ratio), and center (custom size = 720 x 480) but that hasn't helped either.

Am I just getting my aspect ratios confused?

User avatar
Zero1
Joined: Fri Jan 02, 2004 12:51 pm
Location: Sheffield, United Kingdom
Contact:
Org Profile

Post by Zero1 » Tue Apr 22, 2008 6:52 pm

Don't worry about it. If you feed it 720x480, you should get 720x480 back if you didn't change too many settings. The reason it appears to be 720x540 is due to the aspect ratio. You see when you set the aspect ratio when you encode it, that's telling the player to stretch the input on playback (in this case 720x480) to a 4:3 aspect ratio, which happens to be 720x540. Generally decoders/scalers resize the width to get the right aspect ratio (so it should have looked like 640x480), but not all decoders follow convention.

If you want to upload a sample with your settings, I can check it to make sure.

User avatar
TetsuyaDL
Joined: Sat May 26, 2007 5:23 am
Location: Illinois
Org Profile

Post by TetsuyaDL » Wed Apr 23, 2008 1:15 pm

I had someone else look at it, he agrees with you; the file is actually 720x480, and the player is stretching it to 720x540 due to the 4:3 aspect ratio flag.

Do you know if there's a setting I need to use for TMPGenc when I convert to MPEG-2 so that the player will show it as 640x480?

User avatar
LantisEscudo
Joined: Thu Mar 08, 2001 5:21 pm
Location: Eastern Massachusetts
Contact:
Org Profile

Post by LantisEscudo » Wed Apr 23, 2008 2:24 pm

What options do you have under your "Source Aspect Ratio" pulldown?

I know I have 4:3 525 line (NTSC) as one of mine, but I also have an older version of TMPGEnc.

User avatar
TetsuyaDL
Joined: Sat May 26, 2007 5:23 am
Location: Illinois
Org Profile

Post by TetsuyaDL » Wed Apr 23, 2008 2:36 pm

I have:

1:1 VGA
4:3 525 line (NTSC)
4:3 525 line (NTSC, 704x480)
4:3 625 line (PAL)
4:3 625 line (PAL, 704x480)
16:9 525 line (NTSC)
16:9 625 line (PAL)
4:3 Display
16:9 Display
2.21:1 Display

Hmm, I'll try using 4:3 Display and see what happens.

User avatar
TetsuyaDL
Joined: Sat May 26, 2007 5:23 am
Location: Illinois
Org Profile

Post by TetsuyaDL » Wed Apr 23, 2008 3:01 pm

4:3 Display didn't make much difference.

Just to clarify what my problem is, TMPGenc is adding black borders on the sides to make my video play as 720x540 in windows media player. I want it to take my 720x480 lossless avi video, and turn it into a normal 720x480 MPEG-2 video. Is this not possible to do with TMPGenc, since the closest aspect ratio TMPGenc can export is 4:3?

Should I look for a different program?

User avatar
LantisEscudo
Joined: Thu Mar 08, 2001 5:21 pm
Location: Eastern Massachusetts
Contact:
Org Profile

Post by LantisEscudo » Wed Apr 23, 2008 3:12 pm

I do it all the time with TMPGEnc, so I'm wondering if it's not the encoder that's the issue, but the decoder. Have you tried playing the video back in another player, like VLC, to see if the problem is with TMPGEnc or with WMP?

Also, as another setting to look at, below Source Aspect Ratio, there should be a Video Arrange Method pulldown. What are you set to there (I usually use Full Screen (Keep Aspect Ratio))?

User avatar
LantisEscudo
Joined: Thu Mar 08, 2001 5:21 pm
Location: Eastern Massachusetts
Contact:
Org Profile

Post by LantisEscudo » Wed Apr 23, 2008 3:27 pm

Just to help illustrate, these are my settings when I'm working from a 720x480 23.976fps (4:3) lossless file.

Image
If your file is 29.97 to start with, you'll want to change the frame rate to match and the encode mode to Non-interlace.

Image

This has always given me a file that gets correctly resized with no borders in a player. I've only had one file give me problems with these settings, and that had a bad frame in the source file that was encoding incorrectly.

User avatar
TetsuyaDL
Joined: Sat May 26, 2007 5:23 am
Location: Illinois
Org Profile

Post by TetsuyaDL » Wed Apr 23, 2008 3:47 pm

For Video Arrange Method pulldown, I've tried full screen (keep aspect ratio), center (keep aspect ratio), and center (custom size = 720 x 480) but I kept getting 720x540 in WMP.

I wonder, maybe its a line in my avisynth script that's throwing things off?

I haven't tried opening it in a different player. I have to take care of some other stuff now, but I'll try that and get back to you by 7 pm CST.

User avatar
LantisEscudo
Joined: Thu Mar 08, 2001 5:21 pm
Location: Eastern Massachusetts
Contact:
Org Profile

Post by LantisEscudo » Wed Apr 23, 2008 3:58 pm

TetsuyaDL wrote:I wonder, maybe its a line in my avisynth script that's throwing things off?

I haven't tried opening it in a different player. I have to take care of some other stuff now, but I'll try that and get back to you by 7 pm CST.
Okay, and if you could post your script, too, that could be very useful.

Locked

Return to “Conversion / Encoding Help”