LinuxQuestions.org
Visit Jeremy's Blog.
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 01-07-2016, 02:25 PM   #1
ahc_fan
Member
 
Registered: Jan 2009
Location: Seattle, WA
Distribution: Slackware64 14.2
Posts: 259

Rep: Reputation: 11
x265 video playback with Slackware64 14.1 and SMPlayer


What do I need to do to get x265 playback? I installed the x265 slackbuild and also ffmpeg like this:

Quote:
X265=yes ./ffmpeg.SlackBuild
Still I only get audio and no video in mplayer/smplayer. Is there something I'm missing?
 
Old 01-07-2016, 02:55 PM   #2
Nille_kungen
Member
 
Registered: Jul 2005
Distribution: Slackware64-current
Posts: 587

Rep: Reputation: 201Reputation: 201Reputation: 201
Is there any free test file that doesn't work?
http://www.h265files.com/
If you start it from an terminal does it show any errors for video?

Last edited by Nille_kungen; 01-07-2016 at 02:57 PM.
 
1 members found this post helpful.
Old 01-07-2016, 02:59 PM   #3
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
x265 is only needed if you want to encode video in h265, you don't need it installed if you only want to watch the video. It is likely your mplayer is old enough that it doesn't support h265 decoding (and the mplayer included in Slackware won't use your separately installed ffmpeg as it has everything included). You probably just need to compile a newer version of mplayer. You may want to just grab the source for mplayer from -current and build that. I don't think you'll run into any issues with it, but if you do, you could just grab the stuff for 14.1 and then just use a later release (possibly changing the version in the SlackBuild if it doesn't find it automatically).

You can use the same wget line I provided earlier, except it would end in xap/mplayer instead of x/mesa (also, if you're going to grab it from -current, you'll want to change the 14.1 to -current).

EDIT: As Nille_kungen mentions, output from the terminal would be help in verifying what the issue is, but I'd bet it's just an outdated mplayer. I know xbmc's Gotham version didn't have any support for h265 since the ffmpeg it uses internally didn't have support for it.

Last edited by bassmadrigal; 01-07-2016 at 03:01 PM.
 
1 members found this post helpful.
Old 01-07-2016, 04:07 PM   #4
ahc_fan
Member
 
Registered: Jan 2009
Location: Seattle, WA
Distribution: Slackware64 14.2
Posts: 259

Original Poster
Rep: Reputation: 11
I found this in the output of smplayer:

Code:
Debug: MplayerProcess::parseLine: 'Cannot find codec matching selected -vo and video format 0x31766568.'
The slackbuild of mplayer from -current didn't work. It ended with this error:

Code:
Checking for FFmpeg ... 
Error: libavutil/x86/asm.h header is required for shared FFmpeg

Check "config.log" if you do not understand why it failed.
Makefile:22: config.mak: No such file or directory
make: *** osdep/: Is a directory.  Stop.
Makefile:22: config.mak: No such file or directory
make: *** osdep/: Is a directory.  Stop.
Makefile:22: config.mak: No such file or directory
make: *** osdep/: Is a directory.  Stop.
./MPlayer.SlackBuild FAILED at line 389!
Not sure if this means anything but the ffmpeg-2.7.2.tar.xz that is part of this slackbuild doesn't contain the file libavutil/x86/asm.h.
 
Old 01-07-2016, 04:45 PM   #5
kikinovak
MLED Founder
 
Registered: Jun 2011
Location: Montpezat (South France)
Distribution: CentOS, OpenSUSE
Posts: 3,453

Rep: Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154
Quote:
Originally Posted by ahc_fan View Post
What do I need to do to get x265 playback? I installed the x265 slackbuild and also ffmpeg like this:
Most simple solution: Install Eric's VLC player.

Second solution: install my MPlayer from MLED.

Third solution: rebuild MPlayer from -current on Slackware stable.

Cheers,

Niki
 
1 members found this post helpful.
Old 01-07-2016, 04:54 PM   #6
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,097

Rep: Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174
Quote:
Originally Posted by ahc_fan View Post
Code:
[...]
Check "config.log" if you do not understand why it failed.
[...]
follow the hint, post the config.log on pastebin.
 
Old 01-07-2016, 11:26 PM   #7
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
Quote:
Originally Posted by ahc_fan View Post
I found this in the output of smplayer:

Code:
Debug: MplayerProcess::parseLine: 'Cannot find codec matching selected -vo and video format 0x31766568.'
As I suspected, the internal ffmpeg that is included with the stock 14.1 mplayer is too old and doesn't recognize h265 (which is why it gives 0x31766568 as the video format).

To find out why it isn't compiling, do as ponce suggested and check the config.log. It might help find the issue. If you're still stuck, continue following ponce's advice and post it to pastebin.

You can also follow Niki's suggestion and install VLC, however, I am not a fan of that interface and prefer mplayer. But if it suits you, Eric does a great job with the package and it should work fine. If you go that route, I would definitely suggest installing Eric's precompiled package. You could compile it yourself, but it is a HUGE compile, because he includes any dependencies directly within the package, so it'd take some time.
 
1 members found this post helpful.
Old 01-07-2016, 11:51 PM   #8
Drakeo
Senior Member
 
Registered: Jan 2008
Location: Urbana IL
Distribution: Slackware, Slacko,
Posts: 3,716
Blog Entries: 3

Rep: Reputation: 483Reputation: 483Reputation: 483Reputation: 483Reputation: 483
Quote:
Originally Posted by ahc_fan View Post
What do I need to do to get x265 playback? I installed the x265 slackbuild and also ffmpeg like this:



Still I only get audio and no video in mplayer/smplayer. Is there something I'm missing?
well read this. http://slackware.uk/slackware/slackw...yer.SlackBuild
and the legal reasons.
install x264, x265 ,lamemp3, etc etc etc. and rebuild Mplayer with YES.
Code:
USE_PATENTS=${USE_PATENTS:-"NO"}
one of the first things I rebuild.

Last edited by Drakeo; 01-07-2016 at 11:53 PM.
 
Old 01-07-2016, 11:51 PM   #9
elcore
Senior Member
 
Registered: Sep 2014
Distribution: Slackware
Posts: 1,753

Rep: Reputation: Disabled
I've built a new mplayer 1.2 release with rworkman's old slackbuild.
Since 1.2 release includes outdated ffmpeg, I just extract latest ffmpeg-2.8.4 into $CWD/ffmpeg and use this workaround:

Code:
....
tar xvf $CWD/$PRGNAM-$VERSION.tar.xz
#replace ffmpeg
rm -rf $PRGNAM-$VERSION/ffmpeg
cp -r $CWD/ffmpeg $PRGNAM-$VERSION/ffmpeg
cd $PRGNAM-$VERSION
....
 
Old 01-07-2016, 11:55 PM   #10
jheengut
Member
 
Registered: Sep 2006
Location: Providence, Moka Mauritius
Distribution: Slackware, Lubuntu
Posts: 352
Blog Entries: 16

Rep: Reputation: 51
I use ffplay to play x265. No problem here
 
Old 01-07-2016, 11:57 PM   #11
Drakeo
Senior Member
 
Registered: Jan 2008
Location: Urbana IL
Distribution: Slackware, Slacko,
Posts: 3,716
Blog Entries: 3

Rep: Reputation: 483Reputation: 483Reputation: 483Reputation: 483Reputation: 483
Quote:
Originally Posted by elcore View Post
I've built a new mplayer 1.2 release with rworkman's old slackbuild.
Since 1.2 release includes outdated ffmpeg, I just extract latest ffmpeg-2.8.4 into $CWD/ffmpeg and use this workaround:

Code:
....
tar xvf $CWD/$PRGNAM-$VERSION.tar.xz
#replace ffmpeg
rm -rf $PRGNAM-$VERSION/ffmpeg
cp -r $CWD/ffmpeg $PRGNAM-$VERSION/ffmpeg
cd $PRGNAM-$VERSION
....
if it is installed and it is set to yes it will grab the patented ones. Been that way for years. if you have a ffmpeg alread installed that has all the stuff built into it then that means it is in the lib's. and Mplayer will link against it. simple is just a front end to mplayer so is kplayer.
remember to install mplayer-codecs from slackbuilds.

Last edited by Drakeo; 01-08-2016 at 12:00 AM. Reason: remember to install
 
Old 01-08-2016, 12:02 AM   #12
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
Quote:
Originally Posted by Drakeo View Post
well read this. http://slackware.uk/slackware/slackw...yer.SlackBuild
and the legal reasons.
install x264 and rebuild Mplayer with YES.
Code:
USE_PATENTS=${USE_PATENTS:-"NO"}
one of the first things I rebuild.
As I mentioned in my first post, x264/x265 are only needed if you will be using mencoder to encode those formats. They are not needed to decode h264/h265.

Quote:
x264 is a free library for encoding H264/AVC video streams.

SOURCE: http://slackbuilds.org/repository/14.1/multimedia/x264/
Quote:
x265 is free software library and application for encoding video
streams into the H.265/MPEG-H HEVC compression format.

SOURCE: http://slackbuilds.org/repository/14.1/multimedia/x265/
Also, if you read the section about patents, you will see that h264/h265 are not mentioned. The last line specifically mentions what patent issues are there "lame mp3, faac, AMR and dvdcss libraries". If you notice, other than libdvdcss, all the issues lie with encoding, not decoding. So, if you're just using mplayer to play files, and don't intend on encoding anything with mencoder, there's no need to worry about lame, faac, or AMR.

Quote:
# ---------------------------------------------------------------------------
# -- PATENT ALERT! --
# MPLayer can be built with MP3 (lame) and AMR audio encoders
# (needed for FLV and .3GP videos) but these libraries are 'contaminated'
# with patents from Fraunhofer and GGP.
# Also, the AAC encoder has patent issues.
# You can build these patended algorithms into ffmpeg, and if you are an
# ordinary end user, no one will bother you for using them.
# For the binaries based on this SlackBuild that I distribute, it is a
# different story. I am not allowed to distribute binary packages that
# incorporate patented code. So here you go. My Slackware package was
# built with "USE_PATENTS=NO" i.e. without using
# the lame mp3, faac, AMR and dvdcss libraries.
# ---------------------------------------------------------------------------
 
Old 01-08-2016, 12:05 AM   #13
elcore
Senior Member
 
Registered: Sep 2014
Distribution: Slackware
Posts: 1,753

Rep: Reputation: Disabled
Quote:
Originally Posted by Drakeo View Post
if it is installed and it is set to yes it will grab the patented ones. Been that way for years. if you have a ffmpeg alread installed that has all the stuff built into it then that means it is in the lib's. and Mplayer will link against it. simple is just a front end to mplayer so is kplayer.
remember to install mplayer-codecs from slackbuilds.
This is a new thing that needs this workaround, ffmpeg now comes bundled with mplayer 1.2 src. Old mplayer doesn't include ffmpeg.
 
Old 01-08-2016, 04:25 AM   #14
solarfields
Senior Member
 
Registered: Feb 2006
Location: slackalaxy.com
Distribution: Slackware, CRUX
Posts: 1,449

Rep: Reputation: 997Reputation: 997Reputation: 997Reputation: 997Reputation: 997Reputation: 997Reputation: 997Reputation: 997
compile MPlayer from -current. A new dependency is libvdpau, you can get it from SBo: http://slackbuilds.org/repository/14...ries/libvdpau/ or compile it from the script provided by -current, too.

As mentioned above, you can just use VLC. It will probably eat less resources than MPlayer when showing a h265 video
 
1 members found this post helpful.
Old 01-08-2016, 04:46 AM   #15
ahc_fan
Member
 
Registered: Jan 2009
Location: Seattle, WA
Distribution: Slackware64 14.2
Posts: 259

Original Poster
Rep: Reputation: 11
Sorry but unless I'm mistaken there is no "config.log". There is no source placed in /tmp/SBo/ where I expected to find it. In fact if I do

Code:
updatedb
locate config.log
it comes up with nothing called "config.log"

I know I can use VLC but I don't like it. It's not the interface that bothers me but it has some issues with video playback on my computer. Every once in a while the image gets distorted and takes several seconds to come out of it.
 
  


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
Smplayer/Mplayer freezing and/or high speed playback problems on Centos 6.5? comcastuser Linux - Software 3 09-07-2014 09:39 PM
[SOLVED] Unable to play ogg video files in VLC and Smplayer michalng Debian 11 01-30-2012 08:39 AM
xmms flac playback slackware64 -current hemp4fuel Slackware 4 11-25-2009 11:51 AM
no sound playback or video playback..on ubuntu 8.10 thelastquincy Linux - Newbie 3 04-20-2009 11:14 PM
LXer: 3 Best Video Players for Linux: SMPlayer, VLC and Kaffeine LXer Syndicated Linux News 0 10-24-2008 05:20 PM

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

All times are GMT -5. The time now is 01:24 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