General discussion

Here you can discuss everything related to MOC which doesn't fit other subforum.

FEATURE REQ: Queue selected object next in line for playing.

Since this forum has no search function I don't know if it was asked before, But this is a basic function that I can't find in mocp, maybe I'm blind.

- Queue selected object next in line for playing.
- Possibly with number added at the end of the song as seen in xmms and winamp.

ogg-streams and tags

Hi,

Stations with ogg-streams are much fewer than with mp3. One of my favorite stations (fm4, austrian[1]) has an unofficial ogg-stream[2] that broadcasts tags for artist and title too but moc doesn't display these. Instead of it shows the stream-title all the time. xmms shows the tags. So i played with the sources for a while and found a simple solution (player.c:358f):

- else if (s && (stream_title = io_get_metadata_title(s))
- && (!curr_tags->title
- || strcmp(stream_title, curr_tags->title))) {
- logit ("New io stream tags");
- tags_clear (curr_tags);
+ else if (s && (stream_title = io_get_metadata_title(s)) /* streamtitle doesn't change */
+ && (!curr_tags->title)) {
+ /* || strcmp(stream_title, curr_tags->title))) { */
+ logit ("New io stream tags, (current title: %s)", curr_tags->title);

I don't know wether this breaks something and i tested it on different stations without negativ results.
Any comments?

ciao, storm

[1] http://fm4.orf.at/
[2] http://listen.fm4.amd.co.at:31337/fm4-mq.ogg

Yet another (and I guess small) feature request

First of all, MOC rocks. Never thought that such a damn small player will suit all my needs.

But there is one thing I wanted to tell. Some time before discovering MOC I`ve been using Quod Libet. No talking about it in general, but it had a nice feature - Gajim status message plugin. And I thought - why not to make similar thing with MOC? But through all the config and man I did not found a feature that could ease the task greately - external reaction on some internal events. For example, executing some script on song change / start / stop (gajim-remote in my situation, or a wrapper for it).

Is there some plan for it?

Yet again thanks for a great software1!

Can't send() int to the server / Can't receive value from the server

Hi,

MOC is dying at startup (first run) with either Can't send() int to the server or Can't receive value from the server. I saw similar thread earlier in forum, but suggestion given there doesn't help.

moc 2.4.1 Build: Dec 19 2006 23:52:02
Compiled with: OSS DEBUG

configure flags:
--mandir=/usr/local/man --without-jack --without-ffmpeg --without-speex --without-samplerate --without-curl --prefix=/usr/local amd64-portbld-freebsd7.0

CFLAGS=-g -pipe

running on FreeBSD 7.0-CURRENT/amd64

> mocp -D -S -F
Loading plugins from /usr/local/lib/moc/decoder_plugins...
Loading plugin libflac_decoder...
OK
Loading plugin libmp3_decoder...
OK
Loading plugin libmusepack_decoder...
OK
Loading plugin libsndfile_formats_decoder...
OK
Loading plugin libvorbis_decoder...
OK
Trying OSS...
Dec 20 00:26:57.43386: oss.c:58 open_dev(): Audio device opened
Dec 20 00:26:57.50855: oss.c:58 open_dev(): Audio device opened
Dec 20 00:26:57.53056: audio.c:848 print_output_capabilities(): Sound driver capabilities: channels 1 - 2, formats: 8-bit signed, 8-bit unsigned, 16-bit signed little-endian (native)
Dec 20 00:26:57.60395: tags_cache.c:538 tags_cache_load(): Loading tags cache from /home/yuri/.moc/tags_cache...
Dec 20 00:26:57.60577: tags_cache.c:653 tags_cache_load(): Loaded 0 items to the cache
Dec 20 00:26:57.60917: server.c:1215 server_loop(): MOC server started, pid: 91835
Dec 20 00:26:57.61004: out_buf.c:66 read_thread(): entering output buffer thread
Dec 20 00:26:57.61086: tags_cache.c:297 reader_thread(): tags reader thread started
Dec 20 00:26:57.61120: tags_cache.c:319 reader_thread(): all queues empty, waiting
Dec 20 00:27:05.507124: server.c:1241 server_loop(): accept()ing connection...
Dec 20 00:27:05.507218: server.c:1249 server_loop(): Incoming connection
Dec 20 00:27:05.507245: tags_cache.c:453 tags_cache_clear_queue(): Cleared requests queue for client 0
Dec 20 00:27:05.512770: server.c:848 gen_serial(): Generated serial 0 for client with fd 7
Dec 20 00:27:05.563067: server.c:1067 handle_command(): Request for events
Dec 20 00:27:05.564265: server.c:639 get_client_plist(): Client with fd 7 requests the playlist.
Dec 20 00:27:05.564296: server.c:649 get_client_plist(): No clients with the playlist.
Dec 20 00:27:05.588520: server.c:1140 handle_command(): Closing client connection due to error.
Dec 20 00:27:05.588589: tags_cache.c:453 tags_cache_clear_queue(): Cleared requests queue for client 0

from mocp_client_log (mocp -D):
Dec 20 00:27:05.508571: interface.c:1380 init_interface(): Starting MOC interface...
Dec 20 00:27:05.513167: utf8.c:310 utf8_init(): Using UTF8 output
Dec 20 00:27:05.561068: interface.c:439 update_mixer_name(): Mixer name: pcm
Dec 20 00:27:05.563642: interface.c:1256 get_server_playlist(): Getting the playlist...
Dec 20 00:27:05.563745: interface.c:855 recv_server_plist(): Asking server for the playlist from other client.
Dec 20 00:27:05.564390: interface.c:857 recv_server_plist(): Waiting for response
Dec 20 00:27:05.564601: interface.c:861 recv_server_plist(): There is no playlist
Dec 20 00:27:05.595407: protocol.c:103 send_int(): send() failed: Broken pipe
Dec 20 00:27:05.595878: common.c:55 fatal(): FATAL ERROR: Can't send() int to the server.

Any reason for not being a "real" server?

I've been using MOC for a long while now and want to get to play across the network (my apt. has a Debian music machine and it's a pain to ssh everytime). Is there anyone already working on it? Or some other reason I shouldn't go ahead and implement it?

No aac (m4a) codec for gentoo ebuild?

As verified by another person in the following thread:
http://forums.gentoo.org/viewtopic-p-3763313.html#3763313
the Gentoo ebuild for moc does not appear to build a codec for aac even when the proper use flags are set. I will copy the thread below for convenience:

I emerged moc yesterday and have been loving except for a couple of problems.

My latest is that it won't play m4a files. Here is the configuration:

I put a bunch of goodies in make.conf:
tropic ~ # grep USE /etc/make.conf
USE="fortran g77 apache2 php alsa mplayer ffmpeg vorbis mad aac mp3 flac moc"

I installed ffmpeg:
tropic ~ # eix -I ffmpeg
* media-video/ffmpeg
Available versions: 0.4.9_p20050226-r3 0.4.9_p20051216 ~0.4.9_p20060302 *0.4.9_p20060517 ~0.4.9_p20060530 [M]0.4.9_p20060816
Installed: 0.4.9_p20060530
Homepage: http://ffmpeg.sourceforge.net/
Description: Complete solution to record, convert and stream audio and video. Includes libavcodec.
Found 1 matches

Then I installed moc, and logged the output:
(ENTIRE emerge_moc.log file is available at: http://cer.ucsd.edu/~james/moc.log)
tropic ~ # grep ffmpeg emerge_moc.log (plus a few lines for clarity.)
checking for ffmpeg-config... no
config.status: creating decoder_plugins/ffmpeg/Makefile
Decoder plugins: mp3 vorbis flac ffmpeg speex
Making all in ffmpeg
make[3]: Entering directory `/var/tmp/portage/moc-2.4.1/work/moc-2.4.1/decoder_plugins/ffmpeg'
if /bin/sh ../../libtool --tag=CC --mode=compile i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I/usr/include/ffmpeg -I../.. -pthread -O3 -march=pentium3 -pipe -Wall -W -I/usr/include/alsa -MT libffmpeg_decoder_la-ffmpeg.lo -MD -MP -MF ".deps/libffmpeg_decoder_la-ffmpeg.Tpo" -c -o libffmpeg_decoder_la-ffmpeg.lo `test -f 'ffmpeg.c' || echo './'`ffmpeg.c; \
then mv -f ".deps/libffmpeg_decoder_la-ffmpeg.Tpo" ".deps/libffmpeg_decoder_la-ffmpeg.Plo"; else rm -f ".deps/libffmpeg_decoder_la-ffmpeg.Tpo"; exit 1; fi
i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I/usr/include/ffmpeg -I../.. -pthread -O3 -march=pentium3 -pipe -Wall -W -I/usr/include/alsa -MT libffmpeg_decoder_la-ffmpeg.lo -MD -MP -MF .deps/libffmpeg_decoder_la-ffmpeg.Tpo -c ffmpeg.c -fPIC -DPIC -o .libs/libffmpeg_decoder_la-ffmpeg.o
ffmpeg.c: In function 'ffmpeg_seek':
ffmpeg.c:177: warning: unused variable 'err'
ffmpeg.c:176: warning: unused variable 'data'
ffmpeg.c:174: warning: unused parameter 'sec'
/bin/sh ../../libtool --tag=CC --mode=link i686-pc-linux-gnu-gcc -pthread -O3 -march=pentium3 -pipe -Wall -W -I/usr/include/alsa -export-dynamic -o libffmpeg_decoder.la -rpath /usr/lib/moc/decoder_plugins -module -avoid-version libffmpeg_decoder_la-ffmpeg.lo -lavformat -lavcodec -lz -ldl -lvorbisenc -lavutil -lvorbis -lm -logg -lm
i686-pc-linux-gnu-gcc -shared .libs/libffmpeg_decoder_la-ffmpeg.o -pthread -lavformat -lavcodec -lz -ldl /usr/lib/libvorbisenc.so -lavutil /usr/lib/libvorbis.so /usr/lib/libogg.so -lm -march=pentium3 -Wl,-soname -Wl,libffmpeg_decoder.so -o .libs/libffmpeg_decoder.so
creating libffmpeg_decoder.la
(cd .libs && rm -f libffmpeg_decoder.la && ln -s ../libffmpeg_decoder.la libffmpeg_decoder.la)
make[3]: Leaving directory `/var/tmp/portage/moc-2.4.1/work/moc-2.4.1/decoder_plugins/ffmpeg'
Making install in ffmpeg
make[2]: Entering directory `/var/tmp/portage/moc-2.4.1/work/moc-2.4.1/decoder_plugins/ffmpeg'
make[3]: Entering directory `/var/tmp/portage/moc-2.4.1/work/moc-2.4.1/decoder_plugins/ffmpeg'
/bin/sh ../../libtool --mode=install /bin/install -c 'libffmpeg_decoder.la' '/var/tmp/portage/moc-2.4.1/image//usr/lib/moc/decoder_plugins/libffmpeg_decoder.la'
/bin/install -c .libs/libffmpeg_decoder.so /var/tmp/portage/moc-2.4.1/image//usr/lib/moc/decoder_plugins/libffmpeg_decoder.so
/bin/install -c .libs/libffmpeg_decoder.lai /var/tmp/portage/moc-2.4.1/image//usr/lib/moc/decoder_plugins/libffmpeg_decoder.la
make[3]: Leaving directory `/var/tmp/portage/moc-2.4.1/work/moc-2.4.1/decoder_plugins/ffmpeg'
make[2]: Leaving directory `/var/tmp/portage/moc-2.4.1/work/moc-2.4.1/decoder_plugins/ffmpeg'
strip: i686-pc-linux-gnu-strip --strip-unneeded
usr/lib/moc/decoder_plugins/libffmpeg_decoder.so
>>> Merging media-sound/moc-2.4.1 to /
>>> /usr/lib/moc/decoder_plugins/libffmpeg_decoder.la
>>> /usr/lib/moc/decoder_plugins/libffmpeg_decoder.so
>>> Safely unmerging already-installed instance...
--- !mtime obj /usr/lib/moc/decoder_plugins/libffmpeg_decoder.so
--- !mtime obj /usr/lib/moc/decoder_plugins/libffmpeg_decoder.la

checking for ffmpeg-config... no
bugged me at first but apparently moc is supposed to be able to find ffmpeg even without ffmpeg-config.

strip: i686-pc-linux-gnu-strip --strip-unneeded
usr/lib/moc/decoder_plugins/libffmpeg_decoder.so

What does this mean? Does it think that ffmpeg is unneeded? All the other codecs (mp3,vorbis,etc) were under this strip heading also, and they play so this doesn't appear to be a problem, whatever it means.

And after all of this mumbo jumbo, it still says "No codec for this file." when I try to play m4a's in moc.

Ideas?

No streaming connection...

hi...i have a such a problem.
when i try to connect to the local network radio (http://10.10.1.250:9005) it says me "Could not open URL: No such file or directory". But when i try to do it on my laptop, it's ok...what is the matter with moc ?

i'm using gentoo linux, that are the flags i built
[ebuild R ] media-video/ffmpeg-0.4.9_p20060530 USE="a52 aac amr encode imlib mmx network ogg oss sdl threads truetype vorbis x264 xvid zlib (-altivec) -debug -doc -dts -ieee1394 -test -theora -v4l"

[ebuild R ] media-sound/moc-2.4.1 USE="alsa ffmpeg flac mad oss sndfile speex vorbis -curl -debug -libsamplerate -musepack" 0 kB

"Can't set number of channels: Invalid argument"

Sorry, dont know version of moc since its from a dotpup pkg somebody made and posted on Puppy Linux Forum back in May and he didnt give version. It just required me adding libsndfile if thats any help. Any other lib files it needs are already in Puppy I would guess. Anyway even though Puppy has evolved some since then the pkg installs and runs but gives the above warning when trying to play an mp3 file. Here is a shot of moc window: http://imageigloo.com/images/958mocerror.gif It does find all mp3 files in a directory and arranges them, and errors out on each as it goes through the list it produces trying to play each in turn. Hopefully just some setting I am ignoring or doing wrong.

I would like to get moc working as it has ability to make its own playlist from mp3 files it finds in a particular directory. Why all mp3 software doesnt do this, I have no idea, as its very handy for somebody like me who likes audio books in mp3 format where chapters and part of chapters are all separate mp3 files. Try manually producing a playlist that will only be used once for a book containing dozens of mp3 files.

I have gotten the windows program 1by1 (which also can do this) running via WINE, but would like native linux application if possible.

Pages

Subscribe to RSS - General discussion