-
Notifications
You must be signed in to change notification settings - Fork 32
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
Is there any way to load wave form faster of large video file? #17
Comments
I have updated readme.md, and I recommend using the method of loading mp3 instead of the method of loading pcm. |
@zhw2590582 , So in that case if the the mp3 file size is big then it would not take time to load? |
I just tried it and converted a 1G mp4 video to mp3. The result was only 6M in size. For modern network bandwidth, loading this audio should be fast. |
@zhw2590582 , Even i also tried it my side and the output mp3 file size of 1 GB mp4 video is 8.7 MB but this is when i use the same parameters that you have mentioned in your e.g command. Like channel 1 and sample rate 8000. I am not much aware about these two parameter.
ffmpeg -i path/to/video.mp4 -ac 1 -ar 8000 path/to/audio.mp3 |
This command is applicable to all mp4 files, all this command needs to do is to compress the mp3 as much as possible, basically no changes are needed |
Hey @zhw2590582 ,
As per your suggestion i am using web-audio-api and creating PCM file to generate wave. But the problem is PCM file is also taking long time to display wave form. Till the complete PCM file not loaded in browser wave form showing a thin line.
Is there any other fastest way to generate wave form?
Like wfplayer should not wait to load the complete PCM file data and should start to draw wave?
Please suggest. Thanks
The text was updated successfully, but these errors were encountered: