Kdenlive   bug tracker Home page

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0002262KdenliveMLTpublic2011-07-30 12:592011-07-31 20:13
ReporterInso 
Assigned Toj-b-m 
PrioritynormalSeveritymajorReproducibilityalways
StatusassignedResolutionopen 
PlatformArchlinuxOSArchlinuxOS VersionArchlinux last
Product VersionRecent git 
Target VersionFixed in Version 
Summary0002262: Some color effect broken
Description
I tried today 3 effects : gamma, contrast & saturation.

Gamma works fine.

Contrast is broken : it renders a grey video.

Saturation is broken : it renders a black & white video.

Preview works fine, only render is broken.

Using mlt-git, frei0r-effect-svn & kdenlive-svn. Im running on archlinux.
Steps To ReproduceJust use this 3 effects one by one, render the video and watch.
TagsNo tags attached.
Build/Install MethodManual build from SVN
Attached Files? file icon kdenlive-bug.avi [^] (23,150,246 bytes) 2011-07-30 16:55
? file icon bug.kdenlive [^] (8,190 bytes) 2011-07-30 17:05
gz file icon bug-mlt.sh.tar.gz [^] (1,471 bytes) 2011-07-31 13:19

- Relationships

-  Notes
(0007100)
j-b-m (administrator)
2011-07-30 15:55

I cannot reproduce. Can you attach here a simple project file that shows this problem?
Did you use the Build script to build Kdenlive?
(0007101)
Inso (reporter)
2011-07-30 17:06
edited on: 2011-07-30 17:08

Ok i uploaded the video i apply effects on, and a project file. The project file has the saturation bug in.

You can replace it by contrast effect : you'll get a grey video.

By the way, with contrast, it seems that MLT is crashing. Thats why i'm gettin a grey video.

(0007102)
j-b-m (administrator)
2011-07-30 20:23

I can render correctly on my pc. My guess is that there is a configuration problem with your Kdenlive. Check the path for the renderer (melt) in Kdenlive's configuration dialog:

Settings > Configure Kdenlive > Environnement

What is the path for Melt? It should point to your current MLT's install path, and if you used the Build script to get Kdenlive, it is possible that it points to an older install of Melt.
(0007109)
Inso (reporter)
2011-07-31 12:06

Profile folder : /usr/share/mlt/profiles/

MLT path : /usr/bin/melt

Its the right path no ?
(0007110)
j-b-m (administrator)
2011-07-31 12:36

Strange, there must be another problem. What happens if you try to play the project file with melt:

melt bug.kdenlive

Do you see the bug?

Then try with:

melt bug.kdenlive -consumer avformat:test.mpg

Does the test.mpg show the bug?

If the bug does not appear in the first 2 cases, open the project in Kdenlive, then render using the "Generate script" option (not "Render to file").

That will create 2 files called script000x.mlt and script000x.mlt.sh in $HOME/kdenlive/scripts, please upload these 2 files here
(0007111)
Inso (reporter)
2011-07-31 13:19

I got the bug in the 2 cases.

I upload the files.
(0007112)
j-b-m (administrator)
2011-07-31 13:45

Well, there must be something strange on your system. The bug happens because of a locale issue. Your system is configured with a french locale (fr_FR.UTF-8) which uses a comma (,) as numeric separator.

That's why in the Kdenlive project file, the saturation effect has a value of 0,24 not 0.24

Now, we have to understand why frei0r does not understand 0,24.

Please try the following in a terminal:

melt myvideo.mpg -attach frei0r.saturat0r "Saturation=0.24"

and

melt myvideo.mpg -attach frei0r.saturat0r "Saturation=0,24"

(replace myvideo.mpg with any video clip).

One of the 2 should work correctly, the other one should display a black and white video (it thinks the saturation is 0).

Please also paste the output of the "locale" command in a terminal
(0007113)
Inso (reporter)
2011-07-31 14:37

Ok.

melt myvideo.mpg -attach frei0r.saturat0r "Saturation=0.24"
works fine

melt myvideo.mpg -attach frei0r.saturat0r "Saturation=0,24"
give me a grayscale video


For the output of locale :

LANG=fr_FR.UTF-8
LC_CTYPE="fr_FR.UTF-8"
LC_NUMERIC="fr_FR.UTF-8"
LC_TIME="fr_FR.UTF-8"
LC_COLLATE="fr_FR.UTF-8"
LC_MONETARY="fr_FR.UTF-8"
LC_MESSAGES="fr_FR.UTF-8"
LC_PAPER="fr_FR.UTF-8"
LC_NAME="fr_FR.UTF-8"
LC_ADDRESS="fr_FR.UTF-8"
LC_TELEPHONE="fr_FR.UTF-8"
LC_MEASUREMENT="fr_FR.UTF-8"
LC_IDENTIFICATION="fr_FR.UTF-8"
LC_ALL=
(0007114)
Inso (reporter)
2011-07-31 16:20

AAAAah found how to fix the bug.

Found there : http://www.kdenlive.org/forum/most-plugins-do-not-work-correctly [^]

I have to launch kdenlive by :
LC_NUMERIC=C kdenlive

All effects are now working :)
(0007115)
j-b-m (administrator)
2011-07-31 18:50

Well, yes that is a workaround. But that problem with LC_NUMERIC has (at least should) be fixed in MLT 0.7.4.

If I set my locale to "fr_FR.UTF-8", I don't get the same result as you:

melt myvideo.mpg -attach frei0r.saturat0r "Saturation=0.24"
comes out grey

melt myvideo.mpg -attach frei0r.saturat0r "Saturation=0,24"
works fine

The only thing I can think about is that maybe you have some older MLT libraries installed (like 0.7.3) that are used when rendering...

Maybe you can do that last check for me:

ls -la /usr/local/lib/libmlt*
ls -la /usr/lib/libmlt*
ls -la /usr/lib/mlt
(0007118)
Inso (reporter)
2011-07-31 19:50

[gael@BigArch kdenlive]$ ls -la /usr/local/lib/libmlt*
ls: impossible d'accéder à /usr/local/lib/libmlt*: Aucun fichier ou dossier de ce type

[gael@BigArch kdenlive]$ ls -la /usr/lib/libmlt*
lrwxrwxrwx 1 root root 15 17 juil. 21:06 /usr/lib/libmlt.so -> libmlt.so.0.7.4
lrwxrwxrwx 1 root root 17 17 juil. 21:06 /usr/lib/libmlt++.so -> libmlt++.so.0.7.4
-rwxr-xr-x 1 root root 156688 17 juil. 21:06 /usr/lib/libmlt.so.0.7.4
-rwxr-xr-x 1 root root 118904 17 juil. 21:06 /usr/lib/libmlt++.so.0.7.4
lrwxrwxrwx 1 root root 17 17 juil. 21:06 /usr/lib/libmlt++.so.3 -> libmlt++.so.0.7.4
lrwxrwxrwx 1 root root 15 17 juil. 21:06 /usr/lib/libmlt.so.4 -> libmlt.so.0.7.4

[gael@BigArch kdenlive]$ ls -la /usr/lib/mlt
total 1120
drwxr-xr-x 2 root root 4096 17 juil. 21:06 .
drwxr-xr-x 180 root root 167936 31 juil. 16:15 ..
-rwxr-xr-x 1 root root 82208 17 juil. 21:06 libmltavformat.so
-rwxr-xr-x 1 root root 102784 17 juil. 21:06 libmltcore.so
-rwxr-xr-x 1 root root 30584 17 juil. 21:06 libmltdecklink.so
-rwxr-xr-x 1 root root 19120 17 juil. 21:06 libmltdgraft.so
-rwxr-xr-x 1 root root 20672 17 juil. 21:06 libmltdv.so
-rwxr-xr-x 1 root root 11952 17 juil. 21:06 libmlteffectv.so
-rwxr-xr-x 1 root root 20896 17 juil. 21:06 libmltfrei0r.so
-rwxr-xr-x 1 root root 36384 17 juil. 21:06 libmltgtk2.so
-rwxr-xr-x 1 root root 54016 17 juil. 21:06 libmltjackrack.so
-rwxr-xr-x 1 root root 17568 17 juil. 21:06 libmltkdenlive.so
-rwxr-xr-x 1 root root 87864 17 juil. 21:06 libmltkino.so
-rwxr-xr-x 1 root root 41080 17 juil. 21:06 libmltlinsys.so
-rwxr-xr-x 1 root root 15792 17 juil. 21:06 libmltmelt.so
-rwxr-xr-x 1 root root 42832 17 juil. 21:06 libmltmotion_est.so
-rwxr-xr-x 1 root root 11664 17 juil. 21:06 libmltnormalize.so
-rwxr-xr-x 1 root root 19320 17 juil. 21:06 libmltoldfilm.so
-rwxr-xr-x 1 root root 36040 17 juil. 21:06 libmltplus.so
-rwxr-xr-x 1 root root 87160 17 juil. 21:06 libmltqimage.so
-rwxr-xr-x 1 root root 7920 17 juil. 21:06 libmltresample.so
-rwxr-xr-x 1 root root 27752 17 juil. 21:06 libmltrotoscoping.so
-rwxr-xr-x 1 root root 42224 17 juil. 21:06 libmltsdl.so
-rwxr-xr-x 1 root root 11928 17 juil. 21:06 libmltsox.so
-rwxr-xr-x 1 root root 17296 17 juil. 21:06 libmltvmfx.so
-rwxr-xr-x 1 root root 11344 17 juil. 21:06 libmltvorbis.so
-rwxr-xr-x 1 root root 19216 17 juil. 21:06 libmltxine.so
-rwxr-xr-x 1 root root 41032 17 juil. 21:06 libmltxml.so
(0007120)
j-b-m (administrator)
2011-07-31 20:03

Well in any case, the issue is not related to Kdenlive but there is a problem with MLT or your system's config.

The last interesting infos would be to know if the problem also affects MLT's effects:

melt colour:red -attach vignette radius=0,6

and

melt colour:red -attach vignette radius=0.6

One of these 2 should give you a red screen with small black borders, the other one will give an almost black screen with small red circle in the center, tell me which one.

And last of all, make sure what the xml consumer outputs:


melt colour:red -consumer xml

and paste the output here ( to make sure if the aspect_ratio uses a dot or comma as separator).

Maybe Dan from MLT will have an idea...
(0007122)
Inso (reporter)
2011-07-31 20:13

melt colour:red -attach vignette radius=0,6
give me a small red circle blured

melt colour:red -attach vignette radius=0.6
give me a red screen with black borders blured

[gael@BigArch ~]$ melt colour:red -consumer xml
<?xml version="1.0"?>
<mlt LC_NUMERIC="C" title="colour:red">
  <profile description="DV/DVD PAL" width="720" height="576" progressive="0" sample_aspect_num="16" sample_aspect_den="15" display_aspect_num="4" display_aspect_den="3" frame_rate_num="25" frame_rate_den="1" colorspace="601"/>
  <producer id="producer0" in="0" out="14999">
    <property name="mlt_type">producer</property>
    <property name="length">15000</property>
    <property name="eof">pause</property>
    <property name="resource">red</property>
    <property name="aspect_ratio">1.066667</property>
    <property name="mlt_service">colour</property>
  </producer>
  <playlist id="playlist0">
    <entry producer="producer0" in="0" out="14999"/>
  </playlist>
  <tractor id="tractor0" title="colour:red" global_feed="1" in="0" out="14999">
    <track producer="playlist0"/>
  </tractor>
</mlt>

- Issue History
Date Modified Username Field Change
2011-07-30 12:59 Inso New Issue
2011-07-30 15:55 j-b-m Note Added: 0007100
2011-07-30 15:55 j-b-m Assigned To => j-b-m
2011-07-30 15:55 j-b-m Status new => feedback
2011-07-30 16:55 Inso File Added: kdenlive-bug.avi
2011-07-30 17:05 Inso File Added: bug.kdenlive
2011-07-30 17:06 Inso Note Added: 0007101
2011-07-30 17:06 Inso Status feedback => assigned
2011-07-30 17:07 Inso Note Edited: 0007101 View Revisions
2011-07-30 17:08 Inso Note Edited: 0007101 View Revisions
2011-07-30 20:23 j-b-m Note Added: 0007102
2011-07-31 12:06 Inso Note Added: 0007109
2011-07-31 12:36 j-b-m Note Added: 0007110
2011-07-31 13:19 Inso Note Added: 0007111
2011-07-31 13:19 Inso File Added: bug-mlt.sh.tar.gz
2011-07-31 13:45 j-b-m Note Added: 0007112
2011-07-31 14:37 Inso Note Added: 0007113
2011-07-31 16:20 Inso Note Added: 0007114
2011-07-31 18:50 j-b-m Note Added: 0007115
2011-07-31 19:50 Inso Note Added: 0007118
2011-07-31 20:03 j-b-m Note Added: 0007120
2011-07-31 20:13 Inso Note Added: 0007122


Copyright © 2000 - 2014 MantisBT Team
Powered by Mantis Bugtracker