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

FFmpeg trac at avcodec.org
Mon Mar 18 08:43:39 EET 2019


#6258: tee muxer fails on stream copy
-------------------------------------+-------------------------------------
             Reporter:  araeos       |                    Owner:
                 Type:  defect       |                   Status:  new
             Priority:  normal       |                Component:
                                     |  undetermined
              Version:  unspecified  |               Resolution:
             Keywords:  muxer tee    |               Blocked By:
  copy                               |
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------

Comment (by jidckii):

 Hi.
 I have the same problem with tee muxer.
 -flags global_header does not solve the problem.
 what exactly is the problem?
 test file: [https://yadi.sk/d/kKiucpgKjsIg5w
 ]
 Here is my case:

 {{{

 $ ffmpeg -re -i test.ts -vsync 0 -flags global_header -c:v copy -c:a aac
 -f tee  -map 0:0 "[f=flv]rtmp://localhost:1935/live"
 [h264 @ 0x559eaec5fbc0] corrupted macroblock 50 16 (total_coeff=-1)
 [h264 @ 0x559eaec5fbc0] error while decoding MB 50 16
 [h264 @ 0x559eaec5fbc0] concealing 6239 DC, 6239 AC, 6239 MV errors in I
 frame
 Input #0, mpegts, from 'test.ts':
   Duration: 00:01:00.07, start: 1.467000, bitrate: 1672 kb/s
   Program 1
     Metadata:
       service_name    : Service01
       service_provider: FFmpeg
     Stream #0:0[0x100]: Video: h264 (Baseline) ([27][0][0][0] / 0x001B),
 yuvj420p(pc, bt709, progressive), 1920x1080, 15 fps, 15 tbr, 90k tbn, 30
 tbc
 [flv @ 0x559eaec96b80] Tag [27][0][0][0] incompatible with output codec id
 '27' ([7][0][0][0])
 [tee @ 0x559eaecca5c0] Slave '[f=flv]rtmp://localhost:1935/live': error
 writing header: Invalid data found when processing input
 [tee @ 0x559eaecca5c0] All tee outputs failed.
 Could not write header for output file #0 (incorrect codec parameters ?):
 Invalid data found when processing input
 Stream mapping:
   Stream #0:0 -> #0:0 (copy)
     Last message repeated 1 times



 $ ffmpeg -re -i test.ts -vsync 0 -flags global_header -c:v copy -c:a aac
 -f flv rtmp://localhost:1935/live
 [h264 @ 0x55dc880babc0] corrupted macroblock 50 16 (total_coeff=-1)
 [h264 @ 0x55dc880babc0] error while decoding MB 50 16
 [h264 @ 0x55dc880babc0] concealing 6239 DC, 6239 AC, 6239 MV errors in I
 frame
 Input #0, mpegts, from 'test.ts':
   Duration: 00:01:00.07, start: 1.467000, bitrate: 1672 kb/s
   Program 1
     Metadata:
       service_name    : Service01
       service_provider: FFmpeg
     Stream #0:0[0x100]: Video: h264 (Baseline) ([27][0][0][0] / 0x001B),
 yuvj420p(pc, bt709, progressive), 1920x1080, 15 fps, 15 tbr, 90k tbn, 30
 tbc
 Output #0, flv, to 'rtmp://localhost:1935/live':
   Metadata:
     encoder         : Lavf58.20.100
     Stream #0:0: Video: h264 (Baseline) ([7][0][0][0] / 0x0007),
 yuvj420p(pc, bt709, progressive), 1920x1080, q=2-31, 15 fps, 15 tbr, 1k
 tbn, 90k tbc
 Stream mapping:
   Stream #0:0 -> #0:0 (copy)
 Press [q] to stop, [?] for help
 [flv @ 0x55dc880f1080] Failed to update header with correct
 duration.636.8kbits/s speed=   1x
 [flv @ 0x55dc880f1080] Failed to update header with correct filesize.
 frame=  105 fps= 15 q=-1.0 Lsize=    1365kB time=00:00:06.86
 bitrate=1628.0kbits/s speed=1.01x
 video:1362kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB
 muxing overhead: 0.171971%
 }}}


 Replying to [comment:6 d2d22]:
 > '''Edit''' : this is not a bug the option `-flags +global_header` was
 missing, sorry for the noise
 >
 > ffmpeg version N-88193-g5834cba
 >
 > Not sure this is related but it could be a clue, I use the tee muxer for
 dash and on the manifest the codec are not correct, no other difference on
 my command.
 > If you think this has nothing to do I will open an other ticket.
 > codecs="mp4a.40" with the tee muxer and codecs="mp4a.40.2" without
 > codecs="avc1" with the tee muxer and codecs="avc1.4d400b" without
 > This may be a problem on the dash part but it could also point a problem
 on the tee muxer related to the codecs.
 >
 >
 > {{{
 > -f tee
 [f=dash:min_seg_duration=1000:use_template=1:utc_timing_url=/time:use_timeline=0:remove_at_exit=1:window_size=120:extra_window_size=240]/live/www/0aeff49e51f1f0c2baaae8c00fd32ad0ae9835f22a2c880c099e4ce4fba9dff4/index.mpd
 > }}}

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


More information about the FFmpeg-trac mailing list