Bug 370326 - Using proxy renders with wrong aspect ratio
Summary: Using proxy renders with wrong aspect ratio
Status: RESOLVED FIXED
Alias: None
Product: kdenlive
Classification: Applications
Component: Video Display & Export (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR major
Target Milestone: ---
Assignee: Jean-Baptiste Mardelle
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-10-09 04:11 UTC by farid
Modified: 2016-10-10 15:59 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Project file (19.20 KB, application/x-kdenlive)
2016-10-10 13:20 UTC, farid
Details

Note You need to log in before you can comment on or make changes to this bug.
Description farid 2016-10-09 04:11:34 UTC
I just tried to render a test based on this report from the forum:

https://forum.kde.org/viewtopic.php?f=265&t=136647&p=365376#p365376

If you activate proxy on 16:9 footage and then render, the result which should be 16:9 is maintaining the 4:3 aspect ratio of the proxy.

I am using today's compiled sources.

Would be good to fix before 16.08.2 release.



Reproducible: Always

Steps to Reproduce:
1. Add a file and create a proxy of it.
2. Add it to the timeline. 
3. Render the project.
Comment 1 Wegwerf 2016-10-09 17:40:35 UTC
I know that this has been an issue for some time. As I just tested it on my system using recent git master, I cannot reproduce it anymore. Strange.

My proxy profile "MPEG" says this:
-s 640x480 -g 5 -qscale 6 -ab 128k -vcodec mpeg2video -acodec mp2

Which looks like 4:3, but upon enabling the proxy, it correcty shows in 16:9 ... can you please make sure you don't have any stale proxies laying around by purging them in your project?
Comment 2 Wegwerf 2016-10-09 17:42:07 UTC
Farid, are you on git master or on Applications/16.08? I tested using git master.
Comment 3 farid 2016-10-09 21:48:43 UTC
(In reply to Wegwerf from comment #2)
> Farid, are you on git master or on Applications/16.08? I tested using git
> master.

I am using version 16.11.70, which is git master. 

(In reply to Wegwerf from comment #1)
> I know that this has been an issue for some time. As I just tested it on my
> system using recent git master, I cannot reproduce it anymore. Strange.
> 
> My proxy profile "MPEG" says this:
> -s 640x480 -g 5 -qscale 6 -ab 128k -vcodec mpeg2video -acodec mp2
> 
mine is exactly the same.

> Which looks like 4:3, but upon enabling the proxy, it correcty shows in 16:9
> ... can you please make sure you don't have any stale proxies laying around
> by purging them in your project?

I have tried using both profiles and both have this issue. I tested using new files.
Comment 4 Jean-Baptiste Mardelle 2016-10-10 11:10:25 UTC
I cannot reproduce. Can you please attach a project file that produces this problem?
Comment 5 farid 2016-10-10 13:20:33 UTC
Created attachment 101507 [details]
Project file
Comment 6 farid 2016-10-10 13:30:06 UTC
here is the rendered result:
https://dl.dropboxusercontent.com/u/9927491/render.mp4

here is the original file:
https://dl.dropboxusercontent.com/u/9927491/MVI_6377.MOV

thanks JB
Comment 7 Jean-Baptiste Mardelle 2016-10-10 15:24:38 UTC
Git commit e2ccb6684d909cf5ebdb0508fa15e4c101dc13b4 by Jean-Baptiste Mardelle.
Committed on 10/10/2016 at 15:22.
Pushed by mardelle into branch 'Applications/16.08'.

Fix proxy profiles to keep aspect ratio

M  +2    -2    data/encodingprofiles.rc

http://commits.kde.org/kdenlive/e2ccb6684d909cf5ebdb0508fa15e4c101dc13b4
Comment 8 farid 2016-10-10 15:30:52 UTC
thanks jb! :)
Comment 9 Jean-Baptiste Mardelle 2016-10-10 15:59:52 UTC
The issue was produced in some cases when the video file reported an incorrect aspect ratio. 
This can be fixed by changing the proxy profile like this:
replace this part "-s 640x480" with: "-vf scale=640:-1"
This tells ffmpeg to keep aspect ratio