Giter Site home page Giter Site logo

m4rconverter's Introduction

m4rconverter

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

m4rconverter's People

Contributors

mugenyi avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Forkers

oyvindlille

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.