[opensuse] converting an audio file from .asf to .mp3 format
Hi All, I used mplayer to 'dumpstream' and 'dumpfile' a stream to an .asf format file, which I can play with mplayer, but I'd now like to convert it to .mp3 format. Anyone care to share a commandline shortcut for this procedure? TIA & regards, Carl -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Tuesday 05 December 2006 7:26 pm, Carl Hartung wrote:
I used mplayer to 'dumpstream' and 'dumpfile' a stream to an .asf format file, which I can play with mplayer, but I'd now like to convert it to .mp3 format. Anyone care to share a commandline shortcut for this procedure?
You need to convert ithat to a wave file first and then you can encode it with lame. Assuming you are on the directory where the dump file is: mplayer -ao pcm:file=output.wav dump.asf and then: lame -b 192 output.wav output.mp3 ...and you will have output.mp3 encoded at 192 Kb/s HTH, Jorge -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Tuesday 05 December 2006 18:54, Jorge Fábregas wrote:
You need to convert ithat to a wave file first and then you can encode it with lame.
Assuming you are on the directory where the dump file is:
mplayer -ao pcm:file=output.wav dump.asf
and then:
lame -b 192 output.wav output.mp3
...and you will have output.mp3 encoded at 192 Kb/s
Fantastic, Jorge! Thank you! Two more questions, please, if you care to indulge me: Can I pipe the dumpfile into sox or mencoder or something else such that, next time, I won't have to convert the format? Also, I want to automate this capture via a short script (called by cron, probably) to be run on a daily basis to 'snapshot' two hours of the stream each day. Any pointers will be gratefully appreciated! regards, Carl -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Tuesday 05 December 2006 8:10 pm, Carl Hartung wrote:
Can I pipe the dumpfile into sox or mencoder or something else such that, next time, I won't have to convert the format? Also, I want to automate this capture via a short script (called by cron, probably) to be run on a daily basis to 'snapshot' two hours of the stream each day.
Sure, you can concatenate the output of mplayer to lame's stdin. I'll send you the script I use (I'll send it to your email directly). Jorge -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Tuesday 05 December 2006 19:16, Jorge Fábregas wrote:
On Tuesday 05 December 2006 8:10 pm, Carl Hartung wrote:
Can I pipe the dumpfile into sox or mencoder or something else such that, next time, I won't have to convert the format? Also, I want to automate this capture via a short script (called by cron, probably) to be run on a daily basis to 'snapshot' two hours of the stream each day.
Sure, you can concatenate the output of mplayer to lame's stdin. I'll send you the script I use (I'll send it to your email directly).
Thanks, Jorge! Very generous of you! Carl -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (2)
-
Carl Hartung
-
Jorge Fábregas