[FFmpeg-user] mkv to avi errors

Rick C. rickcorteza at gmail.com
Sun Jun 5 13:27:15 CEST 2011


On May 27, 2011, at 8:05 AM, Jon Drukman wrote:

> Rick C. <rickcorteza <at> gmail.com> writes:
> 
>> Great thanks for the quick replies.  I actually thought lame could do surround
> (obviously I was wrong) or
>> either that FFmpeg would downmix it automatically (I guess not the case).  If
> I would specify -ac 2 then it
>> should work correct?
>> 
>> And yes to avoid losing my surround I will go ac3.  Thank you!
> 
> -ac 2 will give you a stereo mp3.  if you want to preserve the ac3, just use
> -acodec copy.
> 

Hello again,

If I can continue this thread I thought I understood everything, but now that I make some more tests I keep getting the error that I cannot resample from 6 channels to 2 channels.  But what is my other choice if I'm going from AC3 to mp3lame for example?  Here's the output and any additional help would be great thank you:


FFmpeg version git-N-28698-g621f4c9, Copyright (c) 2000-2011 the FFmpeg developers
  built on Mar 30 2011 13:29:37 with gcc 4.2.1 (Apple Inc. build 5666) (dot 3)
  configuration: --prefix=/Volumes/Ramdisk/sw --enable-gpl --enable-pthreads --enable-version3 --enable-libspeex --enable-libvpx --disable-decoder=libvpx --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libx264 --enable-avfilter --enable-libopencore_amrwb --enable-libopencore_amrnb --enable-filters --arch=x86_64 --enable-runtime-cpudetect
  libavutil    50. 40. 0 / 50. 40. 0
  libavcodec   52.116. 0 / 52.116. 0
  libavformat  52.104. 0 / 52.104. 0
  libavdevice  52.  4. 0 / 52.  4. 0
  libavfilter   1. 76. 0 /  1. 76. 0
  libswscale    0. 13. 0 /  0. 13. 0

Seems stream 0 codec frame rate differs from container frame rate: 47.95 (66893/1395) -> 23.98 (66893/2790)
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/Users/mahalko/Movies/myMovies/Cars.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 1
    compatible_brands: isom
    creation_time   : 2010-08-26 04:14:05
  Duration: 01:56:36.05, start: 0.000000, bitrate: 2189 kb/s
    Stream #0.0(und): Video: h264 (High), yuv420p, 1280x528 [PAR 1:1 DAR 80:33], 1803 kb/s, 23.98 fps, 23.98 tbr, 66893 tbn, 47.95 tbc
    Metadata:
      creation_time   : 2010-08-26 23:11:34
    Stream #0.1(eng): Audio: aac, 48000 Hz, 5.1, s16, 381 kb/s
    Metadata:
      creation_time   : 2010-08-26 04:16:00
[buffer @ 0x1012011d0] w:1280 h:528 pixfmt:yuv420p
[setdar @ 0x1012018e0] a:80/33
[setdar @ 0x1012018e0] w:1280 h:528 -> dar:80/33 sar:1/1
Output #0, avi, to '/Users/mahalko/Movies/myMovies/Cars-VC01.avi':
  Metadata:
    major_brand     : isom
    minor_version   : 1
    compatible_brands: isom
    creation_time   : 2010-08-26 04:14:05
    ISFT            : Lavf52.104.0
    Stream #0.0(und): Video: mpeg4 (hq), yuv420p, 1280x528 [PAR 1:1 DAR 80:33], q=2-31, 2000 kb/s, 29.97 tbn, 29.97 tbc
    Metadata:
      creation_time   : 2010-08-26 23:11:34
    Stream #0.1(eng): Audio: libmp3lame, 48000 Hz, 2 channels, s16, 64 kb/s
    Metadata:
      creation_time   : 2010-08-26 04:16:00
Stream mapping:
  Stream #0.0 -> #0.0
  Stream #0.1 -> #0.1
Press ctrl-c to stop encoding
Resampling with input channels greater than 2 unsupported.
Can not resample 6 channels @ 48000 Hz to 2 channels @ 48000 Hz


More information about the ffmpeg-user mailing list