mugenyi/m4rconverter 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

mugenyi/m4rconverter

Composer 安装命令:

composer require mugenyi/m4rconverter

包简介

iphone audio ringtone converter MPEG4 audio,m4r converter

README 文档

README

This is an iphone ringtone converter using php. Its a simplest way of creating ( .m4r ) format audio which is the recommended type for IOS product tones.

installation

This package uses ffmpeg and ffprobe libraries so make sure they are installed before you install it.

composer require mugenyi/m4rconverter

basic usage

Provide the class with 2 values.

  • Path to the file to be converted.

  • Directory to save the converted file.

       $converter = new M4rconverter\Converter('tracks/avril.mp3','converted');
       $converter->convert();
    

configuration

M4rconverter allows you to easily configure the underlying FFmpeg and audio.

  • configure ffmpeg

      $converter->setFFMpegConfiguration([
    
      'ffmpeg.binaries'  => '/opt/local/ffmpeg/bin/ffmpeg',
      'ffprobe.binaries' => '/opt/local/ffmpeg/bin/ffprobe',
      'timeout'          => 3600, // The timeout for the underlying process
      'ffmpeg.threads'   => 12,   // The number of threads that FFMpeg should use
      ]);
    
  • configure audio

      $converter->setAudioFormatConfiguration([
      'bitrate'  => 256, //AudioKiloBitrate
      'audioChannel' => 2,
      'duration'=>30 //time in seconds for the   output file
      'seek'=>30 //time in seconds to seek
      ]);
    

special thanks

M4rconverter is built on top of php-ffmpeg package. special thanks to the team behind the project.

Example apps

itunemachine.com uses this package to make name ringtones

统计信息

  • 总下载量: 105
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 3
  • 点击次数: 6
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 2
  • Watchers: 1
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2016-09-22

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固