General discussion

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

Resume MOC with the current file selected

Hello everybody,

Is there a way to automate the `G` shortcut when resuming MOC. Here is a scenario where I want this behavior:

- I start MOC
- I play a random file
- I enable Shuffle
- I play the next (random) file
- I press `G` to go to that file
- I press `q` to quit the MOC interface (MOC is still running in the background)
- I relaunch MOC using the `mocp` command

At that point, I want MOC to be on the file that is currently playing, so that I don't have to press `G`.
It's a bit annoying to press `G` everytime I resume MOC...

If that feature/config is not available, it would definitely be nice to have it!

Thanks

Aziz Light

How to append playlists by default ?

Hi everyone !

First, thanks a lot to the devs ! MOC is exactly what I was looking for for my Raspberry Pi.

I have one little "issue" though. As I want it to be used easily by anyone at home, I made playlists for usual radio streams. It seems MOC forces me to delete the current playlist to be able to add one.

It it possible to set MOC to append the selected playlist file to the current playlist by default ?

(as a side note, is some kind of visualisation like OpenCubicPlayer possible ? :-)

Thanks again !

make error "recompile with -fPIC"

I tried a standard installation. autoreconf , configure
I have this error. I don't understand what fPIC do.
How should I run ./configure? I tried --with-pic ,but no difference.

make all-recursive
make[1]: Entering directory `/home/bob/telem/mocp/trunk'
Making all in themes
make[2]: Entering directory `/home/bob/telem/mocp/trunk/themes'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/bob/telem/mocp/trunk/themes'
Making all in decoder_plugins
make[2]: Entering directory `/home/bob/telem/mocp/trunk/decoder_plugins'
Making all in vorbis
make[3]: Entering directory `/home/bob/telem/mocp/trunk/decoder_plugins/vorbis'
/bin/bash ../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../.. -I../.. -pthread -g -O2 -Wall -W -I/usr/include/alsa -MT libvorbis_decoder_la-vorbis.lo -MD -MP -MF .deps/libvorbis_decoder_la-vorbis.Tpo -c -o libvorbis_decoder_la-vorbis.lo `test -f 'vorbis.c' || echo './'`vorbis.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../.. -I../.. -pthread -g -O2 -Wall -W -I/usr/include/alsa -MT libvorbis_decoder_la-vorbis.lo -MD -MP -MF .deps/libvorbis_decoder_la-vorbis.Tpo -c vorbis.c -fPIC -DPIC -o .libs/libvorbis_decoder_la-vorbis.o
mv -f .deps/libvorbis_decoder_la-vorbis.Tpo .deps/libvorbis_decoder_la-vorbis.Plo
/bin/bash ../../libtool --tag=CC --mode=link gcc -I../.. -pthread -g -O2 -Wall -W -I/usr/include/alsa -module -avoid-version -o libvorbis_decoder.la -rpath /usr/local/lib/moc/decoder_plugins libvorbis_decoder_la-vorbis.lo -lvorbisfile -lvorbis -lm -logg -lm -ldb
libtool: link: rm -fr .libs/libvorbis_decoder.la .libs/libvorbis_decoder.lai .libs/libvorbis_decoder.so
libtool: link: gcc -shared -fPIC -DPIC .libs/libvorbis_decoder_la-vorbis.o /usr/lib/x86_64-linux-gnu/libvorbisfile.so /usr/lib/x86_64-linux-gnu/libvorbis.so -logg -lm -ldb -pthread -O2 -pthread -Wl,-soname -Wl,libvorbis_decoder.so -o .libs/libvorbis_decoder.so
libtool: link: ( cd ".libs" && rm -f "libvorbis_decoder.la" && ln -s "../libvorbis_decoder.la" "libvorbis_decoder.la" )
make[3]: Leaving directory `/home/bob/telem/mocp/trunk/decoder_plugins/vorbis'
Making all in ffmpeg
make[3]: Entering directory `/home/bob/telem/mocp/trunk/decoder_plugins/ffmpeg'
/bin/bash ../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../.. -I/usr/local/include -I../.. -I/usr/local/include -I../.. -pthread -g -O2 -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
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../.. -I/usr/local/include -I../.. -I/usr/local/include -I../.. -pthread -g -O2 -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 'locking_cb':
ffmpeg.c:306:2: warning: 'result' may be used uninitialized in this function [-Wuninitialized]
mv -f .deps/libffmpeg_decoder_la-ffmpeg.Tpo .deps/libffmpeg_decoder_la-ffmpeg.Plo
/bin/bash ../../libtool --tag=CC --mode=link gcc -I/usr/local/include -I../.. -pthread -g -O2 -Wall -W -I/usr/include/alsa -module -avoid-version -o libffmpeg_decoder.la -rpath /usr/local/lib/moc/decoder_plugins libffmpeg_decoder_la-ffmpeg.lo -pthread -L/usr/local/lib -lavformat -lavcodec -ldl -lasound -lSDL -lz -lrt -lavutil -lm -lm -ldb
libtool: link: gcc -shared -fPIC -DPIC .libs/libffmpeg_decoder_la-ffmpeg.o -L/usr/local/lib -lavformat -lavcodec -ldl -lasound -lSDL -lz -lrt -lavutil -lm -ldb -pthread -O2 -pthread -pthread -Wl,-soname -Wl,libffmpeg_decoder.so -o .libs/libffmpeg_decoder.so
/usr/bin/ld: /usr/local/lib/libavformat.a(allformats.o): relocation R_X86_64_32 against `ff_a64_muxer' can not be used when making a shared object; recompile with -fPIC
/usr/local/lib/libavformat.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
make[3]: *** [libffmpeg_decoder.la] Error 1
make[3]: Leaving directory `/home/bob/telem/mocp/trunk/decoder_plugins/ffmpeg'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/bob/telem/mocp/trunk/decoder_plugins'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/bob/telem/mocp/trunk'
make: *** [all] Error 2

Error/warning message on this page

This page currently shows some warning message. I guess the admin should know ;)

warning: strtotime() [function.strtotime]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Berlin' for 'CEST/2.0/DST' instead in /home/www/moc4/modules/comment/comment.module on line 1513.

OnSongChange doesn't work

Hi,

My config file is empty (for some unknown reason there was no ~/.moc/config before) except for one line:
$ cat config
OnSongChange = "/home/pi/.moc/scripts/NotifyLaptop.sh %a %t %r %d"

Unfortunately the script isn't executed. I can run it manually from command line, so we can be sure there's nothing wrong with it. First I thought it was because I encapsuled the paramters in " ' " (like "NotifyLaptop.sh '%a' '%t' ") but obviously that wasn't the reason. So I tried everything I could imagine... and now I'm here hoping for some help ;)

I'm using moc on Debian (raspberry pi):

$ uname -a
Linux pi 3.6.11+ #518 PREEMPT Fri Aug 2 11:39:53 BST 2013 armv6l GNU/Linux


$ mocp -V
This is : Music On Console
Version : 2.5.0-alpha4
Built : May 19 2012 08:03:31
Compiled with : OSS ALSA JACK DEBUG internet streams resample
Author : Damian Pietras
Homepage : http://moc.daper.net/
E-Mail : daper@daper.net
Copyright : (C) 2003-2011 Damian Pietras and others
License : GNU General Public License, version 2 or later

I assume the permissions are ok:

~/.moc $ ls -lh config
-rw-r--r-- 1 pi pi 68 Aug 5 04:46 config


~/.moc $ ls -lh scripts/NotifyLaptop.sh
-rwxr-xr-x 1 pi pi 434 Aug 5 04:39 scripts/NotifyLaptop.sh

There are no error messages. :/

Thanks!

Where can I obtain a copy of the config file for 2.5.0-alpha4?

I installed MOCP via the Debian repository and I absolutely love it. Plays CD quality FLAC files back flawlessly and gapless. I also love the ability to detach the interface from the server. I was blown away by the fact that I could start playing a song, leave the interface, start up my desktop environment, then start mocp in a terminal emulator, all without losing a second of music-listening.

I would love to be able to tweak some of the settings, but the repository version didn't include the config file or sample config file. If anyone could direct me to this it would be greatly appreciated. Also, I read something in the man page about themes. If anyone has any information on how to write/obtain/implement themes for mocp it would be greatly appreciated.

mocp -V results:
This is : Music On Console
Version : 2.5.0-alpha4
Built : Feb 26 2012 15:43:51
Compiled with : OSS ALSA JACK DEBUG internet streams resample
Author : Damian Pietras
Homepage : http://moc.daper.net/
E-Mail : daper@daper.net
Copyright : (C) 2003-2011 Damian Pietras and others
License : GNU General Public License, version 2 or later

mocp not showing .m4a files

I'm running the debian testing repos and mocp was taken out of the repos for some reason so I downloaded and compiled the 2.5.0-beta1 version and installed it and compilled it with --enable-faad2 and --enable-debug and it said MOC will be compiled with:

Decoder plugins: aac flac mp3 vorbis
Sound Drivers: OSS ALSA
DEBUG: yes
RCC: no
Network streams: no
Resampling: yes
MIME magic: no

I still have moc-ffmpeg-plugin though, but the problem is the .m4a files simply don't show up in mocp like they don't exist :/ Should I recompile and install or something?

broken record syndrome

Hi

I have done a few installations without issue of moc and was
surprised recently to encounter a difficulty

On my past two installations I installed moc on Debian
Squeeze Foxconn nettop systems

The current system, a Foxconn nt i1500 is the subject of
my post.

I first installed the system with Debian Wheezy (7.1)
There is nothing else on the box except Debian and mocp

moc is configured to play an internet radio stream.

After a few hours, the system emits a "broken record"
sound : as if you are hearing the same sound repeated
endlessly, an uninterrupted 'stutter' if you will

I couldn't access the box over the network, and the symptom
could be resolved simply by unplugging and replugging the
network cable; similar I guess to resetting the network
interface (Realtek).

I tried configuring the system using the WLAN interface
(Intel) but the result was the same.

I reinstalled the box with Debian Squeeze (6.07)
and the result was the same, although the cable disconnect
method didn't change matters and this time I could still
access the system over the network

Any ideas ?

thanks

yann

Pages

Subscribe to RSS - General discussion