pMusic 6.0.0

Audio editors, music players, video players, burning software, etc.
Message
Author
User avatar
zigbert
Posts: 6621
Joined: Wed 29 Mar 2006, 18:13
Location: Valåmoen, Norway
Contact:

#2281 Post by zigbert »

Thank you peebee
-use_buggy_lpc 1 keeps errors away, but still won't play the test file properly.

What works is either to tell aplay which format to use:

Code: Select all

ffmpeg -i "/root/test.flac" -f au - | aplay -f cdr
or switch output format from Sun audio (au) to Waveform audio format (wav):

Code: Select all

ffmpeg -i "/root/test.flac" -f wav - | aplay
I'm not sure what would be the best solution (if any difference). I need to test this some time to see if I get any issues... Input are welcome

User avatar
don570
Posts: 5528
Joined: Wed 10 Mar 2010, 19:58
Location: Ontario

#2282 Post by don570 »

I need to test this some time to see if I get any issues... Input are welcome
When I was working with image viewer ( pho ), I found that when a good file is opened
the error file is zero sized but exists. So I used that to give a warning message to the user.

I wonder what the error file is when a bad file is opened by ffmpeg


Code: Select all

viewer(){
	cd   "$FOLDER"
[ $PNG = true ] && pho -r  *.[Pp][Nn][Gg]  2>/tmp/pho_error
[ $JPEG = true ] && pho -r *.[Jj]*[Gg] 2>/tmp/pho_error
[ $GIF = true ] && pho -r  *.[Gg][Ii][Ff] 2>/tmp/pho_error
[ $SVG = true ] && pho -r  *.[Ss][Vv][Gg] 2>/tmp/pho_error

# check if error message is zero sized
if [ -s /tmp/pho_error ]; then
Xdialog --title "$(gettext 'Help')"  --ok-label "$(gettext 'OK')" --backtitle "\n$TEXTSTRING2 \n "  --msgbox  "" 0 0
else
exit 0
fi
}
export -f viewer

User avatar
don570
Posts: 5528
Joined: Wed 10 Mar 2010, 19:58
Location: Ontario

#2283 Post by don570 »

I checked out the file with fatdog64 710

and the error is 'no file or folder found',
whereas if a good FLAC file is played the message will say 'playing... '

I was able to open the bad FLAC file with an old version of audacity that I am using and it played properly.
____________________________________________________

Dry Falls
Posts: 616
Joined: Tue 16 Dec 2014, 23:37
Location: Upper Columbia

#2284 Post by Dry Falls »

zigbert wrote:Thank you peebee
-use_buggy_lpc 1 keeps errors away, but still won't play the test file properly.

What works is either to tell aplay which format to use:

Code: Select all

ffmpeg -i "/root/test.flac" -f au - | aplay -f cdr
or switch output format from Sun audio (au) to Waveform audio format (wav):

Code: Select all

ffmpeg -i "/root/test.flac" -f wav - | aplay
I'm not sure what would be the best solution (if any difference). I need to test this some time to see if I get any issues... Input are welcome
Hi Zigbert.
what worked in JL64-706 is the first. changing to Wavform produces noise.
using ffmpeg 3.4. Pmusic plays everything in JL64-704 but fails in 706 (pulse, alsa, gcc, glibc upgrade).

Not a problem with ffmpeg as ffplay properly plays test.flac. pmusic produces static noise with everything. aplay by itself also produces noise...only worse.

every other media player works on my box, including exaile (although it segfaults on playing streams from the net).

df

User avatar
zigbert
Posts: 6621
Joined: Wed 29 Mar 2006, 18:13
Location: Valåmoen, Norway
Contact:

#2285 Post by zigbert »

Thank you guys for the feedback!

I have taken it one step further to avoid any conflict in the future...
... define the format to be a plain pcm little endian for both input and output

Code: Select all

ffmpeg -i "/test.flac" -f s16le -acodec pcm_s16le -ar 44100 -ac 2 - | aplay -f S16_LE -c2 -r44100
The /root/.pmusic/tmp/exec looks like below, and works for the test file.

Code: Select all

#!/bin/sh
export LC_ALL=C
ffmpeg -i "/root/04. My Great-Grandmother Lived In The Mountains.flac"  -ss 0 -af "volume=2.8dB" -f s16le -acodec pcm_s16le -ar 44100 -ac 2 - 2>> /root/.pmusic/tmp/ffmpeg_output | aplay -f S16_LE -c2 -r44100  2> /root/.pmusic/tmp/aplay_error
I have to test some more before uploading a new version

User avatar
zigbert
Posts: 6621
Joined: Wed 29 Mar 2006, 18:13
Location: Valåmoen, Norway
Contact:

#2286 Post by zigbert »

Version 5.6.1
See wiki

Changelog

Dry Falls
Posts: 616
Joined: Tue 16 Dec 2014, 23:37
Location: Upper Columbia

#2287 Post by Dry Falls »

Version 5.6.1
See wiki
Great! This works out of the box. Better if I bypass the pinstall script altogether. Doesn't seem to integrate fully with pulse audio but does access it's aplay plugin.

Thanks zigbert,
df

User avatar
peebee
Posts: 4370
Joined: Sun 21 Sep 2008, 12:31
Location: Worcestershire, UK
Contact:

#2288 Post by peebee »

Reports:
http://murga-linux.com/puppy/viewtopic. ... 189#978189
http://murga-linux.com/puppy/viewtopic. ... 376#978376

of problems with pause/play in pMusic when run with the latest version of libasound2 (version 1.1.3-5) in recent upup/dpups (ArtfulPup and Dpup-Stretch).

Error message is:
aplay: xrun:1624: read/write error, state = RUNNING
ImageLxPup = Puppy + LXDE
Main version used daily: LxPupSc; Assembler of UPups, ScPup & ScPup64, LxPup, LxPupSc & LxPupSc64

User avatar
don570
Posts: 5528
Joined: Wed 10 Mar 2010, 19:58
Location: Ontario

#2289 Post by don570 »

Note to Zigbert ...


Have you ever run pmusic over SSH connection (no GUI)?
I have been testing with raspberry pi2 computer...
I found that pmusic works in SSH terminal when I want to play a single music file.

pmusic -B /path/to/Song

....but it won't work with a playlist

pmusic -B /path/to/Playlist


Here's a picture to show my setup with a headless Raspberry pi2
http://murga-linux.com/puppy/viewtopic. ... 670#982670
_______________________________________


omxplayer can apparently use a playlist over SSH
I will test that
https://www.raspberrypi.org/forums/view ... hp?t=26277
_______________________________________________

User avatar
zigbert
Posts: 6621
Joined: Wed 29 Mar 2006, 18:13
Location: Valåmoen, Norway
Contact:

#2290 Post by zigbert »

don570
I have no experience with ssh, so please add more info if you get some. I'll add it to the buglist

Thank you
Sigmund

User avatar
peebee
Posts: 4370
Joined: Sun 21 Sep 2008, 12:31
Location: Worcestershire, UK
Contact:

#2291 Post by peebee »

Playing an audio cd under upupbb-18.05+9 gives the attached error....but the cd plays (once at least, maybe not a 2nd time...)
Attachments
Screenshot.png
(113 KiB) Downloaded 397 times
ImageLxPup = Puppy + LXDE
Main version used daily: LxPupSc; Assembler of UPups, ScPup & ScPup64, LxPup, LxPupSc & LxPupSc64

User avatar
zigbert
Posts: 6621
Joined: Wed 29 Mar 2006, 18:13
Location: Valåmoen, Norway
Contact:

#2292 Post by zigbert »

@peebee
The pink message is unknown to me, and is not produced by pMusic.

... But it seems like pMusic is not grabbing cddb info from the web.
- Are you connected?
- Are you playing an rare disc?
- Is libcddb installed?
Attachments
Screenshot.jpg
(16.69 KiB) Downloaded 333 times

User avatar
rcrsn51
Posts: 13096
Joined: Tue 05 Sep 2006, 13:50
Location: Stratford, Ontario

#2293 Post by rcrsn51 »

That pink error message is coming out of pequalizer.

User avatar
zigbert
Posts: 6621
Joined: Wed 29 Mar 2006, 18:13
Location: Valåmoen, Norway
Contact:

#2294 Post by zigbert »

I am now running latest BionicPup (very satisfying!), and I see that libcddb is not there...

User avatar
peebee
Posts: 4370
Joined: Sun 21 Sep 2008, 12:31
Location: Worcestershire, UK
Contact:

#2295 Post by peebee »

Pink error message is fixed by the update to:
/usr/local/pup_event/frontend_change
provided as an sfs at:
https://github.com/puppylinux-woof-CE/w ... ssues/1228

libcddb2 is part of the upupbb-18.05 build....

so NOT a pmusic problem - sorry to have reported incorrectly.
ImageLxPup = Puppy + LXDE
Main version used daily: LxPupSc; Assembler of UPups, ScPup & ScPup64, LxPup, LxPupSc & LxPupSc64

User avatar
peebee
Posts: 4370
Joined: Sun 21 Sep 2008, 12:31
Location: Worcestershire, UK
Contact:

#2296 Post by peebee »

For info:

32 and 64 bit versions of pmusic-PLUGIN-trayapp have been added to
http://distro.ibiblio.org/puppylinux/pe ... -common32/
http://distro.ibiblio.org/puppylinux/pe ... -common64/

and can be included in woof-ce builds using pet_packages-commonxx by having:
yes|pmusic_PLUGIN_trayapp||exe
in DISTRO_PKGS_SPECS-**

They are made with:
https://github.com/puppylinux-woof-CE/p ... p.petbuild

from source:
http://distro.ibiblio.org/puppylinux/so ... rce.tar.gz
ImageLxPup = Puppy + LXDE
Main version used daily: LxPupSc; Assembler of UPups, ScPup & ScPup64, LxPup, LxPupSc & LxPupSc64

User avatar
zigbert
Posts: 6621
Joined: Wed 29 Mar 2006, 18:13
Location: Valåmoen, Norway
Contact:

#2297 Post by zigbert »

Version 5.7.0
First development release for 5.8.
I expect it to be stable enough for daily use as only few modules has been touched during coding.

Changelog
- pMusic will NOT scan your local drives at first run
- Heavily improved Podcast management
--> Search og browse based on language or category
--> Search for podcast info-tags
--> DB generator checks each url if actual rss channel
--> DB now contains about 40000 channels
--> Faster expansion of podcasts in channel
--> Mark 'dead' podcasts with red icon
- Nad / Gtk theme update to reflect changes in Podcast managment
- Remove some terminal output
- Bugfixing

jmarkus
Posts: 6
Joined: Fri 08 Nov 2019, 22:16

Love pMusic

#2298 Post by jmarkus »

Zigbert, I have this installed on all three versions of Puppy linux. 7.5, BionicPup32, and 64bit that I run in VMs. It is extremely fast and seems to work with more radio stations than any other streamer I have tried. Would love to have this option in ubuntu MATE 19.10. Are you likely to create a snap, or deb of pMusic? Thank you for all the work on pMusic.
Jim

User avatar
zigbert
Posts: 6621
Joined: Wed 29 Mar 2006, 18:13
Location: Valåmoen, Norway
Contact:

#2299 Post by zigbert »

Hi Jim
Welcome to the kennel!

pMusic is architecture independent and will work for any X86/ARM (32/64-bit) system, as long as the dependencies is valid. pMusic is simply a collection of scripts, and not compiled code. That means all code are readable and executable after installation to /usr/local/pmusic/. The package is provided as a pet, which basically is a tar.xz. It will open in any archive program - at least if you rename it to pMusic-5.7.0.tar.xz

Sigmund

jmarkus
Posts: 6
Joined: Fri 08 Nov 2019, 22:16

#2300 Post by jmarkus »

Sigmund, I'm not that familiar with installing scripts. I extracted the files from the pet file after renaming it. I placed them in the usr/local/pmusic/ dir and tried using the terminal to launch it with a simple pmusic command. Then I tried making a deb file using dh_make which asked for pmusic_5.7.0.orig.tar.xz. That didn't work so I tried the -f switch on the pmusic_5.7.0.tar.xz file. Can you spell it out for a dummy like me in a step by step approach?

Post Reply