<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
<br>
<br>
M L Truscott wrote:
<blockquote cite="mid:200709201928.44586.mltruscott@btinternet.com"
type="cite">
<pre wrap="">On Thursday 20 September 2007 16:23:59 Jon Larson wrote:
</pre>
<blockquote type="cite">
<pre wrap="">David Watkins wrote:
</pre>
<blockquote type="cite">
<pre wrap="">On 20/09/2007, M L Truscott <a class="moz-txt-link-rfc2396E" href="mailto:mltruscott@btinternet.com"><mltruscott@btinternet.com></a> wrote:
</pre>
<blockquote type="cite">
<pre wrap="">I have some mpeg2 files from dvb radio I'd like to strip the video
stream from and store as oggs/mp3s.
Any one know of a way of doing it?
</pre>
</blockquote>
<pre wrap="">I've used this in the past to strip audio to a wav. Should be easy
enough to get to mp3 or ogg from there.
mplayer infile.mpg -vo null -ao pcm:file=outfile.wav
</pre>
</blockquote>
<pre wrap="">The following ffmpeg command will capture audio from an mpeg2 source and
save it as low-bitrate mp3. It is optimized for voice, so if your radio
recordings are music you should raise the -ab and -ar values to 192 (in
kbits) and 44100 in Hz), and remove the '-ac 1' option.
ffmpeg -v quiet -y -i infile -ab 32 -acodec mp3 -ar 22050 -ac 1 outfile.mp3
Jon
</pre>
</blockquote>
<pre wrap=""><!---->
I tried the above and this was the result:
ffmpeg -v quiet -y -i /myth/1708_20070920175900.mpg -ab 193 -acodec mp3 -ar
44100 /myth/content/Music/Doctor_Who.mp3
FFmpeg version SVN-rUNKNOWN, Copyright (c) 2000-2004 Fabrice Bellard
configuration: --enable-gpl --enable-pp --enable-pthreads --enable-vorbis --enable-libogg --enable-a52 --enable-dts --enable-libgsm --enable-dc1394 --disable-debug --enable-mp3lame --enable-faadbin --enable-faad --enable-faac --enable-xvid --enable-x264 --enable-amr_nb --enable-amr_wb --enable-shared --prefix=/usr
libavutil version: 0d.49.0.0
libavcodec version: 0d.51.11.0
libavformat version: 0d.50.5.0
built on Mar 21 2007 14:14:05, gcc: 4.1.2 (Ubuntu 4.1.2-0ubuntu4)
Stream mapping:
Stream #0.0 -> #0.0
Error while opening codec for output stream #0.0 - maybe incorrect parameters
such as bit_rate, rate, width or height
I've clearly missed something - any help please?
_______________________________________________
mythtv-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:mythtv-users@mythtv.org">mythtv-users@mythtv.org</a>
<a class="moz-txt-link-freetext" href="http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users">http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users</a>
</pre>
</blockquote>
<br>
You set "-ab 193" --it should be "-ab 192" <br>
<br>
Jon<br>
</body>
</html>