[FFmpeg-user] including all audio streams problem

Rick C. rickcorteza at gmail.com
Sat Sep 5 07:06:41 CEST 2015


Hi,

I’m trying to take a video to an audio only file including all audio streams but it doesn’t work for some reason.  Can anyone help explain why?  Thanks!  (Note - it works fine if the output is .m4a)


Last login: Sat Sep  5 12:08:18 on ttys004
toms-Mac:~ mahalko$ /Users/mahalko/Desktop/ffmpeg -i /Users/mahalko/Desktop/testInput.mov -y -threads 8 -map 0:a -vn /Users/mahalko/Desktop/testOuput.aiff
ffmpeg version 2.7.1 Copyright (c) 2000-2015 the FFmpeg developers
  built with llvm-gcc 4.2.1 (LLVM build 2336.11.00)
  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 --enable-libgsm --enable-libvidstab --enable-libx265 --disable-doc --arch=x86_64 --enable-runtime-cpudetect
  libavutil      54. 27.100 / 54. 27.100
  libavcodec     56. 41.100 / 56. 41.100
  libavformat    56. 36.100 / 56. 36.100
  libavdevice    56.  4.100 / 56.  4.100
  libavfilter     5. 16.101 /  5. 16.101
  libswscale      3.  1.101 /  3.  1.101
  libswresample   1.  2.100 /  1.  2.100
  libpostproc    53.  3.100 / 53.  3.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/Users/mahalko/Desktop/testInput.mov':
  Metadata:
    major_brand     : qt  
    minor_version   : 537199360
    compatible_brands: qt  
    creation_time   : 2015-09-03 22:10:45
  Duration: 00:05:58.01, start: 0.000000, bitrate: 2985 kb/s
    Stream #0:0(eng): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 108 kb/s (default)
    Metadata:
      creation_time   : 2015-09-03 22:10:45
      handler_name    : Apple Alias Data Handler
    Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 100 kb/s (default)
    Metadata:
      creation_time   : 2015-09-03 22:10:45
      handler_name    : Apple Alias Data Handler
    Stream #0:2(eng): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1280x720, 2764 kb/s, SAR 1:1 DAR 16:9, 14.34 fps, 14.33 tbr, 1k tbn, 50 tbc (default)
    Metadata:
      creation_time   : 2015-09-03 22:10:45
      handler_name    : Apple Alias Data Handler
      encoder         : H.264
[aiff @ 0x7f9c32813400] Only audio streams and pictures are allowed in AIFF.
Output #0, aiff, to '/Users/mahalko/Desktop/testOuput.aiff':
  Metadata:
    major_brand     : qt  
    minor_version   : 537199360
    compatible_brands: qt  
    encoder         : Lavf56.36.100
    Stream #0:0(eng): Audio: pcm_s16be (NONE / 0x454E4F4E), 44100 Hz, stereo, s16, 1411 kb/s (default)
    Metadata:
      creation_time   : 2015-09-03 22:10:45
      handler_name    : Apple Alias Data Handler
      encoder         : Lavc56.41.100 pcm_s16be
    Stream #0:1(eng): Audio: pcm_s16be (NONE / 0x454E4F4E), 44100 Hz, stereo, s16, 1411 kb/s (default)
    Metadata:
      creation_time   : 2015-09-03 22:10:45
      handler_name    : Apple Alias Data Handler
      encoder         : Lavc56.41.100 pcm_s16be
Stream mapping:
  Stream #0:0 -> #0:0 (aac (native) -> pcm_s16be (native))
  Stream #0:1 -> #0:1 (aac (native) -> pcm_s16be (native))
Could not write header for output file #0 (incorrect codec parameters ?): Invalid argument
toms-Mac:~ mahalko$ 



More information about the ffmpeg-user mailing list