HuHeng

Results 16 comments of HuHeng

Are the ffmpeg versions used in your BMF environment and ffmpeg-python consistent? BMF builtin module ffmpeg-decoder use libavcodec for decoding. If the underlying decoding is done using ffmpeg, they should...

This "gdown" command should appear in an ipynb file and should be run on Google Colab. I have checked and there is no issue with running it on Colab. Are...

It is possible that FFmpeg in the image does not support the HTTPS protocol. It seems that SSL support was not included during the FFmpeg compilation process. You can use...

应该是我们babitmf/bmf_runtime:latest镜像内的ffmpeg有问题,我试了一下里面的ffmpeg,使用ffmpeg -i bbb.mp4 -vf "scale=1280x720" xx.mp4, 生成的视频是有问题的。我们后面会进一步检查一下问题在哪里。 临时办法: 可以先删除/usr/local/lib下的ffmpeg相关库libswscale.so, libav*系列库。然后使用apt-get update && apt-get install ffmpeg使用发行版源包安装ffmpeg。

需要删除干净。 rm -rf /usr/local/lib/libswscale.so* rm -rf /usr/local/lib/libav* rm -rf /usr/local/lib/libswresample.so*

> > 应该是我们babitmf/bmf_runtime:latest镜像内的ffmpeg有问题,我试了一下里面的ffmpeg,使用ffmpeg -i bbb.mp4 -vf "scale=1280x720" xx.mp4, 生成的视频是有问题的。我们后面会进一步检查一下问题在哪里。 临时办法: 可以先删除/usr/local/lib下的ffmpeg相关库libswscale.so, libav*系列库。然后使用apt-get update && apt-get install ffmpeg使用发行版源包安装ffmpeg。 > > 为什么 我手动build的 ffmpeg来给bmf使用,也会发生该问题呢? > > 而在使用发行版源包 安装ffmpeg之后,再切换到手动编译的ffmpeg版本(使用bmf/scripte下提供的 ffmpeg构建脚本),最终画面也是正常的 (环境为 ubuntu22.04,并未使用babitmf/bmf_runtime:latest镜像) ffmpeg4.4后使用--disable-x86asm编译再使用libswscale库是有问题的,这是ffmpeg本身的bug。不过一般是不使用这个参数去编译ffmpeg的,建议安装yasm/nasm再去除--disable-x86asm参数后进行编译。