Log in

View Full Version : Problem: same resolution but different aspect ratio. Repair?


mike23
11th March 2011, 14:22
I have an interesting problem with two parts of an *.avi video (encoded with H.264/AVC) video codec
Both parts have the same resoluton but different aspect ratio:

Part 1: 720*424 (16:9)
Part 2: 720*424 (3:2)

If I play the first part in VLC video player everything is ok. The second video is somehow distorted.

How can I repair this second part?

Is there a tool which allows me to change the aspect ratio in the second *.avi file to 16:9 WITHOUT RE-ENCODING?

kypec
11th March 2011, 14:53
Putting H264/AVC stream into AVI container is very unfortunate but still...try to demux the video stream first to raw file and change SAR flag (http://forum.doom9.org/showthread.php?t=152419) to desired value.
Finally mux the stream back into container of your choice.

roozhou
11th March 2011, 18:03
@kypec
You don't need to demux first. AVI to AVI remux will work perfectly.

mike23
12th March 2011, 07:41
@kypec
You don't need to demux first. AVI to AVI remux will work perfectly.

OK, and which tool should/can I use to remux the *.avi?

roozhou
12th March 2011, 08:34
OK, and which tool should/can I use to remux the *.avi?
The link in kypec's post.