Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
ffplay doesn't play anymore - sdl-error
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
DawgG
l33t
l33t


Joined: 17 Sep 2003
Posts: 740

PostPosted: Wed Jan 25, 2017 11:02 am    Post subject: ffplay doesn't play anymore - sdl-error Reply with quote

when i run ffplay with a video-file (mkv, ogv, mp4) or audio-file (tested mp3), it fails with the following error:
Code:
Could not initialize SDL - No available video device
(Did you set the DISPLAY variable?)

ffmpeg (ffmpeg version 3.2.2 Copyright (c) 2000-2016 the FFmpeg developers
built with gcc 5.4.0 (Gentoo 5.4.0-r2 p1.2, pie-0.6.5)
was compiled with USE="sdl" and i recompiled ffmpeg and libsdl yesterday. i recently changed my kernel and omitted V4L, but activating it again did not change this error
Code:
# CONFIG_VIDEO_V4L2_SUBDEV_API is not set
CONFIG_VIDEO_V4L2=y
CONFIG_V4L_PLATFORM_DRIVERS=y
# CONFIG_V4L_MEM2MEM_DRIVERS is not set
# CONFIG_V4L_TEST_DRIVERS is not set


(encoding with ffmpeg works flawlessly)
i recently moved my ~amd64 system from an amd-K-something/radeon-combo to an intel/nvidia-playtform and a thing this error first occured on this new system (recompiled everything, of course)
i run the system with nouveau/nvidia-binary combined under two different kernels and this error occurs under nouveau, but i haven't tested with nvidia-binary yet (although i don't see how it could be related to opengl in any way; under nouveau it's xorg-x11-opengl)

how do i get ffplay to play again (as i need in in some video-conversion-scripts)?
THX for your help!





here's my emerge --info:
Portage 2.3.3 (python 3.4.5-final-0, default/linux/amd64/13.0/desktop, gcc-5.4.0, glibc-2.23-r3, 4.9.5-gentoo x86_64)
=================================================================
System uname: Linux-4.9.5-gentoo-x86_64-Intel-R-_Core-TM-_i7-2600_CPU_@_3.40GHz-with-gentoo-2.3
KiB Mem: 8122596 total, 6503276 free
KiB Swap: 0 total, 0 free
Timestamp of repository gentoo: Wed, 25 Jan 2017 00:45:01 +0000
sh bash 4.4_p11
ld GNU ld (Gentoo 2.27 p1.0) 2.27
app-shells/bash: 4.4_p11::gentoo
dev-java/java-config: 2.2.0-r3::gentoo
dev-lang/perl: 5.24.1_rc4::gentoo
dev-lang/python: 2.7.12::gentoo, 3.4.5::gentoo, 3.5.2::gentoo
dev-util/cmake: 3.7.2::gentoo
dev-util/pkgconfig: 0.29.1::gentoo
sys-apps/baselayout: 2.3::gentoo
sys-apps/openrc: 0.23.1::gentoo
sys-apps/sandbox: 2.10-r3::gentoo
sys-devel/autoconf: 2.13::gentoo, 2.69-r2::gentoo
sys-devel/automake: 1.11.6-r2::gentoo, 1.13.4-r1::gentoo, 1.14.1-r1::gentoo, 1.15-r2::gentoo
sys-devel/binutils: 2.25.1-r1::gentoo, 2.27::gentoo
sys-devel/gcc: 4.9.3::gentoo, 5.4.0-r2::gentoo
sys-devel/gcc-config: 1.8-r1::gentoo
sys-devel/libtool: 2.4.6-r2::gentoo
sys-devel/make: 4.2.1::gentoo
sys-kernel/linux-headers: 4.9::gentoo (virtual/os-headers)
sys-libs/glibc: 2.23-r3::gentoo
Repositories:

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

gentoo-kodi-overlay
location: /usr/local/portage/kodi-overlay/gentoo-kodi-overlay
sync-type: git
sync-uri: git://github.com/herrnst/gentoo-kodi-overlay.git
masters: gentoo
priority: 50

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /etc/stunnel/stunnel.conf /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt"
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"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--keep-going"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs buildpkg config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms split-log strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://gentoo.inode.at ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo http://ftp.uni-erlangen.de/pub/mirrors/gentoo http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/"
LANG="de_DE@euro"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j9"
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="a52 aac acl acpi aiglx alsa amd64 ass avx bash-completion bluray branding bzip2 cairo cdda cddb cdr cli cracklib crypt cups cxx dri dts dvd dvdr dvdread emboss encode erandom examples exif fam firefox flac fortran gif glamor gnutls gtk htmlhandbook iconv imagemagick jpeg jpeg2k kdeenablefinal lcms libass libnotify lzma mad mjpeg mmap mmx mng modern-top modules mp3 mp4 mpeg mpi multilib ncurses nls nptl nptlonly nsplugin offensive ogg opengl openmp optimized-qmake pam pango pch pcre pdf png ppds qt3support qt4 readline rtmp sdl seccomp session speex spell sse sse2 ssl ssse3 startup-notification svg theora threads tiff truetype udev unicode usb userlocales v4l v4l2 vaapi vdpau vim-syntax vorbis vpx wxwidgets x264 x265 xcb xcomposite xml xv xvid zlib" ABI_X86="32 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="aes avx mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" 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="de en" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="de de_DE en en_US" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4 python3_5" RUBY_TARGETS="ruby24 ruby21 ruby22 ruby23" USERLAND="GNU" VIDEO_CARDS="nouveau nvidia" 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"
USE_PYTHON="2.7 3.4 3.5"
_________________
DUMM KLICKT GUT.
Back to top
View user's profile Send private message
charles17
Veteran
Veteran


Joined: 02 Mar 2008
Posts: 1874

PostPosted: Wed Jan 25, 2017 11:09 am    Post subject: Reply with quote

Have you compared the bugs listed in bug 574788?
Back to top
View user's profile Send private message
DawgG
l33t
l33t


Joined: 17 Sep 2003
Posts: 740

PostPosted: Thu Jan 26, 2017 9:42 am    Post subject: Reply with quote

THX, i checked the bugs but ffplay wasn't mentioned anywhere - i think i'll open a new bug.
i checked on the old box and the script does run with ffmpeg-2.x there.
meanwhile i adapted the script so that mplayer does the small part that ffplay does there (detect values for -vf crop="a:b:c:d").
d
_________________
DUMM KLICKT GUT.
Back to top
View user's profile Send private message
DawgG
l33t
l33t


Joined: 17 Sep 2003
Posts: 740

PostPosted: Mon Feb 06, 2017 10:46 am    Post subject: depends on libsdl_2_ with USE="X" Reply with quote

for another pkg (media-video/mpv-0.23.0-r1) i had to recompile libsdl2 with USE="X" and by accident i noticed that ffplay runs again.
after a quick look it seems to me that there is quite a mixup of libsdl and libsdl2-useflags since USE="sdl" for mpv seems to pull in media-libs/libsdl2 with USE="X" but not for ffmpeg media-libs/libsdl.
_________________
DUMM KLICKT GUT.
Back to top
View user's profile Send private message
njsg
n00b
n00b


Joined: 17 Dec 2005
Posts: 58
Location: Finland

PostPosted: Sat Jun 10, 2017 1:55 pm    Post subject: Reply with quote

I have libsdl2 (and libsdl) built with USE=X, but with ffmpeg-3.* I am not able to use ffplay. Any attempt to play audio or video gives me

Code:
SDL: could not set video mode - exiting


ffmpeg-2.* works. I will have to investigate what is behind this, it may be a completely unrelated issue.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum