Closed Tortoise17 closed 3 years ago
Nope! Did you make sure the provided path was reachable? Most people encounter this error because ffmpeg could not read the file.
]$ python extract.py --csv=video/input_data.csv --type=2d --batch_size=64 --num_decoding_thread=8
Loading 2D-ResNet-152 ...
loaded
Decoding video: /home/machine21/Desktop/video_code/video_feature_extractor/video/video2.mp4
ffprobe failed at: /home/machine21/Desktop/video_code/video_feature_extractor/video/video2.mp4
Decoding video: /home/machine21/Desktop/video_code/video_feature_extractor/video/video1.mp4
ffprobe failed at: /home/machine21/Desktop/video_code/video_feature_extractor/video/video1.mp4
Video /home/machine21/Desktop/video_code/video_feature_extractor/video/video1.mp4 already processed.
Video /home/machine21/Desktop/video_code/video_feature_extractor/video/video2.mp4 already processed.
this is how it is throwing error. If you can guess. I think it is accessing and reaching the proper file. If you can comment.
Can you process your file using an ffmpeg command?
normally ffmpeg is working and easy executable. in python env is also and native as well.
Sorry I meant, can you ffprobe the file? it seems the error is coming from the ffprobe command.
ffprobe
is perfectly informing about file.
video_path,feature_path
/home/machine21/Desktop/video_code/video_feature_extractor/video/video2.mp4,/home/machine21/Desktop/video_code/video_feature_extractor/video/video2.npy
/home/machine21/Desktop/video_code/video_feature_extractor/video/video1.mp4,/home/machine21/Desktop/video_code/video_feature_extractor/video/video1.npy
this is how I have set the csv
file
The csv
file is in same folder where videos are.
One question. Should I resize the video_frames_size to 112 earlier ? or if input is 1024 is also possible to handle ? Maybe that is the issue? or correct me if I am wrong.
Resolved. and thank you so much . You have really a great tool. I will let you know the more questions I have to ask.
Hi @Tortoise17, I am facing the same issue that you have described.ffprobe failed at
Could you please tell me how you resolved it?
At earlier stage, I have changed the paths accordingly and provided the files there.
At earlier stage, I have changed the paths accordingly and provided the files there.
Excuse me, how do you change the paths?
ffprobe failed at: /home/machine21/Desktop/video_code/video_feature_extractor/video/input.mp4
Do I need to make the resizing of video to 112:112 ratio? or any other reason for this failure?