Closed inukaze closed 7 years ago
Your ffmpeg appears to be built without H.264 support. Try using mpv-build to compile mpv and a fresh non-distro ffmpeg.
Additionally, your direct rendering appears to be broken.
[vo/opengl] Suspected software renderer or indirect context.
[vo/opengl] retrieving framebuffer depth: OpenGL error INVALID_ENUM.
[vo/opengl] retrieving framebuffer depth: OpenGL error INVALID_ENUM.
Ignore that part. It's harmless and always happens with Mesa. We don't know if it's their bug or our bug.
You need to install all the FFmpeg packages from Packman. This includes libavformat, libavcodec, libswscale etc.
A quick way to do this is zypper dup --from Packman
(assuming “Packman” describes that repository; see output of zypper lr
). Just make sure it doesn’t switch more packages than necessary.
That aside, I strongly recommend using Tumbleweed over Leap for your typical desktop. Leap only makes sense when you’re interested in a system that doesn’t change (i.e. is “stable” with old packages forever).
You need to install all the FFmpeg packages from Packman. This includes libavformat, libavcodec, libswscale etc. A quick way to do this is zypper dup --from Packman (assuming “Packman” describes that repository; see output of zypper lr). Just make sure it doesn’t switch more packages than necessary.
That aside, I strongly recommend using Tumbleweed over Leap for your typical desktop. Leap only makes sense when you’re interested in a system that doesn’t change (i.e. is “stable” with old packages forever).
i already have installed all codecs, and all dependencies when i try to use "rpmbuild" with the "rpm source" of the OpenSuSE Package of mpv.
I prefer Leap over Tumbleweed, beacuase the lastests versions of packages evers broken all my distros with SystemD , because is the SystemD the cause of broken, but i decide give an oportunity to OpenSuSE . This is the last distro i use with SystemD, i really don't like, i prefer OpenRC .
Distros Like : Slackware64 , Manjaro OpenRC Xfce, Gentoo x86_64, Devuan (Debian with OpenRC) works better. i have all this distros installed, and i testing which of them is more perdurable and stable for me.
For me i prefer old and very stable Packages like Slackware .
==============================================================
Your ffmpeg appears to be built without H.264 support. Try using mpv-build to compile mpv and a fresh non-distro ffmpeg.
Additionally, your direct rendering appears to be broken.
[vo/opengl] Suspected software renderer or indirect context. [vo/opengl] retrieving framebuffer depth: OpenGL error INVALID_ENUM.
my DRI is not Broken, just is old, my GPU is "Nvidia GeForce 6200 TurboCache(TM), 128MB, 64 Bit, DDR, PCI Express x16 " and my /etc/X11/xorg.conf , is completely configured for that . i Play a lot Steam Games with that. :D
Ok i go try with mpv-build , or is better i download and manual compile "ffmpeg" and the another was "libav" ??? for make posible play restricted video codecs like h264 ?
You have failed to install the Packman versions of all those packages I have listed. It works with these.
Also, you prefer old and “stable” packages, but you still want new software? Does not compute.
You have failed to install the Packman versions of all those packages I have listed. It works with these.
i don't fail the installation of codec.
Also, you prefer old and “stable” packages, but you still want new software? Does not compute.
I compile this version of mpv (0.23.0) under slackware64 14.2 a couple of days ago. this not need be a problem, with the unique distribution i go this issue is with this OpenSUSE Leap 42.2. because of that i know this software can works i expect under this distribution because the package have a version more newer than Slackware64 14.2
For me is not new software, is the same software i have minimal 2 years of use. the version can be new, but the software not is new for me.
Checking for FFmpeg/Libav present : yes Checking for libav is FFmpeg : yes Checking for libav is Libav : no Checking for Libav/FFmpeg library versions : no ('libavutil >= 55.34.100 libavcodec >= 57.64.100 libavformat >= 57.56.100 libswscale >= 4.2.100 libavfilter >= 6.65.100 libswresample >= 2.3.100' not found) Unable to find development files for some of the required FFmpeg/Libav libraries. You need at least FFmpeg 3.2.2 or Libav 12. Aborting.
why says "Or Libav" when is a dependency with FFmpeg ?
I download and compile libmp3lame, libav :
export {C,CXX}FLAGS='-O2 -fPIC -march=native -mtune=native'
export OPTFLAGS='-O2 -fPIC -march=native -mtune=native'
libmp3lame :
./configure –prefix=/usr
make
sudo make install
sudo ldconfig
libav/util/codec/format/filter, libswscale / libswresample :
git clone https://github.com/libav/libav
export {C,CXX}FLAGS='-O2 -fPIC -march=native -mtune=native'
export OPTFLAGS='-O2 -fPIC -march=native -mtune=native'
./configure --enable-pic --enable-lto --enable-gpl --enable-version3 --enable-nonfree --enable-avxsynth --enable-bzlib --enable-frei0r --enable-gnutls --enable-libbs2b --enable-libcdio --enable-libdc1394 --enable-libdcadec --enable-libfaac --enable-libfdk-aac --enable-libfontconfig --enable-libfreetype --enable-libgsm --enable-libkvazaar --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopencv --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-librtmp --enable-libschroedinger --enable-libsnappy --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxcb --enable-libxcb-shm --enable-libxcb-xfixes --enable-libxvid --enable-openssl --enable-zlib --prefix=/usr
make
sudo make install
sudo ldconfig
git clone https://github.com/mpv-player/mpv-build.git ; cd mpv-build
echo --enable-libmpv-shared >> mpv_options
echo --enable-libx264 >> ffmpeg_options
echo --enable-libmp3lame >> ffmpeg_options
echo --enable-libfdk-aac >> ffmpeg_options
echo --enable-nonfree >> ffmpeg_options
echo –enable-gpl >> ffmpeg_options
echo --prefix=/usr >> ffmpeg_options
echo --prefix=/usr >> mpv_option
./rebuild -j3
I had an issue when i try to compile:
[ 23/464] Compiling video/out/vo_x11.c
Traceback (most recent call last):
File "/usr/bin/rst2man", line 26, in <module>
publish_cmdline(writer=manpage.Writer(), description=description)
File "/usr/lib/python2.7/site-packages/docutils/core.py", line 352, in publish_cmdline
config_section=config_section, enable_exit_status=enable_exit_status)
File "/usr/lib/python2.7/site-packages/docutils/core.py", line 214, in publish
**(settings_overrides or {}))
File "/usr/lib/python2.7/site-packages/docutils/core.py", line 161, in process_command_line
self.settings = option_parser.parse_args(argv)
File "/usr/lib64/python2.7/optparse.py", line 1405, in parse_args
return self.check_values(values, args)
File "/usr/lib/python2.7/site-packages/docutils/frontend.py", line 655, in check_values
make_paths_absolute(values.__dict__, self.relative_path_settings)
File "/usr/lib/python2.7/site-packages/docutils/frontend.py", line 220, in make_paths_absolute
base_path = os.getcwdu() # type(base_path) == unicode
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 29: ordinal not in range(128)
Waf: Leaving directory `/media/Compartido/Software/Liñux/src/git/mpv-build/mpv/build'
Build failed
-> task in 'rst2man' failed (exit status 1):
{task 139999234380496: rst2man mpv.rst -> mpv.1}
' /usr/bin/rst2man --strip-elements-with-class=contents ../DOCS/man/mpv.rst DOCS/man/mpv.1
if possible to set the use of python3 instead 2.7, just for try the compilation ???
Well don't work, evers says :
Playing: Videotext.mp4
(+) Video --vid=1 (*) (h264)
(+) Audio --aid=1 --alang=und (*) (aac)
libEGL warning: DRI2: failed to authenticate
[vo/opengl] Suspected software renderer or indirect context.
[vo/opengl] retrieving framebuffer depth: OpenGL error INVALID_ENUM.
Failed to initialize a video decoder for codec 'h264'.
Video: no video
Failed to initialize an audio decoder for codec 'aac'.
Audio: no audio
No video or audio streams selected.
After i had Download and compile manually : libav 12 or lastest , libmp3lame , ffmpeg, and the OpenSUSE Forum don't work :'(
i solve compiling "mplayer-1.3.0" and use it with smplayer :)
That's probably better for us all.
why says "Or Libav" when is a dependency with FFmpeg ?
You seem to not know what Libav is.
Libav is an FFmpeg fork. The name "Libav" does not refer to the libavcodec/libavformat libraries of FFmpeg.
Because libavcodec58 is mostly automatically installed by default with the Multimedia Pattern even by following those official instruction it still impossible to play mp4 video. But this is not related specifically to MPV, I notice the same situation with VLC.
So after activating the packman repository as is mentioned earlier and here
You have to force libavcodec58 to use the packman repository by choosing it through the Versions Tab.
mpv 0.23.0 and GNU/Linux
If you're not using git master or the latest release, update.
Reproduction steps
Resolve Depencies if you want to compile mpv , and install h264 from Packman Repositorie and aac Download the lastest stable source code Extract it Open a terminal and go the folder where you has extracted the sub-folder "mpv-0.23.0" and use the follow commands
cd ~/mpv-0.23.0 ./bootstrap.py ./waf configure --enable-sdl2 --enable-openal --enable-libmpv-shared --enable-zsh-comp --enable-clang-database ./waf sudo ./waf install sudo ldconfig cd ~
mpv "Videotest.mp4" Playing: Videotest.mp4 (+) Video --vid=1 () (h264) (+) Audio --aid=1 --alang=und () (aac) libEGL warning: DRI2: failed to authenticate [vo/opengl] Suspected software renderer or indirect context. [vo/opengl] retrieving framebuffer depth: OpenGL error INVALID_ENUM. Failed to initialize a video decoder for codec 'h264'. Video: no video Failed to initialize an audio decoder for codec 'aac'. Audio: no audio No video or audio streams selected.
Expected behavior
Play videos with h264 video codec and aac audio codec
Actual behavior
Evers fails, no matter if you use the version on the official repository of OpenSuSE Leap 42.2 or manual compile, evers happens the same :
mpv "Videotest.mp4" Playing: Videotest.mp4 (+) Video --vid=1 () (h264) (+) Audio --aid=1 --alang=und () (aac) libEGL warning: DRI2: failed to authenticate [vo/opengl] Suspected software renderer or indirect context. [vo/opengl] retrieving framebuffer depth: OpenGL error INVALID_ENUM. Failed to initialize a video decoder for codec 'h264'. Video: no video Failed to initialize an audio decoder for codec 'aac'. Audio: no audio No video or audio streams selected.
Log file
Sample files
Any file with : Container : MP4 , Video Codec : h264, Audio Codec: aac
Sample files needed to reproduce this issue can be uploaded to https://0x0.st/ or similar sites. (Only needed if the issue cannot be reproduced without it.)