[FFmpeg-user] Unable to copy all audio streams

Rajesh Rangaraj rrangaraj at yahoo.com
Sun Nov 25 15:07:57 CET 2012


Please see console output

1) ffmpeg 

$ ffmpeg -i test.mkv -map 0 -vcodec copy -acodec copy -scodec copy output.mp4
ffmpeg version 1.0 Copyright (c) 2000-2012 the FFmpeg developers
  built on Nov 20 2012 16:02:25 with Apple clang version 4.1 (tags/Apple/clang-421.11.66) (based on LLVM 3.1svn)
  configuration: --prefix=/opt/local --enable-swscale --enable-avfilter --enable-libmp3lame --enable-libvorbis --enable-libopus --enable-libtheora --enable-libschroedinger --enable-libopenjpeg --enable-libmodplug --enable-libvpx --enable-libspeex --enable-libfreetype --mandir=/opt/local/share/man --enable-shared --enable-pthreads --cc=/usr/bin/clang --arch=x86_64 --enable-yasm --enable-gpl --enable-postproc --enable-libx264 --enable-libxvid --enable-nonfree --enable-libfaac
  libavutil      51. 73.101 / 51. 73.101
  libavcodec     54. 59.100 / 54. 59.100
  libavformat    54. 29.104 / 54. 29.104
  libavdevice    54.  2.101 / 54.  2.101
  libavfilter     3. 17.100 /  3. 17.100
  libswscale      2.  1.101 /  2.  1.101
  libswresample   0. 15.100 /  0. 15.100
  libpostproc    52.  0.100 / 52.  0.100
Input #0, matroska,webm, from 'test.mkv':
  Metadata:
    creation_time   : 2012-11-25 06:33:22
  Duration: 00:00:10.47, start: 0.000000, bitrate: 947 kb/s
    Stream #0:0(eng): Audio: ac3, 48000 Hz, 5.1(side), s16, 448 kb/s
    Metadata:
      title           : "Audio: English AC3 5.1 @ 1.5 Mbps"
    Stream #0:1(eng): Video: h264 (High), yuv420p, 1280x534 [SAR 1:1 DAR 640:267], 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc (default)
    Metadata:
      title           : Video: x264_L4.1 @ 7183 Kbps
    Stream #0:2(eng): Subtitle: subrip (default)
    Metadata:
      title           : English
    Stream #0:3(eng): Subtitle: subrip
    Metadata:
      title           : English_SDH
    Stream #0:4: Audio: aac, 48000 Hz, 5.1, s16 (default)
    Metadata:
      title           : "Audio: English AAC 5.1 @ 1.5 Mbps"
[mp4 @ 0x7fdc09823c00] track 0: codec frame size is not set
[mp4 @ 0x7fdc09823c00] track 2: could not find tag, codec not currently supported in container
Output #0, mp4, to 'output.mp4':
  Metadata:
    encoder         : Lavf54.29.104
    Stream #0:0(eng): Audio: ac3 ([165][0][0][0] / 0x00A5), 48000 Hz, 5.1(side), 448 kb/s
    Metadata:
      title           : "Audio: English AC3 5.1 @ 1.5 Mbps"
    Stream #0:1(eng): Video: h264 ([33][0][0][0] / 0x0021), yuv420p, 1280x534 [SAR 1:1 DAR 640:267], q=2-31, 23.98 fps, 1k tbn, 1k tbc (default)
    Metadata:
      title           : Video: x264_L4.1 @ 7183 Kbps
    Stream #0:2(eng): Subtitle: subrip (default)
    Metadata:
      title           : English
    Stream #0:3(eng): Subtitle: subrip
    Metadata:
      title           : English_SDH
    Stream #0:4: Audio: aac ([64][0][0][0] / 0x0040), 48000 Hz, 5.1 (default)
    Metadata:
      title           : "Audio: English AAC 5.1 @ 1.5 Mbps"
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
  Stream #0:1 -> #0:1 (copy)
  Stream #0:2 -> #0:2 (copy)
  Stream #0:3 -> #0:3 (copy)
  Stream #0:4 -> #0:4 (copy)
Could not write header for output file #0 (incorrect codec parameters ?): Operation not permitted
======================================================================================
2) 1) ffprobe 
$ ffprobe test.mkv
ffprobe version 1.0 Copyright (c) 2007-2012 the FFmpeg developers
  built on Nov 20 2012 16:02:25 with Apple clang version 4.1 (tags/Apple/clang-421.11.66) (based on LLVM 3.1svn)
  configuration: --prefix=/opt/local --enable-swscale --enable-avfilter --enable-libmp3lame --enable-libvorbis --enable-libopus --enable-libtheora --enable-libschroedinger --enable-libopenjpeg --enable-libmodplug --enable-libvpx --enable-libspeex --enable-libfreetype --mandir=/opt/local/share/man --enable-shared --enable-pthreads --cc=/usr/bin/clang --arch=x86_64 --enable-yasm --enable-gpl --enable-postproc --enable-libx264 --enable-libxvid --enable-nonfree --enable-libfaac
  libavutil      51. 73.101 / 51. 73.101
  libavcodec     54. 59.100 / 54. 59.100
  libavformat    54. 29.104 / 54. 29.104
  libavdevice    54.  2.101 / 54.  2.101
  libavfilter     3. 17.100 /  3. 17.100
  libswscale      2.  1.101 /  2.  1.101
  libswresample   0. 15.100 /  0. 15.100
  libpostproc    52.  0.100 / 52.  0.100
Input #0, matroska,webm, from 'test.mkv':
  Metadata:
    creation_time   : 2012-11-25 06:33:22
  Duration: 00:00:10.47, start: 0.000000, bitrate: 947 kb/s
    Stream #0:0(eng): Audio: ac3, 48000 Hz, 5.1(side), s16, 448 kb/s
    Metadata:
      title           : "Audio: English AC3 5.1 @ 1.5 Mbps"
    Stream #0:1(eng): Video: h264 (High), yuv420p, 1280x534 [SAR 1:1 DAR 640:267], 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc (default)
    Metadata:
      title           : Video: x264_L4.1 @ 7183 Kbps
    Stream #0:2(eng): Subtitle: subrip (default)
    Metadata:
      title           : English
    Stream #0:3(eng): Subtitle: subrip
    Metadata:
      title           : English_SDH
    Stream #0:4: Audio: aac, 48000 Hz, 5.1, s16 (default)
    Metadata:
      title           : "Audio: English AAC 5.1 @ 1.5 Mbps"
=====================================================================================

From: Carl Eugen Hoyos <cehoyos at ag.or.at>
To: ffmpeg-user at ffmpeg.org 
Sent: Sunday, November 25, 2012 3:30 AM
Subject: Re: [FFmpeg-user] Unable to copy all audio streams
 
Rajesh Rangaraj <rrangaraj <at> yahoo.com> writes:

> ffmpeg -i test.mkv -map 0 -vcodec copy -acodec copy -scodec copy output.mp4
> 
> I get an error:
> Could not write header for output file #0
> (Incorrect codec parameters?) Operation not permitted.

Complete, uncut console output missing.

Carl Eugen

_______________________________________________
ffmpeg-user mailing list
ffmpeg-user at ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user


More information about the ffmpeg-user mailing list