Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
can't emerge media-sound/squeezeslave-1.1_p381
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
SylaSebas
n00b
n00b


Joined: 07 Aug 2013
Posts: 26

PostPosted: Wed Aug 07, 2013 7:31 am    Post subject: can't emerge media-sound/squeezeslave-1.1_p381 Reply with quote

hi you guys

in short: i tried to reinstall squeezeslave but it doesn't work if I use the USE flags "alsa aac wma". without these flags it emerges ...

here's (a part of) the error message:
Code:

src/slimaudio/slimaudio_decoder_aac.c:167:10: error: âAVIOContextâ has no member named âis_streamedâ
src/slimaudio/slimaudio_decoder_aac.c:202:3: warning: âav_find_stream_infoâ is deprecated (declared at /usr/include/libavformat/avformat.h:1446) [-Wdeprecated-declarations]
src/slimaudio/slimaudio_decoder_aac.c:239:2: warning: âavcodec_openâ is deprecated (declared at /usr/include/libavcodec/avcodec.h:3569) [-Wdeprecated-declarations]
src/slimaudio/slimaudio_decoder_aac.c:287:3: warning: âavcodec_decode_audio3â is deprecated (declared at /usr/include/libavcodec/avcodec.h:3852) [-Wdeprecated-declarations]
make: *** [src/slimaudio/slimaudio_decoder_wma.o] Error 1
make: *** Waiting for unfinished jobs....
make: *** [src/slimaudio/slimaudio_decoder_aac.o] Error 1


so it's probably that the avcodec is deprecated?

anyone an idea on what to do?

Thanks in advance and best regards, Silvan


PS: here's the output from emerge --info '=media-sound/squeezeslave-1.1_p381'
Code:

Portage 2.1.12.2 (default/linux/amd64/13.0/desktop/kde, gcc-4.6.3, glibc-2.15-r3, 3.8.13-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-3.8.13-gentoo-x86_64-AMD_Phenom-tm-_II_X6_1055T_Processor-with-gentoo-2.2
KiB Mem:     8176780 total,   6703976 free
KiB Swap:    4194300 total,   4194300 free
Timestamp of tree: Wed, 07 Aug 2013 06:30:01 +0000
ld GNU ld (GNU Binutils) 2.23.1
app-shells/bash:          4.2_p45
dev-java/java-config:     2.1.12-r1
dev-lang/python:          2.7.5, 3.2.5-r1
dev-util/cmake:           2.8.10.2-r2
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.11.8
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.9.6-r3, 1.11.6, 1.12.6
sys-devel/binutils:       2.23.1
sys-devel/gcc:            4.6.3
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.7 (virtual/os-headers)
sys-libs/glibc:           2.15-r3
Repositories: gentoo ohnobinki_overlay steam-overlay regen2-overlay
Installed sets: @steam
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=amdfam10 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/polkit-1/actions /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /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=amdfam10 -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"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j7"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --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="/var/lib/layman/ohnobinki /var/lib/layman/steam /var/lib/layman/regen2-overlay"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X a52 aac acl acpi aim airplay alsa amd64 berkdb bindist bluetooth bluray branding bzip2 cairo calendar cdda cdr clamav clamdtop cli consolekit cracklib crypt cups cvs cxx dbus declarative dedicated display dri dts dvb dvd dvdr embedded emboss encode exif extras fam fat firefox flac flash fortran ftp gdbm gif gimp git gpm gptfdisk gudev gzip hwdb iconv ieee1394 imagemagick imap introspection ipod ipv6 java java6 javascript joystick jpeg jpeg2k kde kdrive kerberos keymap kipi lame latex lcms ldap libkms libnotify libwww mad mercurial messages midi milter mime minizip mmx mng modules mozilla mp3 mp4 mpeg mpg123 mplayer msn mudflap multilib mysql mysqli nas ncurses nfs nls nptl ntfs ocaml ogg openal openexr opengl openmp oss pam pango pcre pdf perl phonon php plasma png policykit postscript ppds profile pulseaudio python qt3support qt4 quicktime readline rule_generator samba sdl semantic-desktop session sftp sound spell sse sse2 sse3 ssl startup-notification steamgames_journey_down steamgames_tf2 steamgames_trine2 steamgames_unwritten_tales subversion svg tcpd tiff timidity truetype udev udisks unicode upnp upower usb v4l vim-syntax vorbis webserver win32 win32codecs win64 wma wxwidgets x264 xa xcb xcomposite xine xinerama xml xorg xscreensaver xv xvid zlib" ABI_X86="64 32" 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" 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 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="de" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-4" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" RUBY_TARGETS="ruby19 ruby18" USERLAND="GNU" VIDEO_CARDS="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"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Back to top
View user's profile Send private message
audiodef
Watchman
Watchman


Joined: 06 Jul 2005
Posts: 5191

PostPosted: Sat Aug 10, 2013 2:24 pm    Post subject: Reply with quote

What version of media-video/libav do you have? Try reinstalling that version, or up/downgrading.
_________________
Gentoo Studio: http://gentoostudio.org
Facebook: http://www.facebook.com/gentoostudio
G+: https://plus.google.com/113947758237122861689/posts
Pappy's Kernel Seeds: http://kernel-seeds.gentoostudio.org
Back to top
View user's profile Send private message
SylaSebas
n00b
n00b


Joined: 07 Aug 2013
Posts: 26

PostPosted: Sun Aug 11, 2013 1:11 pm    Post subject: Reply with quote

hey there

thanks for your answer. i tried to emerge libav ... seems to cause a problem with ffmpeg:

Code:

Calculating dependencies... done!
[ebuild  N     ] media-video/libav-0.8.7:0/0.8  USE="3dnow 3dnowext X aac alsa bindist bzip2 encode gpl hardcoded-tables ieee1394 jpeg2k mmx mmxext mp3 oss pulseaudio qt-faststart sdl ssl ssse3 truetype v4l vorbis x264 xvid zlib (-altivec) -amr -avx -cdio -cpudetection -custom-cflags -debug -dirac -doc -faac -frei0r -gsm -jack (-neon) -network -openssl -pic -rtmp -schroedinger -speex -static-libs {-test} -theora -threads -vaapi -vdpau (-vis) -vpx" 0 kB
[blocks B      ] media-video/ffmpeg ("media-video/ffmpeg" is blocking media-video/libav-0.8.7)


I don't know if that's supposed to be?

Regards, Silvan
Back to top
View user's profile Send private message
TomWij
Developer
Developer


Joined: 04 Jul 2012
Posts: 1353

PostPosted: Sun Aug 11, 2013 2:17 pm    Post subject: Reply with quote

You'll want either ffmpeg or libav, not both; so, if you want to go for one, unmerge the other first.

As per libav's 0.7.7 ChangeLog from two years ago it appears it seems to be replaced as seen in

Quote:
8978fed introduce an AVIOContext.seekable field as a replacement for
AVIOContext.is_streamed and url_is_streamed()


so I think that media-sound/squeezeslave will need to be updated if you cannot find a compatible version of either ffmpeg or libav.

If that's the case, please file a bug at https://bugs.gentoo.org stating your problem, `emerge --info`, attaching the build log as well as specifiying the versions of ffmpeg and libav that you tried.

Good luck! Thank you in advance.
Back to top
View user's profile Send private message
audiodef
Watchman
Watchman


Joined: 06 Jul 2005
Posts: 5191

PostPosted: Sun Aug 11, 2013 2:52 pm    Post subject: Reply with quote

TomWij wrote:
You'll want either ffmpeg or libav, not both; so, if you want to go for one, unmerge the other first.



What Tom said. :)
_________________
Gentoo Studio: http://gentoostudio.org
Facebook: http://www.facebook.com/gentoostudio
G+: https://plus.google.com/113947758237122861689/posts
Pappy's Kernel Seeds: http://kernel-seeds.gentoostudio.org
Back to top
View user's profile Send private message
SylaSebas
n00b
n00b


Joined: 07 Aug 2013
Posts: 26

PostPosted: Mon Aug 12, 2013 6:27 am    Post subject: Reply with quote

thanks you guys!

i'll try to install it with libav as soon as i've got the time.

i'll let you know what happend!

best regards, silvan
Back to top
View user's profile Send private message
Rahvin83
n00b
n00b


Joined: 09 Mar 2010
Posts: 15

PostPosted: Thu Aug 15, 2013 11:50 am    Post subject: Reply with quote

Hey, I just stumbled across this, and decided to spend the time to hunt down the blockers.

diff -r squeezeslave-1.1_p381/src/slimaudio/slimaudio_decoder.c squeezeslave-1.1_p381.new/src/slimaudio/slimaudio_decoder.c
72c72
< avcodec_init();
---
> //avcodec_init();
diff -r squeezeslave-1.1_p381/src/slimaudio/slimaudio_decoder_aac.c squeezeslave-1.1_p381.new/src/slimaudio/slimaudio_decoder_aac.c
167c167
< AVIOCtx->is_streamed = 1;
---
> AVIOCtx->seekable = 0;
277c277
< if ( url_ferror(pFormatCtx->pb) )
---
> if ( pFormatCtx->pb && pFormatCtx->pb->error )
315c315
< av_close_input_stream(pFormatCtx);
---
> av_close_input_file(pFormatCtx);
diff -r squeezeslave-1.1_p381/src/slimaudio/slimaudio_decoder_wma.c squeezeslave-1.1_p381.new/src/slimaudio/slimaudio_decoder_wma.c
162c162
< AVIOCtx->is_streamed = 1;
---
> AVIOCtx->seekable = 0;
273c273
< if ( url_ferror(pFormatCtx->pb) )
---
> if ( pFormatCtx->pb && pFormatCtx->pb->error )
311c311
< av_close_input_stream(pFormatCtx);
---
> av_close_input_file(pFormatCtx);



It compiles at least, but I didn't get around to testing yet. Looking at the changes though, those changes shouldn't be more than cosmetic. That doesn't mean that the code I didn't touch will work ;)
Looking at the number of deprecated warnings that continue to be thrown, I don't expect this to be a fix for more than a few months, until ffmpeg dances the jig again.

Once you open a bug, you can test that code and see if it actually works, then submit it as a patch, in the hope that this will get it revision-bumped in portage.

Edit: Just tried opening a SomaFM AAC stream with it, and while it's not the complete failure it was before without AAC support, it still only loads the metadata, and will not open the stream.
I'll leave fixing that as an exercise to the reader ;)
Back to top
View user's profile Send private message
SylaSebas
n00b
n00b


Joined: 07 Aug 2013
Posts: 26

PostPosted: Mon Aug 19, 2013 3:55 pm    Post subject: Reply with quote

thanks for all your help guys!

I opened up a bug report

https://bugs.gentoo.org/show_bug.cgi?id=481062


About submitting the code: never done that before, can you tell me what/how to do it?

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


Joined: 09 Mar 2010
Posts: 15

PostPosted: Tue Aug 20, 2013 12:00 pm    Post subject: Reply with quote

On another note: have you tried to manually compile the latest version of squeezeslave?
http://sourceforge.net/projects/softsqueeze/files/squeezeslave/squeezeslave-1.3.393/

It's been committed this year, and may work.

You'll have to manually configure and make, but this issue may be fixed upstream already, and all we're seeing here is a maintainer not keeping up with releases.
Back to top
View user's profile Send private message
Rahvin83
n00b
n00b


Joined: 09 Mar 2010
Posts: 15

PostPosted: Wed Aug 21, 2013 9:58 pm    Post subject: Reply with quote

So, I just tried, and that version compiles flawlessly.
Clearly the issue here is that while Squeezeslave is already a badly maintained piece of software, it is even worse cared for in the Portage tree.
Until further notice I would recommend manually building the 1.3, I suppose aac and wma are activated by default, as all of the configure is automatically done by the makefile.

I'll test it now, and get back to you and the bug report with my results ASAP.

Edit:

I still cannot get AAC streams from SomaFM to work, with this version. Haven't tried others or "local" files yet.
Back to top
View user's profile Send private message
Rahvin83
n00b
n00b


Joined: 09 Mar 2010
Posts: 15

PostPosted: Thu Aug 22, 2013 8:32 pm    Post subject: Reply with quote

Right, this is quite disheartening:

http://forums.slimdevices.com/archive/index.php/t-93607.html

The squeezeslave maintainer said last year

" Ignore the AAC and WMA decoders as I'm planning to rewrite them and they are not part of the official build anyway."

and since then there was no further mention of this feature, and a feature freeze for squeezeslave was announced in April of this year.
Apparently squeezelite is supposed to take over as a more fully featured alternative.

I think I tried squeezelite, before settling on squeezeslave, and it just didn't work at the time.

Anyway, it doesn't look too good for aac support, it's definitely not supported in the latest build.

Edit: I think the issue with sqeezelite was its inability to run as a service on my machine.
It does play AAC when started attached to a shell though.
Auto-discovery of LMS also fails.
Back to top
View user's profile Send private message
SylaSebas
n00b
n00b


Joined: 07 Aug 2013
Posts: 26

PostPosted: Mon Aug 26, 2013 4:02 pm    Post subject: Reply with quote

well I tried squeezelite and it works fine for me ... so I'll still post news about squeezeslave if I get any but I'm gonna use squeezelite now!

thanks to all of you who posted here!
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