[FFmpeg-trac] #3444(undetermined:new): -r not setting frame rate. -vf fps=25 takes 10 times longer to created video.

FFmpeg trac at avcodec.org
Fri Mar 7 19:27:59 CET 2014


#3444: -r not setting frame rate. -vf fps=25 takes 10 times longer to created
video.
-------------------------------------+-------------------------------------
             Reporter:  JoeJohnson   |                    Owner:
                 Type:  task         |                   Status:  new
             Priority:  important    |                Component:
              Version:  unspecified  |  undetermined
             Keywords:               |               Resolution:
             Blocking:               |               Blocked By:
Analyzed by developer:  0            |  Reproduced by developer:  0
-------------------------------------+-------------------------------------

Comment (by JoeJohnson):

 Yes, I agree that it is encoding 25 times frames and it should take 25
 times longer.  In a larger video I created it kept the CPU at 100% only 10
 times longer.  For longer videos my CPU is at 100% for an extended period.

 I am not getting an error when I create the video in either case.  When I
 open the video created without "-vf fps=25" in VLC, it does not play
 properly.  I am able to play the video with a codec pack like k-lite, but
 not with VLC.

 The CPU being a 100% makes the computer unusable during encoding.  I am
 looking for a way to shorten this time, or drop the max CPU use to around
 80%.

 Here is the output when I run the command with "-vf fps=25" (Windows 7):
 {{{
 ffmpeg version N-61050-g2dcaa1b Copyright (c) 2000-2014 the FFmpeg
 developers
   built on Mar  2 2014 22:07:10 with gcc 4.8.2 (GCC)
   configuration: --enable-gpl --enable-version3 --disable-w32threads
 --enable-avisynth --enable-bzlib --enable-fontconfig --enable
 -libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-
 libopencore-amrnb --enable-libopencore-amrwb --enable-li
 ra --enable-libtwolame --enable-libvidstab --enable-libvo-aacenc --enable-
 libvo-amrwbenc --enable-libvorbis --enable-libvpx --enab
   libavutil      52. 66.100 / 52. 66.100
   libavcodec     55. 52.102 / 55. 52.102
   libavformat    55. 33.100 / 55. 33.100
   libavdevice    55. 10.100 / 55. 10.100
   libavfilter     4.  2.100 /  4.  2.100
   libswscale      2.  5.101 /  2.  5.101
   libswresample   0. 18.100 /  0. 18.100
   libpostproc    52.  3.100 / 52.  3.100
 Input #0, image2, from 'Untitled_%09d.png':
   Duration: 00:00:00.40, start: 0.000000, bitrate: N/A
     Stream #0:0: Video: png, rgb24, 1196x733 [SAR 3779:3779 DAR 1196:733],
 25 fps, 25 tbr, 25 tbn, 25 tbc
 File 'h264.avi' already exists. Overwrite ? [y/N] y
 No pixel format specified, yuv444p for H.264 encoding chosen.
 Use -pix_fmt yuv420p for compatibility with outdated media players.
 [libx264 @ 0000000000300420] using SAR=1/1
 [libx264 @ 0000000000300420] using cpu capabilities: MMX2 SSE2Fast SSSE3
 SSE4.2 AVX
 [libx264 @ 0000000000300420] profile High 4:4:4 Predictive, level 3.1,
 4:4:4 8-bit
 Output #0, avi, to 'h264.avi':
   Metadata:
     ISFT            : Lavf55.33.100
     Stream #0:0: Video: h264 (libx264) (H264 / 0x34363248), yuv444p,
 1196x733 [SAR 1:1 DAR 1196:733], q=-1--1, 25 tbn, 25 tbc
 Stream mapping:
   Stream #0:0 -> #0:0 (png -> libx264)
 Press [q] to stop, [?] for help
 [output stream 0:0 @ 0000000000350ec0] 100 buffers queued in output stream
 0:0, something may be wrong.
 frame=  226 fps=132 q=-1.0 Lsize=      81kB time=00:00:08.96 bitrate=
 74.3kbits/s
 video:70kB audio:0kB subtitle:0 data:0 global headers:0kB muxing overhead
 15.693309%
 [libx264 @ 0000000000300420] frame I:2     Avg QP:14.45  size:  3555
 [libx264 @ 0000000000300420] frame P:56    Avg QP:13.64  size:   905
 [libx264 @ 0000000000300420] frame B:168   Avg QP:13.06  size:    84
 [libx264 @ 0000000000300420] consecutive B-frames:  0.9%  0.0%  0.0% 99.1%
 [libx264 @ 0000000000300420] mb I  I16..4:  0.3% 98.2%  1.4%
 [libx264 @ 0000000000300420] mb P  I16..4:  0.1%  0.0%  0.3%  P16..4:
 0.4%  0.0%  0.0%  0.0%  0.0%    skip:99.2%
 [libx264 @ 0000000000300420] mb B  I16..4:  0.0%  0.0%  0.0%  B16..8:
 1.4%  0.0%  0.0%  direct: 0.0%  skip:98.6%  L0:59.1% L1:40.
 [libx264 @ 0000000000300420] 8x8 transform intra:88.0% inter:6.1%
 [libx264 @ 0000000000300420] coded y,u,v intra: 5.5% 2.4% 3.2% inter: 0.0%
 0.0% 0.0%
 [libx264 @ 0000000000300420] i16 v,h,dc,p: 44% 47%  9%  0%
 [libx264 @ 0000000000300420] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 28%  8% 63%
 0%  0%  0%  0%  0%  0%
 [libx264 @ 0000000000300420] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 21% 14% 37%
 6%  7%  4%  4%  5%  2%
 [libx264 @ 0000000000300420] Weighted P-Frames: Y:0.0% UV:0.0%
 [libx264 @ 0000000000300420] ref P L0: 63.6%  6.1% 26.1%  4.2%
 [libx264 @ 0000000000300420] ref B L0: 52.0% 46.9%  1.1%
 [libx264 @ 0000000000300420] ref B L1: 98.8%  1.2%
 [libx264 @ 0000000000300420] kb/s:63.64
 }}}

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


More information about the FFmpeg-trac mailing list