Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AVAssetReader status Failed after [AVAssetReader startReading] #72

Open
bullsseye opened this issue Sep 1, 2017 · 1 comment
Open

Comments

@bullsseye
Copy link

This error is occurring only on IOS version 10 (Also tested on ios version 9 and 11 where it is working fine ) for a 3GP video shared from Iphone gallery.

Following is the video and audio Settings dictionary that I am using:
VideoSettings:
@{AVVideoCodecKey: AVVideoCodecH264,
AVVideoWidthKey: @(fabs(dimensions.width)),
AVVideoHeightKey: @(fabs(dimensions.height)),
AVVideoCompressionPropertiesKey: @{AVVideoAverageBitRateKey: @(3000000),
AVVideoProfileLevelKey: AVVideoProfileLevelH264High40}}

AudioSettings:
{AVFormatIDKey: @(kAudioFormatMPEG4AAC),
AVNumberOfChannelsKey: 2,
AVSampleRateKey: 44100,
AVEncoderBitRateKey: 128000}

I have also tried passing nil in both audio and video settings but still not working. I tried passing nil because AVAssetReader startReading method validates audio and video settings, so I wanted to rule out the possibility of wrong audio and video settings.

@RogerWu1228
Copy link

Hi, Raman Gupta , I also get this bug, how do u fix it? thanks .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants