Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Sun 30 Aug 2015, 06:01
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Multimedia
Recompile 2 CLI utilities and you've got a concert program!
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [2 Posts]  
Author Message
musher0


Joined: 04 Jan 2009
Posts: 5771
Location: Gatineau (Qc), Canada

PostPosted: Sun 09 Aug 2015, 05:48    Post subject:  Recompile 2 CLI utilities and you've got a concert program!
Subject description: The new libcdio-0.93 (Nov. 2014) was key.
 

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" Smile already have invented
such programs... Still, CLI apps use very little resources, they're fun to
play with, and combined, sometimes produce surprising results! Smile

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:
#!/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
concert_program_2015-08-09.jpg
 Description   A "Concert Program" with CLI cd apps.
 Filesize   36.55 KB
 Viewed   91 Time(s)

concert_program_2015-08-09.jpg

libcdio-0.93-1-i686.pet-01.gz
Description  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.
gz

 Download 
Filename  libcdio-0.93-1-i686.pet-01.gz 
Filesize  158.48 KB 
Downloaded  9 Time(s) 
libcdio-0.93-1-i686.pet-00.gz
Description 
gz

 Download 
Filename  libcdio-0.93-1-i686.pet-00.gz 
Filesize  160.94 KB 
Downloaded  10 Time(s) 

_________________
"Logical entities must not be multiplied needlessly." / "Il ne faut pas multiplier les êtres logiques inutilement." (Ockham)
Back to top
View user's profile Send private message Visit poster's website 
musher0


Joined: 04 Jan 2009
Posts: 5771
Location: Gatineau (Qc), Canada

PostPosted: Sat 15 Aug 2015, 09:03    Post subject:  

Hello again.

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

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 Smile, 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 Evil ] ), 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
concert_program.sh.gz
Description  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 < concert-program.sh >. No ampersand (&) at the end. You'll see why
when you
gz

 Download 
Filename  concert_program.sh.gz 
Filesize  415 Bytes 
Downloaded  6 Time(s) 
cd-info_cddb.sh.gz
Description  Main script
gz

 Download 
Filename  cd-info_cddb.sh.gz 
Filesize  1.76 KB 
Downloaded  4 Time(s) 
NewTakeOnCddaPlayer_15-08-15.jpg
 Description   
 Filesize   84.17 KB
 Viewed   58 Time(s)

NewTakeOnCddaPlayer_15-08-15.jpg


_________________
"Logical entities must not be multiplied needlessly." / "Il ne faut pas multiplier les êtres logiques inutilement." (Ockham)
Back to top
View user's profile Send private message Visit poster's website 
Display posts from previous:   Sort by:   
Page 1 of 1 [2 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Multimedia
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.1404s ][ Queries: 12 (0.0184s) ][ GZIP on ]