[FFmpeg-trac] #1912(undetermined:new): mpeg2video cpu usage bottleneck

FFmpeg trac at avcodec.org
Tue Nov 13 02:51:55 CET 2012


#1912: mpeg2video cpu usage bottleneck
-------------------------------------+-------------------------------------
             Reporter:  darkbit      |                     Type:  defect
               Status:  new          |                 Priority:  normal
            Component:               |                  Version:
  undetermined                       |  unspecified
             Keywords:  mpeg2video   |               Blocked By:
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------
 I tried to narrow it down as much as possible to ffmpeg so here is my log:
 I noticed on my quad core machine that ffmpeg would not use more than 50%
 on each core.

 #First I created a ramdisk with lilo using append=" ramdisk_size=4194304"
 #On fstab I added the line:
 /dev/ram0 /ram tmpfs defaults 1 2

 #then ran lilo
 #created the /ram directory

 #after the reboot with the ram disk I clocked up my cpu to its full clock
 of 1600Mhz per core, using cpufreq-set.

 USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
 branden 3433 179 0.2 266920 15316 pts/0 Sl+ 01:12 1:15 ffmpeg -threads 8
 -i dex.mpg -an -vcodec mpeg2video -threads 8 -b 15000k dex.mpeg

 ffmpeg -threads 8 -i in.mpg -an -vcodec mpeg2video -threads 8 -b 15000k
 out.mpeg

 frame=72058 fps=505 q=2.0 Lsize= 471050kB time=00:50:02.37
 bitrate=1285.3kbits/s

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


More information about the FFmpeg-trac mailing list