SEARCH

Enter your search query in the box above ^, or use the forum search tool.

You are not logged in.

#1 2011-05-30 20:36:55

august
#! Member
From: Brooklyn
Registered: 2011-05-26
Posts: 59

some mocp questions

1) Copied my music collection off my ipod to /music a little while ago - rhythmbox has no problem with the files but moc can't see them. I THINK I have all the required libraries, but I'm not sure.

2) How do I make mocp boot up with the theme I want, and not the default?

3) Internet radio streams - do you punch in a url each time? Or keep a dir of m3u files or whatever?

Offline

Be excellent to each other!

#2 2011-05-30 23:59:32

anonymous
The Mystery Member
From: Arch Linux Forums
Registered: 2008-11-29
Posts: 8,897

Re: some mocp questions

1. What format are the songs? I have no problems accessing MP3s.

2. In ~/.moc/config, change this line:

Theme                 = example_theme

You can find an example config file at:

/usr/share/doc/moc/examples/config.example.gz

Note: ** Please read before posting **

BTW if you wish to contact me, send me an e-mail instead of a PM.

Offline

#3 2011-05-31 00:53:27

august
#! Member
From: Brooklyn
Registered: 2011-05-26
Posts: 59

Re: some mocp questions

Trying to compile from source now. ./configure seems to go well but make gives me this error

make  all-recursive
make[1]: Entering directory `/home/anton/moc-2.4.4'
Making all in themes
make[2]: Entering directory `/home/anton/moc-2.4.4/themes'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/anton/moc-2.4.4/themes'
Making all in decoder_plugins
make[2]: Entering directory `/home/anton/moc-2.4.4/decoder_plugins'
Making all in mp3
make[3]: Entering directory `/home/anton/moc-2.4.4/decoder_plugins/mp3'
/bin/bash ../../libtool --tag=CC --mode=link gcc  -pthread -g -O2 -Wall -W -I/usr/include/alsa     -export-dynamic -o libmp3_decoder.la -rpath /usr/local/lib/moc/decoder_plugins -module -avoid-version libmp3_decoder_la-mp3.lo libmp3_decoder_la-xing.lo -lmad -lid3tag -lz -lrcc -lm -ldl 
/bin/grep: /usr/lib/libxml2.la: No such file or directory
/bin/sed: can't read /usr/lib/libxml2.la: No such file or directory
libtool: link: `/usr/lib/libxml2.la' is not a valid libtool archive
make[3]: *** [libmp3_decoder.la] Error 1
make[3]: Leaving directory `/home/anton/moc-2.4.4/decoder_plugins/mp3'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/anton/moc-2.4.4/decoder_plugins'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/anton/moc-2.4.4'
make: *** [all] Error 2
root@anton:/home/anton/moc-2.4.4# instal
bash: instal: command not found
root@anton:/home/anton/moc-2.4.4# install
install: missing file operand
Try `install --help' for more information.
root@anton:/home/anton/moc-2.4.4# ./make
bash: ./make: No such file or directory
root@anton:/home/anton/moc-2.4.4# make
make  all-recursive
make[1]: Entering directory `/home/anton/moc-2.4.4'
Making all in themes
make[2]: Entering directory `/home/anton/moc-2.4.4/themes'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/anton/moc-2.4.4/themes'
Making all in decoder_plugins
make[2]: Entering directory `/home/anton/moc-2.4.4/decoder_plugins'
Making all in mp3
make[3]: Entering directory `/home/anton/moc-2.4.4/decoder_plugins/mp3'
/bin/bash ../../libtool --tag=CC --mode=link gcc  -pthread -g -O2 -Wall -W -I/usr/include/alsa     -export-dynamic -o libmp3_decoder.la -rpath /usr/local/lib/moc/decoder_plugins -module -avoid-version libmp3_decoder_la-mp3.lo libmp3_decoder_la-xing.lo -lmad -lid3tag -lz -lrcc -lm -ldl 
/bin/grep: /usr/lib/libxml2.la: No such file or directory
/bin/sed: can't read /usr/lib/libxml2.la: No such file or directory
libtool: link: `/usr/lib/libxml2.la' is not a valid libtool archive
make[3]: *** [libmp3_decoder.la] Error 1
make[3]: Leaving directory `/home/anton/moc-2.4.4/decoder_plugins/mp3'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/anton/moc-2.4.4/decoder_plugins'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/anton/moc-2.4.4'
make: *** [all] Error 2
root@anton:/home/anton/moc-2.4.4# make install
Making install in themes
make[1]: Entering directory `/home/anton/moc-2.4.4/themes'
make[2]: Entering directory `/home/anton/moc-2.4.4/themes'
make[2]: Nothing to be done for `install-exec-am'.
test -z "/usr/local/share/moc/themes" || mkdir -p -- "/usr/local/share/moc/themes"
 /usr/bin/install -c -m 644 'transparent-background' '/usr/local/share/moc/themes/transparent-background'
 /usr/bin/install -c -m 644 'example_theme' '/usr/local/share/moc/themes/example_theme'
 /usr/bin/install -c -m 644 'nightly_theme' '/usr/local/share/moc/themes/nightly_theme'
 /usr/bin/install -c -m 644 'green_theme' '/usr/local/share/moc/themes/green_theme'
 /usr/bin/install -c -m 644 'yellow_red_theme' '/usr/local/share/moc/themes/yellow_red_theme'
 /usr/bin/install -c -m 644 'black_theme' '/usr/local/share/moc/themes/black_theme'
 /usr/bin/install -c -m 644 'moca_theme' '/usr/local/share/moc/themes/moca_theme'
 /usr/bin/install -c -m 644 'red_theme' '/usr/local/share/moc/themes/red_theme'
 /usr/bin/install -c -m 644 'darkdot_theme' '/usr/local/share/moc/themes/darkdot_theme'
make[2]: Leaving directory `/home/anton/moc-2.4.4/themes'
make[1]: Leaving directory `/home/anton/moc-2.4.4/themes'
Making install in decoder_plugins
make[1]: Entering directory `/home/anton/moc-2.4.4/decoder_plugins'
Making install in mp3
make[2]: Entering directory `/home/anton/moc-2.4.4/decoder_plugins/mp3'
/bin/bash ../../libtool --tag=CC --mode=link gcc  -pthread -g -O2 -Wall -W -I/usr/include/alsa     -export-dynamic -o libmp3_decoder.la -rpath /usr/local/lib/moc/decoder_plugins -module -avoid-version libmp3_decoder_la-mp3.lo libmp3_decoder_la-xing.lo -lmad -lid3tag -lz -lrcc -lm -ldl 
/bin/grep: /usr/lib/libxml2.la: No such file or directory
/bin/sed: can't read /usr/lib/libxml2.la: No such file or directory
libtool: link: `/usr/lib/libxml2.la' is not a valid libtool archive
make[2]: *** [libmp3_decoder.la] Error 1
make[2]: Leaving directory `/home/anton/moc-2.4.4/decoder_plugins/mp3'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/home/anton/moc-2.4.4/decoder_plugins'
make: *** [install-recursive] Error 1

EDIT: to be more clear, my reasoning/actions went something like this: 1) can't play mp3s, try to install the proper MAD libs the moc site says I need 2) that didn't work, try to compile from source 3) can't compile, try installing again from repo. Now when I install from repo I still can't play the files and the files I COULD play originally (mp3 files not from my ipod) crash mocp with an "unknown error."

halp

Last edited by august (2011-05-31 01:14:55)

Offline

#4 2011-05-31 01:12:40

pvsage
Internal Affairs
From: North Carolina
Registered: 2009-10-18
Posts: 8,982

Re: some mocp questions

Why compile from source?  I think you might just be missing moc-ffmpeg-plugin, as it isn't automatically pulled in as a dependency.


while ( ! ( succeed = try() ) );
We've earned a reputation as a nice, friendly community; please help us keep it that way.

Offline

#5 2011-05-31 01:19:20

august
#! Member
From: Brooklyn
Registered: 2011-05-26
Posts: 59

Re: some mocp questions

pvsage wrote:

Why compile from source?  I think you might just be missing moc-ffmpeg-plugin, as it isn't automatically pulled in as a dependency.

Just tried that. Stopped the crashing, which is good. Still can't see the ipod files.

Offline

#6 2011-05-31 01:22:14

august
#! Member
From: Brooklyn
Registered: 2011-05-26
Posts: 59

Re: some mocp questions

Just had a thought: ipod may have pulled .mp3 off the file names. Attempting to check now.

Offline

#7 2011-05-31 01:26:29

august
#! Member
From: Brooklyn
Registered: 2011-05-26
Posts: 59

Re: some mocp questions

august wrote:

Just had a thought: ipod may have pulled .mp3 off the file names. Attempting to check now.

EDIT: yeah, I'm pretty sure that's the problem. I remember Banshee having the same thing, which didn't concern me because I only wanted to use it for the Amazon mp3 store. Googling around for a fix.

EDIT EDIT: Yes, that in fact is the problem. Derp. Anyone know an easy way to slap .mp3 at the end of several hundred files?

Last edited by august (2011-05-31 01:36:26)

Offline

#8 2011-05-31 02:27:31

anonymous
The Mystery Member
From: Arch Linux Forums
Registered: 2008-11-29
Posts: 8,897

Re: some mocp questions

Make this script:

#!/bin/bash
for f in * ; do mv "$f" "${f}.mp3" ; done

And then in the folder with all your extensionless mp3s just run "scriptname *".


Note: ** Please read before posting **

BTW if you wish to contact me, send me an e-mail instead of a PM.

Offline

#9 2011-05-31 04:26:17

august
#! Member
From: Brooklyn
Registered: 2011-05-26
Posts: 59

Re: some mocp questions

anonymous wrote:

Make this script:

#!/bin/bash
for f in * ; do mv "$f" "${f}.mp3" ; done

And then in the folder with all your extensionless mp3s just run "scriptname *".

Ah. Would I have to do so in every sub dir I have for each artist and album? Because that might be a deal breaker.

EDIT - Found a solution: use Banshee to copy my ipod library rather than Rhythmbox.

Also: does anyone actively use moc to play internet streams? I think I have curl installed properly but there seem to be some problems that are a little over my head.

Offline

#10 2011-06-01 02:37:40

august
#! Member
From: Brooklyn
Registered: 2011-05-26
Posts: 59

Re: some mocp questions

This has a link to a patch that may solve my streaming problem, but I'm not Linux literate enough to know how to apply it. Can anyone give me a little instruction?

Same applies to This last.fm scrobbling script.

Last edited by august (2011-06-01 02:41:51)

Offline

#11 2011-06-01 02:43:12

anonymous
The Mystery Member
From: Arch Linux Forums
Registered: 2008-11-29
Posts: 8,897

Re: some mocp questions

Are you even sure the problem is with curl? Debian Squeeze includes a newer 7.21 version of curl.


Note: ** Please read before posting **

BTW if you wish to contact me, send me an e-mail instead of a PM.

Offline

#12 2011-06-01 02:57:02

august
#! Member
From: Brooklyn
Registered: 2011-05-26
Posts: 59

Re: some mocp questions

Nope, but it's the only fix I can find for the described problem. Maybe I'll just find a different cli program for streams.

Offline

#13 2011-06-01 17:34:22

chaanakya
#! Die Hard
Registered: 2010-12-30
Posts: 940

Re: some mocp questions

Mpd is pretty nice smile


Check out Musik - an easy-to-use text-to-music converter!
Join SpiderOak using this link and get an extra 1 GB free: https://spideroak.com/download/referral … 660e787ff1

Offline

#14 2011-06-01 18:19:17

august
#! Member
From: Brooklyn
Registered: 2011-05-26
Posts: 59

Re: some mocp questions

Can someone help me out with how to apply the last.fm patch. I'm guessing I slap that code in a file, but I don't know which.

Offline

#15 2011-06-01 18:24:20

anonymous
The Mystery Member
From: Arch Linux Forums
Registered: 2008-11-29
Posts: 8,897

Re: some mocp questions

The last.fm thing you linked to is not a patch afaik, its just a script. Just paste the contents into an empty file, make it executable, and run it.


Note: ** Please read before posting **

BTW if you wish to contact me, send me an e-mail instead of a PM.

Offline

#16 2011-06-01 20:33:36

august
#! Member
From: Brooklyn
Registered: 2011-05-26
Posts: 59

Re: some mocp questions

How do I make the file into an executable?

Sorry for the million question. #! has awakened me a lust for lo-fi and I'd like to do a bunch of stuff via cli if I can, But the knowledge needed to work cli programs is gonna take some work.

Offline

#17 2011-06-01 20:36:44

anonymous
The Mystery Member
From: Arch Linux Forums
Registered: 2008-11-29
Posts: 8,897

Re: some mocp questions

chmod +x /path/to/file

Note: ** Please read before posting **

BTW if you wish to contact me, send me an e-mail instead of a PM.

Offline

Board footer

Powered by FluxBB

Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.

Debian Logo