LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 06-02-2017, 09:45 PM   #1
Candelabrus
Member
 
Registered: Apr 2015
Location: Ponta Grossa - PR
Distribution: Slackware64
Posts: 173

Rep: Reputation: 26
Someone please explain this for me. (H264 - Nvidia)


I was testing my movies samples and i noticed this, please someone can explain how can i put my hardware to play h264 movies like a windows?

Here the samples, same movie.

https://postimg.org/image/3kajum7uz/ - Windows
https://postimg.org/image/vmrnt03sn/ - Linux

Nvidia 970GTX G1 Gamming
Slackware 14.2

Last edited by Candelabrus; 06-02-2017 at 10:22 PM.
 
Old 06-02-2017, 11:36 PM   #2
Richard Cranium
Senior Member
 
Registered: Apr 2009
Location: McKinney, Texas
Distribution: Slackware64 15.0
Posts: 3,858

Rep: Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225
You might want to try the Nvidia proprietary drivers, which can be build from Slackbuilds.org.
 
Old 06-02-2017, 11:37 PM   #3
Candelabrus
Member
 
Registered: Apr 2015
Location: Ponta Grossa - PR
Distribution: Slackware64
Posts: 173

Original Poster
Rep: Reputation: 26
Quote:
Originally Posted by Richard Cranium View Post
You might want to try the Nvidia proprietary drivers, which can be build from Slackbuilds.org.
Im using proprietary, but from source .run i play every game without problem, i dont think driver is the problem. But thanks for reply
Edit: i can encode using nvenc h264 or nvenc hvec without problems too.

Last edited by Candelabrus; 06-02-2017 at 11:41 PM.
 
Old 06-02-2017, 11:42 PM   #4
MikelN
LQ Newbie
 
Registered: Jan 2017
Posts: 29

Rep: Reputation: Disabled
Maybe hardware acceleration works with VLC.
 
Old 06-03-2017, 12:29 AM   #5
Candelabrus
Member
 
Registered: Apr 2015
Location: Ponta Grossa - PR
Distribution: Slackware64
Posts: 173

Original Poster
Rep: Reputation: 26
Quote:
Originally Posted by MikelN View Post
Maybe hardware acceleration works with VLC.
Not working too, i forgot to mention this.
 
Old 06-03-2017, 12:43 AM   #6
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
First off, I would probably recommend ditching gmplayer. It is mostly unmaintained and really isn't that great. You can still keep mplayer though, and I'd recommend a new frontend called SMPlayer. It works quite well and is simple enough that anyone can use it, but if you dig in, there's tons of options.

Now, onto your actual problem. You likely need to be using the vdpau video output. If you aren't using that, then you likely won't use graphic card acceleration for video decoding. I have no idea if gmplayer offers the ability to change your video output (but I know smplayer does), but let's get rid of the GUI frontends for a bit and just use mplayer from the command line.

First, I'd like to see the output from running just mplayer and your video file.

Code:
mplayer /location/to/Jurassic_World.mp4
Then, I'd like to see the output of the same thing, but adding -vo vdpau and see if there's any errors or if there's a change in CPU usage.

Code:
mplayer -vo vdpau /location/to/Jurassic_World.mp4
 
2 members found this post helpful.
Old 06-03-2017, 12:49 AM   #7
Candelabrus
Member
 
Registered: Apr 2015
Location: Ponta Grossa - PR
Distribution: Slackware64
Posts: 173

Original Poster
Rep: Reputation: 26
@bassmadrigal worked :-)

So the only way to play movies with graphics acceleration using MPlayer is using this command line? Not have another way to play automatic?
I will try smplayer too, many thanks.
 
Old 06-03-2017, 12:53 AM   #8
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
You should be able to add vo=vdpau in either ~/.mplayer/config for a single user or /etc/mplayer/mplayer.conf for system-wide.

If you end up using smplayer, you can set it through Options -> Preferences -> General (left side navigation) -> Video (Tab) -> Output Driver

EDIT: SMPlayer might ignore the mplayer configs... I've never tried setting mplayer's configs since I found smplayer.
 
Old 06-03-2017, 01:20 AM   #9
Candelabrus
Member
 
Registered: Apr 2015
Location: Ponta Grossa - PR
Distribution: Slackware64
Posts: 173

Original Poster
Rep: Reputation: 26
Quote:
Originally Posted by bassmadrigal View Post
You should be able to add vo=vdpau in either ~/.mplayer/config for a single user or /etc/mplayer/mplayer.conf for system-wide.

If you end up using smplayer, you can set it through Options -> Preferences -> General (left side navigation) -> Video (Tab) -> Output Driver

EDIT: SMPlayer might ignore the mplayer configs... I've never tried setting mplayer's configs since I found smplayer.
Im using smplayer, worked like a charm.
Good tip, is just a frontend for mplayer.
https://postimg.org/image/bs6cbya7h/
 
Old 06-03-2017, 01:24 AM   #10
RadicalDreamer
Senior Member
 
Registered: Jul 2016
Location: USA
Distribution: Slackware64-Current
Posts: 1,816

Rep: Reputation: 981Reputation: 981Reputation: 981Reputation: 981Reputation: 981Reputation: 981Reputation: 981Reputation: 981
Here is my dear friend QMPlay2! He never causes problems if CUVID decoder is used. CUVID utilizes the binary drivers GPU and Video Engine (I can see it in nvidia-settings) and it seems to use less CPU.
https://slackbuilds.org/repository/1...?search=qmplay
 
Old 06-04-2017, 11:52 AM   #11
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,225

Rep: Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320
Code:
mplayer -vo vdpau -vc ffh264vdpau movie.mp4
 
  


Reply



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
Trimming H264 MP4's BaptismOfFire Linux - Software 2 10-04-2013 07:01 PM
Installing Nvidia driver in Wheezy...Can someone explain this code? m_yates Debian 4 06-29-2013 06:06 AM
VLC h264 error rng Linux - General 18 06-06-2013 10:52 PM
h264/x264 performance jaykup Linux - Software 2 01-07-2008 09:27 AM
Xine h264 Playback sadarax Linux - Software 2 11-26-2005 06:10 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 10:58 AM.

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