【发布时间】:2019-11-13 20:48:41
【问题描述】:
我在使用 Wowza SDK MP4Writer 捕获视频流时遇到问题。这是the link 我在 iOS 中将录制流保存为 mp4 格式并上传到 S3 存储桶。当我尝试在 android 媒体播放器上播放保存的 mp4 视频流时,它的音频被静音。虽然相同的视频在 iOS 上可以正常播放(没有静音问题)。
我已经更改了 CMAudioFormatDescriptionRef 类,但没有成功。
(CMAudioFormatDescriptionRef) makeAudioFormatDescription {
CMAudioFormatDescriptionRef audioFormat = nil;
AudioStreamBasicDescription absd = {0};
absd.mSampleRate = [[AVAudioSession sharedInstance] sampleRate];
absd.mFormatID = kAudioFormatMPEG4AAC;
absd.mFormatFlags = kMPEG4Object_AAC_Main;
CMAudioFormatDescriptionCreate(NULL, &absd, 0, NULL, 0, NULL, NULL, &audioFormat);
return audioFormat;
}
视频应该在两个平台(iOS 和 Android)上都能正常播放。
【问题讨论】:
标签: android ios wowza video-recording wowza-transcoder