[FFmpeg-trac] #5440(avcodec:closed): nvenc with interlace video never create packets with AV_PKT_FLAG_KEY

FFmpeg trac at avcodec.org
Thu Apr 14 20:37:49 CEST 2016


#5440: nvenc with interlace video never create packets with AV_PKT_FLAG_KEY
------------------------------------+-----------------------------------
             Reporter:  maf         |                    Owner:
                 Type:  defect      |                   Status:  closed
             Priority:  normal      |                Component:  avcodec
              Version:  git-master  |               Resolution:  invalid
             Keywords:  nvenc       |               Blocked By:
             Blocking:              |  Reproduced by developer:  0
Analyzed by developer:  0           |
------------------------------------+-----------------------------------

Comment (by maf):

 Replying to [comment:6 cehoyos]:
 > Replying to [comment:5 maf]:
 > > The consequence is that the resulting MOV file looks like that every
 packet has KEY_FLAG set.
 > I don't understand: The summary indicates that the nv encoder never sets
 the flag?
 >
 Right. Key flag is not stored.

 The full story is this. Files created by nvenc+ffmpeg were not correctly
 played. So I found out that nvenc+ffmpeg did not produce key frames. I
 thought this was an error assuming that some code in ffmpeg detected this
 and rather made all packets KEY. If you say that it is perfectly fine to
 have no KEY frames then I am fine with that.

 But when you open it later by ffmpeg then all packets are marked as KEY. I
 do not know which code is responsible for this. Probably there are more
 slices in interlaced video and this is not handled correctly. I do not
 have the detailed knowledge about H264.

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


More information about the FFmpeg-trac mailing list