LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-07-2013, 05:47 PM   #1
exactiv
Member
 
Registered: Nov 2008
Location: Ireland
Distribution: *nix
Posts: 50

Rep: Reputation: 15
Question flash audio stream - save to mp3


I listen to a radio show that is not available as an mp3 download. It's available to listen back to via the station's player which is flash. I can't use Flash in work, so I'd like to download the show instead.

Any hints or tips appreciated.

This is the player: http://www.rte.ie/radio/radioplayer/...A02-09-2013%3A

Distro is Mint 15.
 
Old 09-07-2013, 08:35 PM   #2
bat999
LQ Newbie
 
Registered: Sep 2013
Location: UK
Distribution: Linux Mint 18 "Sarah" - Xfce (64-bit)
Posts: 29

Rep: Reputation: Disabled
Quote:
Originally Posted by exactiv View Post
...Any hints or tips appreciated.
Hi
That radio show isn't mp3 format.
It's aac in an flv container.
It can be downloaded using RTMPDump.
The command is shown here ---> http://pastebin.com/5dQftnEN

When the flv file has been downloaded, it can be re-muxed to m4a with FFmpeg:-
Code:
ffmpeg -i foo.flv -c copy foo.m4a
Or convert it to mp3 with FFmpeg/WinFF or some other program.


Last edited by bat999; 09-09-2013 at 07:23 AM.
 
1 members found this post helpful.
Old 09-07-2013, 11:05 PM   #3
LarryLQ
LQ Newbie
 
Registered: Sep 2013
Distribution: pclinuxos 2013
Posts: 13

Rep: Reputation: Disabled
exactiv

You can use audacity and record the stream as it is playing. The only drawback is you cannot play other audio(s) because it will get recorded with the audio you are recording.

Open audacity, and select pulse from the input Device drop down box. Once you got what you want, press stop. Select Normalize from the Effect filter to amplify volume as much as possible without causing distortion.

Then click File > Export and save to mp3 or whatever format you wish.

Last edited by LarryLQ; 09-07-2013 at 11:07 PM.
 
1 members found this post helpful.
Old 09-10-2013, 03:56 AM   #4
exactiv
Member
 
Registered: Nov 2008
Location: Ireland
Distribution: *nix
Posts: 50

Original Poster
Rep: Reputation: 15
Thanks guys. I'll give the RTMPdump a shot later.
 
Old 09-10-2013, 03:23 PM   #5
exactiv
Member
 
Registered: Nov 2008
Location: Ireland
Distribution: *nix
Posts: 50

Original Poster
Rep: Reputation: 15
Sweet! This worked a charm! Thank you!

Quote:
Originally Posted by bat999 View Post
Hi
That radio show isn't mp3 format.
It's aac in an flv container.
It can be downloaded using RTMPDump.
The command is shown here ---> http://pastebin.com/5dQftnEN

When the flv file has been downloaded, it can be re-muxed to m4a with FFmpeg:-
Code:
ffmpeg -i foo.flv -c copy foo.m4a
Or convert it to mp3 with FFmpeg/WinFF or some other program.

 
Old 09-10-2013, 03:46 PM   #6
exactiv
Member
 
Registered: Nov 2008
Location: Ireland
Distribution: *nix
Posts: 50

Original Poster
Rep: Reputation: 15
@bat999 : Now that I look at the rtmpdump command, how did you figure out the parameters for the command?

-r "rtmpe://fmsod.rte.ie/rtevod/"

-W "http://www.rte.ie/radio/radioplayer/player_460.swf" \

-y "mp4:/audio/2013/0902/20130902_rte2fm-radioactiv_cl10193397_10194814_261_/20130902_rte2fm-radioactiv_cl10193397_10194814_261_.mp4" \

-o 20130902_rte2fm-radioactiv_cl10193397_10194814_261_.flv
 
Old 09-10-2013, 04:16 PM   #7
bat999
LQ Newbie
 
Registered: Sep 2013
Location: UK
Distribution: Linux Mint 18 "Sarah" - Xfce (64-bit)
Posts: 29

Rep: Reputation: Disabled
Quote:
Originally Posted by exactiv View Post
... how did you figure out the parameters for the command?
Hi
I used this method to find them ---> http://pastebin.com/JWsdwUTa
(Only the four parameters -r -W -y -o are needed, the rest are not required for RTE radio)

So your RTMPDump commands for RTE "listen again" radio shows will (probably) all look like this:-

Code:
rtmpdump \
-r "rtmpe://fmsod.rte.ie/rtevod/" \
-W "http://www.rte.ie/radio/radioplayer/player_460.swf" \
-y "parameter" \
-o anything_you_like.flv


EDIT
Also the -o parameters can be improved.
Instead of this:-
Code:
-o anything.flv
Try this:-
Code:
-o - | ffmpeg -i - -c copy anything.m4a

Last edited by bat999; 09-10-2013 at 06:23 PM.
 
1 members found this post helpful.
Old 09-11-2013, 08:15 AM   #8
exactiv
Member
 
Registered: Nov 2008
Location: Ireland
Distribution: *nix
Posts: 50

Original Poster
Rep: Reputation: 15
Sweet, I can see an automated process forming in my head.... Thanks for all of the help!

1) Find file
2) DL & Encode to something small (mp3 or similar)
3) find a way of getting it to my iPhone without manually uploading it... soundcloud maybe
 
Old 09-11-2013, 09:49 AM   #9
bat999
LQ Newbie
 
Registered: Sep 2013
Location: UK
Distribution: Linux Mint 18 "Sarah" - Xfce (64-bit)
Posts: 29

Rep: Reputation: Disabled
Quote:
Originally Posted by exactiv View Post
... Encode to something small...
Hi
The RTE radio files play OK on my iPod (without re-encoding) using this type of parameter:-
Code:
-o - | ffmpeg -i - -c copy anything.m4a
The file size for a 2 hour show is < 60MB, that's quite small.

 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to enable MP3 audio stream playback on CentOS 6.x (x86_64) and remain sane primorec Linux - Software 3 11-17-2012 02:00 PM
How to record a stream and start a new outputXXX.avi/mp3 for each new stream title ? frenchn00b Linux - General 4 08-04-2008 06:40 AM
audio cd works - mp3's, streaming audio, flash sound don't spoody_goon Linux - Software 7 07-08-2006 04:11 PM
need an mp3 player that can stream audio too nick1 SUSE / openSUSE 1 03-25-2005 02:36 PM
Save Xmms stream to disk, Individual Mp3's cadj Linux - General 7 02-15-2005 03:27 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:17 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration