Recompile 2 CLI utilities and you've got a concert program!

Audio editors, music players, video players, burning software, etc.
Post Reply
Message
Author
musher0
Posts: 14629
Joined: Mon 05 Jan 2009, 00:54
Location: Gatineau (Qc), Canada

Recompile 2 CLI utilities and you've got a concert program!

#1 Post by musher0 »

Hello all.

Here is a fresh package of libcdio-0.93 (Nov. 2014), from the arch linux
repo at pkgs.org.

In the context of this other media devices project I felt the need to have
a cddb-enabled cd-info utility, which unfortunately run-of-the-mill Puppies
do not provide.

This ArchLinux archive was re-packaged and tested on a wary-5.5. I know
it will be of limited interest to most of you. However, this package offers a
+/- 6 month old libcdio that should work on all Puppies from wary-5.5 on.

Also, I've provided an illustration of what can be done with a cddb-enabled
cd-info. Coupled with cdda-player, you get a simple but efficient "concert
program" utility within which you can know the titles of what's playing.
I know, somebody, pardon me, "many bodies" :) already have invented
such programs... Still, CLI apps use very little resources, they're fun to
play with, and combined, sometimes produce surprising results! :)

Here's the little script. It takes a few seconds for it to kick in, because
there's lot of text filtering before the titles can be displayed.

Code: Select all

#!/bin/ash
# cd-info_cddb.sh # 
# Purpose: Display only the cddb info of audio CDs (in other words:  
# only display the titles of the songs or of the musical  works. Also
# useful wih cdda-player.).
# (c) ) musher0,  Aug. 9, 2015.
####
clear 
echo "Program:
~~~~~~~~~~~~" 
cd-info -I --no-device-info --no-header --dvd --iso9660 /dev/cdrom |  grep number -A 4| awk '$1 !~ /frame/' & # | more &
urxvt -g +20+20 -e cdda-player
# Once in cdda-player, type l for proper duration listing.
Enjoy!

musher0
Attachments
concert_program_2015-08-09.jpg
A "Concert Program" with CLI cd apps.
(36.55 KiB) Downloaded 218 times
libcdio-0.93-1-i686.pet-01.gz
Unpack these two somewhere handy and re-constitute them with
< cat libcdio-0.93-1-i686.pet-* libcdio-0.93-1-i686.pet >. Then click
on the pet file as usual to install it.
(158.48 KiB) Downloaded 158 times
libcdio-0.93-1-i686.pet-00.gz
(160.94 KiB) Downloaded 149 times
Last edited by musher0 on Sat 02 Apr 2016, 02:11, edited 1 time in total.
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)

musher0
Posts: 14629
Joined: Mon 05 Jan 2009, 00:54
Location: Gatineau (Qc), Canada

#2 Post by musher0 »

Hello again.

The little script above has been evolving... Who said CD's were dead? :)

You can save lots of HD space by leaving your songs on your CDs, I mean: by not
ripping them.

This 2nd version of the script works fine as is. Lots of niceties for the listener:

* title of windows shows the artist and album

* web access is primitive, but it's there if you want to check out the singer or artist.
I need to find a small and efficient browser to access sites such as musicbrainz and
midomi. The new "megatruck" browsers have become too slow, too complex and too
much like "customs officers" for this kind of job. (Is someone from Seamonkey, in
particular, reading this? ...)

I use < defaulthtmlviewer > to achieve some web access. I recommend links2; dillo
doens't cut it for this, because it doesn't display images well. Next one I'll be testing
is w3m, we'll see.

* the script has become more polite :), it tells you if you have a disc in the tray or
not, and ejects the disc at the end.

* Dependencies at this time are: cd-info and cdda-player with cddb capacity (you
can download them from above [my post above, not Heaven! :twisted: ] ), also
replaceit and links2.

All in all, I feel this script has passed the point of no-return, it just needs some
polishing (IMO). Perhaps find a way to display the artist's picture as the backdrop
of the urxvt environment supporting this.

Fresh ideas and testing would be welcome.

BFN.

musher0
Attachments
concert_program.sh.gz
Un-pack both in ~/my-applications/bin and make executable. This one launches
cd-info_cddb.sh which in turn launches cdda-player. For now, you open a console
and type &lt; concert-program.sh &gt;. No ampersand (&amp;) at the end. You'll see why
when you
(415 Bytes) Downloaded 174 times
cd-info_cddb.sh.gz
Main script
(1.76 KiB) Downloaded 152 times
NewTakeOnCddaPlayer_15-08-15.jpg
(84.17 KiB) Downloaded 177 times
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)

Pelo

Jamais les français n'y arriveront

#3 Post by Pelo »

Jamais les français n'y arriveront, c'est trop coton ! Why don't you provide frenchies the pet.. It would be easier for them...
Santa Claus has just delivered a CD by Lou Reed. So i try music players offered by Puppy Linux

musher0
Posts: 14629
Joined: Mon 05 Jan 2009, 00:54
Location: Gatineau (Qc), Canada

Re: Jamais les français n'y arriveront

#4 Post by musher0 »

Pelo wrote:Jamais les français n'y arriveront, c'est trop coton ! Why don't you provide frenchies the pet.. It would be easier for them...
Santa Claus has just delivered a CD by Lou Reed. So i try music players offered by Puppy Linux
If this is an official request, I'll make it available to the "Frogs" too!

"I'm a Frog, you're a Frog, kiss me
and I'll turn into a Prince, suddenleeee." (song by Robert Charlebois)

Nah... not you, pelo. A girl, though...!

Who's Lou Reed, BTW?
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)

Pelo

Concert of Musher !

#5 Post by Pelo »

Concert of Musher !
Attachments
MusherTVmusic.jpg
Damned, Musher on Google +
(48.54 KiB) Downloaded 51 times

Post Reply