zhw2590582 / WFPlayer

:ocean: WFPlayer.js is an audio waveform generator
https://wfplayer.js.org
MIT License
262 stars 32 forks source link

Waveform of large audio files #19

Closed MugenTrip closed 2 years ago

MugenTrip commented 3 years ago

Hello, I have tried your program for short audio files (10-20 seconds) and it is working fine. You have done really amazing job, thank you very much. But I need the waveform of large audio files (20min-2hours). Unfortunately, even if I use a 20min audio file, the memory explodes. Am I doing something wrong or this waveform generator is not for so large files?

zhw2590582 commented 3 years ago

https://github.com/zhw2590582/WFPlayer#common-problem The official website uses @ffmpeg/ffmpeg, so you can test and open large videos: https://wfplayer.js.org/

https://github.com/zhw2590582/WFPlayer/blob/84b39eb61ac48534696be926ea4a1174267d8119/docs/assets/js/index.js#L35

MugenTrip commented 3 years ago

Thank you for your fast reply. The file I use is not a video, it is an audio (wav) file. Should I reduce its size to avoid the memory explosion?

zhw2590582 commented 3 years ago

yes

ffmpeg -i path/to/audio.wav -ac 1 -ar 8000 path/to/audio.mp3