-1

Команда: avconv -i "input" -map 0 -codec copy -sn "output"

PS Кажется, что просто невозможно придумать универсальную строку кода для копирования ВСЕХ потоков с ввода на вывод в формате avi или mp4 и без -bsf h264_mp4toannexb

Я получаю эту ошибку при попытке сделать ремикс видеофайла с помощью avconv:

    Last login: Sun Aug 28 20:59:03 on ttys000
Usrs-MacBook-Pro:~ usr$ /Users/usr/Desktop/rewrap.command ; exit;
The file has been copied completely.
Current date and time Sun Aug 28 20:59:07 EEST 2016
Processing /Users/usr/Desktop/Arslan Senki - 01 [FaSt & Milirina].mkv file...
avconv version 11.4, Copyright (c) 2000-2014 the Libav developers
  built on Aug  2 2016 18:34:44 with Apple LLVM version 7.3.0 (clang-703.0.31)
Input #0, matroska,webm, from '/Users/usr/Desktop/Arslan Senki - 01 [FaSt & Milirina].mkv':
  Duration: 00:24:30.10, start: 0.000000, bitrate: N/A
    Stream #0.0: Video: h264 (High), yuv420p, 1280x720 [PAR 1:1 DAR 16:9], 23.98 fps, 1k tbn, 47.95 tbc (default)
    Metadata:
      BPS             : 1711179
      BPS-eng         : 1711179
      DURATION        : 00:24:30.010000000
      DURATION-eng    : 00:24:30.010000000
      NUMBER_OF_FRAMES: 35245
      NUMBER_OF_FRAMES-eng: 35245
      NUMBER_OF_BYTES : 314431349
      NUMBER_OF_BYTES-eng: 314431349
      _STATISTICS_WRITING_APP: mkvmerge v7.2.0 ('On Every Street') 64bit built on Sep 13 2014 15:52:10
      _STATISTICS_WRITING_APP-eng: mkvmerge v7.2.0 ('On Every Street') 64bit built on Sep 13 2014 15:52:10
      _STATISTICS_WRITING_DATE_UTC: 2015-04-07 14:19:13
      _STATISTICS_WRITING_DATE_UTC-eng: 2015-04-07 14:19:13
      _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
    Stream #0.1(jpn): Audio: aac, 48000 Hz, stereo, fltp
    Metadata:
      BPS             : 191664
      BPS-eng         : 191664
      DURATION        : 00:24:30.101000000
      DURATION-eng    : 00:24:30.101000000
      NUMBER_OF_FRAMES: 68911
      NUMBER_OF_FRAMES-eng: 68911
      NUMBER_OF_BYTES : 35220789
      NUMBER_OF_BYTES-eng: 35220789
      _STATISTICS_WRITING_APP: mkvmerge v7.2.0 ('On Every Street') 64bit built on Sep 13 2014 15:52:10
      _STATISTICS_WRITING_APP-eng: mkvmerge v7.2.0 ('On Every Street') 64bit built on Sep 13 2014 15:52:10
      _STATISTICS_WRITING_DATE_UTC: 2015-04-07 14:19:13
      _STATISTICS_WRITING_DATE_UTC-eng: 2015-04-07 14:19:13
      _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
    Stream #0.2(rus): Audio: aac, 48000 Hz, stereo, fltp (default)
    Metadata:
      title           : FaSt & Milirina
      BPS             : 192091
      BPS-eng         : 192091
      DURATION        : 00:24:29.973000000
      DURATION-eng    : 00:24:29.973000000
      NUMBER_OF_FRAMES: 68905
      NUMBER_OF_FRAMES-eng: 68905
      NUMBER_OF_BYTES : 35296115
      NUMBER_OF_BYTES-eng: 35296115
      _STATISTICS_WRITING_APP: mkvmerge v7.2.0 ('On Every Street') 64bit built on Sep 13 2014 15:52:10
      _STATISTICS_WRITING_APP-eng: mkvmerge v7.2.0 ('On Every Street') 64bit built on Sep 13 2014 15:52:10
      _STATISTICS_WRITING_DATE_UTC: 2015-04-07 14:19:13
      _STATISTICS_WRITING_DATE_UTC-eng: 2015-04-07 14:19:13
      _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
    Stream #0.3(rus): Subtitle: ass (default)
    Metadata:
      title           : A.Blake
      BPS             : 133
      BPS-eng         : 133
      DURATION        : 00:24:16.330000000
      DURATION-eng    : 00:24:16.330000000
      NUMBER_OF_FRAMES: 361
      NUMBER_OF_FRAMES-eng: 361
      NUMBER_OF_BYTES : 24253
      NUMBER_OF_BYTES-eng: 24253
      _STATISTICS_WRITING_APP: mkvmerge v7.2.0 ('On Every Street') 64bit built on Sep 13 2014 15:52:10
      _STATISTICS_WRITING_APP-eng: mkvmerge v7.2.0 ('On Every Street') 64bit built on Sep 13 2014 15:52:10
      _STATISTICS_WRITING_DATE_UTC: 2015-04-07 14:19:13
      _STATISTICS_WRITING_DATE_UTC-eng: 2015-04-07 14:19:13
      _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
[avi @ 0x7f92a2800000] Subtitle streams other than DivX XSUB are not supported by the AVI muxer.
Output #0, avi, to '/Users/usr/Desktop/Arslan Senki - 01 [FaSt & Milirina].avi':
  Metadata:
    encoder         : Lavf56.1.0
    Stream #0.0: Video: libx264, yuv420p, 1280x720 [PAR 1:1 DAR 16:9], q=2-31, 1k tbn, 1k tbc (default)
    Metadata:
      BPS             : 1711179
      BPS-eng         : 1711179
      DURATION        : 00:24:30.010000000
      DURATION-eng    : 00:24:30.010000000
      NUMBER_OF_FRAMES: 35245
      NUMBER_OF_FRAMES-eng: 35245
      NUMBER_OF_BYTES : 314431349
      NUMBER_OF_BYTES-eng: 314431349
      _STATISTICS_WRITING_APP: mkvmerge v7.2.0 ('On Every Street') 64bit built on Sep 13 2014 15:52:10
      _STATISTICS_WRITING_APP-eng: mkvmerge v7.2.0 ('On Every Street') 64bit built on Sep 13 2014 15:52:10
      _STATISTICS_WRITING_DATE_UTC: 2015-04-07 14:19:13
      _STATISTICS_WRITING_DATE_UTC-eng: 2015-04-07 14:19:13
      _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
    Stream #0.1(jpn): Audio: libfaac, 48000 Hz, stereo
    Metadata:
      BPS             : 191664
      BPS-eng         : 191664
      DURATION        : 00:24:30.101000000
      DURATION-eng    : 00:24:30.101000000
      NUMBER_OF_FRAMES: 68911
      NUMBER_OF_FRAMES-eng: 68911
      NUMBER_OF_BYTES : 35220789
      NUMBER_OF_BYTES-eng: 35220789
      _STATISTICS_WRITING_APP: mkvmerge v7.2.0 ('On Every Street') 64bit built on Sep 13 2014 15:52:10
      _STATISTICS_WRITING_APP-eng: mkvmerge v7.2.0 ('On Every Street') 64bit built on Sep 13 2014 15:52:10
      _STATISTICS_WRITING_DATE_UTC: 2015-04-07 14:19:13
      _STATISTICS_WRITING_DATE_UTC-eng: 2015-04-07 14:19:13
      _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
    Stream #0.2(rus): Audio: libfaac, 48000 Hz, stereo (default)
    Metadata:
      title           : FaSt & Milirina
      BPS             : 192091
      BPS-eng         : 192091
      DURATION        : 00:24:29.973000000
      DURATION-eng    : 00:24:29.973000000
      NUMBER_OF_FRAMES: 68905
      NUMBER_OF_FRAMES-eng: 68905
      NUMBER_OF_BYTES : 35296115
      NUMBER_OF_BYTES-eng: 35296115
      _STATISTICS_WRITING_APP: mkvmerge v7.2.0 ('On Every Street') 64bit built on Sep 13 2014 15:52:10
      _STATISTICS_WRITING_APP-eng: mkvmerge v7.2.0 ('On Every Street') 64bit built on Sep 13 2014 15:52:10
      _STATISTICS_WRITING_DATE_UTC: 2015-04-07 14:19:13
      _STATISTICS_WRITING_DATE_UTC-eng: 2015-04-07 14:19:13
      _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
    Stream #0.3(rus): Subtitle: ass (default)
    Metadata:
      title           : A.Blake
      BPS             : 133
      BPS-eng         : 133
      DURATION        : 00:24:16.330000000
      DURATION-eng    : 00:24:16.330000000
      NUMBER_OF_FRAMES: 361
      NUMBER_OF_FRAMES-eng: 361
      NUMBER_OF_BYTES : 24253
      NUMBER_OF_BYTES-eng: 24253
      _STATISTICS_WRITING_APP: mkvmerge v7.2.0 ('On Every Street') 64bit built on Sep 13 2014 15:52:10
      _STATISTICS_WRITING_APP-eng: mkvmerge v7.2.0 ('On Every Street') 64bit built on Sep 13 2014 15:52:10
      _STATISTICS_WRITING_DATE_UTC: 2015-04-07 14:19:13
      _STATISTICS_WRITING_DATE_UTC-eng: 2015-04-07 14:19:13
      _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
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)
Could not write header for output file #0 (incorrect codec parameters ?): Not yet implemented in Libav, patches welcome
FAIL
/Users/usr/Desktop/rewrap.command: line 86: [1: command not found
logout
Saving session...
...copying shared history...
...saving history...truncating history files...
...completed.

[Process completed]

0