General discussion

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

Crackling with MP3s and Alsa

I've upgraded my system to Ubuntu Feisty, and started having problems with mocp. A few tracks have very bad quality, with crackles and pops, in exactly the same places every time. The same files play fine under madplay, and other MP3 players using different decoders. Also, if instead of the default backend for moc (Alsa), I switch it to use OSS, or even jackd (with jackd running with an Alsa backend), the crackling goes away. There doesn't seem to be anything particularly strange about the files that crackle -- most of the other tracks in the same album, which were ripped at the same time, don't have these problems.

Also, recoding the file can cause the crackling to go away, or change slightly. I've experimented a bit, and have had problems either with high quality VBR or a high fixed bitrate.

Note that the same tracks were working fine before my upgrade (I had Ubuntu Edgy before).

If it would be helpful, I could upload the tracks somewhere, or parts of them.

Internet Streaming

Hi!
I have some problems with internet streaming. When I want to listen to some music(no matter what format), moc keeps "Connecting...", but he never get connected ;/ I have curl (7.16.2) and moc from svn.
I hope somebody will help me...

ungetc

Is it possible to an implement ungetc analog in the io library? I'm trying to write a wrapper for wavpack decoder and it requires ungetc function.

Playing m3u from comandline

Short question:

Is there some 'official' way to start playing a playlist from a command line?

Long question (actually the same):

I think I am not very familiar with whole moc functionalities, so I am not sure if this message is a question-on-usage, a feature request or a patch. So, please let me take a little of your time to explain my needs.

My needs are somehow specific. I need the following command-line player features:
1. start playing a file;
2. start playing files from an m3u;
3. next/prev/stop/pause/resume (when playing m3u);
4. tell what is playing now.

The player must not require X, and desirably should play as a background server. Also, player should not be limited to playing mp3 only.

This is required to provide IR-controlled music, somewhat like a radio-station with feedback. I use LIRC and my own perl script.

So, after some searches, I recognized that MOC fits my purposes best. I took moc, it was 2.3.3.

To play file, I used `mocp -l filename.mp3`. But I couldn't find how can I start an m3u file. So, I applies a little patch to moc:

--- begin ---

--- moc-2.3.3/interface.c 2005-12-29 17:06:55.000000000 +0300
+++ moc-2.3.3.my/interface.c 2006-02-05 03:58:53.000000000 +0300
@@ -4295,9 +4295,16 @@

plist_init (&plist);

- for (i = 0; i < arg_num; i++)
+ for (i = 0; i < arg_num; i++) {
if (is_url(args) || is_sound_file(args))
plist_add (&plist, args);
+ if (is_plist_file(args)) {
+ struct plist tmp;
+ plist_init(&tmp);
+ plist_load(&tmp, args, NULL);
+ plist_cat(&plist, &tmp);
+ }
+ }

if (plist_count(&plist)) {
int serial;

--- end ---

After that, I could start m3u's with `moc -l playlist.m3u`

Thank you for reading so much :) My questions are:

1. Is there some 'official' way to start playing a playlist?
2. If no, would that feature fit well with mainstream MOC ideas?

SID Plugin

I made a SID-Tune plugin for MOC (2.5.0-alpha1).
This was a bit tricky but I think it works quite well...

Depends on libsidplay2 and libsidutils (and on the existence of the ReSID-Builder from that libraries).

Features :
ReSID-Builder for SID-Playback
HVSC-Database support for songlengths
...some more

I hope this opens MOC to an even wider public... :-)

There might be some bugs although I tried to catch most of them - feedback appreciated...

Patch : http://www.tzi.de/~hiben/darcsrep/linux/gentoo/portage/media-sound/moc/files/2.5.0-sidplay2.patch

More info : http://www.tzi.de/~hiben/moc/

Bug? .pls loads only 9 entries

When loading .pls playlist, having more than 9 entries, mocp displays only first nine.
Debian etch, moc 2.4.1 Build: Oct 21 2006 22:43:12

Use keymap file.

Hi. I'm sorry for my idiotic question, but I don't understand how to use subj.
I have this string in my keymap file (for example):

go_to_fast_dir1 = "/mnt" !
exec_command1 = "rm %f" F1

I run the mocp. Press "Shift 1". And that mocp write: FastDir is not defined.
Press "F1". And that mocp write: ExecCommand1 is not set.
Well, I don't understand a file syntax. Explain it please.

True remove patch (broken link)

Hi All. I need a true delete patch (from file system), but link is broken. Fix link please.

Pages

Subscribe to RSS - General discussion