Project

General

Profile

can not find the codec

Added by fengxiaolong feng about 11 years ago

I compile audacious from source code,after that I can see a GUI,but when I add a mp3 file ,and press the "play button" it occurs an error

file:///home/fenghelong/%E9%9F%B3%E4%B9%90/Unforgivable%20Sinner.mp3 can not find codec.

how can I deal with the problem?


Replies (8)

RE: can not find the codec - Added by fengxiaolong feng about 11 years ago

I run audacious with debug mode,so I type audacious -V,some messages as follows,

main.c:571 [main]: No remote session; starting up.
main.c:461 [init_two]: Loading configuration.
main.c:464 [init_two]: Initializing.
main.c:477 [init_two]: Loading lowlevel plugins.
plugin-registry.c:554 [plugin_register]: Register plugin: /usr/local/lib/audacious/Transport/gio.so
plugin-registry.c:554 [plugin_register]: Register plugin: /usr/local/lib/audacious/Transport/unix-io.so
plugin-registry.c:554 [plugin_register]: Register plugin: /usr/local/lib/audacious/Input/xsf.so
plugin-registry.c:554 [plugin_register]: Register plugin: /usr/local/lib/audacious/Input/vtx.so
plugin-registry.c:554 [plugin_register]: Register plugin: /usr/local/lib/audacious/Input/tonegen.so
plugin-registry.c:554 [plugin_register]: Register plugin: /usr/local/lib/audacious/Input/psf2.so
plugin-registry.c:554 [plugin_register]: Register plugin: /usr/local/lib/audacious/Input/console.so
plugin-registry.c:554 [plugin_register]: Register plugin: /usr/local/lib/audacious/Input/metronom.so
plugin-registry.c:554 [plugin_register]: Register plugin: /usr/local/lib/audacious/Output/filewriter.so
plugin-registry.c:554 [plugin_register]: Register plugin: /usr/local/lib/audacious/Effect/compressor.so
plugin-registry.c:554 [plugin_register]: Register plugin: /usr/local/lib/audacious/Effect/crystalizer.so
plugin-registry.c:554 [plugin_register]: Register plugin: /usr/local/lib/audacious/Effect/ladspa.so
plugin-registry.c:554 [plugin_register]: Register plugin: /usr/local/lib/audacious/Effect/crossfade.so
plugin-registry.c:554 [plugin_register]: Register plugin: /usr/local/lib/audacious/Effect/echo.so
plugin-registry.c:554 [plugin_register]: Register plugin: /usr/local/lib/audacious/Effect/stereo.so
plugin-registry.c:554 [plugin_register]: Register plugin: /usr/local/lib/audacious/Effect/voice_removal.so
plugin-registry.c:554 [plugin_register]: Register plugin: /usr/local/lib/audacious/Effect/mixer.so
plugin-registry.c:554 [plugin_register]: Register plugin: /usr/local/lib/audacious/General/notify.so
plugin-registry.c:554 [plugin_register]: Register plugin: /usr/local/lib/audacious/General/search-tool.so
plugin-registry.c:554 [plugin_register]: Register plugin: /usr/local/lib/audacious/General/mpris2.so
plugin-registry.c:554 [plugin_register]: Register plugin: /usr/local/lib/audacious/General/alarm.so
plugin-registry.c:554 [plugin_register]: Register plugin: /usr/local/lib/audacious/General/hotkey.so
plugin-registry.c:554 [plugin_register]: Register plugin: /usr/local/lib/audacious/General/albumart.so
plugin-registry.c:554 [plugin_register]: Register plugin: /usr/local/lib/audacious/General/gnomeshortcuts.so
plugin-registry.c:554 [plugin_register]: Register plugin: /usr/local/lib/audacious/General/song_change.so
plugin-registry.c:554 [plugin_register]: Register plugin: /usr/local/lib/audacious/General/statusicon.so
plugin-registry.c:554 [plugin_register]: Register plugin: /usr/local/lib/audacious/General/aosd.so
plugin-registry.c:554 [plugin_register]: Register plugin: /usr/local/lib/audacious/General/gtkui.so
plugin-registry.c:554 [plugin_register]: Register plugin: /usr/local/lib/audacious/General/lyricwiki.so
plugin-registry.c:554 [plugin_register]: Register plugin: /usr/local/lib/audacious/General/skins.so
plugin-registry.c:554 [plugin_register]: Register plugin: /usr/local/lib/audacious/Visualization/blur_scope.so
plugin-registry.c:554 [plugin_register]: Register plugin: /usr/local/lib/audacious/Visualization/cairo-spectrum.so
plugin-registry.c:554 [plugin_register]: Register plugin: /usr/local/lib/audacious/Container/audpl.so
plugin-registry.c:554 [plugin_register]: Register plugin: /usr/local/lib/audacious/Container/pls.so
plugin-registry.c:554 [plugin_register]: Register plugin: /usr/local/lib/audacious/Container/m3u.so
plugin-registry.c:554 [plugin_register]: Register plugin: /usr/local/lib/audacious/Container/asx.so
plugin-registry.c:554 [plugin_register]: Register plugin: /usr/local/lib/audacious/Container/xspf.so
plugin-init.c:85 [start_single]: Starting selected output plugin FileWriter Plugin.
pluginenum.c:63 [plugin_load]: Loading plugin: /usr/local/lib/audacious/Output/filewriter.so.
main.c:480 [init_two]: Starting worker threads.
main.c:484 [init_two]: Restoring state.
playlist-files.c:63 [playlist_load]: Loading playlist file:///home/fengxiaoilong/.config/audacious/playlists/1000.audpl.
pluginenum.c:63 [plugin_load]: Loading plugin: /usr/local/lib/audacious/Container/audpl.so.
pluginenum.c:63 [plugin_load]: Loading plugin: /usr/local/lib/audacious/Transport/unix-io.so.
VFS: <0x26a0a80> open (mode r) file:///home/fengxiaoilong/.config/audacious/playlists/1000.audpl
VFS: <0x26a0a80> close
main.c:489 [init_two]: Loading highlevel plugins.
plugin-init.c:115 [start_multi_cb]: Starting MPRIS 2 Server.
pluginenum.c:63 [plugin_load]: Loading plugin: /usr/local/lib/audacious/General/mpris2.so.
plugin-init.c:85 [start_single]: Starting selected interface plugin GTK Interface.
interface.c:247 [iface_plugin_set_current]: Loading GTK Interface.
pluginenum.c:63 [plugin_load]: Loading plugin: /usr/local/lib/audacious/General/gtkui.so.
ui_gtk.c:851 [init]: hooks associate
ui_gtk.c:854 [init]: playlist associate
interface.c:254 [iface_plugin_set_current]: Loading visualizers.
interface.c:257 [iface_plugin_set_current]: Loading plugin widgets.
general.c:50 [general_load]: Loading MPRIS 2 Server.
dbus.c:177 [init_dbus]: Trying to initialize D-Bus.
dbus.c:94 [audacious_rc_init]: Registering remote D-Bus interfaces.
dbus.c:148 [mpris_player_init]: object->proxy NULL; not adding some signals.
dbus.c:168 [mpris_tracklist_init]: object->proxy NULL, not adding some signals.
main.c:574 [main]: Startup complete.

then I add a mp3 file and press the play button,messages as follows.

the program popup a dialog says "No decoder found for file:///home/fengxiaoilong/Downloads/Unforgivable%20Sinner.mp3."

the messages in my terminal as follows,

probe.c:167 [file_find_decoder]: Probing file:///home/fengxiaoilong/Downloads/Unforgivable%20Sinner.mp3.
probe.c:123 [probe_by_scheme]: Probing by scheme.
probe.c:137 [probe_by_extension]: Probing by extension.
probe.c:49 [check_opened]: Opening file:///home/fengxiaoilong/Downloads/Unforgivable%20Sinner.mp3.
VFS: <0x2a8cda0> open (mode r) file:///home/fengxiaoilong/Downloads/Unforgivable%20Sinner.mp3
probe.c:159 [probe_by_content]: Probing by content.
probe.c:65 [probe_func]: Trying 2SF Decoder.
pluginenum.c:63 [plugin_load]: Loading plugin: /usr/local/lib/audacious/Input/xsf.so.
VFS: <0x2a8cda0> seek to 0 from beginning
probe.c:65 [probe_func]: Trying Game Console Music Decoder.
pluginenum.c:63 [plugin_load]: Loading plugin: /usr/local/lib/audacious/Input/console.so.
probe.c:65 [probe_func]: Trying OpenPSF PSF1/PSF2 Decoder.
pluginenum.c:63 [plugin_load]: Loading plugin: /usr/local/lib/audacious/Input/psf2.so.
probe.c:65 [probe_func]: Trying Tact Generator.
pluginenum.c:63 [plugin_load]: Loading plugin: /usr/local/lib/audacious/Input/metronom.so.
probe.c:65 [probe_func]: Trying Tone Generator.
pluginenum.c:63 [plugin_load]: Loading plugin: /usr/local/lib/audacious/Input/tonegen.so.
probe.c:65 [probe_func]: Trying VTX Decoder.
pluginenum.c:63 [plugin_load]: Loading plugin: /usr/local/lib/audacious/Input/vtx.so.
VFS: (last message repeated 4 times)
VFS: <0x2a8cda0> close
probe.c:167 [file_find_decoder]: Probing file:///home/fengxiaoilong/Downloads/Unforgivable%20Sinner.mp3.
probe.c:123 [probe_by_scheme]: Probing by scheme.
probe.c:137 [probe_by_extension]: Probing by extension.
probe.c:49 [check_opened]: Opening file:///home/fengxiaoilong/Downloads/Unforgivable%20Sinner.mp3.
VFS: <0x2a63a00> open (mode r) file:///home/fengxiaoilong/Downloads/Unforgivable%20Sinner.mp3
probe.c:159 [probe_by_content]: Probing by content.
probe.c:65 [probe_func]: Trying 2SF Decoder.
VFS: <0x2a63a00> seek to 0 from beginning
probe.c:65 [probe_func]: Trying Game Console Music Decoder.
probe.c:65 [probe_func]: Trying OpenPSF PSF1/PSF2 Decoder.
probe.c:65 [probe_func]: Trying Tact Generator.
probe.c:65 [probe_func]: Trying Tone Generator.
probe.c:65 [probe_func]: Trying VTX Decoder.
VFS: (last message repeated 4 times)
VFS: <0x2a63a00> close
util.c:130 [audgui_simple_message]: No decoder found for file:///home/fengxiaoilong/Downloads/Unforgivable%20Sinner.mp3.

I have installed audacious and plugins,but I am puzzled about the error,how can deal with it?

RE: can not find the codec - Added by fengxiaolong feng about 11 years ago

additionally,

when I compile audacious in the audacious folder,it occurs a warning as follows,

util.c: In function ‘audgui_pixbuf_for_current’:
util.c:248:9: warning: ‘audgui_pixbuf_for_entry’ is deprecated (declared at util.c:191) [-Wdeprecated-declarations]

but I really think this does not matter my problem.

RE: can not find the codec - Added by fengxiaolong feng about 11 years ago

I also post the information after I ./configure,

checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for style of include used by make... GNU
checking dependency style of gcc... none
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking whether byte ordering is bigendian... no
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... no
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking whether the C/C++ compiler supports -Wtype-limits... yes
checking for Linux... yes
checking for GNU make... make
checking whether ln -s works... yes
checking whether make sets $(MAKE)... yes
checking for rm... /bin/rm
checking for mv... /bin/mv
checking for cp... /bin/cp
checking for ar... /usr/bin/ar
checking for tr... /usr/bin/tr
checking for ranlib... /usr/bin/ranlib
checking for windres... no
checking for library containing pthread_create... -lpthread
checking for GLIB... yes
checking for GMODULE... yes
checking for GTHREAD... yes
checking for PANGO... yes
checking for CAIRO... yes
checking for GTK... yes
checking for tput... /usr/local/bin/tput
checking for shared library system... GNU
checking whether byte ordering is bigendian... (cached) no
checking for Microsoft Windows... no
checking execinfo.h usability... yes
checking execinfo.h presence... yes
checking for execinfo.h... yes
checking regex.h usability... yes
checking regex.h presence... yes
checking for regex.h... yes
checking rxposix.h usability... no
checking rxposix.h presence... no
checking for rxposix.h... no
checking rx/rxposix.h usability... no
checking rx/rxposix.h presence... no
checking for rx/rxposix.h... no
checking for sigwait... yes
checking for backtrace... yes
checking for cexpf... yes
checking for /proc/self/exe... yes
checking for a BSD-compatible install... /usr/bin/install -c
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking whether NLS is requested... yes
checking for msgfmt... /usr/bin/msgfmt
checking for gmsgfmt... /usr/bin/msgfmt
checking for xgettext... /usr/bin/xgettext
checking for msgmerge... /usr/bin/msgmerge
checking for ld used by GCC... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for shared library run path origin... done
checking for CFPreferencesCopyAppValue... no
checking for CFLocaleCopyCurrent... no
checking for GNU gettext in libc... yes
checking whether to use NLS... yes
checking where the gettext function comes from... libc
checking for audacious... /usr/local/bin/audacious
checking for LIBGUESS... no
checking for DBUS... yes
checking for dbus-binding-tool... /usr/bin/dbus-binding-tool
checking for glib-genmarshal... /usr/bin/glib-genmarshal
checking for regcomp in -lc... yes
checking regex library type... gnu
configure: touching .deps files
configure: creating ./config.status
config.status: creating audacious.pc
config.status: WARNING: 'audacious.pc.in' seems to ignore the --datarootdir setting
config.status: creating audclient.pc
config.status: WARNING: 'audclient.pc.in' seems to ignore the --datarootdir setting
config.status: creating buildsys.mk
config.status: creating extra.mk
config.status: WARNING: extra.mk contains a reference to the variable `datarootdir'
which seems to be undefined. Please make sure it is defined
config.status: creating man/audtool.1
config.status: creating man/audacious.1
config.status: creating src/libaudcore/audio.h
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
config.status: executing po-directories commands

Configuration:

Install path:                           /usr/local
Current Audacious executable: /usr/local/bin/audacious
Allow user plugin dir: yes
Automatic character code detection:     no
D-Bus support: yes
Thunar support: no

RE: can not find the codec - Added by Thomas Lange about 11 years ago

You cannot play mp3 files because the appendent Plugin (MPG123 Plugin) is missing.
To install all needed dependencies, run

sudo apt-get build-dep audacious-plugins

and compile audacious-plugins again.

Check for this line after running ./configure:
Input Plugins
-------------
MPEG-1 Layer I/II/III (mpg123): yes

RE: can not find the codec - Added by Michael Schwendt about 11 years ago

Try again with running "configure --enable-mp3" which will exit with error condition if it cannot find libmpg123 development files. Since the MP3 plug-in is entirely optional, by default recent versions of Audacious Plugins will only build it if libmpg123 is found. Else it gets not built without printing an error.

RE: can not find the codec - Added by fengxiaolong feng about 11 years ago

Thomas Lange wrote:

You cannot play mp3 files because the appendent Plugin (MPG123 Plugin) is missing.
To install all needed dependencies, run

sudo apt-get build-dep audacious-plugins

and compile audacious-plugins again.

Check for this line after running ./configure:
Input Plugins
-------------
MPEG-1 Layer I/II/III (mpg123): yes

Oh,I checked out the line it seems like this

MPEG-1 Layer I/II/III (mpg123): no

I think this is the key,then I type sudo apt-get install build-dep audacious-plugins,

it occurs "unable to locate package build-dep"

RE: can not find the codec - Added by fengxiaolong feng about 11 years ago

Michael Schwendt wrote:

Try again with running "configure --enable-mp3" which will exit with error condition if it cannot find libmpg123 development files. Since the MP3 plug-in is entirely optional, by default recent versions of Audacious Plugins will only build it if libmpg123 is found. Else it gets not built without printing an error.

after type ./configure --enable-mp3,I found these shown in my terminal,

cannot found libmpg..

So I type sudo apt-get install libmpg123-dev

after that I compile audious-plugins again,now it can run well,thank you very much.

RE: can not find the codec - Added by Thomas Lange about 11 years ago

I did not write "sudo apt-get install build-dep", check my post again.

    (1-8/8)