Ticket #1912 (new defect)

Opened 6 months ago

Last modified 6 months ago

mpeg2video cpu usage bottleneck

Reported by: darkbit Owned by:
Priority: normal Component: undetermined
Version: unspecified Keywords: mpeg2video
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

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

Change History

comment:1 Changed 6 months ago by darkbit

I made a small typo,

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

should be:

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

comment:2 Changed 6 months ago by cehoyos

Complete, uncut console output missing.

comment:3 Changed 6 months ago by darkbit

I thought I gave everything that was needed.

Version 0, edited 6 months ago by darkbit (next)

comment:4 Changed 6 months ago by cehoyos

Please provide your command line together with complete, uncut console output to make this a valid ticket.

Note: See TracTickets for help on using tickets.