Bug 364106 - git master - Preview render not working & Adding preview zone makes in-out zone area real small
Summary: git master - Preview render not working & Adding preview zone makes in-out zo...
Status: RESOLVED FIXED
Alias: None
Product: kdenlive
Classification: Applications
Component: User Interface (show other bugs)
Version: unspecified
Platform: Mint (Ubuntu based) Linux
: NOR normal
Target Milestone: ---
Assignee: Jean-Baptiste Mardelle
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-06-08 16:33 UTC by Unknown
Modified: 2016-07-14 22:55 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Screenshot example (469.11 KB, image/png)
2016-06-15 18:58 UTC, Unknown
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Unknown 2016-06-08 16:33:28 UTC
I tried to use the new preview render feature, but when I started it, this error showed up at the bottom: "Rendering preview failed, check your parameters".

Also, adding a preview zone in timeline makes the zone selection bar really thin. Unsetting the preview zone also keeps it at this size.

Running from Terminal produces this:

+++++++++
++ ERROR  ++
++++++
"Preview rendering failed, check your parameters"
WARNING: bool Phonon::FactoryPrivate::createBackend() phonon backend plugin could not be loaded
WARNING: Phonon::createPath: Cannot connect  Phonon::MediaObject ( no objectName ) to  Phonon::AudioOutput ( no objectName ).
WARNING: bool Phonon::FactoryPrivate::createBackend() phonon backend plugin could not be loaded
WARNING: bool Phonon::FactoryPrivate::createBackend() phonon backend plugin could not be loaded


Reproducible: Always

Steps to Reproduce:
1. Add preview zone in timeline
2. Start preview render

Actual Results:  
(1) Preview Render doesn't work, but instead gives the error specified in Bug Details.
(2) Zone selection portion of timeline gets really thin.
(3) Start Preview Render icon doesn't switch back to normal when unsetting preview render zone. It stays on the icon with the red progress bar. The zone preview portion of timeline doesn't return to normal size.

Expected Results:  
(1) Preview Render feature to work as expected.
(2) Zone selection tool in timeline not be reduced in height.
(3) Start Preview Icon returns to normal when Preview render is done or when user un-sets the preview render zone.

Bug discovered on Kdenlive 16.07.70 via ppa:kdenlive/kdenlive-master ppa. 
KDE Frameworks 5.18.0
Qt 5.5.1 (built against 5.5.1)
The xcb windowing system

Ubuntu GNOME 16.04 x64, GNOME 3.18.
Comment 1 Jean-Baptiste Mardelle 2016-06-08 21:49:57 UTC
A few questions: 
* What project profile are you using when you see that error in timeline preview (I am especially interested in fps for the profile)
* Can you tell me which preview rendering profile is selected (in Project > Project Settings > Preview Profile
* Can you attach a screenshot showing the timeline ruler with thin selection zone ?
Comment 2 Unknown 2016-06-15 18:58:06 UTC
Sorry JB. I wasn't cc'd in the bug, so I didn't get any email updates that you replied. I'll do a better job at checking in on these.

1. Project profile is 1920x1080p, 24fps.
2. Preview profile is set to "Auto". I tired switching it just now to "DNxHD 1080p 24fps", but it didn't fix. Same thing.
3. Of course! Attaching now.
Comment 3 Unknown 2016-06-15 18:58:30 UTC
Created attachment 99522 [details]
Screenshot example
Comment 4 Unknown 2016-06-15 19:02:46 UTC
Oh fascinating. Setting the Project and preview settings to 1080p at 25fps makes the preview render work fine. Possibly only an issue with 24fps?
Comment 5 Jean-Baptiste Mardelle 2016-06-15 21:03:21 UTC
Git commit 6713cbd10a0c6d4d9dcf12176e718362168dd5d2 by Jean-Baptiste Mardelle.
Committed on 15/06/2016 at 21:03.
Pushed by mardelle into branch 'master'.

Fix zone height on HiDPI

M  +12   -13   src/timeline/customruler.cpp

http://commits.kde.org/kdenlive/6713cbd10a0c6d4d9dcf12176e718362168dd5d2
Comment 6 Jean-Baptiste Mardelle 2016-06-15 21:49:53 UTC
Git commit 3578ebcccf31b843506def4745d2307a702c06b8 by Jean-Baptiste Mardelle.
Committed on 15/06/2016 at 21:49.
Pushed by mardelle into branch 'master'.

Fix timeline preview rendering on 24fps projects
Ref: T1949

M  +4    -4    data/encodingprofiles.rc
M  +1    -1    src/mainwindow.cpp
M  +8    -1    src/timeline/managers/previewmanager.cpp

http://commits.kde.org/kdenlive/3578ebcccf31b843506def4745d2307a702c06b8
Comment 7 Unknown 2016-06-17 22:35:26 UTC
24fps now works, thanks JB! However, tested with 23.98fps just for the heck of it, and it also gets both issues mentioned in the original post.

I think if it can work in 23.98fps, then this bug will be fixed!
Comment 8 Unknown 2016-06-22 14:17:31 UTC
Issue is also present when trying to perform preview render with 720p, 24fps video. It doesn't look like the preview profile automatically changes to a 720p one. In fact, it doesn't look like it has a profile at all for it?
Comment 9 Jean-Baptiste Mardelle 2016-06-23 22:40:46 UTC
Git commit 94bd2ac37c17183f2ef619d2d4bd0c5585080bb9 by Jean-Baptiste Mardelle.
Committed on 23/06/2016 at 22:40.
Pushed by mardelle into branch 'master'.

Fix timeline preview encoding parameter detection

M  +5    -5    data/encodingprofiles.rc
M  +11   -12   src/doc/kdenlivedoc.cpp
M  +3    -2    src/effectstack/effectstackview2.cpp
M  +2    -0    src/timeline/timeline.cpp

http://commits.kde.org/kdenlive/94bd2ac37c17183f2ef619d2d4bd0c5585080bb9
Comment 10 Jean-Baptiste Mardelle 2016-06-23 22:42:57 UTC
Should be fixed now. For HD 1920x1080 projects it will use the DNxHD profiles, and default to MJPEG if no matching frames size / fps is found. When trying on an existing project you might need to change the timeline preview profile (in project settings), MJPEG should work on all profiles
Comment 11 Unknown 2016-06-27 04:09:25 UTC
Thanks JB. Preview rendering works great! Even on one of my low-end machines it's running perfectly on a variety of profiles. I dropped the importance of the bug down to normal.

The only thing now is the in-out zone slider/area selector in the timeline is still getting vertically squished after a preview render has started. Now, with the recent changes, that it's become a prominent piece of timeline editing it seems that its size and visibility is rather important.
Comment 12 Unknown 2016-06-27 19:15:14 UTC
After using preview render on a project I'm working on, a considerably important suggestion came to mind. I couldn't start the preview rendering, so I went into Project Settings and changed the preview render profile to "Mjpeg". Things worked fine after that.

However, this isn't very helpful for new users. Without knowing where to go to change the settings on the preview render, they'll simply thing the feature doesn't work... and possibly submit future bugs on an issue that isn't really "broken". If Mjpeg is more universally functional, might I consider changing it to that by default? Or finding some way for Kdenlive to automatically detect which profile would work properly for a project?
Comment 13 Jean-Baptiste Mardelle 2016-06-27 20:04:06 UTC
Kdenlive is supposed to detect the best matching profile. It may fail if the profile uses a codec unsupported by your FFmpeg version. Can you check if that is the case ?

In a terminal, type:

ffmpeg -formats | grep dnxhd

If the DNxHD codec is supported, you should see a line like that at the end of the output:

 DE dnxhd           raw DNxHD (SMPTE VC-3)
Comment 14 Unknown 2016-06-27 20:23:15 UTC
Here was the output from the terminal command:

jesse@Legacy ~ $ ffmpeg -formats | grep dnxhd
ffmpeg version 2.8.6-1ubuntu2 Copyright (c) 2000-2016 the FFmpeg developers
  built with gcc 5.3.1 (Ubuntu 5.3.1-11ubuntu1) 20160311
  configuration: --prefix=/usr --extra-version=1ubuntu2 --build-suffix=-ffmpeg --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --cc=cc --cxx=g++ --enable-gpl --enable-shared --disable-stripping --disable-decoder=libopenjpeg --disable-decoder=libschroedinger --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-librtmp --enable-libschroedinger --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxvid --enable-libzvbi --enable-openal --enable-opengl --enable-x11grab --enable-libdc1394 --enable-libiec61883 --enable-libzmq --enable-frei0r --enable-libx264 --enable-libopencv
  WARNING: library configuration mismatch
  avcodec     configuration: --prefix=/usr --extra-version=1ubuntu2 --build-suffix=-ffmpeg --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --cc=cc --cxx=g++ --enable-gpl --enable-shared --disable-stripping --disable-decoder=libopenjpeg --disable-decoder=libschroedinger --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-librtmp --enable-libschroedinger --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxvid --enable-libzvbi --enable-openal --enable-opengl --enable-x11grab --enable-libdc1394 --enable-libiec61883 --enable-libzmq --enable-frei0r --enable-libx264 --enable-libopencv --enable-version3 --disable-doc --disable-programs --disable-avdevice --disable-avfilter --disable-avformat --disable-avresample --disable-postproc --disable-swscale --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libvo_aacenc --enable-libvo_amrwbenc
  libavutil      54. 31.100 / 54. 31.100
  libavcodec     56. 60.100 / 56. 60.100
  libavformat    56. 40.101 / 56. 40.101
  libavdevice    56.  4.100 / 56.  4.100
  libavfilter     5. 40.101 /  5. 40.101
  libavresample   2.  1.  0 /  2.  1.  0
  libswscale      3.  1.101 /  3.  1.101
  libswresample   1.  2.101 /  1.  2.101
  libpostproc    53.  3.100 / 53.  3.100
 DE dnxhd           raw DNxHD (SMPTE VC-3)

When I try to run the preview render, this is the error I get:

No LADSPA plugins were found!

Check your LADSPA_PATH environment variable.
[dnxhd @ 0x7f459000c280] video parameters incompatible with DNxHD. Valid DNxHD profiles:
[dnxhd @ 0x7f459000c280] Frame size: 1920x1080p; bitrate: 175Mbps; pixel format: yuv422p10; framerate: 24000/1001
[dnxhd @ 0x7f459000c280] Frame size: 1920x1080p; bitrate: 185Mbps; pixel format: yuv422p10; framerate: 25/1
[dnxhd @ 0x7f459000c280] Frame size: 1920x1080p; bitrate: 365Mbps; pixel format: yuv422p10; framerate: 50/1
[dnxhd @ 0x7f459000c280] Frame size: 1920x1080p; bitrate: 440Mbps; pixel format: yuv422p10; framerate: 60000/1001
[dnxhd @ 0x7f459000c280] Frame size: 1920x1080p; bitrate: 115Mbps; pixel format: yuv422p; framerate: 24000/1001
[dnxhd @ 0x7f459000c280] Frame size: 1920x1080p; bitrate: 120Mbps; pixel format: yuv422p; framerate: 25/1
[dnxhd @ 0x7f459000c280] Frame size: 1920x1080p; bitrate: 145Mbps; pixel format: yuv422p; framerate: 30000/1001
[dnxhd @ 0x7f459000c280] Frame size: 1920x1080p; bitrate: 240Mbps; pixel format: yuv422p; framerate: 50/1
[dnxhd @ 0x7f459000c280] Frame size: 1920x1080p; bitrate: 290Mbps; pixel format: yuv422p; framerate: 60000/1001
[dnxhd @ 0x7f459000c280] Frame size: 1920x1080p; bitrate: 175Mbps; pixel format: yuv422p; framerate: 24000/1001
[dnxhd @ 0x7f459000c280] Frame size: 1920x1080p; bitrate: 185Mbps; pixel format: yuv422p; framerate: 25/1
[dnxhd @ 0x7f459000c280] Frame size: 1920x1080p; bitrate: 220Mbps; pixel format: yuv422p; framerate: 30000/1001
[dnxhd @ 0x7f459000c280] Frame size: 1920x1080p; bitrate: 365Mbps; pixel format: yuv422p; framerate: 50/1
[dnxhd @ 0x7f459000c280] Frame size: 1920x1080p; bitrate: 440Mbps; pixel format: yuv422p; framerate: 60000/1001
[dnxhd @ 0x7f459000c280] Frame size: 1920x1080i; bitrate: 185Mbps; pixel format: yuv422p10; framerate: 25/1
[dnxhd @ 0x7f459000c280] Frame size: 1920x1080i; bitrate: 220Mbps; pixel format: yuv422p10; framerate: 30000/1001
[dnxhd @ 0x7f459000c280] Frame size: 1920x1080i; bitrate: 120Mbps; pixel format: yuv422p; framerate: 25/1
[dnxhd @ 0x7f459000c280] Frame size: 1920x1080i; bitrate: 145Mbps; pixel format: yuv422p; framerate: 30000/1001
[dnxhd @ 0x7f459000c280] Frame size: 1920x1080i; bitrate: 185Mbps; pixel format: yuv422p; framerate: 25/1
[dnxhd @ 0x7f459000c280] Frame size: 1920x1080i; bitrate: 220Mbps; pixel format: yuv422p; framerate: 30000/1001
[dnxhd @ 0x7f459000c280] Frame size: 1280x720p; bitrate: 90Mbps; pixel format: yuv422p10; framerate: 24000/1001
[dnxhd @ 0x7f459000c280] Frame size: 1280x720p; bitrate: 90Mbps; pixel format: yuv422p10; framerate: 25/1
[dnxhd @ 0x7f459000c280] Frame size: 1280x720p; bitrate: 180Mbps; pixel format: yuv422p10; framerate: 50/1
[dnxhd @ 0x7f459000c280] Frame size: 1280x720p; bitrate: 220Mbps; pixel format: yuv422p10; framerate: 60000/1001
[dnxhd @ 0x7f459000c280] Frame size: 1280x720p; bitrate: 90Mbps; pixel format: yuv422p; framerate: 24000/1001
[dnxhd @ 0x7f459000c280] Frame size: 1280x720p; bitrate: 90Mbps; pixel format: yuv422p; framerate: 25/1
[dnxhd @ 0x7f459000c280] Frame size: 1280x720p; bitrate: 110Mbps; pixel format: yuv422p; framerate: 30000/1001
[dnxhd @ 0x7f459000c280] Frame size: 1280x720p; bitrate: 180Mbps; pixel format: yuv422p; framerate: 50/1
[dnxhd @ 0x7f459000c280] Frame size: 1280x720p; bitrate: 220Mbps; pixel format: yuv422p; framerate: 60000/1001
[dnxhd @ 0x7f459000c280] Frame size: 1280x720p; bitrate: 60Mbps; pixel format: yuv422p; framerate: 24000/1001
[dnxhd @ 0x7f459000c280] Frame size: 1280x720p; bitrate: 60Mbps; pixel format: yuv422p; framerate: 25/1
[dnxhd @ 0x7f459000c280] Frame size: 1280x720p; bitrate: 75Mbps; pixel format: yuv422p; framerate: 30000/1001
[dnxhd @ 0x7f459000c280] Frame size: 1280x720p; bitrate: 120Mbps; pixel format: yuv422p; framerate: 50/1
[dnxhd @ 0x7f459000c280] Frame size: 1280x720p; bitrate: 145Mbps; pixel format: yuv422p; framerate: 60000/1001
[dnxhd @ 0x7f459000c280] Frame size: 1920x1080p; bitrate: 36Mbps; pixel format: yuv422p; framerate: 24000/1001
[dnxhd @ 0x7f459000c280] Frame size: 1920x1080p; bitrate: 36Mbps; pixel format: yuv422p; framerate: 25/1
[dnxhd @ 0x7f459000c280] Frame size: 1920x1080p; bitrate: 45Mbps; pixel format: yuv422p; framerate: 30000/1001
[dnxhd @ 0x7f459000c280] Frame size: 1920x1080p; bitrate: 75Mbps; pixel format: yuv422p; framerate: 50/1
[dnxhd @ 0x7f459000c280] Frame size: 1920x1080p; bitrate: 90Mbps; pixel format: yuv422p; framerate: 60000/1001
[dnxhd @ 0x7f459000c280] Frame size: 1920x1080p; bitrate: 350Mbps; pixel format: yuv422p10; framerate: 24000/1001
[dnxhd @ 0x7f459000c280] Frame size: 1920x1080p; bitrate: 390Mbps; pixel format: yuv422p10; framerate: 25/1
[dnxhd @ 0x7f459000c280] Frame size: 1920x1080p; bitrate: 440Mbps; pixel format: yuv422p10; framerate: 30000/1001
[dnxhd @ 0x7f459000c280] Frame size: 1920x1080p; bitrate: 730Mbps; pixel format: yuv422p10; framerate: 50/1
[dnxhd @ 0x7f459000c280] Frame size: 1920x1080p; bitrate: 880Mbps; pixel format: yuv422p10; framerate: 60000/1001
[dnxhd @ 0x7f459000c280] Frame size: 960x720p; bitrate: 42Mbps; pixel format: yuv422p; framerate: 0/0
[dnxhd @ 0x7f459000c280] Frame size: 960x720p; bitrate: 60Mbps; pixel format: yuv422p; framerate: 0/0
[dnxhd @ 0x7f459000c280] Frame size: 960x720p; bitrate: 75Mbps; pixel format: yuv422p; framerate: 0/0
[dnxhd @ 0x7f459000c280] Frame size: 960x720p; bitrate: 115Mbps; pixel format: yuv422p; framerate: 0/0
[dnxhd @ 0x7f459000c280] Frame size: 1440x1080p; bitrate: 63Mbps; pixel format: yuv422p; framerate: 0/0
[dnxhd @ 0x7f459000c280] Frame size: 1440x1080p; bitrate: 84Mbps; pixel format: yuv422p; framerate: 0/0
[dnxhd @ 0x7f459000c280] Frame size: 1440x1080p; bitrate: 100Mbps; pixel format: yuv422p; framerate: 0/0
[dnxhd @ 0x7f459000c280] Frame size: 1440x1080p; bitrate: 110Mbps; pixel format: yuv422p; framerate: 0/0
[dnxhd @ 0x7f459000c280] Frame size: 1440x1080i; bitrate: 80Mbps; pixel format: yuv422p; framerate: 0/0
[dnxhd @ 0x7f459000c280] Frame size: 1440x1080i; bitrate: 90Mbps; pixel format: yuv422p; framerate: 0/0
[dnxhd @ 0x7f459000c280] Frame size: 1440x1080i; bitrate: 100Mbps; pixel format: yuv422p; framerate: 0/0
[dnxhd @ 0x7f459000c280] Frame size: 1440x1080i; bitrate: 110Mbps; pixel format: yuv422p; framerate: 0/0
Comment 15 Jean-Baptiste Mardelle 2016-06-27 21:05:08 UTC
Git commit 7d46d7e4e6e17a9ea17d8ee7c5c4fdc6abda975e by Jean-Baptiste Mardelle.
Committed on 27/06/2016 at 21:04.
Pushed by mardelle into branch 'master'.

Fix timeline preview with HD 24fps profile

M  +3    -3    src/dialogs/encodingprofilesdialog.cpp
M  +1    -0    src/doc/kdenlivedoc.cpp
M  +6    -5    src/timeline/managers/previewmanager.cpp

http://commits.kde.org/kdenlive/7d46d7e4e6e17a9ea17d8ee7c5c4fdc6abda975e
Comment 16 Unknown 2016-06-28 04:23:01 UTC
Preview render seems to be working, now. I'll do some more extensive tests, but the functionality is good enough to close this bug.

Just need to fix the zone tool above the timeline shrinking when there's a preview render, and this bug will be resolved.
Comment 17 Unknown 2016-07-12 18:27:19 UTC
Preview render itself, after more tests, is working incredibly!

One thought for solving the zone slider in the timeline: what if the space for the render preview bars was always visible, instead of only appearing when the user performs a preview render? So, in other words, it would permanently be a part of the timeline, directly below the in-out zone slider. That would keep the slider from becoming smaller and therefore difficult to work with, and would still give the user a clear visible place for preview renders?

What do you think?
Comment 18 Jean-Baptiste Mardelle 2016-07-12 21:44:35 UTC
Git commit a23df090b61d8a5845dbf325175becb3a67d9aa5 by Jean-Baptiste Mardelle.
Committed on 12/07/2016 at 21:43.
Pushed by mardelle into branch 'master'.

Timeline preview now doesn't shrink ruler

M  +20   -14   src/timeline/customruler.cpp
M  +1    -0    src/timeline/customruler.h
M  +9    -4    src/timeline/timeline.cpp
M  +2    -1    src/timeline/timeline.h

http://commits.kde.org/kdenlive/a23df090b61d8a5845dbf325175becb3a67d9aa5
Comment 19 Unknown 2016-07-14 22:55:59 UTC
Works perfectly! Thank you sir. Marking this bug as fixed!