ToB企服应用市场:ToB评测及商务社交产业平台

标题: 办理VideoReader出现Thread worker: Error sending packet报错 [打印本页]

作者: 汕尾海湾    时间: 2024-8-3 07:23
标题: 办理VideoReader出现Thread worker: Error sending packet报错
   [06:56:29] /github/workspace/src/video/ffmpeg/threaded_decoder.cc:292: [06:56:29] /github/workspace/src/video/ffmpeg/threaded_decoder.cc:218: Check failed: avcodec_send_packet(dec_ctx_.get(), pkt.get()) >= 0 (-11 vs. 0) Thread worker: Error sending packet.
  
  1. # vr = VideoReader(video_path, ctx=cpu(0), num_threads=4)
  2. vr = VideoReader(video_path, ctx=cpu(0), num_threads=1)
复制代码
将线程数量设为1即可办理。开端猜疑是decord库在多线程处理处罚某些视频时存在标题。

免责声明:如果侵犯了您的权益,请联系站长,我们会及时删除侵权内容,谢谢合作!更多信息从访问主页:qidao123.com:ToB企服之家,中国第一个企服评测及商务社交产业平台。




欢迎光临 ToB企服应用市场:ToB评测及商务社交产业平台 (https://dis.qidao123.com/) Powered by Discuz! X3.4