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 Tue 29 Jul 2014, 03:02
All times are UTC - 4
 Forum index » House Training » Users ( For the regulars )
Play mp3 while encoding to harddisk?
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [10 Posts]  
Author Message
MU


Joined: 24 Aug 2005
Posts: 13642
Location: Karlsruhe, Germany

PostPosted: Thu 27 Oct 2005, 02:11    Post subject:  Play mp3 while encoding to harddisk?  

Hi,

I can use mplayer to write audio-streams to harddisk, if I select the "pcm"-driver.

However, it is not perfect:
while recording, I can't hear the stream.
And it saves .wav uncompressed, eating zillions of megabyte.

Do you know a solution that saves the files encoded as mp3 or ogg or so, and allows to listen to them at the same time?

Would be nice for mplayer, but other suggestions are welcome, too.

Thanks, Mark
Back to top
View user's profile Send private message Visit poster's website 
Lobster
Official Crustacean


Joined: 04 May 2005
Posts: 15117
Location: Paradox Realm

PostPosted: Thu 27 Oct 2005, 02:27    Post subject:  

think I saw something like that here

http://linux-sound.org/

Cool

_________________
Puppy WIKI
Back to top
View user's profile Send private message Visit poster's website 
GuestToo
Puppy Master

Joined: 04 May 2005
Posts: 4078

PostPosted: Thu 27 Oct 2005, 02:33    Post subject:  

StreamRipper can do this automatically for internet streams ... you can listen to the stream using a local server ... i think you can do something similar using mplayer
Last edited by GuestToo on Thu 27 Oct 2005, 05:36; edited 1 time in total
Back to top
View user's profile Send private message 
MU


Joined: 24 Aug 2005
Posts: 13642
Location: Karlsruhe, Germany

PostPosted: Thu 27 Oct 2005, 02:36    Post subject:  

GuestToo, yes,just had a look at their website.
I downloaded streamtuner, but it requires perl.

I will go sleep some hours now.
If no-one knows a solution with smaller dependencies, I will have a closer look at streamtuner lateron.

It would be nice to have a small and simple plugin like the existing mplayer-PCM-plugin, just with compression, and output redirected to file and OSS.

I currently use mplayer with Radio3.pup to listen to radiostreams like jazzradio or Swiss Groove:
http://www.murga.org/~puppy/viewtopic.php?p=20077#20077

---
lobster, interesting site for Audio-tools, will take some time to findsomething in the huge amount of tools.

Thanks, Mark
Back to top
View user's profile Send private message Visit poster's website 
Yogi

Joined: 19 Aug 2005
Posts: 177

PostPosted: Thu 27 Oct 2005, 05:11    Post subject:  

I am using Chubby Puppy 1.0.5 and have been using Stream Tuner and Stream Ripper in conjunction with XMMS to record and listen to mp3 formatted songs for about two weeks now. I've had the most luck with the Shoutcast stations. You'll have to read the Stream Ripper text on how to use Rxvt and the proper commands for recording. Not all stations are "cooperative" when it comes to recording their material. Two of my favorite stations are:

http://www.radiofreecolorado.net

http://www.radioparadise.com

Good luck!
Back to top
View user's profile Send private message 
MU


Joined: 24 Aug 2005
Posts: 13642
Location: Karlsruhe, Germany

PostPosted: Thu 27 Oct 2005, 05:21    Post subject:  

ok, I have perl in usr_devx.sfs anyway, so I will get them a try.
Seem to be the most comfortable apps out there Smile

thanks, Mark
Back to top
View user's profile Send private message Visit poster's website 
GuestToo
Puppy Master

Joined: 04 May 2005
Posts: 4078

PostPosted: Thu 27 Oct 2005, 05:41    Post subject:  

i do not think my StreamRipper dotpup requires perl

the StreamTuner dotpup requires perl for some of the plugins, but most of the plugins do not require perl ... StreamTuner seems to work ok without perl
Back to top
View user's profile Send private message 
MU


Joined: 24 Aug 2005
Posts: 13642
Location: Karlsruhe, Germany

PostPosted: Thu 27 Oct 2005, 06:08    Post subject:  

oooohhhhh.. stupid me did not recognize GuestToo posted a DotPup-link for Streamtuner and Streamripper...

Yes, they work out of the box... do all I wanted... man this is soooo cool Smile Cool

From my german Linux-board (translated):
Amarok and gstreamer don't play mp3

Since one week, someone tries to get that working with suse 9.3.

We gave him tips of installing packages from packmanlinks2linux, and codecs and so on, no success...
Now he wants to upgrade to Suse 10 (although I suggested trying Puppy).
Well, I just read a test about Suse 10:
woohoo, now it can play mp3!
What a success *g*
k3b and other apps do not support it yet *gg*
And wmv -nada.

I'll never give my puppy back *woofwoof* Very Happy

Mark
Back to top
View user's profile Send private message Visit poster's website 
ljones

Joined: 10 May 2005
Posts: 47

PostPosted: Fri 28 Oct 2005, 17:54    Post subject:  

I don't know if this helps I may be OT here , but on my main linux box (a mandrake 10.2 box, sorry!) I have made 2 scripts. One captures video and encodes straight it into (mencoder's idea of) an MPEG4 file. The other script I have records from the line in straight into an MP3 using two programs, "sox" and "lame". The video capture script I can't use in puppy as I don't know how to get video capture working under puppy (let alone mencoder), but the audio recorder which records into MP3 is much more simple (though I do not know if puppy has sox & lame). But here's the script;

Code:

#!/bin/sh
#srec by ljones
echo " "
echo "enter filename (e.g. out.mp3)"
read name1
echo " "
echo "enter audio quality (e.g. 32)"
read quality
echo " "
echo "tracks (1=mono (default), 2=stereo)"
read track

if [ "$name1" = "" ]
then
 name1="out.mp3"
fi

if [ "$quality" = "" ]
then
 quality=32
fi

if [ "$track" = "" ]
then
 track=1
fi

if [ $track = 1 ]
then
 sox -t ossdsp -w -s -r 44050 -c 1 /dev/dsp -t raw - | lame -x -m m -b $quality - $name1
fi

if [ $track = 2 ]
then
 sox -t ossdsp -w -s -r 44050 -c 2 /dev/dsp -t raw - | lame -x -m s -b $quality - $name1
fi


Where you see a "-r 44050" you might need to replace it with "-r 44100", it depends on the sound card. Mine needed -r 44050, or the recordings all sounded speeded up!

I would turn my scripts into GUIs via something like wxbasic, but I have no idea on how to tell either mencoder or sox & lame to stop via a GUI,

ljones
Back to top
View user's profile Send private message 
MU


Joined: 24 Aug 2005
Posts: 13642
Location: Karlsruhe, Germany

PostPosted: Fri 28 Oct 2005, 18:01    Post subject:  

Thanks, but Streamripper does perfectly what I need Smile

Mencoder is available as a dotpup, but I did not test it.
Might require additional libraries:
http://www.murga.org/%7Epuppy/viewtopic.php?t=3128

btw. no reason to be ashamed because of Mandrake?
I use it too (though very seldom sinceI have puppy).

Many people here use more than 1 Operating system, andespecially some older Dotpups were made from MDK/Debian/Vector-Linux-Packages.

Greets, Mark
Back to top
View user's profile Send private message Visit poster's website 
Display posts from previous:   Sort by:   
Page 1 of 1 [10 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » Users ( For the regulars )
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.0696s ][ Queries: 11 (0.0094s) ][ GZIP on ]