Video组件视频中音频Audio格式不为AAC时播放解码出错MEDIA_ERR_DECODE,在开发工具中、IOS下正常,Android下出错。
视频信息如下:
General
Complete name : C:/Users/wangq/Downloads/02_02_6505_00_06007ba7000000090205220826131649.mp4
Format : MPEG-4
Format profile : Base Media / Version 2
Codec ID : mp42 (mp42/isom)
File size : 1.31 MiB
Duration : 10 s 300 ms
Overall bit rate : 1 064 kb/s
Encoded date : UTC 2022-08-26 13:17:11
Tagged date : UTC 2022-08-26 13:17:30
Video
ID : 2
Format : AVC
Format/Info : Advanced Video Codec
Format profile : Baseline@L3
Format settings : 1 Ref Frames
Format settings, CABAC : No
Format settings, Reference frames : 1 frame
Format settings, GOP : M=1, N=25
Codec ID : avc1
Codec ID/Info : Advanced Video Coding
Duration : 10 s 281 ms
Duration_FirstFrame : -39 ms
Bit rate : 995 kb/s
Width : 704 pixels
Height : 576 pixels
Display aspect ratio : 1.222
Frame rate mode : Constant
Frame rate : 25.000 FPS
Standard : PAL
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Bits/(Pixel*Frame) : 0.098
Stream size : 1.22 MiB (94%)
Encoded date : UTC 2022-08-26 13:17:15
Tagged date : UTC 2022-08-26 13:17:30
Codec configuration box : avcC
Audio
ID : 1
Format : ADPCM
Format profile : A-Law
Codec ID : alaw
Duration : 10 s 300 ms
Bit rate mode : Constant
Bit rate : 64.0 kb/s
Stream size : 80.5 KiB (6%)
Encoded date : UTC 2022-08-26 13:17:11
Tagged date : UTC 2022-08-26 13:17:30
以上视频中音频Audio的格式为:ADPCM,转换为常用格式AAC之后,可以正常播放。