[FFmpeg-trac] #6258(undetermined:new): tee muxer fails on stream copy

FFmpeg trac at avcodec.org
Thu Mar 23 16:00:59 EET 2017


#6258: tee muxer fails on stream copy
-------------------------------------+-------------------------------------
             Reporter:  araeos       |                     Type:  defect
               Status:  new          |                 Priority:  normal
            Component:               |                  Version:
  undetermined                       |  unspecified
             Keywords:  muxer tee    |               Blocked By:
  copy                               |  Reproduced by developer:  0
             Blocking:               |
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------
 Summary of the bug: I am trying to transcode a live video only once and
 output it to multiple files/urls. My audio stream does not need to be
 transcoded, but the tee muxer fails with codec "copy", producing an error
 message along the lines of `Tag ... incompatible with output codec id
 ...`.

 How to reproduce (all 3 commands fail similarly):
 {{{


 $ ffmpeg -i test.ts -report -c:v copy -c:a copy -map 0 -f tee
 '[f=mp4]output.mp4' > /dev/null 2>&1
 $ ffmpeg -i test.ts -c:v copy -c:a aac -map 0 -f tee '[f=mp4]output.mp4' >
 /dev/null 2>&1
 $ ffmpeg -i test.ts -c:v libx264 -c:a copy -map 0 -f tee
 '[f=mp4]output.mp4'
 ffmpeg version 3.2.4 Copyright (c) 2000-2017 the FFmpeg developers
   built with gcc 6.3.1 (GCC) 20170109
   configuration: --prefix=/usr --disable-debug --disable-static --disable-
 stripping --enable-avisynth --enable-avresample --enable-fontconfig
 --enable-gmp --enable-gnutls --enable-gpl --enable-ladspa --enable-libass
 --enable-libbluray --enable-libfreetype --enable-libfribidi --enable-
 libgsm --enable-libiec61883 --enable-libmodplug --enable-libmp3lame
 --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libopenjpeg
 --enable-libopus --enable-libpulse --enable-libschroedinger --enable-
 libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-
 libv4l2 --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-
 libwebp --enable-libx264 --enable-libx265 --enable-libxvid --enable-netcdf
 --enable-shared --enable-version3 --enable-x11grab
   libavutil      55. 34.101 / 55. 34.101
   libavcodec     57. 64.101 / 57. 64.101
   libavformat    57. 56.101 / 57. 56.101
   libavdevice    57.  1.100 / 57.  1.100
   libavfilter     6. 65.100 /  6. 65.100
   libavresample   3.  1.  0 /  3.  1.  0
   libswscale      4.  2.100 /  4.  2.100
   libswresample   2.  3.100 /  2.  3.100
   libpostproc    54.  1.100 / 54.  1.100
 Input #0, mpegts, from 'test.ts':
   Duration: 00:00:01.25, start: 1.400000, bitrate: 9981 kb/s
   Program 1
     Metadata:
       service_name    : Service01
       service_provider: FFmpeg
     Stream #0:0[0x100]: Video: h264 (High) ([27][0][0][0] / 0x001B),
 yuv420p(progressive), 1280x800 [SAR 1:1 DAR 8:5], 60 fps, 60 tbr, 90k tbn,
 120 tbc
     Stream #0:1[0x101]: Audio: aac (LC) ([15][0][0][0] / 0x000F), 44100
 Hz, stereo, fltp, 168 kb/s
 [libx264 @ 0x564ae3da9c80] using SAR=1/1
 [libx264 @ 0x564ae3da9c80] using cpu capabilities: MMX2 SSE2Fast SSSE3
 SSE4.2 AVX FMA3 AVX2 LZCNT BMI2
 [libx264 @ 0x564ae3da9c80] profile High, level 4.0
 [mp4 @ 0x564ae438ff60] Tag [15][0][0][0]/0x0000000f incompatible with
 output codec id '86018' ([64][0][0][0])
 [tee @ 0x564ae3d7f700] Slave '[f=mp4]output.mp4': error writing header:
 Invalid data found when processing input
 [tee @ 0x564ae3d7f700] All tee outputs failed.
 Could not write header for output file #0 (incorrect codec parameters ?):
 Invalid data found when processing inputStream mapping:
   Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264))
   Stream #0:1 -> #0:1 (copy)
     Last message repeated 1 times
 }}}
 See attached file for detailed report logs with input file.

--
Ticket URL: <https://trac.ffmpeg.org/ticket/6258>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list