Comments (5)
I have updated readme.md, and I recommend using the method of loading mp3 instead of the method of loading pcm.
from wfplayer.
@zhw2590582 , So in that case if the the mp3 file size is big then it would not take time to load?
E.g Suppose if i am creating a MP3 file from a 1 GB MP4 file using ffmpeg then its file size will be high so in this case wfplayer will not took time in loading?
from wfplayer.
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.
from wfplayer.
@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.
- What will be the impact of this?
- Do i need to change these as per my mp4 video?
ffmpeg -i path/to/video.mp4 -ac 1 -ar 8000 path/to/audio.mp3
from wfplayer.
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
from wfplayer.
Related Issues (20)
- 报错:AudioContext decoding get Wrong:Failed to execute 'decodeAudioData' on 'BaseAudioContext'..... HOT 10
- Need help with making the scrolling smoother HOT 16
- Using WFPlayer with ArtPlayer HOT 1
- Delete this issue, Accidently created from wrong account.
- Need help with setting up the subtitles on the waveform HOT 1
- Large file issue HOT 15
- Browser crash on loading video/audio of duration around 2 hours HOT 6
- with window.OffscreenCanvas to undefined, options will never be dispatched to drawer.config HOT 6
- Add option for cursor position HOT 2
- +1h audio file destroys the ram HOT 4
- am getting undefinde error first time when i refresh the page HOT 2
- getting audio infinity HOT 1
- Could you please add a speed-changing function? HOT 2
- can you guide me how to create multiple instance of wfplayer at run time? HOT 5
- Add `waveBorder`, `waveBorderColor`, and `waveBorderWidth` Options
- adding grab_start and grab_end events HOT 2
- decodeAudioData crash HOT 1
- loader模块load函数执行错误
- Appending custom headers HOT 1
- Region support HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wfplayer.