Introduction¶
Videoportals (for example youtube) provide a lot of music videos – but if you want to get the music played on an mp3-player (or burned on an Audio-CD) there are two problems to solve:
- Many videoportals don’t provide download links for their Videos.
- The Videos (mostly flash videos) can’t be played on most mp3-players.
Here are two different methods to solve these problems:
Online converter¶
Online converter often provide to load a video directly from various portals and convert it to various (audio) file formats. (Links: online converter download)
Advantages and disadvantages of this method:¶
- Accessible from everywhere without any additional installations (you only need a web browser and an internet connection)
- Audio is reencoded →
- The target format can be choosen
- Quality loss if a compressed format is choosen or a much bigger audio file if an uncompressed format is choosen
- Mono audio (used in most youtube videos) is often converted to ‘stereo’ → redoubled filesize (the same audio information is saved two times inside the audio file)
- The amount of free conversions may be limited
- If the online converter is used by many people at the same time it may be very slow
Example: Convert a youtube-video to a mp3-audiofile with mediaconverter.org¶
- Go to the youtube-page of the video you want to get the sound of (for example http://www.youtube.com/watch?v=bsoiupLME-w)
- Copy the URL of the youtube-page from the adress bar
- Go to the web page www.mediaconverter.org
- Paste the URL into the textfield
- Click the NEXT STEP button
- Choose the file type to convert to (mp3)
- Enter a name for the output file into the textfield
- Click the NEXT STEP button
- Click the NEXT STEP button again (leave the additional options at ‘No changes’)
- Wait until download and conversion are done
- Click the DOWNLOAD NOW button
- Choose where to save the mp3-file
Download with Video DownloadHelper and audio extraction with mplayer¶
The firefox-extension Video DownloadHelper provides download-links for many different videoportals.
The application mplayer is able to extract (dump) raw compressed audio from video files:
mplayer -dumpaudio «source-file.flv» -dumpfile «target-file.mp3»
Our script flv-to-mp3 automaticaly executes this command for every *.flv – file that’s dragged & dropped on it’s Icon.
Advantages and disadvantages of this method:¶
- It’s necessary to have the Video DownloadHelper and mplayer installed
- You have to use the commandline or our script flv-to-mp3
- Audio is raw dumped – not reencoded
- No quality loss
- No waste of storage space
- No guarantee that the raw dumped audio can be blayed on all devices
(All players and devices I tested were able to play the files without any problems but some players showed strange file informations)
Example: Download a youtube-video with Video DownloadHelper and extract audio to a mp3-audiofile with mplayer using the script flv-to-mp3¶
- Go to the youtube-page of the video you want to get the sound of (for example http://www.youtube.com/watch?v=bsoiupLME-w)
- Click on the triangle on the right site of the Video DownloadHelper – Symbol
- In the opened context menu click on the video you want to download
- Select the folder where you want to save the downloaded video or leave it at the default location ~/dwhelper
- Click OK
- Wait until the download is finished
- Open the folder where you saved the video file(s)
- Drag and drop the video file(s) on the symbol of the script flv-to-mp3