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

iOS, iPad, iPhone, tvOS specific usage questions
OuSS
New Cone
New Cone
Posts: 4
Joined: 07 Jun 2016 18:18

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

Postby OuSS » 07 Jun 2016 19:42

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,

OuSS
New Cone
New Cone
Posts: 4
Joined: 07 Jun 2016 18:18

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

Postby OuSS » 10 Jun 2016 17:11

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
Last edited by OuSS on 11 Jun 2016 17:05, edited 3 times in total.

OuSS
New Cone
New Cone
Posts: 4
Joined: 07 Jun 2016 18:18

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

Postby OuSS » 11 Jun 2016 14:40

No help ?

ssbmaccom
Cone that earned his stripes
Cone that earned his stripes
Posts: 184
Joined: 26 Nov 2015 15:21
Operating System: Mac OS, iOS, tvOS

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

Postby ssbmaccom » 19 Jun 2016 22:08

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.


Return to “VLC for iOS, iPadOS and Apple TV”

Who is online

Users browsing this forum: No registered users and 30 guests