Question: iOS transcoding from .ogg
Hi,
I am not sure if this is the right place for this kind of questions, but I'm having a hard time finding the answer somewhere else.
I have integrated VLCKit in an iOS application and I'm able to play an .ogg (opus codec) file using the following code:
vlcPlayer = VLCMediaPlayer()
let audioInBundlePath = Bundle.main.path(forResource: "short-heartbeat", ofType: "ogg")!
vlcPlayer?.media = VLCMedia(path: audioInBundlePath)
vlcPlayer?.play()
What I need to do next is transcode that ogg file to .mp3 or other file format natively supported by the iOS platform.
From the command line I'd do something like this:
/Applications/VLC.app/Contents/MacOS/VLC -I dummy heartbeat.ogg --sout="#transcode{acodec=mp3}:standard{access=file,mux=raw,dst=testoutput.mp3}" vlc://quit
But I've failed to find how to do the same thing from code (afaik VLCStreamSession
was used for that, but does not seem to be available anymore, it's marked as deprecated in the documentation).
Question: Is it posible to transcode .ogg (opus) to .mp3 or other iOS native format using VLCKit for iOS?