ChinaFFmpeg

 找回密码
 立即注册

QQ登录

只需一步,快速开始

查看: 9907|回复: 1

[Linux] ffmpeg使用intel sdk硬编解码cpu占用率比intel demo大很多,有人....

[复制链接]
发表于 2018-4-16 16:22:29 | 显示全部楼层 |阅读模式
使用芯片:Intel(R) Core(TM) i5-6440EQ CPU @ 2.70GHz
gpu:00:02.0 VGA compatible controller: Intel Corporation HD Graphics 530

intel自己提供的demo转码能够实现大约11路1080p的转码
ffmpeg却只能支持5路左右
intel转11路的cpu占用率为30-40%左右
ffmpeg转5路的cpu占用率就95%左右了

为什么ffmpeg cpu占用率这么高,有大神研究过吗?或者我的命令用的有什么不对的地方吗?

我的ffmpeg 命令
#!/bin/bash
for ((i=1;i<=5;i++))
  do
       intel_gpu_time ffmpeg -init_hw_device qsv:hw -re -vcodec h264_qsv -i testhigh3.h264 -vcodec h264_qsv -b:v 8000K  out$i.h264 &
  done



回复

使用道具 举报

 楼主| 发表于 2018-4-16 17:15:13 | 显示全部楼层
已解决
在前面加上-hwaccel qsv 命令后cpu占用率降低了不少,基本和intel的demo路数差不多了
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|Archiver|ChinaFFmpeg

GMT+8, 2024-4-19 13:59 , Processed in 0.050712 second(s), 14 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表