LINUX.ORG.RU

Не проигрываются видеофайлы в Gentoo.

 , , ,


0

1

Установлена Gentoo. Не проигрываются видео файлы. Пробовал mplayer и vlc. Звук есть, видео - нет.

При этом в браузере youtube играет нормально.

Пример вывода mplayer:

mplayer Герштейн\ С\ С\ \ Квантовая\ механика\ Лекция\ 01-o3qfU6TH1HI.mp4 
MPlayer 1.3.0-6.3.0 (C) 2000-2016 MPlayer Team

Воспроизведение Герштейн С С  Квантовая механика Лекция 01-o3qfU6TH1HI.mp4.
libavformat version 57.71.100 (external)
Обнаружен libavformat формат файла!
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f2e6d6eaf20]Protocol name not provided, cannot determine if input is local or a network protocol, buffers and access patterns cannot be configured optimally without knowing the protocol
[lavf] stream 0: video (h264), -vid 0
[lavf] stream 1: audio (aac), -aid 0, -alang und
VIDEO:  [H264]  638x360  24bpp  25.000 fps  275.1 kbps (33.6 kbyte/s)
Could not find a UTF-8 locale,
character keys beyond Latin-1 will not be handled.
==========================================================================
Открываю декодер видео: [ffmpeg] FFmpeg's libavcodec codec family
libavcodec version 57.89.100 (external)
Выбран видеокодек: [ffh264] vfm: ffmpeg (FFmpeg H.264)
==========================================================================
Информация о клипе:
 major_brand: mp42
 minor_version: 0
 compatible_brands: isommp42
 creation_time: 2015-02-02T07:50:27.000000Z
Load subtitles in ./
==========================================================================
Открываю декодер аудио: [ffmpeg] FFmpeg/libavcodec audio decoders
AUDIO: 44100 Hz, 1 ch, floatle, 72.0 kbit/5.10% (ratio: 8999->176400)
Выбран аудиокодек: [ffaac] afm: ffmpeg (FFmpeg AAC (MPEG-2/MPEG-4 Audio))
==========================================================================
AO: [oss] 44100Hz 1ch s16le (2 bytes per sample)
Начало воспроизведения...
Movie-Aspect - 1.77:1 - выполняю предварительное масштабирование
для коррекции соотношения сторон фильма.
VO: [xv] 638x360 => 638x360 Planar YV12 
A:  76.9 V:  76.9 A-V:  0.000 ct:  0.060   0/  0  2%  0%  0.3% 0 0 

Выходим... (Выход)

emerge --info:

Portage 2.3.6 (python 3.4.6-final-0, default/linux/amd64/13.0/desktop/plasma, gcc-6.3.0, glibc-2.24-r3, 4.12.3-gentoo x86_64)
=================================================================
System uname: Linux-4.12.3-gentoo-x86_64-AMD_Athlon-tm-_II_X4_640_Processor-with-gentoo-2.4.1
KiB Mem:     4046012 total,   2020976 free
KiB Swap:    4194300 total,   4194300 free
Timestamp of repository gentoo: Sat, 22 Jul 2017 17:30:01 +0000
sh bash 4.4_p12
ld GNU ld (Gentoo 2.28 p1.2) 2.28
app-shells/bash:          4.4_p12::gentoo
dev-lang/perl:            5.24.2::gentoo
dev-lang/python:          2.7.13::gentoo, 3.4.6::gentoo
dev-util/cmake:           3.9.0::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.4.1::gentoo
sys-apps/openrc:          0.28::gentoo
sys-apps/sandbox:         2.10-r4::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r3::gentoo
sys-devel/automake:       1.13.4-r1::gentoo, 1.15.1::gentoo
sys-devel/binutils:       2.28-r2::gentoo
sys-devel/gcc:            6.3.0::gentoo
sys-devel/gcc-config:     1.8-r1::gentoo
sys-devel/libtool:        2.4.6-r4::gentoo
sys-devel/make:           4.2.1-r1::gentoo
sys-kernel/linux-headers: 4.10::gentoo (virtual/os-headers)
sys-libs/glibc:           2.24-r3::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="ru_UA.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="X a52 aac acl acpi alsa amd64 bash-completion berkdb branding bzip2 cairo cdda cdr cli consolekit cracklib crypt cups curl cxx dbus declarative djvu dri dts dvd dvdr emboss encode examples exif fam ffmpeg firefox flac fontconfig fortran ftp gdbm gif gimp glamor glut gnuplot gphoto2 gpm gsl gstreamer gtk gzip hddtemp iconv imagemagick ipv6 jpeg jpeg2k kde kipi kwallet lame latex lcms ldap libnotify lm_sensors lzma lzo mad matroska mng modules mozilla mp3 mp4 mpeg mplayer mtp multilib ncurses networkmanager nls nptl ogg openal opengl openmp oscar oss pam pango pcre pdf perl phonon plasma plotutils png policykit ppds python qml qt3support qt5 quicktime raw readline rss ruby sdl seccomp semantic-desktop session smp spell sqlite ssl startup-notification svg tcpd theora threads tiff truetype udev udisks unicode upnp upnp-av upower usb v4l vcd vim-syntax vnc vorbis widgets wxwidgets x264 xattr xcb xcomposite xinerama xml xmpp xpm xscreensaver xv xvid zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="3dnow 3dnowext mmx mmxext popcnt sse sse2 sse3 sse4a" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="evdev keyboard mouse" KERNEL="linux" L10N="ru uk en" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="ru uk en" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6" POSTGRES_TARGETS="postgres9_5" PYTHON_SINGLE_TARGET="python3_4" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby23 ruby24" USERLAND="GNU" VIDEO_CARDS="nouveau" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
[ebuild   R    ] media-video/mplayer-1.3.0-r1::gentoo  USE="X a52 alsa cdio dts dvd dvdnav enca encode ftp gif iconv ipv6 jpeg jpeg2k libass lzo mad mng mp3 network openal opengl osdmenu oss png sdl shm theora truetype unicode v4l vcd vorbis x264 xinerama xscreensaver xv xvid -aalib (-altivec) (-aqua) -bidi -bl -bluray -bs2b -cddb -cdparanoia -cpudetection -debug -dga -directfb -doc -dv -dvb -faac -faad -fbcon -ggi -gsm -jack -joystick -ladspa -libcaca -libmpeg2 -lirc -live -md5sum -nas -nut -pnm -pulseaudio -pvr -radio -rar -rtc -rtmp -samba (-selinux) -speex -tga -toolame -tremor -twolame -vdpau (-vidix) -xvmc -yuv4mpeg -zoran" CPU_FLAGS_X86="3dnow 3dnowext mmx mmxext sse sse2 -ssse3" VIDEO_CARDS="-mga -s3virge -tdfx" 0 KiB
[ebuild   R    ] media-video/vlc-2.2.6-r1:0/5-8::gentoo  USE="X a52 alsa avcodec avformat cdda dbus dts dvbpsi dvd encode ffmpeg flac fontconfig gcrypt gstreamer jpeg kde libnotify libsamplerate matroska mp3 mpeg mtp ncurses ogg opengl png qt5 sdl svg swscale theora truetype udev upnp v4l vnc vorbis x264 xcb xml xv -aalib (-altivec) -atmo (-audioqueue) -bidi -bluray -cddb -chromaprint -dc1394 -debug -directfb (-directx) -dvb (-dxva2) -faad -fdk -fluidsynth -gme -gnome -gnutls -growl -httpd -ieee1394 -jack -kate -libass -libav -libcaca -libtar -libtiger -linsys -lirc -live -lua (-macosx-dialog-provider) (-macosx-eyetv) (-macosx-qtkit) (-macosx-quartztext) -modplug -musepack (-neon) -omxil -opencv -optimisememory -opus -postproc -projectm -pulseaudio -qt4 -rdp -rtsp -run-as-root -samba -schroedinger -sdl-image -sftp -shout -sid -skins -speex -taglib {-test} -tremor -twolame -vaapi -vcdx -vdpau -vlm -vpx -wma-fixed -x265 -zeroconf -zvbi" CPU_FLAGS_X86="mmx sse" 0 KiB

В чем может быть проблема? Стоят видеодрайвер nouveau. Флаг vdpau отключен.

Пробовал вывод через opengl?

Gary ★★★★★ ()

nouveau

Алсо пробуй mpv, видел тут внезапные истории успеха.

anonymous ()

INPUT_DEVICES=«evdev keyboard mouse»

Достаточно libinput.

Meyer ★★★ ()

а через ffplay если попробовать?

Harald ★★★★★ ()
Ответ на: комментарий от Gary
mplayer -vo help
MPlayer 1.3.0-6.3.0 (C) 2000-2016 MPlayer Team
Доступные драйвера вывода видео:
        xv      X11/Xv
        gl_nosw OpenGL no software rendering
        x11     X11 ( XImage/Shm )
        xover   General X11 driver for overlay capable video output drivers
        sdl     SDL YUV/RGB/BGR renderer (SDL v1.1.7+ only!)
        gl      OpenGL
        gl_tiled        X11 (OpenGL) - multiple textures version
        matrixview      MatrixView (OpenGL)
        v4l2    V4L2 MPEG Video Decoder Output
        null    Null video output
        mpegpes MPEG-PES file
        png     PNG file
        jpeg    JPEG file
        gif89a  animated GIF output
        mng     MNG file

Через x11,gl работает. Через xv не работает.

watsoon ()
Ответ на: комментарий от Harald

Работает. Хм, похоже проблема только с видеовыводом xv.

watsoon ()

xv - забудь о нём и научи свой mpv hardware acceleration/decoding.

blitz@inode ~/Videos % mpv Summertime_quantum_physics_naked_girls.mp4 
Playing: Summertime_quantum_physics_naked_girls.mp4
 (+) Video --vid=1 (*) (h264)
 (+) Audio --aid=1 --alang=und (*) (aac)
libva info: VA-API version 0.40.0
libva info: va_getDriverName() returns 0
libva info: User requested driver 'i965'
libva info: Trying to open /usr/lib/dri/i965_drv_video.so
libva info: Found init function __vaDriverInit_0_40
libva info: va_openDriver() returns 0
AO: [alsa] 48000Hz stereo 2ch float
Using hardware decoding (vaapi).
VO: [vaapi] 360x240 vaapi
blitz ()
Ответ на: комментарий от Meyer

Достаточно libinput.

wacom'ы не работают через libinput, например.

Bruce_Lee ★★ ()
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.