LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-20-2014, 03:52 PM   #1
thender
LQ Newbie
 
Registered: Jun 2014
Posts: 5

Rep: Reputation: Disabled
Video editor that works with Intel iGPU & VAAPI - does it exist?


Hi,

I switched from a Thinkpad T520(Nvidia Quadro) to a T440p(Intel HD4600). On the old Thinkpad with nvidia graphics, I used VDPAU for hardware acceleration and it just worked. mplayer? works. avidemux? works. VLC? Works!

The Intel iGPU uses VAAPI. I fought mplayer for a long time before giving up. I got VLC to work with VAAPI, but not VLC Video editor. avidemux doesn't work with it either. I tried kdenlive and openshot as well, but no hardware decoding. Pitivi just crashes on importing a video, cinelerra shoots out bursts of static. I wanted to try lightworks but I couldn't find a single working gentoo ebuild for it.

Is there a single working Linux video editor that works with intel integrated graphics hardware acceleration via VAAPI? Just one?

So much software has enable vaapi configure flags, so few actually work with it.

If I don't find anything I'll just switch back to the old thinkpad, but it would be a shame, because the HD4600 which is integrated and uses low power outperforms the old quadro which heats up insanely and uses lots of power.
 
Old 06-22-2014, 02:39 PM   #2
gradinaruvasile
Member
 
Registered: Apr 2010
Location: Cluj, Romania
Distribution: Debian Testing
Posts: 731

Rep: Reputation: 158Reputation: 158
VDPAU and VAAPI are used for hardware DECODING of h264 and a few more formats. AFAIK they are NOT used by video editors usually. These methods cannot be used to encode.
Do you actually have any control over VAAPI enabling these programs or just think that it should be used? AFAIK hardware decoding in video players has to be enabled specifically, not even mplayer, the "de facto" VDPAU player has it enabled unless you explicitely tell it to use both decoding and presentation with VDPAU. VLC has hw decoding disabled by default.

What version of kernel/mesa do you have installed? Because your crashing issues are more likely related to buggy drivers, the haswell intels dont work well yet AFAIK in mainstream distros. Try the git kernel+mesa+xf86-intel (maybe drm too if you have older distro) and see if they work better.

BTW i have a Quadro NVS nvidia 135M and it cannot actually do VDPAU decoding (in theory it has profile A, the lowest) despite every program saying it can (its like that since i have this laptop, around 2008 i think with all nvidia drivers since then). My other nvidia i had, a 8200 IGP (and now and AMD A8-6500 APU IGP with latest mesa) worked though beautifully.
 
Old 06-22-2014, 03:52 PM   #3
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
Quote:
Originally Posted by gradinaruvasile View Post
VDPAU and VAAPI are used for hardware DECODING of h264 and a few more formats. AFAIK they are NOT used by video editors usually. These methods cannot be used to encode.
VAAPI can indeed be used for decoding and encoding, but usually video editors (and encoders like VLC) rather use the OpenMAX interface instead.
Intel supports that interface on their embedded drivers, I am not sure if they do also on their desktop/laptop drivers.
 
Old 06-22-2014, 09:32 PM   #4
thender
LQ Newbie
 
Registered: Jun 2014
Posts: 5

Original Poster
Rep: Reputation: Disabled
Thank you for the replies!

Quote:
Originally Posted by gradinaruvasile View Post
VDPAU and VAAPI are used for hardware DECODING of h264 and a few more formats. AFAIK they are NOT used by video editors usually. These methods cannot be used to encode.
I don't plan on using it to encode. The issue is that some of the video I work with is too high resolution/bitrate to smoothly decode it with the CPU alone. On my three year old thinkpad with the quadro, I can decode this video using VDPAU with avidemux while compiling software in the background without skipping a beat!

Programs like windows movie maker will transcode the video so you can edit using a very bastardized version of the original. This is poorer quality, and also requires I wait for the transcode, which I do not want to do when I have modern hardware :-)

avidemux with vdpau allows me to edit high definition video without prior transcoding, which is what I'm going for.

Quote:
Originally Posted by gradinaruvasile View Post
Do you actually have any control over VAAPI enabling these programs or just think that it should be used? AFAIK hardware decoding in video players has to be enabled specifically, not even mplayer, the "de facto" VDPAU player has it enabled unless you explicitely tell it to use both decoding and presentation with VDPAU. VLC has hw decoding disabled by default.
I gave up on getting vaapi to work in mplayer. It works in VLC out of the box if I compile it with VAAPI use flag, so I have no need for mplayer making my life difficult. With all of these programs, I have compiled with enable vaapi USE flag using portage/emerge in gentoo, but it makes no difference. The only software that actually has a VAAPI option/functionality after compiling with vaapi use flag so far is VLC.

Quote:
Originally Posted by gradinaruvasile View Post
What version of kernel/mesa do you have installed? Because your crashing issues are more likely related to buggy drivers, the haswell intels dont work well yet AFAIK in mainstream distros. Try the git kernel+mesa+xf86-intel (maybe drm too if you have older distro) and see if they work better.
I am using MESA 10.0.4 on kernel 3.12.21-r1

Which git kernel/mesa/xf86 intel do you suggest I use?


Quote:
Originally Posted by gradinaruvasile View Post
BTW i have a Quadro NVS nvidia 135M and it cannot actually do VDPAU decoding (in theory it has profile A, the lowest) despite every program saying it can (its like that since i have this laptop, around 2008 i think with all nvidia drivers since then). My other nvidia i had, a 8200 IGP (and now and AMD A8-6500 APU IGP with latest mesa) worked though beautifully.
I have a Quadro NVS 4200M. People make fun of this Thinkpad and the crappy quadro in it, but it's not bad. It decodes 1080p AVCHD in realtime no problem, it mined litecoin for a week without dying inside of a laptop, I love it! It worked with VDPAU out of the box like a charm.

Quote:
Originally Posted by TobiSGD View Post
VAAPI can indeed be used for decoding and encoding, but usually video editors (and encoders like VLC) rather use the OpenMAX interface instead.
Intel supports that interface on their embedded drivers, I am not sure if they do also on their desktop/laptop drivers.
I don't even need it for encoding. I just need to be able to edit the video with better performance, I'm happy to let the laptop sit overnight working to encode it at its own pace.
 
Old 06-22-2014, 11:27 PM   #5
gradinaruvasile
Member
 
Registered: Apr 2010
Location: Cluj, Romania
Distribution: Debian Testing
Posts: 731

Rep: Reputation: 158Reputation: 158
Thanks for the clarification.
But i still dont know any Linux video encoder that actually uses any hardware encoding ATM. Is there any? Im interested since i have a AMD card and driver that can encode via openmax, but ATM as far as i know only via some new version of gstreamer using their complicated command line.
 
Old 06-23-2014, 12:10 PM   #6
gradinaruvasile
Member
 
Registered: Apr 2010
Location: Cluj, Romania
Distribution: Debian Testing
Posts: 731

Rep: Reputation: 158Reputation: 158
Quote:
I am using MESA 10.0.4 on kernel 3.12.21-r1
Which git kernel/mesa/xf86 intel do you suggest I use?
The latest you can get your hands on. I have a 2 or so year old AMD APU and using the latest git kernel and mesa i still get performance boosting updates + new features...
 
Old 06-23-2014, 09:43 PM   #7
thender
LQ Newbie
 
Registered: Jun 2014
Posts: 5

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by gradinaruvasile View Post
The latest you can get your hands on. I have a 2 or so year old AMD APU and using the latest git kernel and mesa i still get performance boosting updates + new features...
I see.

What I am trying to accomplish with this thread is to find a single other human being on planet earth who is using VAAPI to hardware accelerate decoding of video using Intel integrated video. So far all I have found are recommendations on what "should" or "could" work without anyone actually having tried it, and what this has resulted in are a lot of broken solutions.

Have you used this with an Intel iGPU, and if so what video editor did you use? If linux has 0 chance of working with Intel/VAAPI as a video editing platform, I'd like to know so I can exchange this machine and go back to my old clunker with the quadro.

Thank you!
 
Old 06-24-2014, 01:57 AM   #8
gradinaruvasile
Member
 
Registered: Apr 2010
Location: Cluj, Romania
Distribution: Debian Testing
Posts: 731

Rep: Reputation: 158Reputation: 158
I used an intel IGP but thats an old GMA4500 and coupled with a low power core2duo era SU CPU. I compiled the drivers and libva with h264 support (the default Debian libva supported only mpeg2). But i got stuttering video, although the CPU usage didnt exceed 20% or so. Mabe i i do a full kernel+xf86-intel+libva build it might work but i didnt had the time for it.

On another note, i used catalyst drivers and when the power management features appeared in the kernel, i switched to the open source drivers. I didnt find any comprehensive how-to about it and i pasted it together from the net - compiling mesa/xf86-ati/libglamor/kernel with the right options and automating the package building and installation.
It isnt rocket science if you know how to compile stuff.
 
Old 06-25-2014, 06:09 AM   #9
thender
LQ Newbie
 
Registered: Jun 2014
Posts: 5

Original Poster
Rep: Reputation: Disabled
Ok, I get it.

It's impossible.

No video editing on Linux with integrated Intel graphics, it just isn't going to work.


.

Last edited by colucix; 06-25-2014 at 08:25 AM. Reason: Removed comment addressing spam (deleted)
 
Old 06-26-2014, 06:53 AM   #10
thender
LQ Newbie
 
Registered: Jun 2014
Posts: 5

Original Poster
Rep: Reputation: Disabled
Ok I used this command line here

Code:
ffmpeg -i your_clip.MTS -vcodec copy -acodec copy -sn test.mp4
To import video into pitivi. It plays back with VAAPI hardware acceleration. Hallelujah!! I tried using that same mp4 in kdenlive, openshot, but they jitter and use 3x as much CPU as anything else just to play the sample, so they are worthless.

The problem? Confusion... this program is nuts compared to avidemux. If I double click the clip, it plays a preview of the clip fine with hardware acceleration. Yet, if I hit play on the regular screen I get nothing, it doesn't play at all. I know i has the ability to play because if I double click the clip it opens in a preview window and plays it!. I can't figure out how to use the playhead or how to actually split tracks even while following the instructions.

None of the instructions here actually work.http://www.pitivi.org/manual/movearoundtimeline.html No playhead, no scrubbing, etc. It's like they stopped coding halfway through the program.. has anyone here used pitivi with success?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Does fglrx simply load built in Intel module when iGPU selected, or more complex? Azrael84 Linux - Hardware 17 01-29-2014 03:13 AM
mtrr allocation failed. Graphics performance may suffer. Intel hd2000 iGPU Z0K4 Slackware 11 10-08-2012 10:42 AM
Play Video using mplayer-vaapi with out X VerrNum Linux - Newbie 2 09-13-2012 03:42 PM
LXer: XBMC with VAAPI on Poulsbo (Intel GMA500) or other VAAPI Systems LXer Syndicated Linux News 0 01-01-2011 09:42 PM
LXer: Intel GMA950 & xf86-video-intel 2.1.0 LXer Syndicated Linux News 0 07-13-2007 06:32 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:51 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration