Closed liujiachang closed 11 months ago
Sorry,the content in the documentation has expired. We will update it. It is possible that the issue is due to your input video source being in 10-bit format. You can try this approach if your bmf with ffmpeg enabled:
from bmf.lib._bmf.sdk import ffmpeg
np_vf = ffmpeg.reformat(vf, "rgb24").frame().plane(0).numpy()
I used your method to obtain the video frame, but the following warning occurred:
[swscaler @ 0x2e2aec0] deprecated pixel format used, make sure you did set range correctly.
[swscaler @ 0x2e2a240] No accelerated colorspace conversion found from yuv420p to bgr24.
Can I ignore it, or is there any way to fix it
I used your method to obtain the video frame, but the following warning occurred:
[swscaler @ 0x2e2aec0] deprecated pixel format used, make sure you did set range correctly. [swscaler @ 0x2e2a240] No accelerated colorspace conversion found from yuv420p to bgr24.
Can I ignore it, or is there any way to fix it
Using the related pixelformat "yuvj420p" of ffmpeg can trigger the first warning, typically when encoding or decoding JPEG. The second warning may be due to the lack of ASM support of ffmpeg. Both warnings can be ignored.
How can I set ffmpeg -loglevel quiet
in the code,I set bmf.Log.set_log_level(bmf.LogLevel.ERROR)
but it didn't ignore these warning.
For the log from FFmpeg, please inject loglevel into the option of the module,as for:
graph = bmf.graph()
# decode
video = graph.decode({
"loglevel" : "quiet",
"input_path": input_video_path
})
For the log from BMF, it's set to INFO default, if you want to modify, please use the ENV: export BMF_LOG_LEVEL=WARNING/ERROR/FATAL/DISABLE
There was a problem when I used the bmf/test/generator/test_generator.py for read stream testing.
I also tried the method in the document, but it seems to be incorrect.
What is Unsupport PixelInfo? Or do I have any other methods to process the stream like OpenCV into video frames that can be read iteratively?