[FFmpeg-user] Split convert MOV files to left and right wav files.

Ron Novy ron.novy at yahoo.com
Thu Dec 8 05:02:29 CET 2011



Hello, my name is Ron.  I'm new to FFmpeg and the mailing list and I've been having a little trouble.  I've been trying to split audio out of some MOV files using the latest windows version of FFmpeg.exe, but it is not working.  Can someone tell me if I'm doing something wrong or if it's a bug or something that just isn't implemented?


It works with WAV files like this...
ffmpeg -i "0001f3.wav" -map_channel 0.0.0 "0001f3-0.wav" -map_channel 0.0.1 "0001f3-1.wav"


But when I use a MOV file instead I get two stereo wav files where the left and right input were mixed together into both channels (also tried with -ac 1 but that just mixed both channels into one).
ffmpeg -i "0001f3.mov" -map_channel 0.1.0 "0001f3-0.wav" -map_channel 0.1.1 "0001f3-1.wav"


ffmpeg version N-35462-g61b1d85, Copyright (c) 2000-2011 the FFmpeg developers
  built on Dec  5 2011 14:22:27 with gcc 4.6.2
  configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-ru
ntime-cpudetect --enable-avisynth --enable-bzlib --enable-frei0r --enable-libope
ncore-amrnb --enable-libopencore-amrwb --enable-libfreetype --enable-libgsm --en
able-libmp3lame --enable-libopenjpeg --enable-librtmp --enable-libschroedinger -
-enable-libspeex --enable-libtheora --enable-libvo-aacenc --enable-libvo-amrwben
c --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-
libxvid --enable-zlib
  libavutil    51. 30. 0 / 51. 30. 0
  libavcodec   53. 40. 0 / 53. 40. 0
  libavformat  53. 24. 0 / 53. 24. 0
  libavdevice  53.  4. 0 / 53.  4. 0
  libavfilter   2. 51. 0 /  2. 51. 0
  libswscale    2.  1. 0 /  2.  1. 0
  libpostproc  51.  2. 0 / 51.  2. 0
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '0001f3.mov':
  Metadata:
    major_brand     : qt
    minor_version   : 512
    compatible_brands: qt
    creation_time   : 1970-01-01 00:00:00
    encoder         : Lavf52.78.5
  Duration: 00:00:05.60, start: 0.000000, bitrate: 2605 kb/s
    Stream #0:0(eng): Video: h264 (Constrained Baseline) (avc1 / 0x31637661), yu
v420p, 320x240 [SAR 1:1 DAR 4:3], 1184 kb/s, 25 fps, 25 tbr, 250k tbn, 50 tbc
    Metadata:
      creation_time   : 1970-01-01 00:00:00
      handler_name    : ♂DataHandler
    Stream #0:1(eng): Audio: pcm_s16le (sowt / 0x74776F73), 48000 Hz, 2 channels
, s16, 1536 kb/s
    Metadata:
      creation_time   : 1970-01-01 00:00:00
      handler_name    : ♂DataHandler
Output #0, wav, to '0001f3-0.wav':
  Metadata:
    major_brand     : qt
    minor_version   : 512
    compatible_brands: qt
    creation_time   : 1970-01-01 00:00:00
    encoder         : Lavf53.24.0
    Stream #0:0(eng): Audio: pcm_s16le ([1][0][0][0] / 0x0001), 48000 Hz, 2 chan
nels, s16, 1536 kb/s
    Metadata:
      creation_time   : 1970-01-01 00:00:00
      handler_name    : ♂DataHandler
Output #1, wav, to '0001f3-1.wav':
  Metadata:
    major_brand     : qt
    minor_version   : 512
    compatible_brands: qt
    creation_time   : 1970-01-01 00:00:00
    encoder         : Lavf53.24.0
    Stream #1:0(eng): Audio: pcm_s16le ([1][0][0][0] / 0x0001), 48000 Hz, 2 chan
nels, s16, 1536 kb/s
    Metadata:
      creation_time   : 1970-01-01 00:00:00
      handler_name    : ♂DataHandler
Stream mapping:
  Stream #0:1 -> #0:0 (pcm_s16le -> pcm_s16le)
  Stream #0:1 -> #1:0 (pcm_s16le -> pcm_s16le)
Press [q] to stop, [?] for help
size=    1050kB time=00:00:05.60 bitrate=1536.1kbits/s
video:0kB audio:2100kB global headers:0kB muxing overhead -49.997861%



More information about the ffmpeg-user mailing list