-
Notifications
You must be signed in to change notification settings - Fork 71
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
运行demo报:[swscaler @ 0x7f5cbb7f1200] No accelerated colorspace conversion found from yuv420p to rgb24. #110
Comments
应该是我们babitmf/bmf_runtime:latest镜像内的ffmpeg有问题,我试了一下里面的ffmpeg,使用ffmpeg -i bbb.mp4 -vf "scale=1280x720" xx.mp4, 生成的视频是有问题的。我们后面会进一步检查一下问题在哪里。 |
感谢你的回答,通过你的方法,我做了如下操作: |
需要删除干净。 |
根据指导,已跑通demo。 |
邮件已经收到,我会尽快回复你。--任强强
|
为什么 我手动build的 ffmpeg来给bmf使用,也会发生该问题呢? 而在使用发行版源包 安装ffmpeg之后,再切换到手动编译的ffmpeg版本(使用bmf/scripte下提供的 ffmpeg构建脚本),最终画面也是正常的 (环境为 ubuntu22.04,并未使用babitmf/bmf_runtime:latest镜像) |
|
版本试过4.4, 4.4.4 以及 5.1.2 |
ffmpeg4.4后使用--disable-x86asm编译再使用libswscale库是有问题的,这是ffmpeg本身的bug。不过一般是不使用这个参数去编译ffmpeg的,建议安装yasm/nasm再去除--disable-x86asm参数后进行编译。 |
嗷,这样啊,好的,明白了,晚点我尝试一下。 🙏感谢答复 |
运行官方镜像,
docker pull babitmf/bmf_runtime:latest
docker run --gpus all -e NVIDIA_DRIVER_CAPABILITIES=all -it babitmf/bmf_runtime:latest bash
export CMAKE_ARGS="-DBMF_ENABLE_CUDA=ON"
./build.sh
编译后运行demo:
python3 ~/bmf/output/demo/video_enhance/enhance_demo.py
代码未报错,能够生成视频,但运行过程中一直报:No accelerated colorspace conversion found from yuv420p to rgb24.
问题:
生成的output.mp4视频,播放时完全看不到视频内容,显示花屏。
The text was updated successfully, but these errors were encountered: