General discussion

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

script: stop at track

One feature I was wanting in MOC was a "stop at this track" flag, but after installing the 2.5.0-alpha3 version, I realized I could do this with the OnSongChange handler, so here's what I did, in case anyone else wants this feature...

First, you might need to set up your ExecCommands to run from an external script for this to work - that's how I do things, and I haven't tried it otherwise, but I don't think the redirect works from within MOC, so something like

ExecCommand10 /home/me/.moc/stop_here %f

in your config, and then .moc/stop_here script does

echo "$1" > ~/.moc/stopfile

and also in config:

OnSongChange = /home/me/.moc/check_stopfile %f

and finally .moc/check_stopfile does

if [ "$1" == "$(cat ~/.moc/stopfile)" ]
then mocp --pause && rm ~/.moc/stopfile
fi

This is a simplified version of what I did (all my ExecCommands are in one script) and it could probably be improved, but it seems to work quite well, and I'm happy with the results. The only catch is that you have to select the song you want to stop *before* when setting the stop point, rather than the last track to play as in certain other music players.

Search and Add to playlist

Hi,

Is there a way to add a song to the playlist once you search for it with the key g (I only manage to play it by pressing enter)?

Thank you.

Clear playlists and play another file

Hi.

I'm using MOC 2.4.4, and it's my favorite MP3 player. But there's something that I really don't like:

When I add files to the playlist, the songs play normal. But, if I stop the player (key s), clear the playlist (key C), and add other files, Moc play only the first song of the new songs. Then it plays the older songs (those that I cleared from playlist before), and not the newer songs (that appear correctly on playlist). What am I doing wrong?

FATAL_ERROR: Can't receive value from the server.

I get this error when trying to save the playlist with the "V" command. Bug or user error?

problems with launching custom commands (using xterm/LXDE-openbox)

my problem is :

I created a few custom commands in .moc/config

now when I run mocp the commands do the job correctly but then if I press UP or DOWN (or LEFT or RIGHT) keys it seeks one minute forward or backward (or 5 secs left or right) and sends "bad command"

some clues :
- run mocp in xterm
- AZERTY fr keyboard
- OpenBox/LXDE (Ubuntu)

it runs perfectly using the tty terminals... I guess it's a problem with xterm ?

(I found a dirty fix : disabling '[' and ']' from seeking, but i still receive "bad command" notification when pressing UP or DOWN after )

i couldn't find any clue with google or here
hope this is a trivial one though
thanks in advance

DTS

Moc won't play DTS inside wav..
Will be glad to see some support for this kind of files.

I would like not to parse mp3 id tags even at the bottom status bar.

Hello,

I'm now using mocp on arch linux.

$ mocp --version
moc 2.4.4 Build: Mar 21 2009 06:20:27

It's really cool, it plays well.

I'm Koren, so I often listen to Korean music. I'm now living in Thailand, so I listen to Thai songs, too.

My mp3 tags are encoded to utf-8, cp949(korean), cp874(thai). That's why I have to distinguish songs from one to another by "file name"

My config file is like this:

ReadTags = no
FormatString = "%(n:%n :)%(a:%a - :)%(t:%t:)%(A: \(%A\):)"
ShowFormat = yes
ID3v1TagsEncoding = UTF-8
#UseRCC = yes
PlaylistFullPaths = no

At the bottom, I've got status bar, it shows which song is being played. It seems to parse mp3 id tags. I don't want to parse it because it's mostly broken. I just want to see "file name" encoded in "utf-8".

Is there any additional option, or do I have to wait for a new feature patch?

Can I have a playlist directory?

Can I put something in the config file that will save all my playlists in one prespecified folder? If not, could this be implemented in a future release? It sounds like a really simple feature, but I'm sure a lot of people would appreciate it...

Pages

Subscribe to RSS - General discussion