This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Aspect Ratio Correction

Tags: None
(comma "," separated)
pchristy
Registered Member
Posts
5
Karma
0

Aspect Ratio Correction

Wed Feb 10, 2010 1:57 pm
I occasionally have to handle clips that have been incorrectly saved in the wrong aspect ratio, and are consequently stretched either horizontally of vertically.

The pan and zoom feature only seems to allow re-sizing of the whole picture.

Is there any method of stretching pictures vertically or horizontally to restore the correct aspect ratio? Or indeed any plans to incorporate any other DVE features that are almost standard on most editing packages these days?

(Please don't regard this as a criticism! I appreciate that kdenlive is a work-in-progress - and very promising so far!)

--
Pete
"Duct tape is like the Force. It has a light side and a dark side, and it binds the universe together!"
r_mano_drupal
Registered Member
Posts
2
Karma
0

Re: Aspect Ratio Correction

Wed Feb 10, 2010 2:37 pm
I normally use ffmpeg to adjust the aspect ratio before further use. I know it? not exactly an answer, but a command like:

ffmpeg -i from.mpg -aspect 16:9 resized.mpg

will force the aspect ratio on the output stream.

Hope this helps,
Romano
j-b-m
Registered Member
Posts
804
Karma
1

Re: Aspect Ratio Correction

Wed Feb 10, 2010 6:25 pm
In the project tree, right click on the clip you want to adjust, select "Clip properties", in the "advanced" tab, you can force the aspect ratio of the clip
ddennedy
Registered Member
Posts
1315
Karma
1

Re: Aspect Ratio Correction

Fri Feb 19, 2010 5:07 am
It is important to note that advanced setting is the pixel aspect ratio, not the display aspect! Yes, I agree setting the display aspect would be more friendly.


ddennedy
Registered Member
Posts
1315
Karma
1

Re: Aspect Ratio Correction

Wed Sep 22, 2010 5:19 am
The reason your aspect ratio is incorrect is because the capture device is either configured incorrectly (you wrote 'PAL 4:3') or it lacks a setting. As much as I recall, unlike component, composite video does not carry a signal to indicate widescreen. So, you are forced to override it. Instead of sample aspect ratio 1.5, please try 1.42.

Then, there should be no need to rescale when rendering if you use a project setting such as "1024x576 16:9 PAL" if that suits what you are trying to achieve for the project output (except DVD).

Your project setting does not have to match your clips even though that is a convenient guideline. That is only a guideline and not a rule because you are not limited to only putting a certain class of clips in the project; rather, you can mix and match. So, another guideline for project setting is to use one based on your intended output. If you intend a wide variety and want a little future-proofing, then you would choose the setting based on the largest resolution, highest framerate clip you plan to add. Then use render rescale for any smaller outputs.


jjfro
Registered Member
Posts
27
Karma
0
OS

Re: Aspect Ratio Correction

Tue Dec 28, 2010 2:27 pm
Nobody has replied to this yet so I'll chime in with my experience. I'm new to Kdenlive too and don't understand the intricacies of all the different video formats but I'll just relate what worked for me. I've been converting old VHS tapes to DVD. They are obviously in 4:3 format. I've been using a Windows program (One Touch Video Capture) to get them into MPEG format. I just open those clips in Kdenlive with project settings of DV/DVD NTSC (which is fixed at 4:3) and then render them using Destination DVD with a format of NTSC 4:3 VOB. Then I use DVD Styler to create the menus and chapters. Since the clips are already in VOB format, DVD Styler doesn't have to transcode them again.

When I play the DVDs on my widescreen TV from my Panasonic DVR, they are automatically displayed correctly in 4:3 format. I thought I might have to manually adjust the settings on the TV to get them to display that way, but I didn't. I don't know if that's a function of my TV and that others may behave differently or not. Like I said, I don't really understand all this stuff. I was just pleasantly surprised that it worked for me without having to do anything special.

I'm using Kdenlive 0.7.8 and DVD Styler 1.8.0.2. This version of DVD Styler does actually have a problem displaying the menus in the correct aspect ratio. Even if you tell it you want 4:3, it creates them as 16:9 so they get scrunched when displayed on the TV. But it apparently handles the actual video okay.
eriksl
Registered Member
Posts
32
Karma
0

Re: Aspect Ratio Correction

Sun Feb 20, 2011 10:27 am
(regarding the ffmpeg command line post)

This is wrong as it recodes the clip, which is not necessary. Also when encoding using ffmpeg you really should supply some basic parameters like codec, quality/bit rate or be prepared for total lack of quality.
eriksl
Registered Member
Posts
32
Karma
0

Re: Aspect Ratio Correction

Sun Feb 20, 2011 10:31 am
(Regarding "automatic" showing correct aspect ratio by TV or STB)

The video stream does contain the aspect ratio. If the complete signal path is digital and the video stream remains untouched, the final component (either TV or STB) is able to retrieve the actual aspect ratio and display it correctly. That is different from analogue video where the receiver more or less has to guess the aspect ratio (if it missed the WSS pulse, IF that is used anyway).
User avatar
Thailandian
Registered Member
Posts
30
Karma
1
OS

Re: Aspect Ratio Correction

Sun Feb 20, 2011 4:25 pm
I suspect the problem thulu reports may be to do with the DVD authoring application. I have come across this problem myself, but I cannot remember exactly which application I was using to author the DVDs at the time.

There are actually two fields that contain the aspect ratio - one in the VOB header and one in the main DVD header. And there is at least one DVD authoring application out there that sets the incorrect aspect ratio in the DVD header.

Unfortunately, most commercial DVD players ignore the aspect in the VOB header, and take it from the DVD header. So, DVDs will play back with correct 4:3 aspect on your computer, but stretch to 16:9 when played on a stand-alone DVD player.

There are probably better ways to solve this problem, but I saved the DVD as an .iso image on my hard drive, edited the aspect fields manually with a program called ISOEdit, and re-burnt the image.

Hope this helps.
eriksl
Registered Member
Posts
32
Karma
0

Re: Aspect Ratio Correction

Mon Feb 21, 2011 10:24 pm
Yes, you could do either that, or recode and then do it properly, that means, using an up to date video codec (like h264) in high quality mode, so then at least you'll have the advantage of (a lot!) extra compression at the same quality. Of course only do that at the final step, if you're doing multiple steps.


Bookmarks



Who is online

Registered users: Bing [Bot], blue_bullet, Google [Bot], Yahoo [Bot]