Registered Member
|
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!" |
Registered Member
|
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 |
Registered Member
|
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
|
Registered Member
|
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.
|
Registered Member
|
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. |
Registered Member
|
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. |
Registered Member
|
(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. |
Registered Member
|
(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). |
Registered Member
|
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. |
Registered Member
|
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.
|
Registered users: Bing [Bot], blue_bullet, Google [Bot], Yahoo [Bot]