mpc001 / auto_avsr

Auto-AVSR: Lip-Reading Sentences Project
Apache License 2.0
158 stars 40 forks source link

How to get audio from mp4 using torchaudio #8

Closed zyjcsf closed 1 year ago

zyjcsf commented 1 year ago

Hi, when I run the preprocess_lrs2lrs3.py , I got an error when 'audio_data = aud_dataloader.load_data(data_filename)' . It seem that the sox do not support the mp4 files, how can i to solve it ?

Thank you very much.

mpc001 commented 1 year ago

Hi @zyjcsf one solution for extracting audio is ffmpeg. There are multiple ways to install ffmpeg libraries. If you are using Anaconda Python distribution, conda install -c conda-forge ffmpeg will install compatible FFmpeg libraries.

zyjcsf commented 1 year ago

Thank you very much