Giter Site home page Giter Site logo

Comments (5)

zhw2590582 avatar zhw2590582 commented on June 19, 2024

I have updated readme.md, and I recommend using the method of loading mp3 instead of the method of loading pcm.

from wfplayer.

salmanAhmad143 avatar salmanAhmad143 commented on June 19, 2024

@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.

zhw2590582 avatar zhw2590582 commented on June 19, 2024

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.

salmanAhmad143 avatar salmanAhmad143 commented on June 19, 2024

@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.

  1. What will be the impact of this?
  2. 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.

zhw2590582 avatar zhw2590582 commented on June 19, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.