Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: ◄ moc a terminal music player ►

  1. #1
    Join Date
    Jul 2009
    Location
    Hippiesoldierstan Norwich
    Beans
    2,326
    Distro
    Lubuntu 22.04 Jammy Jellyfish

    ◄ moc a terminal music player ►

    singing the praises of moc a terminal music player







    for a while i have been using terminal music players like sox nvlc and mplayer; even knocked up a little how to



    so i am extremely grateful to sysaxed for having introduced me to moc

    which seems is no longer maintained but has so much going for it

    that i thought to share this here as many probably have never heard of it
    ...


    Navigation [all details with h key] is possibly better than on nvlc [ will even go from visible to hidden folder with no trouble]
    only drawback i have found so far is it does nor seem to handle cuefiles
    & fast forward and rewind on long files is slow [compared to nvlc] .... Correction ... until i realized keys "[" and "]" silently will zip through a 4-hour recording in seconds



    ◄ first i suggest to install gnome-open-terminal

    Code:
    sudo apt-get-install gnome-open-terminal

    go to your Music folder right-click and pick open in terminal

    ◄ to install

    Code:
    sudo apt-get install moc moc-ffmpeg-plugin

    ◄ to play
    Code:
    mocp

    and there you are key h for all navigation tools



    ►◄►◄►◄►◄►◄►◄►◄►◄►◄►◄►◄►◄►◄►◄►◄►◄►◄►◄


    NOW the default theme might not be to your taste; but it can be changed

    Code:
    shift +t
    does give you choices

    to make them stick read here

    create a new file in /home/yourusername/.moc called "config"
    Now add this line to your config file(for example):
    Code:

    Theme = /usr/share/moc/themes/darkdot_theme
    this firms up your theme change

    Code:
    sudo chmod 755 /home/yourusername/.moc/config

    PS
    if you use ccsm set
    mocp -G
    for pause and play as a hotkey
    ctrl+g
    as a key binding

    PS 2 if you have not yet try nvlc/sox/mplayer too all info


    PS 3 sampleconfig sample 1 sample 2
    Last edited by shantiq; August 21st, 2013 at 05:00 PM.
    Linux is Latin for off-the-beaten-track
    what I like MOST about our Ubuntu ... The Community ie 50 brains are better than one
    Playing with Slackware too now ...
    ShanArt

  2. #2
    Join Date
    Sep 2006
    Beans
    3,713

    Re: ◄ moc a terminal music player ►

    moc is also my player of choice. The first thing I do is copy the example moc config file to my home directory:

    Code:
    mkdir ~/.moc
    cp -n /usr/share/doc/moc/config.example ~/.moc/config
    It has a bunch of commented out examples and explains various settings. The next thing I do is change from the ugly default theme to something less ugly by changing Theme in config (as you've already mentioned).

    You can set your main music directory (or playlist) in the moc config file (with MusicDir). moc will then always start in the directory, and using "m" key will then quickly return to the music directory if you navigate away from it. If you want more than one hot-keyed directory then set Fastdir1, Fastdir2, etc., in config.

    Sometimes I'll use it to play music that is on another computer through sshfs:
    Code:
    mkdir remotemusic
    sshfs username@192.168.1.168:music remotemusic
    mocp
    Then navigate to 'remotemusic' in mocp.

    Only problem is that it crashes randomly on my graybeard of a hand-me-down laptop, but I tend to use ffplay on that machine instead.
    Last edited by FakeOutdoorsman; July 29th, 2012 at 03:54 AM.

  3. #3
    Join Date
    Jul 2009
    Location
    Hippiesoldierstan Norwich
    Beans
    2,326
    Distro
    Lubuntu 22.04 Jammy Jellyfish

    Re: ◄ moc a terminal music player ►

    Thanx nice evolved tricks and tips FakeO for the more advanced user

    absolute corker of a player; not used anything else for the last 3 days

    the navigation is simply a DREAM

    Other players do not go to hidden folders mostly; this one does and you can add all you want to your playlist

    with "a" key; then tab and move from playlist to files and back and add more


    then save playlist
    Code:
    ctrl+v
    Linux is Latin for off-the-beaten-track
    what I like MOST about our Ubuntu ... The Community ie 50 brains are better than one
    Playing with Slackware too now ...
    ShanArt

  4. #4
    Join Date
    Oct 2007
    Beans
    39

    Re: ◄ moc a terminal music player ►

    I have to endorse the comments here. moc is one of the best examples of a terminal application. It really is incredibly easy to use, but still gives a huge amount of functionality.

  5. #5
    Join Date
    Oct 2008
    Beans
    10

    Re: ◄ moc a terminal music player ►

    I love moc as well. Just what I was looking for to free me from yet another GUI. However,...

    When I try to reduce the volume below 16% the player just mutes itself. This is a problem while I'm working and listening to music with headphones. If I'm using RhythmBox the music can be played much quieter.

    Anyone know a fix to this?

  6. #6
    Join Date
    Jul 2009
    Location
    Hippiesoldierstan Norwich
    Beans
    2,326
    Distro
    Lubuntu 22.04 Jammy Jellyfish

    Re: ◄ moc a terminal music player ►

    Quote Originally Posted by Aikifuku View Post

    When I try to reduce the volume below 16% the player just mutes itself. This is a problem while I'm working and listening to music with headphones. If I'm using RhythmBox the music can be played much quieter.

    Anyone know a fix to this?


    Aikifuku this here is the way to control sound

    very precisely in moc

    sound.png



    so use the comma to go down and dot to go up once moc is running
    Last edited by shantiq; August 14th, 2012 at 10:46 PM.
    Linux is Latin for off-the-beaten-track
    what I like MOST about our Ubuntu ... The Community ie 50 brains are better than one
    Playing with Slackware too now ...
    ShanArt

  7. #7
    Join Date
    Oct 2008
    Beans
    10

    Re: ◄ moc a terminal music player ►

    Thanks Shantiq. However, I think you misunderstood my problem. I can reduce the stated volume on moc from 16% to 15% using the "<" key. On my computer moc is muted when it has a stated volume of <15% though. So I cannot get the audio as quiet as I want.

    I was thinking there may be a way to specify the sound level that the player mutes at.

  8. #8
    Join Date
    Jul 2009
    Location
    Hippiesoldierstan Norwich
    Beans
    2,326
    Distro
    Lubuntu 22.04 Jammy Jellyfish

    Re: ◄ moc a terminal music player ►

    yes was not sure exactly what you meant it modifies the master volume

    on my system that means mute/silent way before 15%

    sorry no other thoughts
    Linux is Latin for off-the-beaten-track
    what I like MOST about our Ubuntu ... The Community ie 50 brains are better than one
    Playing with Slackware too now ...
    ShanArt

  9. #9
    Join Date
    Oct 2008
    Beans
    10

    Re: ◄ moc a terminal music player ►

    Solved the problem if anyone is interested.

    What fixed this for me is to eliminate pulseaudio from my ubuntu install and make alsa my default audio mixer. A good HOW-TO on that is found here

    http://howto.blbosti.com/2010/04/ubu...of-pulseaudio/

    I also had to change the ~/.moc/config file to make sure ALSA was the sound driver that was loading. That was done by making sure this line was in the file (order matters),

    SoundDriver = ALSA, JACK, OSS

  10. #10
    Join Date
    Jul 2009
    Location
    Hippiesoldierstan Norwich
    Beans
    2,326
    Distro
    Lubuntu 22.04 Jammy Jellyfish

    Re: ◄ moc a terminal music player ►

    if anyone ever wondered about global hotkeys

    mocp --help yields the answer


    mocp -G pause/play
    mocp -f next
    mocp -r previous

    personally using those through ccsm; no doubt many other routes


    on lxde [light desktop environment]


    do this

    Code:
     gedit    ~/.config/openbox/lxde-rc.xml

    and add between <keyboard> and </keyboard>

    Code:
    <!-- Keybindings for mocp play/pause -->
      <keybind key="A-m"><action name="Execute"><command>mocp -G</command></action></keybind>
    
    <!-- Keybindings for mocp previous -->
      <keybind key="A-C-r"><action name="Execute"><command>mocp -r </command></action></keybind>
    
    <!-- Keybindings for mocp next -->
      <keybind key="A-C-f"><action name="Execute"><command>mocp -f </command></action></keybind>
    Last edited by shantiq; November 21st, 2013 at 10:52 AM.
    Linux is Latin for off-the-beaten-track
    what I like MOST about our Ubuntu ... The Community ie 50 brains are better than one
    Playing with Slackware too now ...
    ShanArt

Page 1 of 2 12 LastLast

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •