-
Notifications
You must be signed in to change notification settings - Fork 52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ffmpeg这部分操作可以考虑用gpu加速 #75
Comments
可以考虑使用torchaudio的StreamWriter, StreamReader,写起来更优雅一些 |
作者使用ffmpeg的主要目的是把源视频的音频合并到输出视频中,torchaudio对视频的处理能力貌似不如ffmpeg |
目前可以替代掉opencv写无音频的视频,合并音频可以再加上out_stream.write_audio_chunk ffmpeg gpu合并音频我试过了,还是觉得有点慢,要几百毫秒
|
这个会快多少? |
单独计算写视频的时间没有快多少,但是由于结果不需要从cuda转到cpu,推理速度变化从22it/s => 26it/s |
使用gpu加速ffmpeg可以提升好几倍的视频处理速度
未加速
已加速
The text was updated successfully, but these errors were encountered: