Page 115 of 117

Posted: Fri 24 Nov 2017, 23:33
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

Posted: Sat 25 Nov 2017, 16:40
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

Posted: Mon 27 Nov 2017, 21:25
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.
____________________________________________________

Posted: Mon 27 Nov 2017, 21:42
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

Posted: Thu 30 Nov 2017, 18:46
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

Posted: Tue 05 Dec 2017, 19:30
by zigbert
Version 5.6.1
See wiki

Changelog

Posted: Wed 06 Dec 2017, 19:31
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

Posted: Tue 26 Dec 2017, 10:05
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

Posted: Sat 10 Feb 2018, 19:53
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
_______________________________________________

Posted: Fri 16 Feb 2018, 18:00
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

Posted: Sun 22 Jul 2018, 16:30
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...)

Posted: Tue 24 Jul 2018, 16:50
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?

Posted: Tue 24 Jul 2018, 17:06
by rcrsn51
That pink error message is coming out of pequalizer.

Posted: Wed 25 Jul 2018, 11:39
by zigbert
I am now running latest BionicPup (very satisfying!), and I see that libcddb is not there...

Posted: Wed 25 Jul 2018, 15:29
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.

Posted: Sun 05 Aug 2018, 09:28
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

Posted: Tue 29 Oct 2019, 21:18
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

Love pMusic

Posted: Fri 08 Nov 2019, 22:33
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

Posted: Sat 09 Nov 2019, 22:36
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

Posted: Sun 10 Nov 2019, 19:47
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?