antoine77340 / video_feature_extractor

Easy to use video deep features extractor
Apache License 2.0
307 stars 70 forks source link

Decoding video - ffprobe failed at: #11

Closed Tortoise17 closed 3 years ago

Tortoise17 commented 3 years ago

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?

antoine77340 commented 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.

Tortoise17 commented 3 years ago
]$ 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.

antoine77340 commented 3 years ago

Can you process your file using an ffmpeg command?

Tortoise17 commented 3 years ago

normally ffmpeg is working and easy executable. in python env is also and native as well.

antoine77340 commented 3 years ago

Sorry I meant, can you ffprobe the file? it seems the error is coming from the ffprobe command.

Tortoise17 commented 3 years ago

ffprobe is perfectly informing about file.

Tortoise17 commented 3 years ago
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.

Tortoise17 commented 3 years ago

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.

Tortoise17 commented 3 years ago

Resolved. and thank you so much . You have really a great tool. I will let you know the more questions I have to ask.

prateksha commented 3 years ago

Hi @Tortoise17, I am facing the same issue that you have described.ffprobe failed at Could you please tell me how you resolved it?

Tortoise17 commented 3 years ago

At earlier stage, I have changed the paths accordingly and provided the files there.

zhang123-sys commented 1 year ago

At earlier stage, I have changed the paths accordingly and provided the files there.

Excuse me, how do you change the paths?