I’m trying to create a web application which requires this feature:
Suppose I have a .mp3 file, I want to select/upload this file, and then, make a new file of it from 0:15 to 0:30 (example), and then save as new .mp3/.wav.
As it’s supposed to go on web, would be preferrable in PHP, but as I highly doubt it’s possible, Java(Applets) or C#(ASP.NET) are acceptable and highly appreciated.
Thanks in advance.
The best way to do this is with FFMPEG. There is a PHP extension for it, but I’ve generally found that it is easiest to just call it with exec().
ffmpeg -ss 00:00:15 -t 15 -i yourfile.mp3 -acodec copy outputfile.mp3More info here: http://www.catswhocode.com/blog/19-ffmpeg-commands-for-all-needs