I have a audio streaming app that streams music from a network resource with audio files as mp4's encoded as AAC using Azure's Media Encoder. I'm using open source library's https://github.com/muhku/FreeStreamer https://github.com/douban/DOUAudioStreamer, which both use Apple's Stream Parser from the AudioToolBox framework to stream audio, but on iOS9 the framework throws a kAudioFileStreamError_InvalidFile error. Interestingly apps compiled with the iOS9 SDK continue to stream the same file perfectly on iOS7/8 devices, but not iOS9.
Now i can't figure out if Apple broke something in iOS9, or we have the files encoded wrong on our end, but they play just fine on both iOS 7/8 but not 9. Here is a sample file from our server which plays just fine on iOS 7/8 but not 9 http://patarims.streaming.mediaservices.windows.net/858959cc-a7c2-4053-9f41-9ad32b406a8b/eyhqG1mC_AAC_und_ch2_128kbps.mp4
If anyone could point me in the right direction, how do i go about debugging the issue? Do we need to re-encode our files in some specific way?
Related
I am unable to play HLS video with 5.1 audio track on Chromecast 2 and Chromecat Ultra. The same files worked just fine on previous firmware releases before 1.28.100555.
In order to avoid any Objective-C programming errors all the tests I made were done using a slightly modified "CastVideos-ios" (official sample from Google Cast SDKs github).
The only modification I made is related to "media_list_1_url" in order to make the application load a custom JSON file pointing to my video sample files.
The JSON list is available at this link:
http://144.76.13.14/GoogleCastTestList.json
When I try to play the 5.1 audio track version on Chromecast 2 and Chromecast Ultra the video simply dose not load. Both of the test files play without problems on Chromecast 1.
Can someone help me find out if this is a Chromecast firmware issue or I must modify the Cast sender app code in order to play 5.1 audio files ?
I am having issues with downloading and playing an HLS URL at the same time.
I have followed WWDC'16 video and also below link.
But either I am able to play the audio or I am only able to download it. I am not able to achieve doing both the tasks at the same time.
And the download is also working only on iOS 11 beta releases, not on iOS 10 devices.
Am I missing something or there is some other way of achieving it?
There are a lot of changes related to HLS and FPS for iOS 11
And there are two examples from Apple for developers:
FairPlay Streaming Server SDK beta - only for XCode 9
FairPlay Streaming Server SDK - for XCode 8
As for me: on iOS 10 I can play and download HLS+FPS without any issues, but the same code for iOS 11 is not working (as I wrote - there a lot of new instances and workflows in it).
This is already a nightmare for me..
I have to get this AAC working for a project and there is no other way and no alternatives..
I'm using this library https://github.com/mangui/flashls and successfully stream ACC and MP3 with M3U8.
Now I have to get it working in iOS and in iOS, there is only the MP3 stream working. AAC seems to work, as the buffer is loading etc, but there is no audio.
The AIR has H.264/AAC Playback Support for iOS since AIR 2.
Source: http://www.adobe.com/devnet/articles/flashplayer-air-feature-list.html
And there are some NetStream members that are not supported, that might be the cause why audio is not playing in iOS.
Source: "Support for H.264 encoded video in AIR for iOS" http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/net/NetStream.html
Also the guy who wrote FlashHLS responded that he does not find any problem with the log files here: https://github.com/mangui/flashls/issues/150
NOTE: I'm streaming only audio and I only need audio. Would be great if there is a audio only library that does not use stageVideo.
Here is all my testing app code:
https://www.dropbox.com/s/y1t9jkv7tg1lgvy/iOS%20test%20ACC.zip?dl=0
The AAC stream: http://media.err.ee/viker/mp4:2104941.m4a/playlist.m3u8
Thank you!!
I can process a TV signal (well I have a .ts video which comes from a TV channel), using ffmpeg but the audio cannot be understood in an iPhone/iPad. The most strange is that the audio (and video) works properly in the simulator (and also in an Android real device, but this is another point), but in a real iPhone/iPad device the video is OK but the audio sounds like a metallic box and nothing can be understood.
I have created the ffmpeg libraries for iOS (I have tried the version 2.0.2 and also the version 2.1.3) using the information provided in the following link:
Installing ffmpeg ios libraries armv7, armv7s, i386 and universal on Mac with 10.8
The aforementioned link explains how to create the ffmpeg include folders and the universal libraries which I have included into my project (the libraries created are: libavcodec.a, libavdevice.a, libavfilter.a, libavformat.a, libavresample.a, libavutil.a, libswresample.a and libswscale.a).
The sampling frequency used is 48000.
The audio got from ffmpeg is then stored into a buffer and then "inserted" using OpenAL; but, from the same TV content (the same .ts video file) the audio data which is generated from ffmpeg in an iPhone/iPad is totally different from the audio data generated from ffmpeg in the simulator (which can reproduce both the audio and video perfectly).
Thanks in advance,
I could solved the problem setting the suitable channel audio properties (I had MONO and I have changed to STEREO 16 bits).
I'm developing a Flex application to iOS devices and I can't find a way to play mp4 video inside it...
I know it works with navigate to URL command but it's open browser and then the vieo player, which is not what I'm intending...
Thanks
If you work with audio and video streaming, one of the worst limitation of AIR 2.6 for iOS is that it is not possible to stream video encoded in H.264 (and audio in AAC) inside your AIR application. AIR 2.6 for iOS supports NetConnection and NetStream but can decode only Spark, VP6, MP3, NellyMoser and Speex formats. So no H.264 and no AAC.
I've tried play .flv video fine in flex app on iOS.