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

setUpAudioDecoder error #730

Open
walker2021wyze opened this issue Jul 3, 2023 · 6 comments
Open

setUpAudioDecoder error #730

walker2021wyze opened this issue Jul 3, 2023 · 6 comments

Comments

@walker2021wyze
Copy link

2023-07-03 14:29:02.721216+0800 CicadaDemo[67592:11492223] I/AliFrameWork [0.9] [ApsaraPlayerService] :preferAudio 0
2023-07-03 14:29:02.721481+0800 CicadaDemo[67592:11492223] I/AliFrameWork [0.9] [ApsaraPlayerService] :preferAudio 0
2023-07-03 14:29:05.999179+0800 CicadaDemo[67592:11492223] 0
2023-07-03 14:29:06.001160+0800 CicadaDemo[67592:11492223] I/AliFrameWork [0.9] [AFAudioSession] :setActive when app acitve is :1
Entity: line 36: parser error : Extra content at the end of the document

^
2023-07-03 14:29:07.105365+0800 CicadaDemo[67592:11494208] I/AliFrameWork [0.9] [] :[dash] get utc time in mpd failed, use default ntp server
2023-07-03 14:29:07.207751+0800 CicadaDemo[67592:11494208] I/AliFrameWork [0.9] [DashStream] :DashStream 0, setPreferAudio, 0
2023-07-03 14:29:07.213195+0800 CicadaDemo[67592:11492223] keyPath:width, value:1920, change:{
kind = 1;
new = 1920;
}
2023-07-03 14:29:07.213446+0800 CicadaDemo[67592:11492223] keyPath:height, value:1080, change:{
kind = 1;
new = 1080;
}
2023-07-03 14:29:08.563679+0800 CicadaDemo[67592:11494226] I/AliFrameWork [0.9] [DashStream] :file have 1 streams
2023-07-03 14:29:08.563939+0800 CicadaDemo[67592:11494226] W/AliFrameWork [0.9] [DashStream] :open stream index is 0
2023-07-03 14:29:09.264852+0800 CicadaDemo[67592:11494225] I/AliFrameWork [0.9] [DashStream] :file have 1 streams
2023-07-03 14:29:09.264944+0800 CicadaDemo[67592:11494225] W/AliFrameWork [0.9] [DashStream] :open stream index is 0
2023-07-03 14:29:09.265608+0800 CicadaDemo[67592:11494208] I/AliFrameWork [0.9] [ApsaraPlayerService] :mPtsDiscontinueDelta = 20000000
2023-07-03 14:29:09.265768+0800 CicadaDemo[67592:11494175] I/AliFrameWork [0.9] [AbrBufferAlgoStrategy] :BA already change to bitrate:2170497
2023-07-03 14:29:09.267434+0800 CicadaDemo[67592:11494208] E/AliFrameWork [0.9] [SMPAVDeviceManager] :config decoder error ret= -513
2023-07-03 14:29:09.267487+0800 CicadaDemo[67592:11494208] E/AliFrameWork [0.9] [ApsaraPlayerService] :setUpAudioDecoder error -514
2023-07-03 14:29:09.267522+0800 CicadaDemo[67592:11494208] E/AliFrameWork [0.9] [ApsaraPlayerService] :setUpAVPath SetUpAudioPath failed,url is https://b-9239d1ff.kinesisvideo.us-west-2.amazonaws.com/dash/v1/getDASHManifest.mpd?SessionToken=CiB-H43YfMXdMEPP1ogZUMQGh-hw3HXvDwJiWOoQiGTCgRIQxcC6pKRzeWMAbcLhVeOr6BoZWR_QSvP1R74uoLdFgTmJYjnLTw5nFh3FSyIglKLe1hThwSlEy76UBHUgEPtgcIkp_zCBHryDWP-fFBA~ video decoder open error
2023-07-03 14:29:09.267547+0800 CicadaDemo[67592:11494208] W/AliFrameWork [0.9] [ApsaraPlayerService] :close audio stream
2023-07-03 14:29:09.278381+0800 CicadaDemo[67592:11494208] I/AliFrameWork [0.9] [CurlDataSource] :CurlDataSource
2023-07-03 14:29:09.278430+0800 CicadaDemo[67592:11494208] I/AliFrameWork [0.9] [CurlDataSource] :
!CurlDataSource
2023-07-03 14:29:09.279914+0800 CicadaDemo[67592:11494208] I/AliFrameWork [0.9] [avcodecDecoder] :set decoder thread as :7

@walker2021wyze
Copy link
Author

image

@pingkai
Copy link
Collaborator

pingkai commented Jul 25, 2023

看看你这个流的audio 的codec 是什么,估计默认没有支持这个codec

@walker2021wyze
Copy link
Author

确实我发现了 我们的音频在 这个播放器不支持,所以没有声音, 我能自己加上 音频解码吗

@walker2021wyze
Copy link
Author

如果能自己写音频解码,能麻烦给下 添加代码的位置吗?

@pingkai
Copy link
Collaborator

pingkai commented Feb 3, 2024

把把ffmpeg里面相应的decoder打开,然后可能再添加一个枚举值估计就可以了,如果有问题,可能需要针对这个codec的特性做一点处理就好了

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