[FFmpeg-trac] #6241(avformat:reopened): hls_flags delete_segments – file desctriptors not freeing, ffmpeg segfaults when system limit is reached
    FFmpeg 
    trac at avcodec.org
       
    Thu Mar 16 18:15:54 EET 2017
    
    
  
#6241: hls_flags delete_segments – file desctriptors not freeing, ffmpeg segfaults
when system limit is reached
-------------------------------------+-------------------------------------
             Reporter:  rafamiga     |                    Owner:  stevenliu
                 Type:  defect       |                   Status:  reopened
             Priority:  important    |                Component:  avformat
              Version:  git-master   |               Resolution:
             Keywords:  descriptors  |               Blocked By:
  hls hls_flags delete_segments      |  Reproduced by developer:  0
             Blocking:               |
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------
Comment (by rafamiga):
 I've found one cause for can_split being false.
 {{{
     if (hls->has_video) {
         can_split = st->codecpar->codec_type == AVMEDIA_TYPE_VIDEO &&
                     ((pkt->flags & AV_PKT_FLAG_KEY) || (hls->flags &
 HLS_SPLIT_BY_TIME));
         is_ref_pkt = st->codecpar->codec_type == AVMEDIA_TYPE_VIDEO;
     }
 }}}
 The variable is positive when a keyframe happens or split is forced and
 it's a video stream. But just after this this check happens:
 {{{
     if (pkt->pts == AV_NOPTS_VALUE)
         is_ref_pkt = can_split = 0;
 }}}
 Maybe my setup is somewhat brokend and AV_NOPTS happens? As you can see, I
 use Decklink for input.
--
Ticket URL: <https://trac.ffmpeg.org/ticket/6241#comment:4>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
    
    
More information about the FFmpeg-trac
mailing list