Comments (12)
I have exactly the same issue on iPhone 5 and iOS simulator 6.1
from dfurtspplayer.
Same issue running the iOS7.0.4: no sound when playing sophie.mov
Any fix for this?
from dfurtspplayer.
I have same error.
"http://www.wowza.com/_h264/BigBuckBunny_115k.mov" is sample movie.
It can't play sound.
The video taken by my camera is played sound well.
But I can't find any one.
from dfurtspplayer.
I know there are some issues with sound. Unfortunately at the moment I do not have the free time to investigate this. I've put this up together for another project which was discontinued.
from dfurtspplayer.
By using these settings in the createAudioQueue method of the AudioStreamer:
switch (audioCodecContext->codec_id) {
...
case CODEC_ID_AAC:
{
audioStreamBasicDesc.mFormatID = kAudioFormatMPEG4AAC;
audioStreamBasicDesc_.mFormatFlags = kMPEG4Object_AAC_LC;
audioStreamBasicDesc_.mSampleRate = audioCodecContext->sample_rate;
audioStreamBasicDesc.mChannelsPerFrame = audioCodecContext->channels;
audioStreamBasicDesc.mBitsPerChannel = 0;
audioStreamBasicDesc_.mFramesPerPacket = audioCodecContext->frame_size;
audioStreamBasicDesc.mBytesPerPacket = 0;
audioStreamBasicDesc_.mBytesPerFrame=audioCodecContext->frame_bits;
audioStreamBasicDesc.mReserved=0;
NSLog(@"audio format %s (%d) is supported", _audioCodecContext->codec_descriptor-> name, _audioCodecContext->codec_id);
break;
}
...}
you can have the sound of the videos.
However, when settings the AudioQueue this way, the app crashes (when freeing some buffer) if you try to play the http://www.wowza.com/_h264/BigBuckBunny_115k.mov. The video with sound plays fine if you download it play it locally though....
After some tests using these settings, it seems that all local videos (videos saved in the documents folder) with sound are played fine, while the app crashes trying to play remote videos with sound as I haven't found a way to avoid the crash when freeing the buffer...
from dfurtspplayer.
Thanks SEB-Appstore for the info.
About the crash, just from the top of my head, maybe it is something related to the sockets. I believe something is not correctly stopped in that area.
from dfurtspplayer.
To be more accurate, with the previous settings, the crash occurs in the while loop of the - (OSStatus)enqueueBuffer:(AudioQueueBufferRef)buffer method of the audiostreamer, at the av_free_packet(packet) line.
from dfurtspplayer.
SEB-Appstore, thanks for fix!
from dfurtspplayer.
I confirm this issue unfortunately still happen on iOS8 at iphone 4s with the latest commit 6c012d2
I can hear few seconds of audio and then stop play
from dfurtspplayer.
same problem with SEB-Appstore
from dfurtspplayer.
I also have the same problem even after SEB-Appstore's fix
from dfurtspplayer.
I also have the same problem
from dfurtspplayer.
Related Issues (20)
- Does this use HW decoding? HOT 4
- RTSP audio only streaming issue HOT 1
- How to make a RTSP request to server HOT 1
- how to stop the rtsp HOT 2
- Importing library to new swift app HOT 2
- [http @ 0x7ff882c151c0] HTTP error 403 Forbidden Couldn't open file
- RTSPPlayer Callbacks
- Crash at [audioController audioQueueIsRunningCallback];
- audio HOT 1
- copy
- RTSP Player error callback
- avformat_open_input method i am facing crash HOT 1
- How can I import it inside my Xcode Project?
- RTMP video works?
- RTSP user password protection. HOT 1
- Despite connection, video not showed HOT 3
- RTSPPlayer volume
- Memory leak !!!! HOT 4
- doesn't support 64 bit HOT 1
- Green colour glitches are coming while rendering the image.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dfurtspplayer.