linjieli222 / HERO_Video_Feature_Extractor

Video Feature Extraction Code for EMNLP 2020 paper "HERO: Hierarchical Encoder for Video+Language Omni-representation Pre-training"
https://arxiv.org/abs/2005.00200
MIT License
95 stars 14 forks source link

ffprobe error #5

Open JackyWang2001 opened 2 years ago

JackyWang2001 commented 2 years ago

Hi, thanks for this convenient and wonderful tool! I noticed that during processing, some videos are getting the ffprobe error. The sample terminal output is like

...

video/v_8B4M8AsGZmQ.mp4, failed at ffprobe.

video/v_8bppcsg07Rc.mp4, failed at ffprobe.

video/v_WQmJrfjOF7o.mp4, failed at ffprobe.

video/v_WqnnGmL-lmU.mp4, failed at ffprobe.

video/v_Wr7YbcQ_Q9g.mp4, failed at ffprobe.

video/v_WreRcthWXv8.mp4, failed at ffprobe.

video/v_WrFNI5GQFPM.mp4, failed at ffprobe.

100%|█████████████████████████████████████| xxx/xxx [00:03<00:00, 2321.76it/s]
Total number of frames: xxx

I am running the code on Ubuntu20.04 and my ffprobe version is 4.2.2. Do you have any ideas about how this error occurs? Thanks!

hpppppp8 commented 2 years ago

ffprobe

I got the same problem, have you solved the error?

JackyWang2001 commented 2 years ago

As I know for now, checking ffmpeg in Python helps: open a Python console and type

> import ffmpeg
> ffmpeg.probe

If ffmpeg is installed correctly for Python, it will show something like <function probe at 0x7f1bd4f440e0> instead of attribute error. If there is an attribute error, one way to try is pip install ffmpeg-python.

However, it is weird for me that I had two conda environments which had the same versions of ffmpeg: one works but another one does not.

amosyou commented 5 months ago

encountered this error as well. the way i fixed was

  1. uninstalling ffmpeg from the conda environment and only using ffmpeg-python
  2. installing ffmpeg on my system (the script runs a subprocess that calls the system ffmpeg).