Cannot play any stream

Hi,

I am not able to play any stream with moc. It always says "Could not open URL: File not found". I tried to enter a URL with the o key as well as pls and m3u playlists of streams. Nothing works.

Can you help? Thanks!

mocp --version says:


This is : Music On Console
Version : 2.5.0
Revision : 2668
Built : Oct 9 2015 18:00:47
Compiled with : ALSA Network streams resample
Running on : Linux 4.0.5-gentoo i686
Author : Damian Pietras
Homepage : http://moc.daper.net/
E-Mail : mocmaint@daper.net
Copyright : (C) 2003-2014 Damian Pietras and others
License : GNU General Public License, version 2 or later

Try running 'mocp -D'. It will produce log files which might contain more info. Also what USE flags are on? You might also try upgradimg to ~ version from portage.

Thanks for the reply :)

These are the USE flags:


[ebuild R ] media-sound/moc-2.5.0::gentoo USE="aac alsa cache curl ffmpeg flac libsamplerate mad magic modplug sid sndfile speex timidity tremor unicode vorbis wavpack -debug* -jack -musepack -oss" 0 KiB

The log does not tell much, it only reads:


Oct 9 23:32:11.112781: main.c:799 main(): This is Music On Console (revision 2668)
Oct 9 23:32:11.112986: main.c:805 main(): Configured: '--prefix=/usr' '--build=i686-pc-linux-gnu' '--host=i686-pc-linux-gnu' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--datadir=/usr/share' '--sysconfdir=/etc' '--localstatedir=/var/lib' '--disable-dependency-tracking' '--libdir=/usr/lib' '--docdir=/usr/share/doc/moc-2.5.0' '--enable-debug' '--enable-cache' '--without-oss' '--with-alsa' '--without-jack' '--with-magic' '--with-ncursesw' '--with-samplerate' '--with-aac' '--with-ffmpeg' '--with-flac' '--with-modplug' '--with-mp3' '--without-rcc' '--without-musepack' '--with-sidplay2' '--with-sndfile' '--with-speex' '--with-timidity' '--with-vorbis=tremor' '--with-wavpack' '--with-curl' 'build_alias=i686-pc-linux-gnu' 'host_alias=i686-pc-linux-gnu' 'CFLAGS=-O3 -march=native -pipe -fomit-frame-pointer' 'LDFLAGS=-Wl,-O1 -Wl,--as-needed' 'CXXFLAGS=-O3 -march=native -pipe -fomit-frame-pointer'
Oct 9 23:32:11.113029: main.c:811 main(): Running on: Linux 4.0.5-gentoo i686
Oct 9 23:32:11.113060: main.c:474 log_command_line(): mocp -D
Okt 9 23:32:11.164388: ffmpeg.c:1623 plugin_init(): Using avcodec_decode_audio4()
Okt 9 23:32:11.199879: decoder.c:674 load_plugins(): Loaded 11 decoders: aac ffmpeg flac modplug mp3 sidplay2 sndfile speex timidity vorbis(tremor) wavpack
Okt 9 23:32:11.200209: interface.c:3483 init_interface(): Starting MOC Interface
Okt 9 23:32:11.200379: log.c:195 log_init_stream(): Writing log to: mocp_client_log
Okt 9 23:32:11.200652: utf8.c:322 utf8_init(): Using UTF8 output
Okt 9 23:32:11.208114: interface.c:478 update_mixer_name(): Mixer name: PCM
[...]
Okt 9 23:32:15.861302: interface.c:1103 server_event(): EVENT: 0x53
Okt 9 23:32:15.862140: interface.c:1103 server_event(): EVENT: 0x50
Okt 9 23:32:15.862179: interface.c:301 send_tags_request(): Not sending tags request for URL (http://193.34.51.33:80/)

there is 2.6_alpha1 available in portage, I'll emerge that, maybe it works. I'll report...

Also try USE=debug, without it log file is very limited.

I compiled moc with debug, the -D parameter is not recognized at all without it. Just listed the standard USE flags.
BTW. No change with the newer version, all the same.

Could you provide an example of such a stream? I see one possible explaination - URL points to the playlist file and MOC doesn't support it yet. You need provide a link directly to the streamed content (for example by opening the playlist file in text editor and copying to MOC link found there).

BTW. Do you really need USE=tremor? It is only helpful on slow "exotic" machines without float processing unit. You seem to be running it on normal computer. It was added to MOC to support e.g. OpenWRT routers.

Thanks, you are right! The URLs I tested did not point to the actual stream. It works with proper URLs.
Thanks for the hint with tremor, I removed it from my use flags, it is an old but normal computer (thinkpad t23) moc is running on.

Thanks for your help!