Search code examples
perlvideoaudioffmpeg

Can I use ffmpeg from inside a Perl script without a system call?


I'd like to convert mp3's to lower bitrates, as well as possibly convert video to mp3 using Perl. I looked at the ffmpeg module but it doesn't appear that it supports converting files, the only example I saw was grabbing pictures out of a video stream. Is there a way to do this in Perl with out using system() to call ffmpeg?


Solution

  • Have tried the FFmpeg module? The transcode() method looks like it will do what you want.