[FFmpeg-trac] #7207(undetermined:new): FFmpeg segmented output does not work

FFmpeg trac at avcodec.org
Mon May 14 11:03:01 EEST 2018


#7207: FFmpeg segmented output does not work
-------------------------------------+-------------------------------------
             Reporter:  monakov      |                     Type:  defect
               Status:  new          |                 Priority:  normal
            Component:               |                  Version:
  undetermined                       |  unspecified
             Keywords:  segment pts  |               Blocked By:
  av_read_frame                      |  Reproduced by developer:  0
             Blocking:               |
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------
 Summary of the bug:

 Segment format outputs only single file.
 Ticket is filled after this thread in libav-user mailing list:
 http://ffmpeg.org/pipermail/libav-user/2018-May/011143.html

 The problem is somehow related to av_read_frame returning invalid PTS/DTS
 on every received key frame (see FFmpeg output).

 How to reproduce:
 {{{
 % ffmpeg -i http://bitmovin-a.akamaihd.net/content/playhouse-
 vr/m3u8s/105560_video_1920_9000000.m3u8 -c copy -f segment -segment_time
 10 part%03d.mp4
 }}}

 FFmpeg version:
 {{{
 ffmpeg version 4.0 Copyright (c) 2000-2018 the FFmpeg developers
 built with gcc 5.4.0 (Ubuntu 5.4.0-6ubuntu1~16.04.9) 20160609
 configuration: --enable-pic --enable-shared --disable-static --disable-doc
 --disable-debug --disable-outdevs --enable-runtime-cpudetect
 }}}
 Same problem with older versions (3.3.2, 2.8.14).

 FFmpeg output:
 {{{
 [http @ 0xf75b00] No trailing CRLF found in HTTP header.
 Input #0, hls,applehttp, from 'http://bitmovin-a.akamaihd.net/content
 /playhouse-vr/m3u8s/105560_video_1920_9000000.m3u8':
   Duration: 00:02:17.00, start: 0.066733, bitrate: 0 kb/s
   Program 0
     Metadata:
       variant_bitrate : 0
     Stream #0:0: Video: h264 (Main) ([27][0][0][0] / 0x001B), yuv420p,
 3840x1920 [SAR 1:1 DAR 2:1], 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc
 [segment @ 0x107ee40] Codec for stream 0 does not use global headers but
 container format requires global headers
 [mp4 @ 0x1016900] Codec for stream 0 does not use global headers but
 container format requires global headers
 Output #0, segment, to 'part%03d.mp4':
   Metadata:
     encoder         : Lavf56.40.101
     Stream #0:0: Video: h264 ([27][0][0][0] / 0x001B), yuv420p, 3840x1920
 [SAR 1:1 DAR 2:1], q=2-31, 29.97 fps, 29.97 tbr, 11988 tbn, 29.97 tbc
 Stream mapping:
   Stream #0:0 -> #0:0 (copy)
 Press [q] to stop, [?] for help
 [http @ 0x107fb80] No trailing CRLF found in HTTP header.
 [mp4 @ 0x1016900] pts has no value
 [http @ 0x10200c0] No trailing CRLF found in HTTP header.ate=N/A
 [mp4 @ 0x1016900] pts has no value
 [http @ 0x107fb80] No trailing CRLF found in HTTP header.ate=N/A
 [mp4 @ 0x1016900] pts has no value
 [http @ 0x107f9c0] No trailing CRLF found in HTTP header.ate=N/A
 [mp4 @ 0x1016900] pts has no value
 [http @ 0x107fb80] No trailing CRLF found in HTTP header.ate=N/A
 ...
 }}}

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


More information about the FFmpeg-trac mailing list