On Wed, May 23, 2012 at 8:50 AM, HvdWolf <[email protected]> wrote: > Hi Dan, > > We have been in contact about the \"mlt treats avc based > clips incorrectly?\" issue lately. > > Unfortunately I will have to give a somewhat longer > \"introduction\" to explain everything about this topic. > > We have been in very short contact as well in the spring of > 2009. I wanted to help porting kdenlive to OSX. Only a week > later my macbook got toasted and I informed in the kdenlive > forum that I would switch back to linux: so I did. After 2 > months though I could lay my hands on a secondhand macbook > pro, which I bought and which contained iLive with the > latest iMovie. So I was satisfied with what I had. > Now this secondhand macbookpro is getting really slow now > and I definitely will switch back to linux as I consider > Apple hardware too expensive (even though I can afford it) > and Apple\'s \"close everything to Apple domains\" strategy is > more and more an annoyance to me, having been so long in the > Open Source world. > I have used linux since 1993 and completely switched to it > in 2003, and then in 2007 to Mac OS X. > > In the mean time Kdenlive has matured enormously and we also > have Openshot. I will buy a new laptop in the coming 2 > months. Just checking now what the best ubuntu laptop is. > Andy and Olivier from Openshot \"discovered\" that I\'m still > on Mac OS X and that I\'m since 5 years the OSX maintainer of > Hugin and until end of 2010 the maintainer of avidemux, also > for macports, so they asked me to have a look at porting > Openshot to OSX before I made the switch to linux. So I\'m > doing that right now.
I hate to be the bearer of bad news, but I think you are going to fail unless you are prepared to make substantial changes to the MLT Python binding and OpenShot. OpenShot uses the sdl (or sdl_preview) consumer with its awkward way of embedding SDL into a GUI toolkit, which does not work on OS X. Kdenlive only uses the sdl_audio consumer and then listens to a MLT event for when to paint the frame. From the frame that the event provides, the app fetches the rgba data and renders it with OpenGL in a QGLWidget. The python binding needs enhancement to support MLT events invoking a python callable. Then, enhanced to subclass an events with a frame object argument. Next, you would need to figure out how to integrate that into OpenShot as well as rendering with OpenGL into GTK+. P.S. This is the same sort of work I anticipate is needed for GTK3 if the reports about SDL embedding being broken are true. I do not plan to help you in this endeavor because I am in the midst of making a new Qt-based cross-platform editor named Shotcut where I have already cross-platform working well. Besides all of this, OpenShot plans to abandon MLT, and I am not particularly keen on the way it uses MLT API (or lack thereof) or the way GTK+ looks/works on OS X and Windows. > So far the introduction. > > For Openshot I need mlt with python bindings so I took your > macports portfile, upgraded it to 0.78 and added a python > variant (default is for kedenlive and doesn\'t need python). > In the meantime I encountered a weird issue with the > framework build (src/framework) as the config.mak contains > \"-n\" and gcc/g++ stumbles on that, so I made a very rude fix Why? Where? I have never encountered that problem, and neither has anyone else reported it. Is it due to enabling a swig language? > to it (the post-configure), which I assume you can do much > better. > The problem now is that the _mlt.so and accompanying mlt.py > get built but doesn\'t seem to get installed. > So now I have two questions: > - do you want me to file a bug ticket or something alike? > - do you have a clue? > > Below a copied diff or my attempts OK, thanks... > --- > /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/multimedia/mlt/Portfile > 2011-12-13 10:30:26.000000000 +0100 > +++ /Users/harryvanderwolf/Portfile.mlt 2012-05-23 > 16:24:43.000000000 +0200 > @@ -5,8 +5,8 @@ > PortGroup qt4 1.0 > > name mlt > -epoch 3 > -version 0.7.6 > +#epoch 3 > +version 0.7.8 I have been holding off upgrading it because the Kdenlive port is very sensitive to MLT version, and I have not upgraded the Kdenlive port because I could not get dbus to work again after some upgrades and even reinstalling. Consequently, I have abandoned supporting and maintaining the kdenlive port. KDE apps on macports are a real pain in the ass because of their dependence on dbus daemons and kded, which not only makes install difficult and tedious for end users but also for me to support them. It is not effective use of my time. Also, the very tall stack of dependencies and these daemons makes install slow and long, and afterwards it is very brittle to upgrade resulting in many headaches. It is for these reasons that I also started Shotcut. You can see the work-in-progress here: http://www.mltframework.org/bin/view/Sandbox/TestLatest Official preview release not available pending the automated nightly windows build. As you may see, at this time it is not an editor, but mainly just a media player. It is all foundational work at this point. > categories multimedia > maintainers dennedy.org:dan > description Open source multimedia framework - core > libraries > @@ -23,8 +23,8 @@ > master_sites sourceforge:project/mlt/mlt > platforms darwin > > -checksums sha1 > f23c8bddb9b1f406c3cfcd155e74f8d9d37b5120 \\ > - rmd160 > 898256dfbbda158f51796a7d4468a6a54b9b246d > +checksums sha1 > 2d55b16918284ffadd5eae6eed1c5f0a12669d32 \\ > + rmd160 > 8edaeba84ca91b002c85e8582b7b0fa8d0286a86 > > # frei0r-plugins is not universal > universal_variant no > @@ -40,7 +40,7 @@ > port:libsamplerate \\ > path:lib/pkgconfig/sdl.pc:libsdl \\ > port:libvorbis \\ > - port:sox > + port:sox > > if {${configure.compiler} == \"clang\"} { > configure.compiler llvm-gcc-4.2 > @@ -52,6 +52,9 @@ > --disable-jackrack \\ > --disable-mmx > > +post-configure { reinplace \"s|-n||\" > ${worksrcpath}/src/framework/config.mak > +} > + Unable to reproduce. Pending further explanation. > platform darwin 10 { > if { ${build_arch} == \"x86_64\" } { > configure.args-delete --disable-mmx > @@ -66,11 +69,19 @@ > build.env-append CFLAGS=\"${configure.cflags}\" > LDFLAGS=\"${configure.ldflags}\" > build.args-append CC=\"${configure.cc}\" > CXX=\"${configure.cxx}\" CPP=\"${configure.cpp}\" > > + > variant no_x11 { > configure.args-append --disable-gtk2 > depends_lib-delete port:gtk2 > } > > +variant python { > + configure.args-append --swig-languages=python > + depends_lib-append port:python27 \\ > + port:swig-python \\ > + port:swig > +} > + That looks fine. > livecheck.type regex > livecheck.url > http://sourceforge.net/projects/${name}/files/ > livecheck.regex /${name}-(\\[0-9.\\]+)${extract.suffix} > ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Mlt-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mlt-devel
