Coder Social home page Coder Social logo

the audio doesn't play about dfurtspplayer HOT 12 OPEN

durfu avatar durfu commented on August 18, 2024
the audio doesn't play

from dfurtspplayer.

Comments (12)

oleganza avatar oleganza commented on August 18, 2024

I have exactly the same issue on iPhone 5 and iOS simulator 6.1

from dfurtspplayer.

SEB-Appstore avatar SEB-Appstore commented on August 18, 2024

Same issue running the iOS7.0.4: no sound when playing sophie.mov
Any fix for this?

from dfurtspplayer.

kimjj81 avatar kimjj81 commented on August 18, 2024

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.

durfu avatar durfu commented on August 18, 2024

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.

SEB-Appstore avatar SEB-Appstore commented on August 18, 2024

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.

durfu avatar durfu commented on August 18, 2024

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.

SEB-Appstore avatar SEB-Appstore commented on August 18, 2024

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.

vgoltv avatar vgoltv commented on August 18, 2024

SEB-Appstore, thanks for fix!

from dfurtspplayer.

andrenatal avatar andrenatal commented on August 18, 2024

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.

formoon avatar formoon commented on August 18, 2024

same problem with SEB-Appstore

from dfurtspplayer.

maxcox avatar maxcox commented on August 18, 2024

I also have the same problem even after SEB-Appstore's fix

from dfurtspplayer.

erdemgc avatar erdemgc commented on August 18, 2024

I also have the same problem

from dfurtspplayer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.