This forum has been archived. All content is frozen. Please use KDE Discuss instead.

VDPAU hardware acceleration for playback/monitoring in Kdenlive

Tags: None
(comma "," separated)
lordofthestrings
Registered Member
Posts
95
Karma
0
Hi,
I have an Athlon 64 X2 6000+ 3GHz per core, 2 GB of DDR2 800MHz ram and a Seagate Barracuda with 500GB 7200 rpm. Nvidia 8500GT 512mb.
I run Ubuntu 10.04 64-bit, Kdenlive installed and 100% working. NVIDIA drivers from the repos and SMPlayer with VDPAU enabled perfectly working with hardware graphics acceleration (I can watch 1080p/i videos with about 5% CPU usage). All installed through Synaptic package manager.
I'm waiting for a "new" camcorder I bought used from eBay, a Canon HV-10 (HDV). I just tried and the files .m2t it creates run well in Kdenlive but obviously when I add some Frei0rs plugins playback becomes slow and editing difficult.
I read that a user here in this forum has managed enabling VDPAU in MLT so he experienced smooth AVCHD (so, harder than HDV!!!) playback on a single core machine (!!!!). He compiled everything by himself under Gentoo.
So I guess maybe VDPAU is not enabled by default in MLT.
Should I have to compile (and customize with flags) everything by myself in order to get the same smooth playback? Can I eventually compile just MLT?
Can anyone help me?
I'm a "3 years newbie"... I just did some simple compiling at some times...
Thank you,
Ignazio
magnusl
Registered Member
Posts
37
Karma
0
Hi!

As I seem to have a very similar problem.... I found this on Ubuntu forums:
http://ubuntuforums.org/showthread.php?t=1037625

It seems to tell me that my Nvidia GeForce 7300 video card won't work.

It says nothing about if MLT ships with VDPAU enabled. Do you know how to check?

Magnus L
lordofthestrings
Registered Member
Posts
95
Karma
0
Hi, that link is old, now with Lucid you don't need to use external repos to use (s)mplayer with VDPAU support. It's really very simple. And yes, from my knowledge VDPAU works starting from the 8XXX series.
Ignazio
Chamo
Registered Member
Posts
27
Karma
0
Hi Ignazio,

hm, as I mentioned before, I'm not an expert for this at all. But I can share my few experiences.

So you have smplayer with vdpau support and you wonder if mlt has vdpau enabled in your system. I just had a look at a video clip with smplayer (with vdpau) and didn't close smplayer before starting kdenlive and loading my project. In this case, my preview window in kdenlive stayed black, and I got an error message at the bottom of the main window: "VDPAU failed to initialize decoder". The same happens the other way around, when I first start kdenlive and then smplayer: Kdenlive then works fine, but smplayer stays black and has such a message in the logs.

So this shows me that both systems are working with vdpau, and they can't use it at the same time. Maybe you want to try this rather simple test.

Cheers,

Chamo
lordofthestrings
Registered Member
Posts
95
Karma
0
Thanks man,
I'll definitely try it (and I'll let you know), but I have the strong feeling I don't have VDPAU enabled in MLT... If it is the case, would you gave me please your help compiling everything in order to have this feature enabled?
Thank you so much, I like Kdenlive so much, I think it's great and it's getting better and better. I'm just an hobbyst but I'm using it for at least two years now!
Ignazio
magnusl
Registered Member
Posts
37
Karma
0
Hi!

I checked the compilation rules for the ubuntu-package mlt-o.5.4 (ubuntu 10.04), and the rules file look as posted below. Should there not be a flag about VDPAU for this to be enabled?

Magnus


#!/usr/bin/make -f

# Enable motion estimation, MMX and SSE on amd64 architecture
ifeq ($(DEB_HOST_ARCH),$(findstring $(DEB_HOST_ARCH), "amd64"))
EXTRA_CONFIGURE_OPTS += --enable-motion_est --enable-mmx --enable-sse
else
EXTRA_CONFIGURE_OPTS += --disable-motion_est --disable-mmx --disable-sse --disable-sse2
endif

DEB_CONFIGURE_EXTRA_FLAGS := \
--enable-gpl \
$(EXTRA_CONFIGURE_OPTS) \
--avformat-shared=/usr \
--avformat-swscale \
--luma-compress \
--swig-languages=python \
--qimage-libdir=/usr/lib

PYTHON_DIR := usr/lib/$(shell pyversions -d)/site-packages

%:
dh $@

override_dh_auto_configure:
dh_auto_configure -- $(DEB_CONFIGURE_EXTRA_FLAGS)

override_dh_auto_clean:
[ ! -f config.mak ] || $(MAKE) distclean
rm -f config.log *.pc src/modules/gtk2/config.h
find \( -name '*.o' -o -name '*.mak' -o -name '.depend' \) -delete

override_dh_install:
mkdir -p debian/python-mlt2/$(PYTHON_DIR)
install -m 644 src/swig/python/mlt.py debian/python-mlt2/$(PYTHON_DIR)/mlt.py
install -m 644 src/swig/python/_mlt.so debian/python-mlt2/$(PYTHON_DIR)/_mlt.so
dh_install --list-missing

override_dh_strip:
dh_strip --dbg-package=libmlt-dbg
ddennedy
Registered Member
Posts
1315
Karma
1
there is no explicit vdpau configure option for MLT. It detects if the ffmpeg build has it and runs a little test program to see if it builds. Then, it has additional runtime checks. This allows a distro to make a build including it and then let it run only applicable systems (in theory, dont know if any distro has it enabled).



lordofthestrings
Registered Member
Posts
95
Karma
0
I tried opening Smplayer (with VDPAU) and then Kdenlive without closing Smplayer and viceversa but no luck. I seriously doubt I have VDPAU enabled in MLT.
Can I just remove MLT and try to compile it?
Can you suggest me a command line for the "configure" step enabling VDPAU?
Thank you so much,
Ignazio
Chamo
Registered Member
Posts
27
Karma
0
Hi Ignazio,

while I did manage to compile the whole stuff and get it working... I can't really tell you about the right configure options.

That's because I'm on Gentoo, where installing programs generally means to have the programs compiled by a Gentoo-specific mechanism. While other distros use packet managers with commands like "rpm -i mlt" or so, Gentoo uses "emerge mlt", and then the system cares about dependencies, getting the sources, configuring, compiling and installing. All I have to do is define the right "USE flags", but in my case, they are system wide and not mlt-specific. It might be necessary to install ffmpeg with vdpau support first since mlt relies on it (and checks for it, if I understood correctly).

Sorry, but I'm afraid you have to wait for a response from someone who really knows about the right way [tm] to compile mlt.

Chamo
lordofthestrings
Registered Member
Posts
95
Karma
0
Don't worry, thanks a lot, we are all here to share or learn ;-)
ddennedy
Registered Member
Posts
1315
Karma
1
see the end of this other thread:
http://www.kdenlive.org/forum/working-many-gb-data-one-project




Bookmarks



Who is online

Registered users: Baidu [Spider], Bing [Bot], Google [Bot], rblackwell