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

h264i2p - VDPAU deinterlacer + OpenGL video editing

Tags: None
(comma "," separated)
hftom
Registered Member
Posts
21
Karma
0
Hi all,

I use kdenlive/mlt to edit some clips taken with a 1080i AVCHD camcorder.
Recently, i wanted to convert one of these videos to 720p, but was disapointed by the half framerate.
So, i've searched for a solution that would convert 1080@25i to 720@50p but did not found one.
Since i know VDPAU quite well, i've decided to write a little tool that would use nvidia's VDPAU deinterlacer.
And while i was at it, i gave vdpau_interop a try and added some GLSL filters to experiment OpenGL video editing.
I'm now convinced that's the way to go!
Give it a try yourself :

http://anne.prukop.perso.sfr.fr/h264i2p.tar.gz

Look at the README.
Don't look at the filters quality but rather to the speed, even if shaders could be optimized in this area as well (i'm new to glsl).

Here you can find a video showing the "FollowMe" filter (glsl motion estimation) in action (the one that took most of my time, i'm also new to m.e. :)

http://anne.prukop.perso.sfr.fr/followme.mp4

Hope this helps to bring the GL thing on top of mlt's TODO :)
markoc
Registered Member
Posts
342
Karma
1
Interesting!

However, I ran into a problem:
I compiled, and tried to open a (low resolution) h264 file (output of Kdenlive), "just to play with the filters", and this happened:

mc@mcpc14:~/downloads/h264i2p> ./h264i2p
initVdpau : "VDPAU init done"
3.30 NVIDIA via Cg compiler
(6603): Trying to open ksycoca from "/home/mc/.kde4/cache-mcpc14/ksycoca4"
Create surface 2
Create surface 4
Segmentation fault
mc@mcpc14:~/downloads/h264i2p>

It crashes when I click "open" in the open file dialog (after selecting the video file to open)

GDB:

Create surface 4

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7fffe09d0710 (LWP 6750)]
0x00007fffeb047da3 in ?? () from /usr/lib64/vdpau/libvdpau_nvidia.so.1
(gdb)

hftom
Registered Member
Posts
21
Karma
0
Ah, forgot to say :
- it only decodes h264 annexb (as in mpegts)
- ffmpeg is used to demux
- ffmpeg often fails to produce h264 annexb from various containers.

In short, better try m2ts.
But note that i'm able to open mkv made with kdenlive.
FishB8
Registered Member
Posts
53
Karma
0
You might also want to look at yuvfps from mjpegtools.
yellow_drupal
Registered Member
Posts
748
Karma
0
And possibly http://forum.doom9.org/showthread.php?t=156028 which although not hardware accelerated is an excellent deinterlacer. Motion estimation, sharpening and smoothing to reduce shimmer, denoising its a plugin for Avisynth but possibly useful info in there.


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], Sogou [Bot]