Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
fail emergeing media player software [SOLVED]
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
Isomorph
n00b
n00b


Joined: 22 Sep 2002
Posts: 55
Location: Denmark

PostPosted: Tue Dec 09, 2014 1:06 am    Post subject: fail emergeing media player software [SOLVED] Reply with quote

Trying to emerge different media player software but get an error every time.

I have a suspicion that it have to do with ffmpeg, but I have tried to emerge different version, but it don't seem
to help.

emerge mplayer fail with
Quote:
libvo/vo_png.c: In function 'config':
libvo/vo_png.c:135: error: invalid use of undefined type 'enum AVPixelFormat'
libvo/vo_png.c:136: error: 'AV_CODEC_ID_PNG' undeclared (first use in this function)
libvo/vo_png.c:136: error: (Each undeclared identifier is reported only once
libvo/vo_png.c:136: error: for each function it appears in.)
Makefile:758: recipe for target 'libvo/vo_png.o' failed


emerge of gst-plugins-ffmpeg also fails.

Quote:

ecmap.c:3452: error: 'AV_CODEC_ID_AMR_WB' undeclared (first use in this function)
/var/tmp/portage/media-plugins/gst-plugins-ffmpeg-0.10.13_p201211-r2/work/gst-ffmpeg-0.10.13_p201211/ext/ffmpeg/gstffmpegcodecmap.c:3455: error: 'AV_CODEC_ID_QCELP' undeclared (first use in this function)
/var/tmp/portage/media-plugins/gst-plugins-ffmpeg-0.10.13_p201211-r2/work/gst-ffmpeg-0.10.13_p201211/ext/ffmpeg/gstffmpegcodecmap.c:3458: error: 'AV_CODEC_ID_H264' undeclared (first use in this function)
/var/tmp/portage/media-plugins/gst-plugins-ffmpeg-0.10.13_p201211-r2/work/gst-ffmpeg-0.10.13_p201211/ext/ffmpeg/gstffmpegcodecmap.c:3466: error: 'AV_CODEC_ID_FLV1' undeclared (first use in this function)
/var/tmp/portage/media-plugins/gst-plugins-ffmpeg-0.10.13_p201211-r2/work/gst-ffmpeg-0.10.13_p201211/ext/ffmpeg/gstffmpegcodecmap.c:3475: error: 'AV_CODEC_ID_NELLYMOSER' undeclared (first use in this function)
/var/tmp/portage/media-plugins/gst-plugins-ffmpeg-0.10.13_p201211-r2/work/gst-ffmpeg-0.10.13_p201211/ext/ffmpeg/gstffmpegcodecmap.c:3512: error: type of formal parameter 1 is incomplete
/var/tmp/portage/media-plugins/gst-plugins-ffmpeg-0.10.13_p201211-r2/work/gst-ffmpeg-0.10.13_p201211/ext/ffmpeg/gstffmpegcodecmap.c:3521: warning: 'return' with a value, in function returning void
/var/tmp/portage/media-plugins/gst-plugins-ffmpeg-0.10.13_p201211-r2/work/gst-ffmpeg-0.10.13_p201211/ext/ffmpeg/gstffmpegcodecmap.c:2952: warning: unused variable 'id'
Makefile:544: recipe for target 'libgstffmpeg_la-gstffmpegcodecmap.lo' failed
make[3]: *** [libgstffmpeg_la-gstffmpegcodecmap.lo] Error 1


emerge --info '=media-plugins/gst-plugins-ffmpeg-0.10.13_p201211-r2::gentoo says
Quote:
Portage 2.2.8-r2 (default/linux/x86/13.0/desktop, gcc-4.4.7, glibc-2.19-r1, 3.4.104-gentoo i686)
=================================================================
System Settings
=================================================================
System uname: Linux-3.4.104-gentoo-i686-Intel-R-_Core-TM-2_Quad_CPU_Q6600_@_2.40GHz-with-gentoo-2.2
KiB Mem: 2073724 total, 218440 free
KiB Swap: 3911820 total, 3868284 free
Timestamp of tree: Mon, 08 Dec 2014 13:30:01 +0000
ld GNU ld (Gentoo 2.24 p1.4) 2.24
app-shells/bash: 4.2_p53
dev-java/java-config: 2.2.0
dev-lang/perl: 5.18.2-r2
dev-lang/python: 2.7.7, 3.3.5-r1, 3.4.1
dev-util/cmake: 2.8.12.2-r1::<unknown repository>
dev-util/pkgconfig: 0.28-r1
sys-apps/baselayout: 2.2
sys-apps/openrc: 0.12.4
sys-apps/sandbox: 2.6-r1
sys-devel/autoconf: 2.69
sys-devel/automake: 1.11.6, 1.13.4
sys-devel/binutils: 2.24-r3
sys-devel/gcc: 4.4.7, 4.8.3
sys-devel/gcc-config: 1.7.3
sys-devel/libtool: 2.4.2-r1
sys-devel/make: 4.0-r1
sys-kernel/linux-headers: 3.13 (virtual/os-headers)
sys-libs/glibc: 2.19-r1
Repositories: gentoo SvendsEbuildCollection
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="* -@EULA"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=native -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -march=native -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -march=i686 -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 splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -march=i686 -pipe"
GENTOO_MIRRORS="ftp://gentoo.mirror.dkm.cz/pub/gentoo/ ftp://gd.tuwien.ac.at/opsys/linux/gentoo/ http://gd.tuwien.ac.at/opsys/linux/gentoo/"
LANG="en_DK.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
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"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
USE="X a52 aac acl acpi alsa berkdb bindist branding bzip2 cairo cdda cdr cli consolekit cracklib crypt cups cxx dbus dhclient dri dts dvd dvdr emacs emboss encode exif fam firefox flac fortran gdbm gif glamor gpm graphviz gtk iconv jpeg latex lcms ldap libnotify mad mmx mng modules mp3 mp4 mpeg mtp ncurses nls nptl nvidia ogg opengl openmp pam pango pcre pdf png policykit postgres ppds qt3support readline sdl session spell sqlite3 sse sse2 ssl ssse3 startup-notification svg tcpd tiff truetype udev udisks unicode upower usb video vorbis wxwidgets x264 x86 xcb xml xv xvid xvmc zlib" ABI_X86="32" ALSA_CARDS="HDA-Intel" 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" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en da de" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" RUBY_TARGETS="ruby20" USERLAND="GNU" VIDEO_CARDS="nouveau nv nvidia vesa fbdev" 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: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, MAKEOPTS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, SYNC, USE_PYTHON



Last edited by Isomorph on Tue Dec 09, 2014 3:06 pm; edited 1 time in total
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 8291
Location: Saint Amant, Acadiana

PostPosted: Tue Dec 09, 2014 1:13 am    Post subject: Reply with quote

Try with gcc-4.8.3 ?
_________________
My Gentoo installation notes.
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
Isomorph
n00b
n00b


Joined: 22 Sep 2002
Posts: 55
Location: Denmark

PostPosted: Tue Dec 09, 2014 1:42 am    Post subject: Reply with quote

Jaglover wrote:
Try with gcc-4.8.3 ?


yes still similar error.

Quote:

libvo/vo_png.c: In function 'config':
libvo/vo_png.c:135:9: error: invalid use of undefined type 'enum AVPixelFormat'
avctx->pix_fmt = imgfmt2pixfmt(format);
^
libvo/vo_png.c:136:55: error: 'AV_CODEC_ID_PNG' undeclared (first use in this function)
if (avcodec_open2(avctx, avcodec_find_encoder(AV_CODEC_ID_PNG), NULL) < 0) {
^
libvo/vo_png.c:136:55: note: each undeclared identifier is reported only once for each function it appears in
Makefile:758: recipe for target 'libvo/vo_png.o' failed
Back to top
View user's profile Send private message
Schnulli
Guru
Guru


Joined: 25 Jun 2010
Posts: 320
Location: Bremen DE

PostPosted: Tue Dec 09, 2014 3:07 am    Post subject: Reply with quote

Hi
use an older Version of mplyer, by the way, i use vlc, it works, and also try an older Version gst-plugin.
This is also a reason why i am still on an older udev System, to have my older apps running smoothy ;)

Both works with odler Versions.
If you dont know how to use older versions, learn to mask packages yourself, the wikki helps, or just ask
It seems that the av-codec has a huge problem as well , use an older version, they work ^^ ;)
A hint : the package dependencies are the key to understand what versions you need to have it working smoothy

Someone said long ago : "its not allways a sign of intelligence to use the newest, better wait until others finished Beta testing and the Bugs are known and fixed" ;)
Others say this had been for a while also a "Microsoft thinking", well loooong ago :lol: :lol: :lol: :lol: :lol:


Just in case, if enough remember that Microsoft was born from a Unix/Linux as well....we know where to make it run and work old-school like ! Here at Gentoo is the Birth Place of the Operation System, no where else ! :twisted: :P

Best.....
Back to top
View user's profile Send private message
Isomorph
n00b
n00b


Joined: 22 Sep 2002
Posts: 55
Location: Denmark

PostPosted: Tue Dec 09, 2014 9:51 am    Post subject: Reply with quote

Schnulli wrote:
Hi
use an older Version of mplyer, by the way, i use vlc, it works, and also try an older Version gst-plugin.
This is also a reason why i am still on an older udev System, to have my older apps running smoothy ;)

Best.....


Even the oldest in version in portage fail me, what version of mplayer and ffmpeg have you installed ?

Quote:

libvo/vo_png.c: In function 'config':
libvo/vo_png.c:135:9: error: invalid use of undefined type 'enum AVPixelFormat'
avctx->pix_fmt = imgfmt2pixfmt(format);
^
Makefile:775: recipe for target 'libvo/vo_png.o' failed
make: *** [libvo/vo_png.o] Error 1
* ERROR: media-video/mplayer-1.1.1-r1::gentoo failed (compile phase):
Back to top
View user's profile Send private message
Isomorph
n00b
n00b


Joined: 22 Sep 2002
Posts: 55
Location: Denmark

PostPosted: Tue Dec 09, 2014 10:15 am    Post subject: Reply with quote

vlc compiles but report problems.

Quote:
VLC media player 2.1.2 Rincewind (revision 2.1.2-0-ga4c4876)
[0x804c8f8] main libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface.
Remote control interface initialized. Type `help' for help.
[0xb40e3c28] main decoder error: corrupt module: /usr/lib/vlc/plugins/codec/libavcodec_plugin.so
[0xb40e3c28] main decoder error: no suitable decoder module for fourcc `mp4a'. VLC probably does not support this sound or video format.
[0xb40e3c28] main decoder error: No suitable decoder module
[0xb40e3c28] main decoder error: VLC does not support the audio or video format "mp4a". Unfortunately there is no way for you to fix this.
[0xb40e3c28] main decoder error: corrupt module: /usr/lib/vlc/plugins/codec/libavcodec_plugin.so
[0xb40e3c28] main decoder error: no suitable decoder module for fourcc `h264'. VLC probably does not support this sound or video format.
[0xb40e3c28] main decoder error: No suitable decoder module
[0xb40e3c28] main decoder error: VLC does not support the audio or video format "h264". Unfortunately there is no way for you to fix this.

Back to top
View user's profile Send private message
Isomorph
n00b
n00b


Joined: 22 Sep 2002
Posts: 55
Location: Denmark

PostPosted: Tue Dec 09, 2014 3:06 pm    Post subject: Reply with quote

looking in the emerge.log I found the last working mplayer I had on my old system.

and manage to install it with
USE="-faac" emerge -tav =mplayer-1.0_rc4_p20110322-r1

found the ebuild and patches on sources.gentoo.org
and downloaded some file from a Chinese website.
Back to top
View user's profile Send private message
Schnulli
Guru
Guru


Joined: 25 Jun 2010
Posts: 320
Location: Bremen DE

PostPosted: Wed Dec 10, 2014 4:09 pm    Post subject: Reply with quote

but you will need faac codec or VLC/mplayer wont work / lay all you want.... just a hint, at time id be careful downloading stuff from not verifyed chinese websites ^^
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