Skip to main content

Wrong aspect ratio

10 posts / 0 new
Last post
pit
Offline
Joined: 05/05/2010
Posts:
Wrong aspect ratio

I took some clips with my JVC Hard Disk Drive Everio (SD). It produces mpg files. When I play this files with ffplay, I got this output:

Input #0, mpeg, from '05-1F-JVC.mpg':
Duration: 00:00:01.88, start: 0.239456, bitrate: 10074 kb/s
Stream #0.0[0x1e0]: Video: mpeg2video, yuv420p, 720x576 [PAR 16:15 DAR 4:3], 9200 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc
Stream #0.1[0x80]: Audio: ac3, 48000 Hz, stereo, s16, 384 kb/s
[mpeg2video @ 0x8477c30]warning: first frame is no keyframe

In fact it is 16:9, playing it e.g. with vlc shows the right aspect ratio.

In kdenlive I checked out different project settins (like DV/DVD Widescreen PAL). But dragging one clip into the timeline shows 4:3 output in the project monitor.

I created a new project profile and played around with DAR and PAR. Finaly I got some good results with size 720x576, PAR 40:37 and DAR 16:9. With this settings the project monitor showed up some kind of full screen 16:9 material.

But rendering it (I checked out nearly every possibility, not only PAL 16:9 VOB) again produced the wrong aspect ratio (black bars on both sides).

I do not want to do another resampling (for example with avidemux) because of quality reasons. There should be another solution to do the whole job in kdenlive. but how to do so?

If sb would like to check it out with one of my camera clips - feel free: http://rapidshare.com/files/383886111/05-1F-JVC.mpg.html

pit

0
Your rating: None
briguy
Offline
Joined: 02/23/2009
Posts:
Re: Wrong aspect ratio

In the clips window, right click and select "Properties". Tick the box for "Force Aspect Ratio" and adjust accordingly. I had the same problem on a Samsung camera, I calculated a 1.18 correction which works perfectly.

Excuse me if some of the directions aren't 100% correct, I'm working from memory ;)

pit
Offline
Joined: 05/05/2010
Posts:
Re: Wrong aspect ratio

Yeah, thanks a lot! I had to choose a correction of 1,42. This did the trick.

Before knowing this I converted everything with ffmpeg:

for i in *.mpg; do ffmpeg -i $i -s 720x406 -aspect 16:9 -vcodec libxvid -b 10000k ../Filmclips-avi/$i.avi;done

what a waste of time ...

Dets
Offline
Joined: 05/06/2010
Posts:
Re: Wrong aspect ratio

Hi Pit,

I own a JVC Everio too, and I figured out that the aspect ratio flag in the .MOD-file isn't set. So I wrote a small commandline-tool for Linux which simply switches the flag without doing any resampling. You can download it at:

http://www.castelli-group.net/useful/modder

usage: # ./modder FILENAME
or type # ./modder -? to see all options

greetz, Dets ...

pit
Offline
Joined: 05/05/2010
Posts:
Re: Wrong aspect ratio

@dets
Wow, this is cool. I'm gonna check it out as soon as possible, that's for sure!
thx!

edit:
It worked like a charm. one question: with everio one can choose whether to use 16:9 or 4:3. does your program check this before modifying the file?

Dets
Offline
Joined: 05/06/2010
Posts:
Re: Wrong aspect ratio

@Pit:
nice to hear!

I'm sorry that my prog can't detect the aspect ratio of the file. The reason is, that the aspect ratio is stored in the MOI-File instead of the MOD-file and I didn't find out where actually.
Do you copy the MOI-files onto your PC too? I didn't because I thought they were useless. But maybe I should change my opinion ...

greetz, Dets ...

pit
Offline
Joined: 05/05/2010
Posts:
Re: Wrong aspect ratio

@Dets
I tried to use both moi and mod files within the kdenlive project. Doesn't look like kdenlive cares about those moi files. I treated my 16:9 source files with yout tool and within kdenlive everything was fine.
thanks again,
pit

Dets
Offline
Joined: 05/06/2010
Posts:
Re: Wrong aspect ratio

I added some stuff in "modder" which puts it to version 0.0.2.0:

- now it reads the MOI-file, displays known information from this file and corrects the aspect ratio according to the MOI file
- it reads the date/time information from the MOI file and writes it into the MPG file, so that the files keep their chronological order

you can download "modder" under http://www.castelli-group.net/useful/modder

greetz, Dets ...

qman_txun
Offline
Joined: 12/31/2008
Posts:
Re: Wrong aspect ratio

Hi guys, I have just few problems to solved; my video camera is a Sony Handycam HDR-XR550V, when I plug it directly to the TV it goes full screen the images, I edit a little video clip with Pinnacle and by selecting one of this settings HD 1440 * 1080 60i or HD 1920 * 1080 60i it went full screen, I don't know what settings i need to choose in kdenlive to give me the option to go full screen on tv. Any suggestion about rendering video, plus kdenlive crashes a lot, specially when I put some transitions and effects.

ttill
Offline
Joined: 10/14/2009
Posts:
Re: Wrong aspect ratio

For the project profile choose "HD 1080i 30fps" and render with a high bitrate.