Page 1 of 1

VLC could not decode the format mp4a (MPEG AAC Audio)

Posted: 07 Jun 2016 19:42
by OuSS
Im using VLC to live stream IPCameras

I used pod 'MobileVLCKit' ("MobileVLCKit 2.2.2")
I have problem with mp4 audio (AAC) :

Image

So I removed cocoapod and i followed tutorial here : https://wiki.videolan.org/VLCKit/
I build static framework using this command : ./buildMobileVLCKit.sh -f
but when i drag the MobileVLCKit.framework to my project and build i get errors :

Image

So I removed my generated framework and i used a nightly version from here: http://nightlies.videolan.org/build/ios/
i got the same error as above ( when i drag my generated framework)

So i removed the nightly version and i used cocoapod ("MobileVLCKit-prod 2.7.2")
i got error ffmpeg_openCodec when i play the streaming :

Image

I don't know what do to, to get vlc working

Im using Swift, with deployment target "8.2"

Thanks,

Re: VLC could not decode the format mp4a (MPEG AAC Audio)

Posted: 10 Jun 2016 17:11
by OuSS
I solved the problem of videotoolbox.o by adding VideoToolbox.framework
Now the build works, but when i play my stream video i get this error :

Image

Image

Image

Re: VLC could not decode the format mp4a (MPEG AAC Audio)

Posted: 11 Jun 2016 14:40
by OuSS
No help ?

Re: VLC could not decode the format mp4a (MPEG AAC Audio)

Posted: 19 Jun 2016 22:08
by ssbmaccom
have you tried to build VLCKit as static library?
At least I havent seen this since a while using the static library in my tvOS app.

Pass crapp options to the buildscript to see all the options (or inspect the script source).
And make sure to use libc++ instead of libstdc++. Both link, but the latter has bad performance and may cause these race conditions within threading. I also have seen these, switching to libc++ fixed this.