AttributeError: module 'ffmpeg' has no attribute 'probe

#5
by Aaradhya-Badal - opened

When I am trying to run the model, this interal line is showing error.

~/.cache/huggingface/modules/transformers_modules/DAMO-NLP-SG/VideoLLaMA3-7B/a498675483e2be8e98d092a2cb11a608c2caa8dd/processing_videollama3.py in load_video(self, video_path, start_time, end_time, fps, max_frames, size, size_divisible, precise_time, verbose, temporal_factor)
357 if video_path.endswith('.gif'):
358 return load_video_from_ids(video_path, start_time, end_time, fps=fps, max_frames=max_frames)
--> 359 probe = ffmpeg.probe(video_path)
360 duration = float(probe['format']['duration'])
361 video_stream = next((stream for stream in probe['streams'] if stream['codec_type'] == 'video'), None)

AttributeError: module 'ffmpeg' has no attribute 'probe

I get the same thing

I found a fix @aleenprd , don't import ffmpeg ever in your code (if installed try to unistall or restart kernel), directly and only import ffmpeg-python.

Your need to confirm your account before you can post a new comment.

Sign up or log in to comment