video_feature_extractor icon indicating copy to clipboard operation
video_feature_extractor copied to clipboard

Data doesn't store properly

Open pythonmjs opened this issue 5 years ago • 8 comments

Hi, what is the shape of the data in npy file of every video? I tried but it doesn't store in a proper format. Can you guide me about it? Screen Shot 2020-11-19 at 1 22 48 PM

pythonmjs avatar Nov 19 '20 21:11 pythonmjs

Hi, As you can see from the log you have decoding errors: ffprobe failed at: ... Which means there is something wrong with your videos (either the videos are corrupted or you provided the wrong paths)

antoine77340 avatar Nov 19 '20 22:11 antoine77340

Thanks, man. solved by giving relative path. but the data is stored in npy file which looks like this. I am sure this not what you got right. How can I give this data as input into model(CNN +distributed layer for video classification) Screen Shot 2020-11-19 at 9 56 44 PM

pythonmjs avatar Nov 20 '20 05:11 pythonmjs

That's weird, you should get arrays of shape Nx1024 with N > 0. Did you make sure this was not the numpy arrays that were output from the first run which had a problem? If yes you might need to delete these generated npy arrays and rerun the extraction with the path fixed.

antoine77340 avatar Nov 22 '20 14:11 antoine77340

I did but doesn't store anything in npy file. I am sure it doesn't look like any logical error but it might be the problem of video files. I don't know about it.

Screen Shot 2020-11-24 at 12 04 09 PM

pythonmjs avatar Nov 24 '20 20:11 pythonmjs

There must be something wrong with the video decoding. Did you try playing the videos? Or better dumping the frames with ffmpeg?

antoine77340 avatar Nov 26 '20 00:11 antoine77340

@pythonmjs can you please show me how did you build you csv file ? i am getting issue with it

khaled26 avatar Apr 11 '21 10:04 khaled26

Hey @antoine77340 , nothing is saved in bumpy files in my case. Can you please help with this?

parthplc avatar Aug 16 '21 05:08 parthplc

Hello, 

you can refer to my project, but there are some garbage files in it. I didn't clean them up when I did it again you can do follow it python input_ file. py python extract. py

------------------ 原始邮件 ------------------ 发件人: "antoine77340/video_feature_extractor" @.>; 发送时间: 2022年4月12日(星期二) 下午3:30 @.>; @.@.>; 主题: Re: [antoine77340/video_feature_extractor] Data doesn't store properly (#8)

dear @antoine77340 ,

i tried running sample of video segments on my EC2 ubuntu, output as below;

however, result in my video_feature folder is empty. Nothing is there. My csv is as below;

Do all the videos and feature folder need to be inside the github folder to make this work? Or can you advice on this issue. Much appreciated!

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>

furtherlearningYan avatar Oct 11 '22 08:10 furtherlearningYan