Sat Feb 17 21:42:39 CST 2007
Rip Audio Stream From Any File
I found today that it is very easy to rip out an audio stream using mplayer, simply:
mplayer -ao pcm filename
This outputs a .wav to the current directory that you can burn using your favorite audio cd software ! Of course, if I had a portable music player I'd be compressing that file to whatever format my player would want.
mplayer -ao pcm filename
This outputs a .wav to the current directory that you can burn using your favorite audio cd software ! Of course, if I had a portable music player I'd be compressing that file to whatever format my player would want.
Posted by Mathieu Allard
Sat Feb 10 00:24:31 CST 2007
Linux Audio Streams
To learn spanish, I found a spanish radio station, trouble is, I would like to have a spanish radio station to listen to in my car. The easiest way is to have a cd to play.
To get the stream off the Internet, I used a software call streamripper, I use it the following way:
$streamripper streamurl
This saves an .mp3 of the stream into the working directory. Once I have this .mp3 I have to convert it to .wav to burn it to cd
$mpg321 -w newfile.wav streamfileindirectory.mp3
Unfortunately, sometimes the files that I download are bigger than a cd, I then use software called splitwav to trim the file down to the size of a cd.
$wavsplit -s conexion.wav 4200.1
I now have a 70 minute .wav file that I burn to cd using the wonderful k3b software.
To get the stream off the Internet, I used a software call streamripper, I use it the following way:
$streamripper streamurl
This saves an .mp3 of the stream into the working directory. Once I have this .mp3 I have to convert it to .wav to burn it to cd
$mpg321 -w newfile.wav streamfileindirectory.mp3
Unfortunately, sometimes the files that I download are bigger than a cd, I then use software called splitwav to trim the file down to the size of a cd.
$wavsplit -s conexion.wav 4200.1
I now have a 70 minute .wav file that I burn to cd using the wonderful k3b software.
Posted by Mathieu Allard
Thu Feb 8 10:38:13 CST 2007
Video Manipulation
I have been experimenting with video manipulation in Linux.
I often come across situations where I come across a stream on the Internet, and I would like to download it for my records. To download the stream, I use mencoder:
mencoder -oac copy -ovc copy http://location_of_the_stream -o downloaded_stream.streamextension
Once I do this and I want to edit the stream, I use ffmpeg:
ffmpeg -i downloaded_stream.streamextension -target pal-dv stream.dv
Once I have the stream in this format, I can edit it using Kino software which is part of Ubuntu. Once I crop the scene that I want to use I can export this scene in dv format using Kino. Once I have the dv file and I want to share it with friends, I can make an mpeg out of it by doing:
ffmpeg -i dvfilefromkino.dv -target vcd newfile.mpg
At this point, I have a new mpeg file that contains only the part of the video that I want to archive that I can share with the people that the stream is relevant to. The audio and the video seem slightly out of sync at this point, it's a problem that I have not had the time to look into at this point.
I often come across situations where I come across a stream on the Internet, and I would like to download it for my records. To download the stream, I use mencoder:
mencoder -oac copy -ovc copy http://location_of_the_stream -o downloaded_stream.streamextension
Once I do this and I want to edit the stream, I use ffmpeg:
ffmpeg -i downloaded_stream.streamextension -target pal-dv stream.dv
Once I have the stream in this format, I can edit it using Kino software which is part of Ubuntu. Once I crop the scene that I want to use I can export this scene in dv format using Kino. Once I have the dv file and I want to share it with friends, I can make an mpeg out of it by doing:
ffmpeg -i dvfilefromkino.dv -target vcd newfile.mpg
At this point, I have a new mpeg file that contains only the part of the video that I want to archive that I can share with the people that the stream is relevant to. The audio and the video seem slightly out of sync at this point, it's a problem that I have not had the time to look into at this point.
Posted by Mathieu Allard