{"id":874,"date":"2013-09-29T10:45:56","date_gmt":"2013-09-29T10:45:56","guid":{"rendered":"http:\/\/really.zonky.org\/?p=874"},"modified":"2013-09-29T10:45:56","modified_gmt":"2013-09-29T10:45:56","slug":"moc-an-audio-player-i-can-live-with","status":"publish","type":"post","link":"https:\/\/really.zonky.org\/?p=874","title":{"rendered":"MOC: An Audio Player I Can Live With"},"content":{"rendered":"<p>I know &#8230; we&#8217;re all supposed to use graphical music players these days. I tried &#8230; honest, but I just couldn&#8217;t find one I liked well enough. This one had a habit of crashing randomly, that one was too database driven, this one was worried too much about a good interface for streaming music, that one liked play lists too much.<\/p>\n<p>What I need in an audio player is :-<\/p>\n<ol>\n<li>The ability not to play a wide choice of audio codecs, but at least the codecs I use for encoding audio (FLAC) plus codecs for audio that gets downloaded &#8211; MP3, and OGG.<\/li>\n<li>The ability to play audio files from the filesystem without imposing some sort of database driven interface &#8211; specifically it shouldn&#8217;t say &#8220;Hey! I&#8217;ve noticed that your media files have changes; I&#8217;ll just spend 20 minutes rebuilding the database before I&#8217;ll let you play anything&#8221;.<\/li>\n<li>To start quickly and to quickly let me pick the audio files I want to play. Spending time figuring out what I was doing last time is unnecessary.<\/li>\n<\/ol>\n<p>Note the lack of any fancy graphical interface or the requirement to plugin extras such as a link to <a href=\"http:\/\/last.fm\/\">last.fm<\/a> such features are fine, but for me unnecessary.<\/p>\n<p>So I found <a href=\"http:\/\/en.wikipedia.org\/wiki\/Music_on_Console\">moc<\/a> (Wikipedia link because the official website was broken when I wrote this) &#8230; an &#8220;command-line&#8221; (actually text screen based) music player with extensive configuration options. This is not so much a review as a discovery of the configuration options &#8230;<\/p>\n<p>The first thing to find out is what file <em>moc<\/em> uses for configuration. Simple: <em>~\/.moc\/config<\/em>. By making changes to this, and restarting <em>moc<\/em> I was able to make gradual improvements. The ordering of the options below is in the order of my discoveries which was greatly assisted by reading the example configuration in <em>\/usr\/share\/doc\/moc\/examples\/config.example.gz<\/em><\/p>\n<p>First, I wanted <em>moc<\/em> to start off by automatically changing to a specific directory :-<\/p>\n<pre>MusicDir = \/media\/ibox\/albums\r\nStartInMusicDir = yes<\/pre>\n<p>Next, turn off the use of mmap() as it is apparently slow on NFS and my music files are on an NFS server :-<\/p>\n<pre>UseMmap = no<\/pre>\n<p>The end result is a simple player that works in a terminal window.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I know &#8230; we&#8217;re all supposed to use graphical music players these days. I tried &#8230; honest, but I just couldn&#8217;t find one I liked well enough. This one had a habit of crashing randomly, that one was too database driven, this one was worried too much about a good interface for streaming music, that <a href='https:\/\/really.zonky.org\/?p=874' class='excerpt-more'>[&#8230;]<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false,"_share_on_mastodon":"0"},"categories":[4,209],"tags":[],"class_list":["post-874","post","type-post","status-publish","format-standard","hentry","category-it","category-linux-it","category-4-id","category-209-id","post-seq-1","post-parity-odd","meta-position-corners","fix"],"share_on_mastodon":{"url":"","error":""},"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p1f2KI-e6","_links":{"self":[{"href":"https:\/\/really.zonky.org\/index.php?rest_route=\/wp\/v2\/posts\/874","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/really.zonky.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/really.zonky.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/really.zonky.org\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/really.zonky.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=874"}],"version-history":[{"count":2,"href":"https:\/\/really.zonky.org\/index.php?rest_route=\/wp\/v2\/posts\/874\/revisions"}],"predecessor-version":[{"id":3048,"href":"https:\/\/really.zonky.org\/index.php?rest_route=\/wp\/v2\/posts\/874\/revisions\/3048"}],"wp:attachment":[{"href":"https:\/\/really.zonky.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=874"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/really.zonky.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=874"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/really.zonky.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=874"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}