[FFmpeg-trac] #3940(ffmpeg:new): Wrong behavior -force_key_frames

FFmpeg trac at avcodec.org
Wed Sep 10 10:40:32 CEST 2014


#3940: Wrong behavior -force_key_frames
-------------------------------------+-------------------------------------
             Reporter:  coder80      |                     Type:  defect
               Status:  new          |                 Priority:  normal
            Component:  ffmpeg       |                  Version:
             Keywords:               |  unspecified
  force_key_framesб ааьзуп           |               Blocked By:
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------
 Summary of the bug:

 With this option, some of the key frames in different locations, but
 should be in equal time stamps

 How to reproduce:
 {{{
 % ffmpeg -i s-0000.nut -acodec copy -vcodec libx264 -s 640x480
 -force_key_frames 0,4,8 -b 2000000 -f mpegts s-0000_1.ts

 % ffmpeg -i s-0000.nut -acodec copy -vcodec libx264 -s 320x240
 -force_key_frames 0,4,8 -b 2000000 -f mpegts s-0000_2.ts

 % ffprobe -show_frames -select_streams v:0 -print_format csv s-0000_1.ts |
 grep frame,video,1 | cut -d',' -f5 | tr "\n" "," | sed 's/,$//'`

  1.483333,5.275000,5.483333,9.483333

 % ffprobe -show_frames -select_streams v:0 -print_format csv s-0000_2.ts |
 grep frame,video,1 | cut -d',' -f5 | tr "\n" "," | sed 's/,$//'`

  1.483333,4.816667,5.483333,9.483333

 ffprobe version 2.1.3 Copyright (c) 2007-2013 the FFmpeg developers
   built on May  6 2014 15:10:40 with gcc 4.6 (Ubuntu/Linaro
 4.6.3-1ubuntu5)
   configuration: --prefix=/usr/local/ffmpeg-2.1.3 --enable-libx264
 --enable-gpl --enable-libfaac --enable-pthreads --enable-nonfree --enable-
 libmp3lame
   libavutil      52. 48.101 / 52. 48.101
   libavcodec     55. 39.101 / 55. 39.101
   libavformat    55. 19.104 / 55. 19.104
   libavdevice    55.  5.100 / 55.  5.100
   libavfilter     3. 90.100 /  3. 90.100
   libswscale      2.  5.101 /  2.  5.101
   libswresample   0. 17.104 /  0. 17.104
   libpostproc    52.  3.100 / 52.  3.100
 }}}

 bug file
 https://drive.google.com/file/d/0B2ChedT8aoLaOW5ZNDlwUm5EZ3M/edit?usp=sharing

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


More information about the FFmpeg-trac mailing list