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

[SOLVED] Vertical striations and cuttoff when rendering NTSC

Tags: None
(comma "," separated)
jstroik
Registered Member
Posts
10
Karma
0

Hey all,



I'm running KDENLive r1919 compiled from svn. I also installed recent MLT and MLT++ from svn. ffmpeg is also compiled/installed from SVN.



I have some video that I know is good -- it's mencoded to MPEG2 from AVCHD. The video plays perfectly in all of the players where I've tested it, but when I render the video using kdenlive the video is slightly narrow with black bars a few pixels wide on the left and right side. The video has vertical striations.



Here is a five second portion of each video without sound. They're not identical time lines, but close enough for comparisons' sake.



[edit] Removed video [/edit]



I suspect an issue with MLT. I set my rendering target to dv_ntsc_wide. It comes out the proper width, but the issue isn't with that rendering line or choice, as I see the problems (striations and width issue) when rendering in the preview frame.



Thanks for your help!



jstroik
Registered Member
Posts
10
Karma
0

The problem is due to MLT/inigo profiles being misconfigured. It's probably my own fault, but I'm trying to use NTSC wide DVD standard video -- aspect ratio 16/9, 720x480 which I foolishly assumed was a 1.0 pixel ratio. When I looked at the dv_ntsc_wide profile (/usr/share/mlt/profiles/dv_ntsc_wide), it had the following:


description=DV NTSC Widescreen
frame_rate_num=30000
frame_rate_den=1001
width=720
height=480
progressive=0
sample_aspect_num=40
sample_aspect_den=33
display_aspect_num=16
display_aspect_den=9


When I changed it to:


description=DV NTSC Widescreen
frame_rate_num=30000
frame_rate_den=1001
width=720
height=480
progressive=0
sample_aspect_num=32
sample_aspect_den=27
display_aspect_num=16
display_aspect_den=9


After doing the math, I realized that my assumption that resolution 720x480 was a 16/9 ratio is obviously incorrect -- it's a 3/2 ratio. This means we need to apply a sample ratio before we can output to 16/9. In order to do that, we need to divide 16/9 by 3/2 = 32/27. This should result in a good encode, although I'm only guessing as to what I'm supposed to be doing.

Unless I"m doing something stupid here -- and if I am please point it out -- I think this profile needs to be updated with the MLT distribution.





Bookmarks



Who is online

Registered users: Bing [Bot], gfielding, Google [Bot], Sogou [Bot]