MP3::Merge - MP3 files merger and streamer to web browser
use MP3::Merge; #create new object my $mp = MP3::Merge->new(); # add mp3 files $mp->add("file.mp3"); $mp->add("file1.mp3", "file2.mp3", "file3.mp3"); $mp->add(@mp3files); # save to file $mp->save("merged.mp3"); # or stream merged files to the browser as a single mp3 file # correct headers will be automatically sent first to the browser $mp->echo("output.mp3"); # or stream all files as single zipped file uncompressed to the browser # correct headers will be automatically sent first to the browser $mp->echo_zip("audio.zip"); # merged file information after save or echo calls #print "Total seconds: ", $mp->length(), ", Total frames: ", $mp->frames(), ", Total size:", $mp->size(), "\n";
This module merges MP3 files into a single MP3 file and also can stream directly the merged files to the web browser.
It can also stream the merged MP3 files as a single zipped file with no compression to the web browser.
Ahmed Amin Elsheshtawy, <support[ @ ]mewsoft.com> Website: http://www.mewsoft.com
Copyright (C) 2013 by Dr. Ahmed Amin Elsheshtawy د أحمد أمين الششتاوى جودة , Ph.D. EE support[ at ]mewsoft.com http://www.mewsoft.com
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.