18:56
I'm using the PHP-FFMpeg repository to do some video work inside my Laravel application, but I'm encountering some issues setting it up. Once I've installed the PHP-FFMpeg repo, I try and create an FFMpeg instance:
$ffmpeg = \\FFMpeg\\FFMpeg::create();
However, this does not work. In response, I get an ErrorException that simply states:
Unable to load FFProbe
This does not make sense to me, as when I run ffmpeg and ffprobe from my Mac's terminal, I can see they are installed. This is clearly a path/resolving issue, but (...)
18:34
I am getting oga file from javascript blob and I want to convert it to PCM compatible wav file in python.
The approach I am using is as follow
AudioSegment.converter = r"C:/ffmpeg/bin/ffmpeg.exe"
AudioSegment.ffprobe = r"C:/ffmpeg/bin/ffprobe.exe"
sound = AudioSegment.from_file("file.oga")
sound.export("file.wav", format="wav")
For this I have to download ffmpeg locally.
Is there any way to convert oga file to wave directly.
This is how i am saving file
f = open('./file.oga', (...)