Skip to main content
Welcome guest. | Register | Login | Post

Convert Mono Sounds To Simulated Stereo

4 replies [Last post]
supermike's picture
Offline
Joined: 2006-02-17

Suppose I have a mono MP3 file, like the type of file you get when you use a You Tube ripper script on Ubuntu Linux that downloads the video and pulls out the audio. Suppose I want to convert a mono file into simulated stereo?

According to one article I read, this is the process:

1. Copy the mono file twice and feed it into a L and R channels.

2. By a couple microseconds, delay the playing of the R channel so that it starts later.

3. Take the L channel and change the reverb ever so slightly.

4. Take an EQ to the L channel as well as the R channel and change it so that the sound is slightly fuller and exactly the same on the L and R channels. Then, ever so slightly, change the R channel and alter the EQ in the lows, mid, and high just a tiny bit, but not too much.

So if that's the case, does anyone know how I could achieve this on Ubuntu Linux at the command line? Or, has anyone tried doing this with Jokosher?

AndrewB's picture
Offline
Joined: 2005-12-18
Command line, would that be

Command line, would that be possible.
Another choice would be audacity. Which I used for a while at school.

supermike's picture
Offline
Joined: 2006-02-17
ecasound -i input.mp3

ecasound -i input.mp3 -etf:8 -o out.mp3

Converts mono MP3 file to simulated stereo MP3 file quite nicely. I found ecasound was available by doing 'apt-get install ecasound' in Ubuntu.

supermike's picture
Offline
Joined: 2006-02-17
You'll probably like this

You'll probably like this script below. It downloads a YouTube video, splits out the monaural audio track, and then converts it into simulated stereo. Note that the references to mp3 could be changed to ogg if you looked in the man pages a little as well as changed the extensions. Then, you can take this fairly good quality, stereo sound file, and put it on your portable electronic music player device of choice.

#!/bin/bash
bu="http://youtube.com/get_video.php?"
mkdir -p ~/mp3
cd ~/mp3
read -p "YouTube URL For Video To Rip? " ur
read -p "Name Prefix of MP3 File? " nv
echo;echo;
wget ${ur} -O /tmp/y1;uf=${bu}`grep player2.swf /tmp/y1 | cut -d? -f2 | cut -d\" -f1`
wget "${uf}" -O /tmp/y.flv
ffmpeg -i /tmp/y.flv -f mp3 -vn -acodec copy "/tmp/${nv}.mp3"
ecasound -i "/tmp/${nv}.mp3" -etf:8 -o "${nv}.mp3"
echo;echo;
rm -f "/tmp/${nv}.mp3"
echo "File is saved in your home directory in the 'mp3' folder."
read

Edit: You can't do this very easily and for free on Windows!!!

libervisco's picture
Offline
Joined: 2006-05-04
This reminds me of

This reminds me of Youtube-dl script. Maybe the above could be combined with it in some way. Smiling

Anyway, thanks for a nice script. Might come in handy sometime.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.