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

FFmpeg trac at avcodec.org
Thu Oct 25 10:35:07 EEST 2018


#7207: FFmpeg segmented output does not work
-------------------------------------+-------------------------------------
             Reporter:  monakov      |                    Owner:
                 Type:  defect       |                   Status:  new
             Priority:  normal       |                Component:  avformat
              Version:  git-master   |               Resolution:
             Keywords:  mpegts h264  |               Blocked By:
  dts                                |  Reproduced by developer:  0
             Blocking:               |
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------

Comment (by fulinjie):

 Reproduced this issue in the latest version of ffmpeg.

 The root cause of this issue is the redundant PPS slice info attached
 behind the last frame of each segment_x.ts.

 PPS info is attached behind frame data in one PES packet, and the
 redundant info will be found while parsing.

 In h264_parser, h264_find_frame_end for last PPS info returns
 END_NOT_FOUND, and causes the following IDR frame of next segment.ts to
 return END_NOT_FOUND too. And this leads to the failure of parsing pts.

 Provide a patch to skip the redundant pps info and parse the pts info of
 following frame correctly.

 commit id: 02e6ae3ffd7babd0a4f9dd7b02f0b91932b0ea16
 mail list: http://ffmpeg.org/pipermail/ffmpeg-
 devel/2018-October/235565.html
 patchwork: https://patchwork.ffmpeg.org/patch/10776/

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


More information about the FFmpeg-trac mailing list