On 04/21/10 08:31, Jacob Meuser wrote:
I left the muxer name as "oss". I did this because it is the only
supported audio recording muxer in ffmpeg, so everywhere it talks
about hardware audio recording in the docs, it uses
'-f oss -i<device>'. this will also allow any scripts which use
ffmpeg to record audio (-f oss -i /dev/audio) to continue to work
as long as aucat isn't running.
$ ffmpeg -f oss -i default out.mp3
worked fine
$ ffmpeg -vn -i "KDC-Mexside.mp4" -vn -ac 2 -ab 192k -acodec libmp3lame
"sout.mp3"
FFmpeg version SVN-r13839, Copyright (c) 2000-2008 Fabrice Bellard, et al.
configuration: --enable-shared --cc=cc --mandir=/usr/local/man
--disable-debug --disable-optimizations --enable-gpl --enable-pthreads
--enable-postproc --enable-swscale --enable-liba52 --enable-libfaac
--enable-libfaad --enable-libmp3lame --enable-libschroedinger
--enable-libtheora --enable-libvorbis --enable-libx264 --enable-x11grab
--extra-libs=-L/usr/local/lib -L/usr/X11R6/lib
--extra-cflags=-I/usr/local/include -I/usr/X11R6/include
--disable-decoder=cavs --disable-altivec --disable-armv6
--disable-armvfp --disable-iwmmxt --disable-neon
libavutil version: 49.7.0
libavcodec version: 51.57.2
libavformat version: 52.16.0
libavdevice version: 52.0.0
built on Apr 21 2010 18:52:48, gcc: 3.3.5 (propolice)
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'KDC-Mexside.mp4':
Duration: 00:03:30.27, start: 0.000000, bitrate: 479 kb/s
Stream #0.0(und): Audio: libfaad, 44100 Hz, stereo
Stream #0.1(und): Video: h264, yuv420p, 480x360, 29.97 tb(r)
Output #0, mp3, to 'sout.mp3':
Stream #0.0(und): Audio: libmp3lame, 44100 Hz, stereo, 192 kb/s
Stream mapping:
Stream #0.0 -> #0.0
Press [q] to stop encoding
size= 4928kB time=210.26 bitrate= 192.0kbits/s
video:0kB audio:4928kB global headers:0kB muxing overhead 0.000634%
$ mplayer sout.mp3
MPlayer SVN-r29414-snapshot-3.3.5 (C) 2000-2009 MPlayer Team
Playing sout.mp3.
Audio only file format detected.
==========================================================================
Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
AUDIO: 44100 Hz, 2 ch, s16le, 192.0 kbit/13.61% (ratio: 24000->176400)
Selected audio codec: [mp3] afm: mp3lib (mp3lib MPEG layer-2, layer-3)
==========================================================================
AO: [sndio] 44100Hz 2ch s16le (2 bytes per sample)
Video: no video
Starting playback...
mpg123: Can't rewind stream by 348 bits!
A: 209.9 (03:29.8) of 210.0 (03:30.0) 1.8%
Exiting... (End of file)
I don't do all mp3s with this only some but I don't remember seeing
mpg123: Can't rewind stream by 348 bits!
---
I downgraded back to original and get same result, so no change for that
conversion.
And of course $ ffmpeg -f oss -i default out.mp3 didn't work :)