Bug 351381 - 16.08.0: no timeline preview for 60fps FullHD project
Summary: 16.08.0: no timeline preview for 60fps FullHD project
Status: RESOLVED FIXED
Alias: None
Product: kdenlive
Classification: Applications
Component: Effects & Transitions (show other bugs)
Version: unspecified
Platform: Kubuntu Linux
: NOR grave
Target Milestone: ---
Assignee: Vincent PINON
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-08-17 03:11 UTC by h.k.ghost
Modified: 2016-12-06 07:08 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description h.k.ghost 2015-08-17 03:11:30 UTC
I'm using kdenlive v15.04.1, based on KDE Frameworks 5.12.0.

Normally, the project monitor will show a nice preview of what you've done so far in the time line to get a WYSIWYG (what-you-see-is-what-you-get) type of work-flow without having to render the final product, which is very time-consuming. When using transitions, the performance becomes abysmally slow, to the point where it cannot be used in a meaningful way. For example, it becomes impossible to properly sync clips with audio, among other things.

I'm forced to render a zone to see the final result to actually determine if I have things as they should or if I need to back and work on it some more. In addition to this, the work is reduced to guess-work and re-rendering to see if it's ok *this* time. This quickly becomes frustrating and barely usable.

Note that this only affects clips that have transitions in them, not all clips in the project. It does not seem to be specific to a transition type, but I've not tried that many.

I added 2 clips, one on top of the other in the time line with a transition and some effects (details below) in order to simulate as if two cameras are looking at the same scene from different angles simultaneously. This is similar to what you would see in a video where a side-by-side comparison of different graphics settings in video games is shown (e.g. low settings vs high settings, etc).

I spent some time searching to see if I was doing something wrong, or if there were some settings I had missed, or something else, but instead what I found seemed to be people acknowledging the fact that this is how kdenlive is performing. Some have suggested "hacks" and/or workarounds, like creating multiple separate projects to be rendered independently and then some sort of 'master' project to combine the parts. I don't think that  a good way to handle any project, and in this particular case, it would make no difference at all.

The time-line looks like as shown below. I'm obviously not an expert, but the time-line was created like this based on several tutorials I read online from individuals who're supposed to know how to use this quite well:

|......[ video-clip 1 ].........|
|......[ cairoaffineblend ].....|
|......[ video-clip 2 ].........|

The effects stack for video-clip 1 looks like this:
   Fade to Black
   Fade from Black
   Crop, Scale, and Position
   Mask0Mate
   Speed

The effects stack for video-clip 2 looks like this:
   Fade to Black
   Fade from Black
   Mask0Mate
   Crop, Scale, and Position


Reproducible: Always

Steps to Reproduce:
1. Create new project
2. Add at least 2 clips to the time-line as shown in the above diagram
3. Add a transition between the 2 clips
4. Position the clips to allow both of them to be viewed side-by-side
5. Attempt to use the project monitor to watch a preview of the work

Actual Results:  
The monitor is unable to properly show the preview, causing the FPS to drop to ~1 and the audio to not play properly. It's like trying to watch a movie with the FPS of an Impress slide set presentation.

Expected Results:  
The monitor should preview the clip at a usable FPS without suddenly acting as if it's "too much" work for the computer.

Hardware specs:

CPU: Intel Core i7 CPU 950 @ 3.07GHz × 8 
Memory: 12 GiB
Graphics: GeForce GTX 770  (driver 346.59)
System: Kubuntu 15.04 64-bit
Comment 1 h.k.ghost 2016-03-07 06:02:49 UTC
Is someone in particular supposed to look at this and/or follow up?
Comment 2 Vincent PINON 2016-03-07 20:25:18 UTC
Hello,

I'm the happy assignee of this bug ;)

speed effect is not so trivial, especially with large GOP sources, and alpha compositions can be quite slow either.
(check if it is also slow when running "melt yourproject.kdenlive")
For slow effects previewing at normal speed, I use a quick render profile to export that zone.

I also see your post dates back from 15.04 times, improvements have been done since then, in both Kdenlive (currently 15.12.2) and MLT (6.0.0), regarding multithreading (and GPU offloading, but sometimes unstable).

Maybe you could also try reverting to the default settings by renaming your ~/.config/kdenliverc.
Comment 3 h.k.ghost 2016-03-08 04:03:05 UTC
Hi Vincent,

Happy to hear back from you. I realize that this is not a trivial thing. That being said, I'm not sure there has been any activity focusing on this particular issue since I first reported it almost 6 months ago -at least not in this thread. It's even marked as 'unconfirmed' :/ Is there something I can do to help you verify/confirm this in addition to what I've already mentioned in the original post?

I'm currently using:
  Kubuntu 15.10 (64-bit)
  Kdenlive 15.08.1
  KDE Framework 5.18.0
  Qt 5.5.1

I just tested again as I write this to see if there was any noticeable difference, but it's still as unusable as when I first reported. As noted, the performance issue is in the preview offered by the Project Monitor. I then tried the melt <projectfile>.kdenlive command, and observed the same behavior.

The melt -version command shows "melt 0.9.8". I know there's a 1.0 release (i.e. labelled v6.0 to match the C library), but the updated package(s) don't appear to be available in the repository yet. (Asking regular users to build from source wouldn't exactly be user-friendly, either.)

I had actually tried rendering the zone at first as a workaround, but I found that is not really practical/sustainable, especially when I need to spend a few minutes trying to see if very small video/audio track adjustments worked as intended. (Those kinds of changes that you need instant feedback to compare, trying to sync to the millisecond.)

The problem is that the Project Monitor simply drops to 1 FPS or less, so it defeats its intended purpose.

I don't even have a bunch of effects stacked on top of each other at once, but I can imagine more pro-level users needing something at that level to work properly for them, too.

If something this "basic" doesn't work for me, I wouldn't be surprised if others simply avoid investing more time in learning/using the tool.

Please let me know if I can help you out somehow.
Comment 4 h.k.ghost 2016-03-08 04:18:26 UTC
> Maybe you could also try reverting to the default settings by renaming your
> ~/.config/kdenliverc.

I also tried resetting the configuration, which makes you go through the wizard again, but I observed no difference. The issue still persists.
Comment 5 Wegwerf 2016-08-07 16:43:30 UTC
Hkghost, can you please give the new beta 16.07.90 a test drive? It got timeline preview rendering where you can prerender regions of your timeline. See here: https://thediveo-e.blogspot.de/2016/05/kdenlive-preview-rendering-odds-and-ends.html
Comment 6 h.k.ghost 2016-08-09 08:18:37 UTC
(In reply to Wegwerf from comment #5)
> Hkghost, can you please give the new beta 16.07.90 a test drive? It got
> timeline preview rendering where you can prerender regions of your timeline.
> See here:
> https://thediveo-e.blogspot.de/2016/05/kdenlive-preview-rendering-odds-and-
> ends.html

Wegwerf, the feature sounds nice, so I'd like to give it a try and see what feedback I can provide. Is there a way to install it from a repository or something (e.g. apt-get install ...)? I hope I don't have to build from source or something? Which of the PPA(s) in this page (https://kdenlive.org/download-ubuntu) do I need to look at? I'm assuming its the kdenlive-testing repo?
Comment 7 Wegwerf 2016-08-09 14:47:41 UTC
The new features are in the beta branch (which is rougly the same as the master branch at this time.
Comment 8 h.k.ghost 2016-08-13 04:28:39 UTC
(In reply to Wegwerf from comment #7)
> The new features are in the beta branch (which is rougly the same as the
> master branch at this time.

I'll take a look. Is this easily un-doable, as in remove the repo later and then down-grade back to the stable version? Any suggestion(s) before I potentially mess up my current install?
Comment 9 Wegwerf 2016-08-13 06:45:06 UTC
To the best of my understanding it should be undoable, but you should  not save any loaded project: saving would upgrade the document version of a project, so it could not be loaded in an older Kdenlive release.
Comment 10 Wegwerf 2016-08-13 06:48:51 UTC
From a personal experience I would strongly suggest to upgrade your system to Ubuntu 16.04. I had quite some issues with 15.08, especially some late updates broke my AMD graphics card setup. The upgrade to 16.04 was flawless and gave me painless graphics support back.
Comment 11 h.k.ghost 2016-08-13 07:57:05 UTC
(In reply to Wegwerf from comment #10)
> From a personal experience I would strongly suggest to upgrade your system
> to Ubuntu 16.04. I had quite some issues with 15.08, especially some late
> updates broke my AMD graphics card setup. The upgrade to 16.04 was flawless
> and gave me painless graphics support back.

Thanks. I already have 16.04 LTS installed. The problem I ran into was related to the nvidia graphics driver, but that's off-topic. I'll see if I can take a look during the weekend.
Comment 12 h.k.ghost 2016-08-15 06:26:19 UTC
(In reply to Wegwerf from comment #5)
> Hkghost, can you please give the new beta 16.07.90 a test drive? It got
> timeline preview rendering where you can prerender regions of your timeline.
> See here:
> https://thediveo-e.blogspot.de/2016/05/kdenlive-preview-rendering-odds-and-
> ends.html

So I added the kdenlive-master PPA and installed Kdenlive, which got me beta version 16.11.70. 

The time-line controls did absolutely nothing for me. Clicking the time-line options to "add preview zone" seemed to have no behavior bound to them and/or no visible feedback that it actually did anything. I couldn't define a preview zone while trying to mark areas in the time-line or anything. The steps in the page weren't that involved, so it looks like kdenlive has other problems.

Also, when trying to find the time-line preview profiles under Settings >> Configure kdenlive, I found the preview profiles option is not even available/visible in the GUI for me.

In the demo video, the user simply clicks on "add preview zone" and it looks like it was already there, although it does not show how to actually create the preview zone. The page made it look really straightforward and simple, so it doesn't look like I misunderstood. If you think I did, please clarify and provide a more up-to-date reference, since the GUI in the demo video and my version are not identical.

Thanks.
Comment 13 Wegwerf 2016-08-15 18:40:58 UTC
The testing ppa would be better suited, but master is within one commit behind testing. Blog post and video are of an earlier development versions, with some usability optimizations having landed only afterwards.

Anyway, did you start with a fresh project or did you load an existing project?

Usually, unless disable preview is set in the timeline preview menu in the timeline toolbar, then adding the current timeline selection/region should result in a red bar appearing in the timeline. 

You should find a preview profile both (!) in the project settings for your current project, as well as in the configuration dialog. They look a little bit different from the early dev versions. However, if you don't see them, are you sure the update after adding the ppa did correctly update your installation?
Comment 14 h.k.ghost 2016-08-15 23:27:54 UTC
(In reply to Wegwerf from comment #13)
> The testing ppa would be better suited, but master is within one commit
> behind testing. Blog post and video are of an earlier development versions,
> with some usability optimizations having landed only afterwards.

I used the master ppa because, when I asked about it, you suggested I use that one, saying

> The new features are in the beta branch (which is rougly the same as the master branch
> at his time.

I'll try the testing one soon and hope your info is accurate this time, as I spent quite a bit trying to make this work yesterday...


> Anyway, did you start with a fresh project or did you load an existing
> project?

Started a new project.

> Usually, unless disable preview is set in the timeline preview menu in the
> timeline toolbar

The disable preview option was not set. I did play around with that, too.

> then adding the current timeline selection/region should
> result in a red bar appearing in the timeline. 

But it didn't. I'll remove the master repo, add the testing one, and see if I got accurate info this time.

> You should find a preview profile both (!) in the project settings for your
> current project, as well as in the configuration dialog. They look a little
> bit different from the early dev versions.

We'll see.

> However, if you don't see them, are you sure the update after adding the ppa did correctly
> update your installation?

Kdenlive had a visible message on the lower left stating that it was a beta version, so it definitely worked. I also specified the version number in my previous post, which I thought would answer this question from the outset. Wondering whether apt-get update/install/etc is suddenly not working seems like an odd thing to suggest.

I'll post again after I've tried this again.
Comment 15 h.k.ghost 2016-08-16 02:29:54 UTC
I changed the repos and replaced kdenlive as follows:

1. uninstalled kdenlive
2. removed the kdenlive-master PPA
3. apt-get update
4. add the kdenlive-testing PPA
5. apt-get update
6. apt-get install kdenlive

Checked the installed version and it was down to 16.08.0... which looks like it's behind the kdenlive-master PPA. I had the same (lack of) timeline behavior I reported above. If this behavior is really there, I think kdenlive's feedback to the user about that being there and working should be made significantly more visible/obvious, because I just don't see it. To the best of my knowledge, there's no behavior bound to the timeline preview options. (And it's also not in the timeline settings option).

Any ideas of what you think I might be doing wrong here? Are you really sure the info you have on which repository I should be using, and the content in them, is accurate and correct? This is looking like strike 2.. :/
Comment 16 Wegwerf 2016-08-16 06:41:57 UTC
16.08.0 is fine, I just checked the git repo checkins. This is the beta that is now also the new stable 16.08 in a few days. The timeline preview function is in both master and beta/testing branches. Yes, I'm sure as I have it running on my system. As you got the beta warning messge this is a clear indicated that the install went through as desired.

So let's try to drill down; what is the standard profile you set for new projects? That is, frame resolution and frames/s, progressive or interlaced?
Comment 17 h.k.ghost 2016-08-16 07:11:28 UTC
(In reply to Wegwerf from comment #16)
> 16.08.0 is fine, I just checked the git repo checkins. This is the beta that
> is now also the new stable 16.08 in a few days. The timeline preview
> function is in both master and beta/testing branches. Yes, I'm sure as I
> have it running on my system. As you got the beta warning messge this is a
> clear indicated that the install went through as desired.

Just to clarify, the beta warning only showed up when I installed from the kdenlive-master PPA. When I switched to the kdenlive-testing PPA, the beta message was gone.

> So let's try to drill down; what is the standard profile you set for new
> projects? That is, frame resolution and frames/s, progressive or interlaced?

Project Profile info, from Settings >> Configure >> Project Defaults

1. Resolution: "Full HD 1080"
2. Frame rate: 60
3. Display aspect ratio: 16:9
4. Scanning: Progressive  ("Interlaced" check-box is unchecked; I can't actually check the box)
5. Sample Ratio: 1:1
6. Color Space: "ITU-R 709"  (only option in the dropdown menu)
7. Timeline preview: "Automatic"  (seems to be a preview quality setting)
Comment 18 Wegwerf 2016-08-16 07:44:00 UTC
Ahh, this helps a lot and I was able to reproduce, coming up with a workaround! So the problem is that the 60fps project setting. For some reason, Auto doesn't work here. I'm thus reopening this bug for Jean-Baptiste and update the title accordingly.

Alas, here's the workaround:
1. Project -> Project Settings
2. Click "Manage timeline preview profiles"
3. Click on "DNxHD 1080p 30fps"
4. Click on "+" to create a new preview profile.
5. Edit  name to "DNxHD 1080p 60fps" and update parameters to 60 fps; this is the r parameter: "r=60 s=1920x1080 vb=45M threads=0 vcodec=dnxhd"
6. Save
7. Close
8. Now change preview profile to new "DNxHD 1080p 60fps"
9. Add preview zone.
10. Start preview render.
11. Enjoy -- hopefully ;)
Comment 19 Wegwerf 2016-08-16 07:45:13 UTC
BTW: for a single clip that gives me 60fps instead of 18fps.
Comment 20 Vincent PINON 2016-08-20 20:02:28 UTC
Git commit 0dd5affc77b59dc962a789813e11bb41c21a64b9 by Vincent Pinon.
Committed on 20/08/2016 at 19:33.
Pushed by vpinon into branch 'Applications/16.08'.

Add 50 & 60fps transcoding profiles

M  +3    -0    data/encodingprofiles.rc

http://commits.kde.org/kdenlive/0dd5affc77b59dc962a789813e11bb41c21a64b9
Comment 21 Wegwerf 2016-08-21 06:55:38 UTC
Vincent, thank you for adding these profiles! Seems as if ghosts have no thanks...?
Comment 22 h.k.ghost 2016-08-21 07:48:04 UTC
(In reply to Wegwerf from comment #21)
> Vincent, thank you for adding these profiles! Seems as if ghosts have no
> thanks...?

Sorry, I have not tried your last set of steps yet. That's why I have not posted before, not because I'm "ungrateful"... :/
Comment 23 h.k.ghost 2016-12-06 07:08:16 UTC
(In reply to Wegwerf from comment #21)
> Vincent, thank you for adding these profiles! Seems as if ghosts have no
> thanks...?

I have (finally) returned with some results. (Sorry I took so long. I had other things to take care of and did not try to edit any videos until this past weekend.)

I'm using version v17.03.70 on
 * KDE Frameworks 5.26.0
 * Qt 5.6.1 (built against 5.6.1)
 * The xcb windowing system

I tried the preview render option with the preview profile and, while it still needs time and processing power to do that, it's still an improvement, since I don't need to keep rendering independent sections and trying to see them outside without the timing data. It's far from ideal, but it's still more usable than the previous alternative, and therefore, gets my thumbs up.

Although I'm not a pro at editing by any stretch, I'm looking forward to additional performance improvements that will (hopefully) remove the need to rely on preview-rendering entirely (e.g. GPU-based stuff going stable and working very well).

Best Regards.