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

Error while extracting vggish features #38

Open
KPKWCE opened this issue Sep 14, 2021 · 2 comments
Open

Error while extracting vggish features #38

KPKWCE opened this issue Sep 14, 2021 · 2 comments

Comments

@KPKWCE
Copy link

KPKWCE commented Sep 14, 2021

Hello,
Thanks for this amazing work.

Error opening './tmp/test.wav': System error.

Above error on executing python main.py --feature_type vggish --on_extraction save_numpy --device_ids 0 --video_paths ../../sample/v__N1MWv9bW6Q.mp4 --output_path ../../sample/ comand

Please help me for this!

@Gaurav1302
Copy link

@KPKWCE, were you able to solve this error?

@Swt2000
Copy link

Swt2000 commented Nov 25, 2023

hi!!! Iv fixed this issue.

The problem is because the sample mp4 file' audio is coded by acc, but our mp4 file is not.

you can try this ffprobe -v error -show_entries stream=codec_name,codec_type -of default=noprint_wrappers=1 ./sample/women_long_jump.mp4 to check out.

for me, my mp4 file is mp3.

Then i go to models/vggish/utils/utils.py
and change the line
mp4_to_acc = f'{which_ffmpeg()} -hide_banner -loglevel panic -y -i {video_path} -acodec copy {audio_aac_path}'
with
mp4_to_acc = f'{which_ffmpeg()} -hide_banner -loglevel panic -y -i {video_path} -acodec aac {audio_aac_path}'

That's ok!!!

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

3 participants