General discussion

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

MOC 2.4.4 can't play mp3……

I compiled MOC 2.4.4 on openSUSE 11.0. It stars well, but could neither find nor play mp3……I have installed libmad and libid3tag. When ./configure finished, it said

MOC will be compiled with:
Decoder plugins: vorbis flac
OSS: yes
ALSA: yes
JACK: yes
DEBUG: yes
RCC: no
Network streams: yes
Resampling: no

When I run "mocp -D abc.mp3", client_log said

Jun 5 02:05:08.299767: interface.c:1383 init_interface(): Starting MOC interface...
Jun 5 02:05:08.301408: utf8.c:302 utf8_init(): Using UTF8 output
Jun 5 02:05:08.308882: interface.c:439 update_mixer_name(): Mixer name: PCM
Jun 5 02:05:08.309429: interface.c:1259 get_server_playlist(): Getting the playlist...
Jun 5 02:05:08.309588: interface.c:857 recv_server_plist(): Asking server for the playlist from other client.
Jun 5 02:05:08.309740: interface.c:859 recv_server_plist(): Waiting for response
Jun 5 02:05:08.310418: interface.c:863 recv_server_plist(): There is no playlist
Jun 5 02:05:08.362877: interface.c:3196 dequeue_events(): Dequeuing events...
Jun 5 02:05:08.363371: interface.c:3203 dequeue_events(): done
Jun 5 02:05:09.367254: interface.c:3196 dequeue_events(): Dequeuing events...
Jun 5 02:05:09.367475: interface.c:3203 dequeue_events(): done
Jun 5 02:05:10.371386: interface.c:3196 dequeue_events(): Dequeuing events...
Jun 5 02:05:10.371896: interface.c:3203 dequeue_events(): done
Jun 5 02:05:11.375187: interface.c:3196 dequeue_events(): Dequeuing events...
Jun 5 02:05:11.375434: interface.c:3203 dequeue_events(): done
Jun 5 02:05:12.379242: interface.c:3196 dequeue_events(): Dequeuing events...
Jun 5 02:05:12.379437: interface.c:3203 dequeue_events(): done
Jun 5 02:05:13.383150: interface.c:3196 dequeue_events(): Dequeuing events...
Jun 5 02:05:13.383536: interface.c:3203 dequeue_events(): done
Jun 5 02:05:14.387146: interface.c:3196 dequeue_events(): Dequeuing events...
Jun 5 02:05:14.387379: interface.c:3203 dequeue_events(): done
Jun 5 02:05:15.202882: interface.c:3312 interface_end(): Interface exited

server_log said:

Jun 5 02:05:08.260518: server.c:518 server_error(): ERROR: cannot create client jack server not running?
Jun 5 02:05:08.260806: server.c:410 add_event_all(): No events have been added because there are no clients.
Jun 5 02:05:08.262984: alsa.c:260 alsa_init_mixer_channel(): Opened mixer (PCM), volume range: 0-20
Jun 5 02:05:08.263416: alsa.c:260 alsa_init_mixer_channel(): Opened mixer (Master), volume range: 0-43
Jun 5 02:05:08.296009: audio.c:850 print_output_capabilities(): Sound driver capabilities: channels 1 - 10000, formats: 8-bit signed, 8-bit unsigned, 16-bit signed, 16-bit unsigned, 24-bit signed (as 32-bit samples), 24-bit unsigned (as 32-bit samples) little-endian (native)
Jun 5 02:05:08.296864: audio.c:864 audio_initialize(): Disabling 24bit modes because Allow24bitOutput is set to no.
Jun 5 02:05:08.297113: out_buf.c:66 read_thread(): entering output buffer thread
Jun 5 02:05:08.297332: tags_cache.c:297 reader_thread(): tags reader thread started
Jun 5 02:05:08.297492: tags_cache.c:319 reader_thread(): all queues empty, waiting
Jun 5 02:05:08.297666: tags_cache.c:538 tags_cache_load(): Loading tags cache from /root/.moc/tags_cache...
Jun 5 02:05:08.297861: tags_cache.c:653 tags_cache_load(): Loaded 0 items to the cache
Jun 5 02:05:08.298233: server.c:1215 server_loop(): MOC server started, pid: 6014
Jun 5 02:05:08.298413: server.c:1241 server_loop(): accept()ing connection...
Jun 5 02:05:08.298575: server.c:1249 server_loop(): Incoming connection
Jun 5 02:05:08.298731: tags_cache.c:453 tags_cache_clear_queue(): Cleared requests queue for client 0
Jun 5 02:05:08.301037: server.c:848 gen_serial(): Generated serial 0 for client with fd 3
Jun 5 02:05:08.309903: server.c:1067 handle_command(): Request for events
Jun 5 02:05:08.310083: server.c:639 get_client_plist(): Client with fd 3 requests the playlist.
Jun 5 02:05:08.310247: server.c:649 get_client_plist(): No clients with the playlist.
Jun 5 02:05:15.202740: server.c:978 handle_command(): Exit request from the client
Jun 5 02:05:15.203146: server.c:1269 server_loop(): Exiting...
Jun 5 02:05:15.204655: protocol.c:103 send_int(): send() failed: Broken pipe
Jun 5 02:05:15.204861: tags_cache.c:453 tags_cache_clear_queue(): Cleared requests queue for client 0
Jun 5 02:05:15.205034: server.c:448 server_shutdown(): Server exiting...
Jun 5 02:05:15.205235: out_buf.c:132 read_thread(): exit
Jun 5 02:05:15.205398: out_buf.c:179 read_thread(): exiting
Jun 5 02:05:15.205586: out_buf.c:242 out_buf_destroy(): buffer destroyed
Jun 5 02:05:15.205752: player.c:335 precache_wait(): Precache thread is not running
Jun 5 02:05:15.205939: tags_cache.c:485 tags_cache_save(): Saving tags cache to /root/.moc/tags_cache...
Jun 5 02:05:15.206104: tags_cache.c:340 reader_thread(): exiting tags reader thread
Jun 5 02:05:15.206348: server.c:456 server_shutdown(): Server exited

What should i do next? Thanks!

Reload last used mixer on moc start / set default mixer

Hello all,
I depend a 100 % on software mixer because no other is able to change volume.
This is on a Soundblaster Live! Player , Alsa mixer channels fail to set any master volume
so i suspect the module to be the problem here , I can only alter the headphones input and auxilliary
or wave directly. ( PCM = headphones , Master = no effect )

This is the background story. Now when software mixing was patched into moc i could finally use it.

But what's a real drawback is that i have to switch to console, load moc tab and select software mixing everytime I start the system/moc .

If I don't manually select software mixer again i cannot alter volume with for instance "mocp -v -1" which I have on shortcuts.

Everytime master mixer is loaded as default which is useless on my setup and i guess a thousand others.

Now i have only little C knowledge but i tried to find any line where the order of the mixers is set up so i could write a patch that Software is just plain auto loaded. Well that was without success.

Could someone give me a hint here on how to either alter the config to load software mixer by default ( no success either ), or what to patch where to set software mixer as deafault.

Thanks very much !

svn 2151 crashes: Doesn't play .m4a or .mp4

mocp[24973ROR: Can't receive value from the server.2a4 error:0 in libavcodec.so.52.20.0[b6c33000+4b9000]
FATAL_ERROR: Can't receive value from the server.

This is on my i386 plattform. PPC and AMD64 runs fine.

Any hint?

Thanks Elimar

Sound lags while switching consoles

Please help me! I needed a good console music player, and I quite liked moc, but it lags about 2-3 seconds each time i switch a console (Alt-F#).

I tried setting up ALSA as a default output, increasing output and input buffers, and it still lags. Please help me with this problem.
The OS is Ubuntu 9.04 x86_64.
The version of MOC is 2.5.0-alpha3, the one downloaded from the repository.

Multiple jack outputs

I have many diferent rooms with speakers in them (4) they are all getting a feed of moc music, but I have to vnc to my sound server to get the mixer (mom wants the voloume lower in the family room, I want to rock in my room, dads trying to watcha youtube on the computer downstairs (receiving stream from netjack))

So I need diferent voloume levels.

all I would like is multiple outputs (stereo, and when I start mocp I would use an option like mocp -o 4 (for my four rooms, 8 jack outputs)

then in mocp, use the ; and the ' key to cycle through moc jack outputs, so I could have each session of moc have the voloume controll the room it is running in.

As I mentioned before (previous topic i posted) I would be willing to sponsor this feature, (30$ USD or so)

I appreciate if others would comment if this feature would benifit them.

Contribute

I would like to donate to the project, it there a way I can do this

I will send the administrator of the moc project a question too.

I love all the work that is done, I hope there will be much progress in the future.

I would like to see annother option (I will post annother topic)

too many files ?

Hi all,

Using 2.5.0-a3 (or 2.4.4) when I try to browse into a dir that have 2463 items (2219 files) it crashes instantaniously.
With other dirs it work ok. I'm on kubuntu 8.04.
Is there any limit for number of files in a dir ?

Thanks.

Change in minimum terminal size

Hi.

I used to run moc using a ~160x9/210x12 char terminal or so (160 columns, 9 lines), and this worked just fine.

Recently, I upgraded from Debian etch to testing (1:2.5.0~alpha3+svn20080629-2), and this "broke" moc, as it now complained about the terminal size being too small.

I tracked this down to the following commit fragment using rgrep and `svn blame`:

------------------------------------------------------------------------
r2062 | daper | 2008-02-10 17:00:29 +0200 (Sun, 10 Feb 2008) | 3 lines

Don't exit program if the terminal heught is below some limit, just print an
error message. (Niels Aan de Brugh)

------------------------------------------------------------------------
Index: interface_elements.c
===================================================================
--- interface_elements.c (revision 2061)
+++ interface_elements.c (revision 2062)
@@ -2252,10 +2273,9 @@
}

/* End the program if the terminal is too small. */
-static void check_term_size ()
+static void check_term_size (struct main_win *mw, struct info_win *iw)
{
- if (COLS < 79 || LINES < 7)
- interface_fatal ("The terminal is too small after resizeing.");
+ mw->too_small = iw->too_small = COLS < 59 || LINES < 17;
}

The commit message doesn't have any rationale for the change, and seems quite unrelated. Was this an inadvertent change, or was there some reason for raising the lines limit and lowering the columns limit?

In any case, mocp "breaks"/looks weird on a 59-column terminal now.

Find below a simple `svn diff` against trunk@r2150.

-- Tero Marttila

Index: interface_elements.c
===================================================================
--- interface_elements.c (revision 2150)
+++ interface_elements.c (working copy)
@@ -2356,7 +2356,7 @@
/* End the program if the terminal is too small. */
static void check_term_size (struct main_win *mw, struct info_win *iw)
{
- mw->too_small = iw->too_small = COLS < 59 || LINES < 17;
+ mw->too_small = iw->too_small = COLS < 79 || LINES < 7;
}

/* Update the title with the current fill. */

Pages

Subscribe to RSS - General discussion