Files
FFmpeg/libavcodec
Limin Wang f0dbeb5eaa avcodec/v410dec: add support for frame and slice threading
1, Test server configure:
[root@localhost ~]# cat /proc/cpuinfo  |grep "model name"
model name	: Intel(R) Xeon(R) CPU E5-2650 v2 @ 2.60GHz
model name	: Intel(R) Xeon(R) CPU E5-2650 v2 @ 2.60GHz
...

[root@localhost ~]# free -h
              total        used        free      shared  buff/cache   available
              Mem:           102G        1.1G        100G         16M        657M        100G
              Swap:          4.0G          0B        4.0G

2, Test result:
encode the v410 input data for testing:
 ./ffmpeg -y -i 4k_422.ts  -c:v v410 -vframes 10 test.avi

master:
./ffmpeg -y -stream_loop 1000 -i ./test.avi -benchmark -f null -
frame=10010 fps= 37 q=-0.0 Lsize=N/A time=00:38:26.30 bitrate=N/A speed= 8.6x
video:5240kB audio:432432kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
bench: utime=166.016s stime=102.192s rtime=268.120s
bench: maxrss=273400kB

patch applied:
./ffmpeg -y -threads 2 -thread_type slice -stream_loop 1000 -i ./test.avi -benchmark -f null -
frame=10010 fps= 53 q=-0.0 Lsize=N/A time=00:38:26.30 bitrate=N/A speed=12.3x
video:5240kB audio:432432kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
bench: utime=165.135s stime=100.456s rtime=187.994s
bench: maxrss=275476kB

./ffmpeg -y -threads 2 -thread_type frame -stream_loop 1000 -i ./test.avi -benchmark -f null -
frame=10010 fps= 61 q=-0.0 Lsize=N/A time=00:38:26.30 bitrate=N/A speed=14.1x
video:5240kB audio:432432kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
bench: utime=171.386s stime=122.102s rtime=163.637s
bench: maxrss=340308kB

Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2019-11-25 09:54:27 +01:00
..
2019-10-17 12:33:50 +02:00
2019-11-10 13:55:39 +00:00
2019-11-17 23:31:45 +00:00
2019-08-11 19:13:21 +02:00
2019-11-13 09:08:43 -08:00
2019-10-10 14:34:19 +02:00
2019-08-29 21:04:54 +02:00
2019-08-29 15:57:54 +02:00
2019-09-19 23:56:03 -07:00
2019-08-11 19:13:21 +02:00
2019-11-25 00:07:07 +01:00
2019-09-02 13:46:11 -07:00
2019-10-10 14:34:20 +02:00
2019-10-22 10:51:42 +08:00
2019-11-03 16:45:35 +08:00
2019-11-03 16:45:35 +08:00
2019-08-23 22:24:07 +02:00
2019-09-20 23:26:34 +02:00
2019-09-16 21:30:19 +02:00
2019-11-09 17:59:03 +01:00
2019-11-01 14:43:16 +01:00
2019-11-01 15:19:55 -07:00
2019-10-25 00:22:33 +02:00
2019-08-22 18:35:44 +02:00
2019-08-22 18:35:44 +02:00
2019-10-26 09:57:01 -07:00
2019-09-05 19:45:53 +02:00