PDA

View Full Version : 16:9 MKV goes 4:3 AVI, how to keep it 16:9?


Lilly
9th December 2008, 08:49
Hi

I've a MKV file which I want to cut but since it has H.246 as videocodec I've to encode it into some other format (AVIdemux keeps crashing - so I use VirtualDubMod via the DirectShowSource AviSynth template thingy).

The problem is the aspect ratio.
The demuxed H.264 file does already have another aspect ratio than the MKV it was in.
16:9 vs 4:3 (853x480 vs. 704x480) - there must be info in the MKV container to stretch it because it looks correct as 16:9 in the MKV.

When I encode that file, the wrong aspect ratio stays.

Video: MPEG4 Video (H264) 704x480 (853:480) 23.98fps [Video]

What can I do that the AVI afterwards stays 16:9?
Do I have to resize it from 704 to 853 (well for DivX I'd have to choose some resolution close to it since 853/16 won't work), or is there a better way?


Greetings
Lilly

Inspector.Gadget
10th December 2008, 02:01
What are you trying to do with the file? Encode to an XviD AVI file?

Native 720x480 video with a 16:9 display aspect ratio (as I suspect is set in your MKV container) will display as 853x480, so if your video is natively 704x480 the correct 16:9 DAR would be 834x480. Now, you can set that as the display size in MKVMergeGUI (MMG) if you're going to make a new MKV file.

With an AVI container, you CAN set it to be anamorphic using something like mpeg4modifier but there's no guarantee your playback solution will support it. The better option, if you're re-encoding anyway, would be to resize to 834x480 with a good quality resizer before encoding.

poisondeathray
10th December 2008, 02:22
If this is for a standalone player, most won't accept resolutions above 720x480 (or 720x576 in PAL land), so you could resize it to 720x400 1:1 SAR to give you ~16:9 DAR

SeeMoreDigital
10th December 2008, 10:15
Go back to your DVD source and generate an new MPEG-4 AVC encode complete with 32:27 (ie: NTSC 16:9 DAR) signalling.

By-the-way... It's not good practice to place AVC video streams within the .AVI container :eek:

Lilly
11th December 2008, 08:08
Thanks for the replies.

What are you trying to do with the file? Encode to an XviD AVI file?
I wanted to upload a part of it to YouTube. Sorry that I didn't mention that, thought it's not important.

It's an anime trailer from the internet, so I don't have the dvd of it (I think it's on the dvd too but that one is only released in Japan - nowhere else licensed yet).

I resized it then, but I kept the 704 and just downsized the height. That worked at least. Trying to upsize the width ended in errors -.-
Whatever, for YouTube a high resolution doesn't matter anyway (and neither does quality it seems [the streaming quality is awful]).
http://de.youtube.com/watch?v=WUwr2tA8res

Some other thing that occurred and is strange. The H.264 video after demuxing had a logo in it (Main Concept, I assume it's the producer of the H.264 codec that was used) but the MKV didn't show it.

How come?

HymnToLife
11th December 2008, 09:12
It's an anime trailer from the internet, so I don't have the dvd of it (I think it's on the dvd too but that one is only released in Japan - nowhere else licensed yet).

Unfortunately, rule 6 still applies.