Difference between revisions of "Preparing releases from internet-based broadcasts"
m |
(→Wanna rip internet radio streams? Basic things you need to check first...: removing links to 'Internet Radios') |
||
(52 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
− | + | The '''basic 'howto'''' section addresses all necessary things for uploading stream rips (MP3 or AAC+). That section is kept as simple and straightforward as possible. More advanced uploaders will also like the '''advanced optimizations''' section further below. | |
− | === | + | |
+ | ==<span style="color:#ff0000">'''STREAM RIPS - A BASIC 'HOW TO''''</span>== | ||
− | + | ===<span style="color:#009933">Wanna rip internet radio streams? Basic things you need to check first...</span>=== | |
+ | '''The only way to properly record (rip) from Internet Radios are so called ''digital stream rips''. Here you get the basic HOWTO on how to do proper digital stream rips without any quality loss! ''' | ||
− | * | + | *'''Transcoding is evil!''' Do never record a set broadcasted in 192kbps and transcode it to another bitrate, for example 256kbps or 320kbps! You do not get a higher quality with that, you only 'nuked' the broadcast and got low quality crap - despite having a much higher bitrate than before! |
− | * | + | *Never record internet streams directly from your favorite Audio player. This is just evil as this involves transcoding (internet MP3 stream --> the audio player plays it --> recording program --> encoding to MP3). This automatically disallows any recordings from streaming webplayers (such as Realplayer, WindowsMediaPlayer, Flashplayer) in general and also completely disallows so-called 'MP3-recorders'. |
− | + | ===<span style="color:#009933">Installing and configuring Winamp/Streamripper</span>=== | |
− | + | For proper internet recordings (digital stream rips) you will need only two programs: | |
− | |||
− | |||
− | |||
− | For proper internet recordings (stream rips) you will need only two programs: | ||
*[http://www.winamp.com the newest Winamp] and | *[http://www.winamp.com the newest Winamp] and | ||
− | *[http://streamripper. | + | *[http://streamripper.sourceforge.net/ the newest Winamp streamripper plugin]. |
Follow the two links to get the two programs, then install them. Configure Winamp to always start the streamripper plugin together with the main Winamp program. | Follow the two links to get the two programs, then install them. Configure Winamp to always start the streamripper plugin together with the main Winamp program. | ||
Line 23: | Line 21: | ||
[[Image:SR0.gif]] | [[Image:SR0.gif]] | ||
− | Also shown are some streamripper configuration options (behind the 'OPTS' button) in the | + | Also shown are some streamripper configuration options (behind the 'OPTS' button) in the next two images. Important are especially the coloured rectangles and their content. Use them exactly as displayed and your chances to get a proper streamrip are very high! |
[[Image:SR_rip_to_separate_files.gif]] | [[Image:SR_rip_to_separate_files.gif]] | ||
[[Image:SR_user_agent.gif]] | [[Image:SR_user_agent.gif]] | ||
− | Note that streamripper with these options will save two (!) MP3 files for each broadcast to disk so for a 2h broadcast at 192kbps you will need disk space of at least 350MB. | + | * Note that streamripper with these options will save two (!) MP3 files for each broadcast to disk so for a 2h broadcast at 192kbps you will need disk space of at least 350MB. The reason why is outlined later in the ''section for advanced uploaders'' and is not important at the moment. One of the files serves as backup in case something goes wrong. |
+ | * A proper user agent is also quite important: some radio stations are very picky among the allowed players and rippers on your side - always use the string "WinampMPEG/X.XX" with X.XX being the version number of the main Winamp program (for example use 'WinampMPEG/5.30' for 'Winamp 5.3' or 'WinampMPEG/5.24' for 'Winamp 5.24'. | ||
+ | |||
+ | Special note: if you want to listen while recording (most will), do not change the default '''127.0.0.1''' in the ''Local Machine Name'' field. Check the box ''Create Relay stream'' and provide a default port (in the above example it is the port '''8089'''). | ||
+ | |||
+ | That's it more or less, other Winamp or Streamripper configuration options are not really important. Now you are set to rip your first internet radio stream. You can rip and record in almost any streaming format that Winamp can pull and play (MP3, OGG, AAC+). For streamripper there is no difference, it saves all the files of different formats to disk without problems. | ||
+ | |||
+ | ===<span style="color:#009933">Installing and configuring Foobar/Streamripper</span>=== | ||
+ | |||
+ | If you already have [[Foobar2000]] installed then you can configure it to also capture stream rips. | ||
+ | |||
+ | This is what you have to do: | ||
+ | *Download and install [http://streamripper.sourceforge.net/ Streamripper] ''1.64.2 - I haven't used a more recent version'' | ||
+ | *Download and install the [[Foobar2000]] [http://www.mp3tag.de/en/fb2k.html foo_run plugin] | ||
+ | *Download and install the [[Foobar2000]] [http://foosion.foobar2000.org/components/?id=runcmd foo_runcmd plugin] | ||
+ | *Create a batch file called ''sr.cmd'' and place it in your [[Foobar2000]] directory (normally it's C:\Program Files\foobar2000\) | ||
+ | *Copy and paste the following into the batch file: | ||
+ | <pre><nowiki> | ||
+ | @ECHO OFF | ||
+ | start "streamripper" "C:\Program Files\Streamripper\streamripper.exe" "%1" -r -d c:\streamrips\ | ||
+ | start "foo" "C:\Program Files\foobar2000\foobar2000.exe" /runcmd=Playback/Play http://localhost:8000 | ||
+ | </nowiki></pre> | ||
+ | *Start [[Foobar2000]] | ||
+ | *Then: ''File > Preferences > Tools > Run Services'' | ||
+ | *Add a new service and label it | ||
+ | *Copy the following command: ''"C:\Program Files\foobar2000\sr.cmd" %path%'' and add it to the ''Path'' field | ||
+ | *Load a stream service into and [[Foobar2000], right-click it to view the context menu: ''Run service'' and you should now see the command you just added | ||
+ | *Once the Streamripper service is started it will begin to save the file in the directory as detailed in the batch file | ||
+ | *You can stop the stream ripping by closing the window. | ||
+ | |||
+ | ===<span style="color:#009933">Using Videolan player to record stream</span>=== | ||
+ | I use this command with [http://www.videolan.org/ VLC] and it will save the digital audio data as it receives it to file, no need for any other programs. | ||
+ | vlc.exe --demux dump --demuxdump-file c:\temp\stream.mp3 http://URL.of.internet.radio | ||
+ | You can't listen with this, but I just open another stream in a different player. I use this command to capture an mp3 stream, but I guess it should work with anything. | ||
+ | |||
+ | This bat file is handy - file name is named from the date and time and mp3val is run when it's complete. | ||
+ | @set vlc="C:\Program Files\VLC1.0\vlc.exe" | ||
+ | @set mp3val="D:\ProgramFiles\mp3val\mp3val.exe" | ||
+ | @set stream=http://icecast.dance.org.uk:8000/streamHQ.mp3 | ||
+ | @For /f "tokens=2-4 delims=/ " %%a in ('date /t') do @set date=%%c%%a%%b | ||
+ | @For /f "tokens=1" %%u in ('time /t') do @set t=%%u | ||
+ | @Set Time=%t::=% | ||
+ | @set output="e:\music\my rips\stream %date% %Time%.mp3" | ||
+ | @echo Recording to %output% . . . don't close this Window! | ||
+ | %vlc% --demux dump --demuxdump-file %output% %stream% | ||
+ | @echo Finished recording, now fixing errors . . . | ||
+ | %mp3val% -f %output% | ||
+ | ===<span style="color:#009933">Recording MP3 and AAC+ streams from Internet Radios to disk</span>=== | ||
+ | |||
+ | Here is the step by step guide to record Internet Radios. Always follow the guidelines, some Internet Radios do not like deviations from the schemes provided below and will hurt you with stalling streams and lots of skips. The following applies to all streaming formats, let it be streaming in MP3, AAC or OGG: | ||
+ | |||
+ | # Go to the homepage of the internet radio and load the playlists directly linked on that page (*.pls or *.m3u) into Winamp. Do not use the links from shoutcast.com or similar listing sites, these are in part hijacked and nuked (for example by running at higher bitrates than possible). | ||
+ | # Some playlists come with different streaming URL entries in the Winamp playlist window. Check them and try to find the URL entry with the highest possible quality (192kbps, for example) and the least number of skips or bufferings. The number of skips should be zero, if possible! | ||
+ | # Make a final check on the URL entry that was the best so far (without skips or bufferings). Listen to it for five minutes. No skips should be heard. Then stop the stream! | ||
+ | # Then go to the main streamripper window. It should display your selected stream URL. Press the "start" button. Streamripper starts to rip the stream and saves it to your disk. Streamripper does not play the stream so you do not hear anything. | ||
+ | # Create a local relay stream so that you can listen to your own stream rip. Do it by clicking on the "RLY" button in the main streamripper window. In the main Winamp playlist window a link appears with the format '''127.0.0.1:8089''' (given the streamripper configuration provided by the images above). Double-click on the entry and you can listen to your own stream. The stream is now saved to disk and you can still listen to it via 'relay'. | ||
+ | # Do '''not''' click on one of the other links to the same stream server in the main Winamp window for the whole streamripper session, use the relay link only! Lots of audio servers do not like a second connection from the same IP and will add lots of "skips" to the stream or will even "ban" you from listening to the stream for a limited amount of time, either on one of the two connections or on both simultaneously. You can imagine that such a "ban" will destroy not only your listening experience but also will destroy your stream rip. That is certainly not what you want! | ||
+ | # If you follow all these rules and you still hear ''bufferings/skips'' on the relay from time to time - do not care as long as the ''hole'' in the stream does not take more than 3 seconds. The streamripper plugin is intelligent enough to remove the hole from the recorded set in this case. However, if the hole will not go away for more than 3 seconds you will almost certainly have a problem and an incomplete recording! | ||
+ | # Finally, at the end of the radio show press the 'stop' button in the main streamripper window. | ||
+ | # Now you will need to find the ripped files. They are saved in directories with the name of the show or stream (main copies). See the image below. However, do '''never''' use files remaining in the "incomplete" directories, these files are always broken and do not provide the full show you intended to rip. In case of problems during the broadcast you won't find files outside the "incomplete" directories at all. You "lost" the broadcast in this case. [[Image:SR_complete_save_directory.gif]] | ||
+ | |||
+ | |||
+ | ===<span style="color:#009933">Post-processing AAC+ streams (necessary but easily done!)</span>=== | ||
+ | |||
+ | Yep, post-processing AAC+ streams is necessary while MP3 streams do not need any further postprocessing and can be uploaded as-is. This special treatment for AAC+ files is necessary as the broadcasted AAC+ streams are present in ''raw'', headerless format and this ''raw'' format can only be played by Winamp and a few selected software players without problems. The general solution for getting AAC+ streams to work with ''any'' player is to place it in an MP4 container. This is very easy but you need some pieces of software in one directory first. | ||
+ | |||
+ | ; Installing the necessary programs: You will need the latest versions of the following programs and libraries, install or copy them all into the main Yamb program directory. Follow the installation order as provided below: | ||
+ | # [http://yamb.unite-video.com/download.html 'latest' Yamb 1.6+ with Installer] | ||
+ | # [http://kurtnoise.free.fr/index.php?dir=mp4tools/ 'latest' MP4Box.exe], copy it across the original MP4Box.exe in the Yamb directory. | ||
+ | # [http://mediainfo.sourceforge.net/en 'latest' MediaInfo.dll 0.7.x (>0.7.4.2)], copy the DLL to the Yamb directory. | ||
+ | # [http://besweet.notrace.dk/BeSweetv1.5b31.zip Hip.dll], unzip the pack but copy only the '''Hip.dll''' in the BeSweet package to the Yamb directory (and nothing else)! | ||
+ | |||
+ | ; Configuring Yamb/MP4Box: After the installation you will have to start and to configure Yamb, do it exactly in the way as shown below. In the ''Options'' tab, add the complete path to the now updated MP4Box.exe. Also, do not forget to check a few of the boxes. | ||
+ | |||
+ | [[Image:Yamb_options.gif]] | ||
+ | |||
+ | That's it. | ||
+ | |||
+ | |||
+ | ; Muxing AAC+ streams into an MP4 container: The final step is the most simple one. See the image below. Simply press the '''Add''' button and add the relevant AAC file to the ''Audio & Video'' box. Do NOT change anything in the dialog box that pops up and quit it by pressing ''Okay''! Only one AAC file at a time, please. Then finally and simply press the '''MUX''' button. That's it. You will find an MP4 file in the same directory as the AAC file. Use the MP4 file from now on! You can safely delete the original AAC file.... | ||
+ | |||
+ | [[Image:Yamb_MP4Box.gif]] | ||
+ | |||
+ | That's it (again). | ||
+ | |||
+ | |||
+ | ===<span style="color:#009933">Final steps for preparing MP3 and AAC+ / MP4 releases</span>=== | ||
+ | |||
+ | Now you can check and finalize the saved main file(s): | ||
+ | * Check whether or not the recorded show properly starts at the beginning of the ripped file, check whether or not the end of the file is in sync with the end of the show. We assume that the answer is yes (if the stream and the metadata are in sync - that is usually the case). If not it is highly recommended to cut the 2nd recorded file (the backup copy of the stream) with MP3DirectCut, see the next section for advanced rippers for a HOW-TO. | ||
+ | * If you want change the ID3 tags of the file, do it now and also do not hesitate to change the file name(s). You can do that with your favorite tagger for both file formats (MP3 or MP4). | ||
+ | * For the MP4 file it is very advantageous to rename the file extension from '''.mp4''' to '''.m4a''' as that is the only possibility to play the file in iTunes or on an iPod (and these are very important players, right?). | ||
+ | Congratulations, you made it. Easy and simple, isn't it?! | ||
+ | |||
+ | '''Now upload the finalized file(s), they are of decent to good quality - fully sufficient for normal uploads''' | ||
+ | |||
+ | However, if you want to deliver simply the best then read on and learn about optimized releases! | ||
+ | |||
+ | ==<span style="color:#ff0000">'''FOR ADVANCED USERS, QUALITY SPECIALISTS AND RELEASE EXPERTS: OPTIMIZING RIPPED BROADCASTS'''</span>== | ||
+ | |||
+ | The section above describes how to rip broadcasts and some other basic things. More advanced uploaders however know, that there are some other things to do to prepare a release that fulfills highest quality criteria - error-free files in perfect quality that can be played by any software and hardware player without problem. These things are described below. Note that all the established procedures require either MP3 or MP4/M4A files (see above for converting AAC to MP4/M4A), raw AAC+ files cannot be handled without problems. | ||
+ | |||
+ | ; This section is loosely organized as follows: | ||
+ | # Cutting MP3 / MP4/M4A files without decoding | ||
+ | # Correcting issues with MP3 / MP4/M4A files | ||
+ | # Enhancing the quality of MP3 / MP4/M4A files | ||
+ | # Adding special extensions to MP3 files | ||
+ | |||
+ | |||
+ | ===<span style="color:#009933">Cutting MP3 files without decoding</span>=== | ||
+ | |||
+ | MP3 files can easily be cut and edited with [[MP3DirectCut]]. | ||
+ | * Download it from the [http://mpesch3.de1.cc/mp3dc.html MP3DirectCut homepage] and do not forget to download the [http://mpesch3.de1.cc/mpglibdll_092.zip MPGlib.dll] as well. | ||
+ | * Install both. | ||
+ | * Load your first MP3 file in MP3DirectCut and edit it. The usage of MP3DirectCut does not follow the normal Windows conventions and that means that you will have to learn using it. To help you a bit the main MP3DirectCut window is shown below. The coloured rectangles provide you with the main buttons you will need. The mouse (both the left and the right button) can be used in the stream window to define blocks you want to cut. | ||
+ | |||
+ | [[Image:MP3DirectCut.gif]] | ||
+ | |||
+ | Again, the use of MP3DirectCut is not straightforward, you will need some trial-and-error attempts before you properly get your first MP3 file cut. Make a backup of your MP3 files first! | ||
+ | |||
+ | But, after getting the tricks you will find that MP3DirectCut is a mighty tool for editing and cutting MP3 files and you will not want to miss it! | ||
+ | |||
+ | |||
+ | ===<span style="color:#009933">Cutting AAC+ files without decoding</span>=== | ||
+ | |||
+ | ''Special note: the method described here is unique - it does not work with MP4/M4A but with the raw AAC+ files only. Therefore, if you intend to cut AAC+ files, do it directly after ripping them and before placing them in MP4/M4A containers.'' The combination of the programs '''BeSplit''' [http://besweet.notrace.dk/BeSplitv0.9b8.zip (download link)], '''WBias''' [http://besweet.notrace.dk/wbiasv081.zip (download link)], '''Hip.dll''' [http://besweet.notrace.dk/BeSweetv1.5b31.zip (download link, extract Hip.dll from the package)] and '''Winamp''' [http://winamp.com (homepage link)] usually allows to cut AAC+ files - unfortunately this most often does not work with streamed AAC+ files. You might want to try it, download the latest versions of the three programs, install BeSplit and WBias in one and the same directory and start '''WBias'''. Everything else is almost self-explaining. But again: the cutting process most probably will result in unexpected results (especially completely misplaced cutting points) with streamed AAC+ files so you better make backup copies of your AAC+ files first! | ||
+ | |||
+ | |||
+ | ===<span style="color:#009933">Avoid clipping by modifying the 'Global Gain' fields (for MP3 only)</span>=== | ||
+ | |||
+ | Internet radios almost always broadcast "as loud as possible", typically @96-97dB. This is way too much and results in a lot of clipping upon decoding. Proper values to avoid clipping are between 89-93dB. While it is almost unavoidable to get clipping during the original broadcast everyone can still adjust the "gain" in the ripped MP3 files in a way to avoid clipping upon playback. This makes the files ''better'' than the original broadcast. The main program for MP3 broadcasts to adjust the gain is the program [[MP3Gain]]. A special version of MP3Gain is able to edit AAC+ files as well, unfortunately this version does not work with streamed AAC+ content from internet radios. [[MP3Gain]] adjusts the ''Global Gain'' fields in MP3 files and therefore changes the MP3 files physically. That is good as this allows to adjust the gain for essentially ''every'' hardware and software MP3 player. | ||
+ | |||
+ | * Get [http://mp3gain.sf.net/download.php MP3Gain] first and install it. | ||
+ | * Then simply drag'n'drop some mp3 files on the MP3Gain window and apply the gain normalization. Choose the ''Target "Normal" volume'' (between 89.0dB and 93dB) and then press the '''Track Gain''' button. That's all. The image below shows the most relevant buttons and infos. If the gain normalization was not successful you will see it immediately after the normalization procedure (the line with the file will be displayed in red and the ''track'' clipping indication (blue box in the image below) will show a '''Y'''. Redo the track normalization in this case. MP3Gain also allows you to do some batch processing (simply drag & drop many MP3 files in the MP3Gain window and press the ''Track Gain'' button. | ||
+ | |||
+ | [[Image:MP3Gain.gif]] | ||
+ | |||
+ | That's it. For MacOS and Linux users: versions for you exist as well... | ||
+ | |||
+ | |||
+ | ===<span style="color:#009933">Avoid clipping by applying ReplayGain (for MP4 / M4A only)</span>=== | ||
− | + | In contrast to changing the 'global gain' fields in MP3 files this is not possible for streamed AAC+ content in MP4/M4A containers. The only available method is to add 'ReplayGain' tags to the MP4 files. This allows advanced software players (at the moment [[foobar2000]] and [[Winamp]]) to apply the gain during playback of the MP4/M4A files. The only working possibility at the moment to get this done is by using the player [[foobar2000]], newest version (>0.94) with some plugins installed. The procedure is as follows: | |
+ | * Load an MP4/M4A file in foobar2000. | ||
+ | * Right-click on the file, a pop-up menu appears. | ||
+ | * Go to ''ReplayGain'' --> ''Scan Per-File track Gain'', do it. | ||
+ | * A window with the scan result appears. Hit on the ''Update File Tags'' button. | ||
+ | Your MP4/M4A file now has the necessary ''ReplayGain'' tags to avoid clipping. | ||
− | === | + | ==<span style="color:#ff0000">'''Beebhack'''</span>== |
− | + | [http://beebhack.wikia.com/wiki/Beebhack Beebhack] describes how to re-purpose BBC online content. To utilise material already paid for by the licence payers in a manner that suits the end user, regardless of which platform they are using. | |
− | + | Lots of [http://beebhack.wikia.com/wiki/Programs programs] to use to get iplayer content. | |
+ | ==<span style="color:#ff0000">'''MISC'''</span>== | ||
+ | Enjoy! | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
[[Category:Uploading Own Recordings]] | [[Category:Uploading Own Recordings]] |
Latest revision as of 09:46, 2 August 2020
The basic 'howto' section addresses all necessary things for uploading stream rips (MP3 or AAC+). That section is kept as simple and straightforward as possible. More advanced uploaders will also like the advanced optimizations section further below.
Contents
- 1 STREAM RIPS - A BASIC 'HOW TO'
- 1.1 Wanna rip internet radio streams? Basic things you need to check first...
- 1.2 Installing and configuring Winamp/Streamripper
- 1.3 Installing and configuring Foobar/Streamripper
- 1.4 Using Videolan player to record stream
- 1.5 Recording MP3 and AAC+ streams from Internet Radios to disk
- 1.6 Post-processing AAC+ streams (necessary but easily done!)
- 1.7 Final steps for preparing MP3 and AAC+ / MP4 releases
- 2 FOR ADVANCED USERS, QUALITY SPECIALISTS AND RELEASE EXPERTS: OPTIMIZING RIPPED BROADCASTS
- 3 Beebhack
- 4 MISC
STREAM RIPS - A BASIC 'HOW TO'
Wanna rip internet radio streams? Basic things you need to check first...
The only way to properly record (rip) from Internet Radios are so called digital stream rips. Here you get the basic HOWTO on how to do proper digital stream rips without any quality loss!
- Transcoding is evil! Do never record a set broadcasted in 192kbps and transcode it to another bitrate, for example 256kbps or 320kbps! You do not get a higher quality with that, you only 'nuked' the broadcast and got low quality crap - despite having a much higher bitrate than before!
- Never record internet streams directly from your favorite Audio player. This is just evil as this involves transcoding (internet MP3 stream --> the audio player plays it --> recording program --> encoding to MP3). This automatically disallows any recordings from streaming webplayers (such as Realplayer, WindowsMediaPlayer, Flashplayer) in general and also completely disallows so-called 'MP3-recorders'.
Installing and configuring Winamp/Streamripper
For proper internet recordings (digital stream rips) you will need only two programs:
Follow the two links to get the two programs, then install them. Configure Winamp to always start the streamripper plugin together with the main Winamp program.
The black, small main window of the streamripper plugin is shown below. It shows the streamripper working....
Also shown are some streamripper configuration options (behind the 'OPTS' button) in the next two images. Important are especially the coloured rectangles and their content. Use them exactly as displayed and your chances to get a proper streamrip are very high!
- Note that streamripper with these options will save two (!) MP3 files for each broadcast to disk so for a 2h broadcast at 192kbps you will need disk space of at least 350MB. The reason why is outlined later in the section for advanced uploaders and is not important at the moment. One of the files serves as backup in case something goes wrong.
- A proper user agent is also quite important: some radio stations are very picky among the allowed players and rippers on your side - always use the string "WinampMPEG/X.XX" with X.XX being the version number of the main Winamp program (for example use 'WinampMPEG/5.30' for 'Winamp 5.3' or 'WinampMPEG/5.24' for 'Winamp 5.24'.
Special note: if you want to listen while recording (most will), do not change the default 127.0.0.1 in the Local Machine Name field. Check the box Create Relay stream and provide a default port (in the above example it is the port 8089).
That's it more or less, other Winamp or Streamripper configuration options are not really important. Now you are set to rip your first internet radio stream. You can rip and record in almost any streaming format that Winamp can pull and play (MP3, OGG, AAC+). For streamripper there is no difference, it saves all the files of different formats to disk without problems.
Installing and configuring Foobar/Streamripper
If you already have Foobar2000 installed then you can configure it to also capture stream rips.
This is what you have to do:
- Download and install Streamripper 1.64.2 - I haven't used a more recent version
- Download and install the Foobar2000 foo_run plugin
- Download and install the Foobar2000 foo_runcmd plugin
- Create a batch file called sr.cmd and place it in your Foobar2000 directory (normally it's C:\Program Files\foobar2000\)
- Copy and paste the following into the batch file:
@ECHO OFF start "streamripper" "C:\Program Files\Streamripper\streamripper.exe" "%1" -r -d c:\streamrips\ start "foo" "C:\Program Files\foobar2000\foobar2000.exe" /runcmd=Playback/Play http://localhost:8000
- Start Foobar2000
- Then: File > Preferences > Tools > Run Services
- Add a new service and label it
- Copy the following command: "C:\Program Files\foobar2000\sr.cmd" %path% and add it to the Path field
- Load a stream service into and [[Foobar2000], right-click it to view the context menu: Run service and you should now see the command you just added
- Once the Streamripper service is started it will begin to save the file in the directory as detailed in the batch file
- You can stop the stream ripping by closing the window.
Using Videolan player to record stream
I use this command with VLC and it will save the digital audio data as it receives it to file, no need for any other programs.
vlc.exe --demux dump --demuxdump-file c:\temp\stream.mp3 http://URL.of.internet.radio
You can't listen with this, but I just open another stream in a different player. I use this command to capture an mp3 stream, but I guess it should work with anything.
This bat file is handy - file name is named from the date and time and mp3val is run when it's complete.
@set vlc="C:\Program Files\VLC1.0\vlc.exe" @set mp3val="D:\ProgramFiles\mp3val\mp3val.exe" @set stream=http://icecast.dance.org.uk:8000/streamHQ.mp3 @For /f "tokens=2-4 delims=/ " %%a in ('date /t') do @set date=%%c%%a%%b @For /f "tokens=1" %%u in ('time /t') do @set t=%%u @Set Time=%t::=% @set output="e:\music\my rips\stream %date% %Time%.mp3" @echo Recording to %output% . . . don't close this Window! %vlc% --demux dump --demuxdump-file %output% %stream% @echo Finished recording, now fixing errors . . . %mp3val% -f %output%
Recording MP3 and AAC+ streams from Internet Radios to disk
Here is the step by step guide to record Internet Radios. Always follow the guidelines, some Internet Radios do not like deviations from the schemes provided below and will hurt you with stalling streams and lots of skips. The following applies to all streaming formats, let it be streaming in MP3, AAC or OGG:
- Go to the homepage of the internet radio and load the playlists directly linked on that page (*.pls or *.m3u) into Winamp. Do not use the links from shoutcast.com or similar listing sites, these are in part hijacked and nuked (for example by running at higher bitrates than possible).
- Some playlists come with different streaming URL entries in the Winamp playlist window. Check them and try to find the URL entry with the highest possible quality (192kbps, for example) and the least number of skips or bufferings. The number of skips should be zero, if possible!
- Make a final check on the URL entry that was the best so far (without skips or bufferings). Listen to it for five minutes. No skips should be heard. Then stop the stream!
- Then go to the main streamripper window. It should display your selected stream URL. Press the "start" button. Streamripper starts to rip the stream and saves it to your disk. Streamripper does not play the stream so you do not hear anything.
- Create a local relay stream so that you can listen to your own stream rip. Do it by clicking on the "RLY" button in the main streamripper window. In the main Winamp playlist window a link appears with the format 127.0.0.1:8089 (given the streamripper configuration provided by the images above). Double-click on the entry and you can listen to your own stream. The stream is now saved to disk and you can still listen to it via 'relay'.
- Do not click on one of the other links to the same stream server in the main Winamp window for the whole streamripper session, use the relay link only! Lots of audio servers do not like a second connection from the same IP and will add lots of "skips" to the stream or will even "ban" you from listening to the stream for a limited amount of time, either on one of the two connections or on both simultaneously. You can imagine that such a "ban" will destroy not only your listening experience but also will destroy your stream rip. That is certainly not what you want!
- If you follow all these rules and you still hear bufferings/skips on the relay from time to time - do not care as long as the hole in the stream does not take more than 3 seconds. The streamripper plugin is intelligent enough to remove the hole from the recorded set in this case. However, if the hole will not go away for more than 3 seconds you will almost certainly have a problem and an incomplete recording!
- Finally, at the end of the radio show press the 'stop' button in the main streamripper window.
- Now you will need to find the ripped files. They are saved in directories with the name of the show or stream (main copies). See the image below. However, do never use files remaining in the "incomplete" directories, these files are always broken and do not provide the full show you intended to rip. In case of problems during the broadcast you won't find files outside the "incomplete" directories at all. You "lost" the broadcast in this case.
Post-processing AAC+ streams (necessary but easily done!)
Yep, post-processing AAC+ streams is necessary while MP3 streams do not need any further postprocessing and can be uploaded as-is. This special treatment for AAC+ files is necessary as the broadcasted AAC+ streams are present in raw, headerless format and this raw format can only be played by Winamp and a few selected software players without problems. The general solution for getting AAC+ streams to work with any player is to place it in an MP4 container. This is very easy but you need some pieces of software in one directory first.
- Installing the necessary programs
- You will need the latest versions of the following programs and libraries, install or copy them all into the main Yamb program directory. Follow the installation order as provided below:
- 'latest' Yamb 1.6+ with Installer
- 'latest' MP4Box.exe, copy it across the original MP4Box.exe in the Yamb directory.
- 'latest' MediaInfo.dll 0.7.x (>0.7.4.2), copy the DLL to the Yamb directory.
- Hip.dll, unzip the pack but copy only the Hip.dll in the BeSweet package to the Yamb directory (and nothing else)!
- Configuring Yamb/MP4Box
- After the installation you will have to start and to configure Yamb, do it exactly in the way as shown below. In the Options tab, add the complete path to the now updated MP4Box.exe. Also, do not forget to check a few of the boxes.
That's it.
- Muxing AAC+ streams into an MP4 container
- The final step is the most simple one. See the image below. Simply press the Add button and add the relevant AAC file to the Audio & Video box. Do NOT change anything in the dialog box that pops up and quit it by pressing Okay! Only one AAC file at a time, please. Then finally and simply press the MUX button. That's it. You will find an MP4 file in the same directory as the AAC file. Use the MP4 file from now on! You can safely delete the original AAC file....
That's it (again).
Final steps for preparing MP3 and AAC+ / MP4 releases
Now you can check and finalize the saved main file(s):
- Check whether or not the recorded show properly starts at the beginning of the ripped file, check whether or not the end of the file is in sync with the end of the show. We assume that the answer is yes (if the stream and the metadata are in sync - that is usually the case). If not it is highly recommended to cut the 2nd recorded file (the backup copy of the stream) with MP3DirectCut, see the next section for advanced rippers for a HOW-TO.
- If you want change the ID3 tags of the file, do it now and also do not hesitate to change the file name(s). You can do that with your favorite tagger for both file formats (MP3 or MP4).
- For the MP4 file it is very advantageous to rename the file extension from .mp4 to .m4a as that is the only possibility to play the file in iTunes or on an iPod (and these are very important players, right?).
Congratulations, you made it. Easy and simple, isn't it?!
Now upload the finalized file(s), they are of decent to good quality - fully sufficient for normal uploads
However, if you want to deliver simply the best then read on and learn about optimized releases!
FOR ADVANCED USERS, QUALITY SPECIALISTS AND RELEASE EXPERTS: OPTIMIZING RIPPED BROADCASTS
The section above describes how to rip broadcasts and some other basic things. More advanced uploaders however know, that there are some other things to do to prepare a release that fulfills highest quality criteria - error-free files in perfect quality that can be played by any software and hardware player without problem. These things are described below. Note that all the established procedures require either MP3 or MP4/M4A files (see above for converting AAC to MP4/M4A), raw AAC+ files cannot be handled without problems.
- This section is loosely organized as follows
- Cutting MP3 / MP4/M4A files without decoding
- Correcting issues with MP3 / MP4/M4A files
- Enhancing the quality of MP3 / MP4/M4A files
- Adding special extensions to MP3 files
Cutting MP3 files without decoding
MP3 files can easily be cut and edited with MP3DirectCut.
- Download it from the MP3DirectCut homepage and do not forget to download the MPGlib.dll as well.
- Install both.
- Load your first MP3 file in MP3DirectCut and edit it. The usage of MP3DirectCut does not follow the normal Windows conventions and that means that you will have to learn using it. To help you a bit the main MP3DirectCut window is shown below. The coloured rectangles provide you with the main buttons you will need. The mouse (both the left and the right button) can be used in the stream window to define blocks you want to cut.
Again, the use of MP3DirectCut is not straightforward, you will need some trial-and-error attempts before you properly get your first MP3 file cut. Make a backup of your MP3 files first!
But, after getting the tricks you will find that MP3DirectCut is a mighty tool for editing and cutting MP3 files and you will not want to miss it!
Cutting AAC+ files without decoding
Special note: the method described here is unique - it does not work with MP4/M4A but with the raw AAC+ files only. Therefore, if you intend to cut AAC+ files, do it directly after ripping them and before placing them in MP4/M4A containers. The combination of the programs BeSplit (download link), WBias (download link), Hip.dll (download link, extract Hip.dll from the package) and Winamp (homepage link) usually allows to cut AAC+ files - unfortunately this most often does not work with streamed AAC+ files. You might want to try it, download the latest versions of the three programs, install BeSplit and WBias in one and the same directory and start WBias. Everything else is almost self-explaining. But again: the cutting process most probably will result in unexpected results (especially completely misplaced cutting points) with streamed AAC+ files so you better make backup copies of your AAC+ files first!
Avoid clipping by modifying the 'Global Gain' fields (for MP3 only)
Internet radios almost always broadcast "as loud as possible", typically @96-97dB. This is way too much and results in a lot of clipping upon decoding. Proper values to avoid clipping are between 89-93dB. While it is almost unavoidable to get clipping during the original broadcast everyone can still adjust the "gain" in the ripped MP3 files in a way to avoid clipping upon playback. This makes the files better than the original broadcast. The main program for MP3 broadcasts to adjust the gain is the program MP3Gain. A special version of MP3Gain is able to edit AAC+ files as well, unfortunately this version does not work with streamed AAC+ content from internet radios. MP3Gain adjusts the Global Gain fields in MP3 files and therefore changes the MP3 files physically. That is good as this allows to adjust the gain for essentially every hardware and software MP3 player.
- Get MP3Gain first and install it.
- Then simply drag'n'drop some mp3 files on the MP3Gain window and apply the gain normalization. Choose the Target "Normal" volume (between 89.0dB and 93dB) and then press the Track Gain button. That's all. The image below shows the most relevant buttons and infos. If the gain normalization was not successful you will see it immediately after the normalization procedure (the line with the file will be displayed in red and the track clipping indication (blue box in the image below) will show a Y. Redo the track normalization in this case. MP3Gain also allows you to do some batch processing (simply drag & drop many MP3 files in the MP3Gain window and press the Track Gain button.
That's it. For MacOS and Linux users: versions for you exist as well...
Avoid clipping by applying ReplayGain (for MP4 / M4A only)
In contrast to changing the 'global gain' fields in MP3 files this is not possible for streamed AAC+ content in MP4/M4A containers. The only available method is to add 'ReplayGain' tags to the MP4 files. This allows advanced software players (at the moment foobar2000 and Winamp) to apply the gain during playback of the MP4/M4A files. The only working possibility at the moment to get this done is by using the player foobar2000, newest version (>0.94) with some plugins installed. The procedure is as follows:
- Load an MP4/M4A file in foobar2000.
- Right-click on the file, a pop-up menu appears.
- Go to ReplayGain --> Scan Per-File track Gain, do it.
- A window with the scan result appears. Hit on the Update File Tags button.
Your MP4/M4A file now has the necessary ReplayGain tags to avoid clipping.
Beebhack
Beebhack describes how to re-purpose BBC online content. To utilise material already paid for by the licence payers in a manner that suits the end user, regardless of which platform they are using.
Lots of programs to use to get iplayer content.
MISC
Enjoy!