What is the best way to do video incrustation...
Posted: 30 Mar 2014 13:31
Hi from Vincennes,
I'm a windows developper that migrate progressively to linux thanks to Win8.1...
I wrote for fun under window a mkv\dvb-t player base on DShow\Dx9Ex ffdshow ali media splitter - A very old screenshot : http://jjz3zjfxh3.1fichier.com/
I use a custom presenter to render video on texture (anim on screenshoot), add a dark mirror effect (2 triangles) and display thumb (3d mesh) over it (from SQLite db and external jpeg texture)... I use NV12 texture to ensure hardware acceleration of video using a sample pool... It's work under window and on final version cpu usage is near 20% (release) ...
Now i try to rewrite the same thing under linux, i test GStream the natural twin of DShow under linux, it's not very efficient... Last month i see an ADS of 01.net about VLC ^_^, i install libvlc, made a small test performance it perfect, i test the SDL 2 sample with a render greater than 1024x576 cpu is overload and video it explose green block (i suppose writing to texture uncompressed frame is like under windows...a disaster)... an other methode seems to do that using video filter...
My question is : what is the best way to re-write my player with VLC under linux without overkill cpu usage...
Thanks for your help
Note : I write using C\C++, SDL\Boost using netbean under debian jessie 32bits
I'm a windows developper that migrate progressively to linux thanks to Win8.1...
I wrote for fun under window a mkv\dvb-t player base on DShow\Dx9Ex ffdshow ali media splitter - A very old screenshot : http://jjz3zjfxh3.1fichier.com/
I use a custom presenter to render video on texture (anim on screenshoot), add a dark mirror effect (2 triangles) and display thumb (3d mesh) over it (from SQLite db and external jpeg texture)... I use NV12 texture to ensure hardware acceleration of video using a sample pool... It's work under window and on final version cpu usage is near 20% (release) ...
Now i try to rewrite the same thing under linux, i test GStream the natural twin of DShow under linux, it's not very efficient... Last month i see an ADS of 01.net about VLC ^_^, i install libvlc, made a small test performance it perfect, i test the SDL 2 sample with a render greater than 1024x576 cpu is overload and video it explose green block (i suppose writing to texture uncompressed frame is like under windows...a disaster)... an other methode seems to do that using video filter...
My question is : what is the best way to re-write my player with VLC under linux without overkill cpu usage...
Thanks for your help
Note : I write using C\C++, SDL\Boost using netbean under debian jessie 32bits