Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The FFmpeg version you used to extract frames? #7

Closed
yangchihyuan opened this issue Aug 23, 2017 · 1 comment
Closed

The FFmpeg version you used to extract frames? #7

yangchihyuan opened this issue Aug 23, 2017 · 1 comment

Comments

@yangchihyuan
Copy link

Hello Zheng,

Could you help let me know your FFmpeg version used to extract frames from the THUMOS14 data set? I got a problem that although I use your command to extract frames in the scnn/run_demo.m
cmd = ['../lib/preprocess/ffmpeg -i ' videodir videoname '.' videotype ' -r ' num2str(framerate) ... ' -f image2 ' framedir videoname '/' '%06d.jpg 2>' framedir 'frame_extract.log'];
, the number extracted is 1 frame less than the yours for some videos. For example, I got only 845 frames from the test_video_0000004.mp4, but yours is 846, according to the filename 000815.bin belonging to the 0000004 video in the prefix.lst file.
As a result, I got an error while running the compute_framelevel_mAP.m because the length of label_test in the 'multi-label-test.mat is different from my prob length (label_test: 1154579 vs prob: 1154473).
I am wondering the problem of fewer extracted frames is caused by different FFmpeg versions. Mine is 3.3.3-1ubuntu1~16.04.york and what is yours?

Best regards,

@zhengshou
Copy link
Collaborator

Few frames more or less during frame extraction won't affect the final results. You can construct your own frame-level ground truth file to measure your performances based on your extracted frames. Also, note that seems using ffmpeg to extract jpg sometimes suffers from information loss due to compression and it is better to extract png format image.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants