No smooth scalling activate

Bug #719342 reported by Olivier Girard
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenShot Video Editor
Invalid
Undecided
Unassigned

Bug Description

Hi guys,
At first look, we have a problem with the function smooth scalling in the Preferences. For the MLT version 0.5.10, it is normal but after an upgrade at 0.60. and more for some people in the forum, it is always the same. Openshot seems not detected the right version. The conversation on our forum is here : http://openshotusers.com/forum/viewtopic.php?f=11&t=767
My tests was on a Lucid 64 bits and I have used the sunab repository for the update.

Changed in openshot:
status: New → Confirmed
Revision history for this message
Jonathan Thomas (jonoomph) wrote :

Well, I would recommend you attach a .debug file to this bug report, so we can better see what libraries you have installed.

HOW TO: Debug an Installation Problem
https://answers.launchpad.net/openshot/+faq/1032

It's possible that you have the old python bindings installed, such as python-mlt, and need to install only the python-mlt3 or python-mlt2 package. If that doesn't fix it, I would recommend uninstalling python-mlt, libmlt*, openshot, and then be sure no packages with those names are installed, and then install them again from our PPA. Of course, you need to install MLT from a different PPA, as it is not in our PPA. If that makes sense. =) Good luck!

Changed in openshot:
status: Confirmed → Incomplete
Revision history for this message
Olivier Girard (eolinwen) wrote :

 Here the result of the script :

Revision history for this message
Jonathan Thomas (jonoomph) wrote :

Let's give this a try. Run the following python commands:
$ python
>> import mlt
>> mlt.mlt_version_get_string()

If you get an error similar to "AttributeError: 'module' object has no attribute 'mlt_version_get_string'", then the smooth scaling will not work, as the Python bindings are not familiar with that new method. Which means, either an older version of MLT is installed, or the Python bindings are old, and missing the definition of that "mlt_version_get_string" method.

If it does not break, it should report '0.6.0' or greater. If it reports '0.6.0' or greater, than the "smooth scaling" option should be enabled in the preferences. Good luck!

Revision history for this message
Olivier Girard (eolinwen) wrote :

Like you can see, I have the first report :
olivier@Triton:~$ python
Python 2.6.5 (r265:79063, Apr 16 2010, 13:57:41)
[GCC 4.4.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import mlt
>>> mlt.mlt_version_get_string()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: 'module' object has no attribute 'mlt_version_get_string'
>>>

And like I have the version 0.6.0 of MLT, I should say that the second possibility.
I must precise that is an update with the sunab repository and with our PPA.
How to resolve the missing definition of that "mlt_version_get_string" method ?

Revision history for this message
Jonathan Thomas (jonoomph) wrote :

I would recommend removing python-mlt, python-mlt2, and any packages named similar to that. Then repeat the Python example from above. It should fail when you run: import mlt. If that is the case, install python-mlt3 or python-mlt2 (the higher the better), and repeat the Python example 1 more time.

Revision history for this message
Olivier Girard (eolinwen) wrote :

For the moment, I am going to eat and I will try after but I don't understand where do you take the python-mlt3 ? It is not in none repository.

Revision history for this message
Jonathan Thomas (jonoomph) wrote :

Ahhh, I think I figured this out. The sunab PPA does not contain the python-mlt2 package, which is why your system is installing an older version (available in the software center). This older python-mlt2 package does not have the new "mlt_version..." methods, which is why OpenShot assumes you have an old version of MLT.

https://launchpad.net/~sunab/+archive/kdenlive-release/+packages

I'm not sure the best way to fix this. Moving to a Ubuntu 11.04 will of course fix the problem, but it's still pretty "alpha", and probably not ready to use full time yet. You might be able to download a DEB installer from Debian (http://packages.debian.org/sid/python-mlt3) towards the bottom of the screen.

Revision history for this message
Olivier Girard (eolinwen) wrote :

 Effectively, this problem touches a major part of our user (i.e. Lucid (3years) and Marverick (18 mouths). People can move on Natty.
I will try something. Let's me check on my LMDE history to see if you have reason.

Revision history for this message
Olivier Girard (eolinwen) wrote :

It will take more time than planned, I don't know why but I have a permission problem on my LMDE and I can do nothing. All was working well yesterday evening.
I am trying to do something else. Same my keyboard on my principal computer give me now some problems. Today, it is not my day.

Revision history for this message
Jonathan Thomas (jonoomph) wrote :

You might try contacting the person who maintains the sunab PPA, and see if they could add the python-mlt3 package to their PPA. I bet it would be quite simple for them, other than the fact Kdenlive does not use the Python bindings.

Revision history for this message
Olivier Girard (eolinwen) wrote :

I am trying with the last version of mlt who is in the kdenlive-svn (0.6.2 against 0.6.0 for sunab) PPA.
I was beliving that was Dan Dennedy who manage this PPA .No ?
And when i have look the link for Python-mlt3 on Debian, i have noted that it is not the same version of libc6 and I am a bit afraid for that. Often, a modification of this version done a lot of problem. And you can do otherwise
I have noted too on LMDE that python-ml3 was present but not employed with the 0.6.0 version that I was used. Another thing was that I was having too libmlt++3, libmlt-data, melt, python-mlt2 and also libmlt3 and not libmlt2 like on Ubuntu. It could be the raison too.

Revision history for this message
Olivier Girard (eolinwen) wrote :

It was what I was afraid, this is the dog that bites its tail.
Python-mlt3 needs libmlt3 who her need the version 0.4.06 of ffmpeg who is not available on Lucid (the 4.05).
I understand better why it is not in their PPA =>incompatibility.
Arght If i could test on my LMDE. I will try in a virtualbox tomorrow.

Revision history for this message
Olivier Girard (eolinwen) wrote :

Yesterday, it was not my day. Today, without doing nothing all works and I have done finish my tests.
Above all, the problem comes from python-mlt3 who must be at the place of python-mlt2 that he is removed by this operation.
After, only with the mlt version 0.60, it works out of box.
The dependencies for Debian and derivated for mlt are libmlt3, libmlt-data, libmlt++3 , melt, python-mlt3. I precise that on Lucid/Marverick only python-mlt2 (instead of python-mlt3) and libmlt2 (instead of libmlt3) are available.
In conclusion, it is not a bug but a problem of mlt/distribution. So I tag it like invalid/won't fixed.
This feature will not work in this distribution (aka lucid, Marverick) normally without a compilation of ffmpeg (at less the 0.6.0 version) and of MLT;

Changed in openshot:
status: Incomplete → Won't Fix
status: Won't Fix → Invalid
Revision history for this message
Patrick Millette (abonnement) wrote :

I got it working with python-mlt2 on Ubuntu Maverick 64 bits: Yesterday I updated from Lucid to Maverick and after re-enabled all the sources (repositories) that got disabled throught the upgrade process, installed all the requires updates and voilà! Everithing is working fine including smooth scaling.

I tried running your debug.py script to show you my installation but it hangs right after 'Successfuly imported mtl library!'

I love the smooth scaling feature.

Revision history for this message
Olivier Girard (eolinwen) wrote :

I am afraid after the tests/establishment that we have done yesterday and today that's complicated to realise. On Lucid that sure but we have not try to Marverick.
If you are volunteer, we can confirm or not this state.

Before, one thing that I don't understand. Did it work on Lucid before the update to Marverick ? For me (and some other people), on Lucid it doesn't work.

The debug script will be helpful for us, you must wait his end and after copy and paste the content in Gedit (for example) and send us.

Do you want to continue this conversation in French ?

You will have perhaps a luck like you use the version 4.06. of ffmpeg (o.60).
Follow the instructions for update your version of MLT which must be at least greater at 0.6.0 :
http://openshotusers.com/forum/viewtopic.php?f=12&t=758
After, grab this dependencies (python-mlt3 and libmlt3) here : http://packages.debian.org/sid/python-mlt3 and here http://packages.debian.org/sid/libmlt3
Same if I am nearly sure that you should began by the second, try with the first (and gebi). Anyway, it will said you if he needs the second. Like I am not sure, all feedback is welcome.
Good luck.

Revision history for this message
Patrick Millette (abonnement) wrote :

Ok with me to continue the conversation in french.

Ça ne fonctionnait pas sous Lucid même après avoir installé libmlt3, mlt 0.6.0. Je n'ai pas réussi à trouver python-mlt3 pour Lucid et je ne me rappelle plus quelle version de ffmpeg j'utilisais.

Suite à différents tests, j'ai décidé de faire une mise à jour vers Maverick (une vraie mise à jour et non une réinstallation complète). Au cours du processus, plusieurs dépôts ont été désactivés. Une fois terminé, j'ai réactivé tous les anciens dépôts en m'assurant qu'ils soient compatibles avec Maverick. J'ai relancé une mise à jour qui a affectée au delà de 70 paquets et après avoir redémarrer mon ordinateur, le paramètre de 'Smooth scaling' était finalement accessible et tout fonctionne à merveille.

J'ai relancé le script de debug.py mais ça risque d'être très long car j'ai plusieurs terabyte d'informations. Est-ce que tu préfères que je modifie le script pour utiliser un locate à la place du find ou si ceci génèrera trop d'informations? Je vais effectuer un updatedb avant. Autrement si tu préfère attendre, je viendrai poster le résultat une fois terminé

Merci!

Revision history for this message
Patrick Millette (abonnement) wrote :
Download full text (6.1 KiB)

Finalement ça été plus vite que prévu. Voici donc le résultat du script debug.py:

-----------------------------------------------------------
OpenShot Debug File 0.0.2 - 2011-02-17 12:53:19.516709
-----------------------------------------------------------
This file contains a list of installed packages related to OpenShot,
locations of files, and a list of shared libraries used by python-mlt.

-----------------------------------------------------------
Distribution Version Info
-----------------------------------------------------------
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 10.10
Release: 10.10
Codename: maverick

-----------------------------------------------------------
List of Installed Packages
-----------------------------------------------------------
Souhait=inconnU/Installé/suppRimé/Purgé/H=à garder
| État=Non/Installé/fichier-Config/dépaqUeté/échec-conFig/H=semi-installé/W=attend-traitement-déclenchements
|/ Err?=(aucune)/besoin Réinstallation (État,Err: majuscule=mauvais)
||/ Nom Version Description
+++-=====================================-===================================================-==========================================================================================
un libmlt1 <néant> (aucune description n'est disponible)
ii libmlt2 0.6.2+git20110212.842a76e3-0ubuntu0~sunab~maverick1 multimedia framework (runtime)
ii openshot 1.3.0-maverick1 Create and edit videos and movies
un python-mlt <néant> (aucune description n'est disponible)
ii python-mlt2 0.6.2+git20110212.842a76e3-0ubuntu0~sunab~maverick1 multimedia framework (python bindings)
Aucun paquet ne correspond à openshot-mlt.

-----------------------------------------------------------
Python Path (i.e. sys.path)
-----------------------------------------------------------
/home/pmillette
/usr/lib/python2.6
/usr/lib/python2.6/plat-linux2
/usr/lib/python2.6/lib-tk
/usr/lib/python2.6/lib-old
/usr/lib/python2.6/lib-dynload
/usr/local/lib/python2.6/dist-packages
/usr/lib/python2.6/dist-packages
/usr/lib/python2.6/dist-packages/PIL
/usr/lib/python2.6/dist-packages/gst-0.10
/usr/lib/pymodules/python2.6
/usr/lib/python2.6/dist-packages/gtk-2.0
/usr/lib/pymodules/python2.6/gtk-2.0
/usr/lib/python2.6/dist-packages/wx-2.8-gtk2-unicode

-----------------------------------------------------------
Files in /usr/lib/pymodules/python2.6/mlt (used by python-mlt)
-----------------------------------------------------------
find: "/usr/lib/pymodules/python2.6/mlt": Aucun fichier ou dossier de ce type

-----------------------------------------------------------
Attempt to import mlt (using Python)
-----------------------------------------------------------
Successfully imported mlt library!

-----------------------------------------------------------
Find 'openshot' files & folders
----------------------...

Read more...

Revision history for this message
Olivier Girard (eolinwen) wrote :

| Ça ne fonctionnait pas sous Lucid même après avoir installé libmlt3, mlt 0.6.0. Je n'ai pas réussi à trouver python-mlt3 pour Lucid et je ne me rappelle plus quelle version de ffmpeg j'utilisais.

Laisse tomber, cela ne fonctionnerait qu'à condition de compiler Ffmpeg (ici un howto ) puis compiler MLT. Pour la majorité des utilisateurs, c'est rapé.

Je n'ai pas testé Marverick car je ne l'ai pas, du moins pas facilement. Je l'ai en virtualisation et je dois dire que je n'ai pas eu l'idée de tester hier, rien n'allait. Mais d'un coté tu as bien fait de passer à Marverick.

D'après le script, il me semble que tout va bien, tu as meme une bonne version de MLT cad 0.62. Je pense que ton probleme vient juste du manque de python-mlt3 bien que je n'en sois pas sur.
Dis-moi ce que tu as dans synaptic au sujet de python-mlt (cad as-tu une ou deux versions si oui lesquelles) et de MLT (cad les libmlt-data, melt, libmlt++3, et surtout libmlt2 ou libmlt3 ).

Revision history for this message
Patrick Millette (abonnement) wrote :

Je ne sais pas si on se comprends bien, mais pour ma part je n'ai plus aucun problèmes et OpenShot fonctionne très bien incluant le 'Smooth sclaing'. J'essaye simplement de démontrer que mon passage de Lucid à Maverick a réglé tous mes problèmes avec OpenShot. Et j'en suis très heureux, cette version 1.3 est fantastique et répond finalement à toutes mes attentes. Selon moi, OpenShot peut rivaliser avec à peu près n'importe quel produit commercial disponible.

Je te transmet tout de même les informations demandées dans Synaptic:

python-mlt2 --> 0.6.2+git20110212.842a76e3-0ubuntu0~sunab~maverick1
(c'est la seule version installée)

libmlt-data --> 0.6.2+git20110212.842a76e3-0ubuntu0~sunab~maverick1
libmlt-dev --> 0.6.2+git20110212.842a76e3-0ubuntu0~sunab~maverick1
libmlt++3 --> 0.6.2+git20110212.842a76e3-0ubuntu0~sunab~maverick1
libmlt2 --> 0.6.2+git20110212.842a76e3-0ubuntu0~sunab~maverick1
libmlt++-dev --> 0.6.2+git20110212.842a76e3-0ubuntu0~sunab~maverick1

Il y a seulement libmlt-dbg qui n'est pas installé.

Merci!

Revision history for this message
Olivier Girard (eolinwen) wrote :

Ah okay donc on ne s'était vraiment pas compris. Et Merci du retour et pour tout.

Revision history for this message
Olivier Girard (eolinwen) wrote :

Jonathan ,
It seems that works on Marverick too. Just Lucid seems touch by this problem (certainly the version of ffmpeg is the problem).

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Related questions

  • OpenShot Video Editor: libmlt

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.