denseflow: cannot open video_path stream
cannot open video_path stream:/home/liding/project/temporal_action_detection/mmaction2/data/thumos14/videos/val/video_validation_0000033.mp4 cannot open video_path stream:/home/liding/project/temporal_action_detection/mmaction2/data/thumos14/videos/val/video_validation_0000592.mp4 cannot open video_path stream:/home/liding/project/temporal_action_detection/mmaction2/data/thumos14/videos/val/video_validation_0000230.mp4 cannot open video_path stream:/home/liding/project/temporal_action_detection/mmaction2/data/thumos14/videos/val/video_validation_0000395.mp4 cannot open video_path stream:/home/liding/project/temporal_action_detection/mmaction2/data/thumos14/videos/val/video_validation_0000238.mp4
Thanks for your great work. When running denseflow, I came across a bug like this, which results in error of openning video stream. Could you help me out?
Thanks again.
About this issue
- Original URL
- State: open
- Created 3 years ago
- Reactions: 3
- Comments: 29 (12 by maintainers)
I solved this issue by recompiling and installing opencv
I have same problem, and I find the reason is that the opencv verion provided in zzopencv.sh is too low(4.3.0), so downloading opencv 4.5.2 and recompiling opencv 4.5.2 and denseflow can solve this problem.
@rlleshi hello, -DWITH_FFMPEG=ON is an input option. please check your install log if the ffmpeg support is really on like this :
In my previous installation, it always show ffmpeg is off. There are some dependencies like libfreetype6-dev , libfontconfig1-dev , freetype-dev and so on I install by apt-get but I am not sure which is really matters 😦
I made a dockerfile here https://github.com/open-mmlab/denseflow/tree/master/docker
This is because using difference tools, such as ffmpeg/opencv, you might get different nubmer of total frame counts.
Great to hear that. Compilation are always troublesome. If I got some time later on, I will make the installation compilation free 😄
Problem solved. Recompiling and installing opencv with ffmpeg supported, the original setup shell may install opencv without ffmpeg because there are some dependencies uninstalled ,thx 😃