How does PHP cut audio files based on time period?

Source: Internet
Author: User
I am writing a website that requires a user-uploaded audio file (in the form of PCM or WAV) to be cycled per 60s
In the background of the Web site PHP, how to upload the user audio files in accordance with 60s to cut?


Reply to discussion (solution)

Ffmpeg

Ffmpeg



Can you tell me the details of how to use ffmpeg to achieve it? Thank you!

Ffmpeg-i audio file name-T lasts seconds-ss start seconds output file name

Ffmpeg-i audio file name-T lasts seconds-ss start seconds output file name


Thank you Moderator! It seems to be necessary to know the total length of the audio file, so as to determine when to end the cutting bar, how to write this command?

Reference: http://www.cnblogs.com/wainiwann/p/4031129.html

Reference: http://www.cnblogs.com/wainiwann/p/4031129.html


Thank you moderator, but I did not find the command in the audio time length can be obtained T T

(Video bitrate + audio bitrate) * Duration/8 = file size K
I don't know.

(Video bitrate + audio bitrate) * Duration/8 = file size K
I don't know.


Thank you moderator, as if the article only said how to set, adjust the bitrate, file size, and did not explain how to view the original code rate and size of the file.

Reference: http://www.thinksaas.cn/group/topic/346522/

  • Related Article

    Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.