I'm having trouble encoding uncompressed avi video into flv or x264. ffmpeg always complains about the audio stream. Reproducible: Always Steps to Reproduce: 1.get an uncompressed avi 2.use ffmpeg to try to compress it 3.cry Actual Results: % file mvi_8293.avi mvi_8293.avi: RIFF (little-endian) data, AVI, 320 x 240, ~15 fps, video: Motion JPEG, audio: uncompressed PCM (mono, 11024 Hz) % /usr/bin/ffmpeg -i mvi_8293.avi -copyts -ar 44100 -s 320x240 mvi_8293.flv FFmpeg version SVN-r15615, Copyright (c) 2000-2008 Fabrice Bellard, et al. configuration: --prefix=/usr --libdir=/usr/lib --shlibdir=/usr/lib --mandir=/usr/share/man --enable-static --enable-shared --cc=i686-pc-linux-gnu-gcc --disable-debug --disable-network --disable-optimizations --enable-libfaac --enable-libmp3lame --enable-libvorbis --enable-libx264 --enable-libxvid --disable-demuxer=v4l --disable-demuxer=v4l2 --enable-x11grab --enable-pthreads --enable-libfaad --disable-altivec --cpu=prescott --disable-vhook --enable-gpl --enable-postproc --enable-avfilter --enable-avfilter-lavf --enable-swscale --disable-stripping libavutil 49.11. 0 / 49.11. 0 libavcodec 52. 0. 0 / 52. 0. 0 libavformat 52.22. 1 / 52.22. 1 libavdevice 52. 1. 0 / 52. 1. 0 libavfilter 0. 1. 0 / 0. 1. 0 libswscale 0. 6. 1 / 0. 6. 1 libpostproc 51. 2. 0 / 51. 2. 0 built on Jan 16 2009 09:16:48, gcc: 4.1.2 (Gentoo 4.1.2) Input #0, avi, from 'mvi_8293.avi': Duration: 00:02:37.53, start: 0.000000, bitrate: 2648 kb/s Stream #0.0: Video: mjpeg, yuvj422p, 320x240, 15.00 tb(r) Stream #0.1: Audio: pcm_u8, 11024 Hz, mono, s16, 88 kb/s File 'mvi_8293.flv' already exists. Overwrite ? [y/N] y Output #0, flv, to 'mvi_8293.flv': Stream #0.0: Video: flv, yuv420p, 320x240, q=2-31, 200 kb/s, 15.00 tb(c) Stream #0.1: Audio: libmp3lame, 44100 Hz, mono, s16, 64 kb/s Stream mapping: Stream #0.0 -> #0.0 Stream #0.1 -> #0.1 Press [q] to stop encoding Audio resampler only works with 16 bits per sample, patch welcome. Expected Results: encoded the video. http://roundup.mplayerhq.hu/roundup/ffmpeg/issue651 http://roundup.mplayerhq.hu/roundup/ffmpeg/issue641 http://roundup.mplayerhq.hu/roundup/ffmpeg/issue582 [I] media-video/ffmpeg Installed versions: 0.4.9_p20081219(10:15:47 AM 01/16/2009)(X aac encode mmx mmxext mp3 sdl ssse3 threads vorbis x264 xvid zlib -altivec -amr -bindist -debug -dirac -doc -gsm -hardcoded-tables -ieee1394 -ipv6 -network -schroedinger -speex -test -theora -v4l -v4l2 -vhook)
How is this a Gentoo specific issue? Other than that, why don't you simply copy the audio with `-acodec copy'? Why are you setting the audio sampling rate to the original rate? Other than that, where's the requested patch? :)