Skip to content

请问3588用当前的ffmpeg编码4kp60的nv12数据成h264,cpu消耗很高,把一个核占满了,但用是mpp_enc_test 测试编码消耗的cpu不到%4,这个怎么解决? #234

@Hoke

Description

@Hoke

ffmpeg -f v4l2 -i /dev/video1 -c:v h264_rkmpp -b:v 20M -g 60 -r 60 -y output_auto.h264

top - 09:26:11 up 31 min, 4 users, load average: 0.17, 0.09, 0.05
Tasks: 300 total, 1 running, 299 sleeping, 0 stopped, 0 zombie
%Cpu(s): 14.0 us, 2.3 sy, 0.0 ni, 83.7 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st
MiB Mem : 3842.8 total, 50.1 free, 3199.4 used, 593.2 buff/cache
MiB Swap: 0.0 total, 0.0 free, 0.0 used. 126.2 avail Mem

PID USER      PR  NI    VIRT    RES    SHR S  %CPU  %MEM     TIME+ COMMAND                                                                                                                                                                                               

3707 forlinx 20 0 862020 185016 123168 S 127.5 4.7 0:09.59 ffmpeg
3604 forlinx 20 0 10208 3368 2484 R 2.0 0.1 0:14.28 top
2655 forlinx 20 0 19312 4988 2552 S 1.0 0.1 0:00.34 sshd
2803 forlinx 20 0 62.4g 887100 17520 S 1.0 22.5 0:23.54 node
3521 root 20 0 0 0 0 I 1.0 0.0 0:00.32 kworker/u16:2-devfreq_wq
1 root 20 0 167160 10772 7056 S 0.0 0.3 0:02.06 systemd
2 root 20 0 0 0 0 S 0.0 0.0 0:00.01 kthreadd
3 root 0 -20 0 0 0 I 0.0 0.0 0:00.00 rcu_gp
4 root 0 -20 0 0 0 I 0.0 0.0 0:00.00 rcu_par_gp
7 root 20 0 0 0 0 I 0.0 0.0 0:00.47 kworker/u16:0-events_power_efficient
8 root 0 -20 0 0 0 I 0.0 0.0 0:00.00 mm_percpu_wq
9 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcu_tasks_rude_
10 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcu_tasks_trace
11 root 20 0 0 0 0 S 0.0 0.0 0:00.04 ksoftirqd/0
12 root 20 0 0 0 0 I 0.0 0.0 0:00.47 rcu_sched

这个是不是没正常启动硬件编码吗? 或者有什么工具可以看看是否正常启动了硬件编码吗?

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions