[FFmpeg-trac] #9180(undetermined:new): AV1 extract keyframes

FFmpeg trac at avcodec.org
Sun Apr 11 17:21:16 EEST 2021


#9180: AV1 extract keyframes
-------------------------------------+-------------------------------------
             Reporter:  svnpenn      |                     Type:  defect
               Status:  new          |                 Priority:  normal
            Component:               |                  Version:
  undetermined                       |  unspecified
             Keywords:               |               Blocked By:
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------
 Using this file [1], I can run this command with no problem:

 {{{
 ffmpeg -i crushed-between-two-portals.mp4 %d.jpg
 }}}

 but if I run this command [2]:

 {{{
 ffmpeg -i crushed-between-two-portals.mp4 -vf "select='eq(pict_type,I)'"
 %d.jpg
 }}}

 I get this result:

 {{{
 Output file is empty, nothing was encoded (check -ss / -t / -frames
 parameters
 if used)
 }}}

 I think it is because of the video stream:

 {{{
 Stream #0:0(und): Video: av1 (Main) (av01 / 0x31307661), yuv420p(tv,
 bt709),
 1280x720 [SAR 1:1 DAR 16:9], 19 kb/s, 59.94 fps, 59.94 tbr, 60k tbn, 60k
 tbc
 (default)
 }}}

 If I understand the code right, it seems the solution might be using
 `AV_PICTURE_TYPE_I` instead [3], but that token is not currently supported
 [4].

 1. https://f002.backblazeb2.com/file/ql8mlh/crushed-between-two-
 portals.mp4
 2. [Create a thumbnail image every X seconds of the
 video](//trac.ffmpeg.org/wiki/Create%20a%20thumbnail%20image%20every%20X%20seconds%20of%20the%20video)
 3.
 https://github.com/FFmpeg/FFmpeg/blob/309e3cc1/libavcodec/av1_parser.c#L124
 4.
 https://github.com/FFmpeg/FFmpeg/blob/309e3cc1/libavfilter/f_select.c#L53-L67

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


More information about the FFmpeg-trac mailing list