BabitMF / bmf

Cross-platform, customizable multimedia/video processing framework. With strong GPU acceleration, heterogeneous design, multi-language support, easy to use, multi-framework compatible and high performance, the framework is ideal for transcoding, AI inference, algorithm integration, live video streaming, and more.
https://babitmf.github.io/
Apache License 2.0
730 stars 60 forks source link

AttributeError: 'bmf.lib._bmf.sdk.Packet' object has no attribute 'get_data' #93

Open lxllsl opened 5 months ago

lxllsl commented 5 months ago

/usr/lib/python3.7/site-packages/bmf/modules/null_sink.py in process(self, task) 21 elif pkt.get_timestamp() != Timestamp.UNSET: 22 Log.log_node(LogLevel.DEBUG, task.get_node(), ---> 23 "process data", pkt.get_data(), 'time', 24 pkt.get_timestamp()) 25 return ProcessResult.OK

AttributeError: 'bmf.lib._bmf.sdk.Packet' object has no attribute 'get_data'

sfeiwong commented 5 months ago

The interface should be outdated here, please try: pkt.get_timestamp() -> pkt.timestamp pkt.get_data() -> pkt.get()

If it works, welcome to create a PR to fix. Thanks

lxllsl commented 5 months ago

pkt.get_timestamp() -> pkt.timestamp pkt.get_data() -> pkt.get()

this work ,I will try fix it