我在学习 5-10 抽取音频数据 这章节,播放 结果音频文件报了一个问题,aac 无法播放

来源:5-

请叫我文少

2019-01-28

以下 是 终端报错信息

[aac @ 0x7ff3ee000000] Estimating duration from bitrate, this may be inaccurate
Input #0, aac, from ‘test_audio2.aac’:
Duration: 00:00:21.70, bitrate: 146 kb/s
Stream #0:0: Audio: aac (LC), 22050 Hz, stereo, fltp, 146 kb/s
[aac @ 0x7ff3e802ea00] Number of bands (18) exceeds limit (14).
[aac @ 0x7ff3e802ea00] Number of bands (17) exceeds limit (14).
Last message repeated 2 times
[aac @ 0x7ff3e802ea00] Number of bands (15) exceeds limit (14).
[aac @ 0x7ff3e802ea00] Number of bands (17) exceeds limit (14).
[aac @ 0x7ff3e802ea00] Number of scalefactor bands in group (49) exceeds limit (47).
Last message repeated 2 times
[aac @ 0x7ff3e802ea00] Number of bands (15) exceeds limit (14).
[aac @ 0x7ff3e802ea00] invalid band type
Last message repeated 2 times
[aac @ 0x7ff3e802ea00] Number of bands (16) exceeds limit (14).
[aac @ 0x7ff3e802ea00] Number of bands (15) exceeds limit (14).
[aac @ 0x7ff3e802ea00] invalid band type
[aac @ 0x7ff3e802ea00] Number of bands (15) exceeds limit (14).
[aac @ 0x7ff3e802ea00] invalid band type
[aac @ 0x7ff3e802ea00] Number of bands (16) exceeds limit (14).
[aac @ 0x7ff3e802ea00] Number of scalefactor bands in group (49) exceeds limit (47).
Last message repeated 4 times
[aac @ 0x7ff3e802ea00] Number of bands (47) exceeds limit (40).
[aac @ 0x7ff3e802ea00] Number of bands (68) exceeds limit (40).
[aac @ 0x7ff3e802ea00] Number of bands (42) exceeds limit (40).
[aac @ 0x7ff3e802ea00] Number of bands (61) exceeds limit (40).
[aac @ 0x7ff3e802ea00] Scalefactor (-5) out of range.
[aac @ 0x7ff3e802ea00] Number of bands (58) exceeds limit (40).
[aac @ 0x7ff3e802ea00] Number of bands (61) exceeds limit (40).
[aac @ 0x7ff3e802ea00] Number of bands (44) exceeds limit (40).
[aac @ 0x7ff3e802ea00] Number of bands (50) exceeds limit (40).
[aac @ 0x7ff3e802ea00] Number of bands (60) exceeds limit (40).
[aac @ 0x7ff3e802ea00] invalid band type
[aac @ 0x7ff3e802ea00] Number of bands (44) exceeds limit (40).
[aac @ 0x7ff3e802ea00] invalid band type
[aac @ 0x7ff3e802ea00] Number of bands (44) exceeds limit (40).
[aac @ 0x7ff3e802ea00] Number of bands (45) exceeds limit (40).
[aac @ 0x7ff3e802ea00] Number of bands (64) exceeds limit (40).
[aac @ 0x7ff3e802ea00] Number of bands (57) exceeds limit (40).
[aac @ 0x7ff3e802ea00] Number of bands (60) exceeds limit (39).
[aac @ 0x7ff3e802ea00] Number of bands (48) exceeds limit (40).
[aac @ 0x7ff3e802ea00] channel element 0.0 is not allocated
[aac @ 0x7ff3e802ea00] Number of bands (59) exceeds limit (40).
[aac @ 0x7ff3e802ea00] Number of bands (44) exceeds limit (40).
[aac @ 0x7ff3e802ea00] Number of bands (47) exceeds limit (40).
[aac @ 0x7ff3e802ea00] invalid band type
[aac @ 0x7ff3e802ea00] Number of bands (43) exceeds limit (40).
[aac @ 0x7ff3e802ea00] If you heard an audible artifact, there may be a bug in the decoder. Clipped noise gain (307 -> 155) is not implemented. Update your FFmpeg version to the newest one from Git. If the problem still occurs, it means that your file has a feature which has not been implemented.
[aac @ 0x7ff3e802ea00] If you want to help, upload a sample of this file to ftp://upload.ffmpeg.org/incoming/ and contact the ffmpeg-devel mailing list. (ffmpeg-devel@ffmpeg.org)
[aac @ 0x7ff3e802ea00] If you heard an audible artifact, there may be a bug in the decoder. Clipped noise gain (307 -> 155) is not implemented. Update your FFmpeg version to the newest one from Git. If the problem still occurs, it means that your file has a feature which has not been implemented.
[aac @ 0x7ff3e802ea00] If you want to help, upload a sample of this file to ftp://upload.ffmpeg.org/incoming/ and contact the ffmpeg-devel mailing list. (ffmpeg-devel@ffmpeg.org)
[aac @ 0x7ff3e802ea00] If you heard an audible artifact, there may be a bug in the decoder. Clipped noise gain (308 -> 155) is not implemented. Update your FFmpeg version to the newest one from Git. If the problem still occurs, it means that your file has a feature which has not been implemented.
[aac @ 0x7ff3e802ea00] If you want to help, upload a sample of this file to ftp://upload.ffmpeg.org/incoming/ and contact the ffmpeg-devel mailing list. (ffmpeg-devel@ffmpeg.org)
[aac @ 0x7ff3e802ea00] If you heard an audible artifact, there may be a bug in the decoder. Clipped noise gain (308 -> 155) is not implemented. Update your FFmpeg version to the newest one from Git. If the problem still occurs, it means that your file has a feature which has not been implemented.
[aac @ 0x7ff3e802ea00] If you want to help, upload a sample of this file to ftp://upload.ffmpeg.org/incoming/ and contact the ffmpeg-devel mailing list. (ffmpeg-devel@ffmpeg.org)
[aac @ 0x7ff3e802ea00] If you heard an audible artifact, there may be a bug in the decoder. Clipped noise gain (314 -> 155) is not implemented. Update your FFmpeg version to the newest one from Git. If the problem still occurs, it means that your file has a feature which has not been implemented.
[aac @ 0x7ff3e802ea00] If you want to help, upload a sample of this file to ftp://upload.ffmpeg.org/incoming/ and contact the ffmpeg-devel mailing list. (ffmpeg-devel@ffmpeg.org)
[aac @ 0x7ff3e802ea00] If you heard an audible artifact, there may be a bug in the decoder. Clipped noise gain (313 -> 155) is not implemented. Update your FFmpeg version to the newest one from Git. If the problem still occurs, it means that your file has a feature which has not been implemented.
[aac @ 0x7ff3e802ea00] If you want to help, upload a sample of this file to ftp://upload.ffmpeg.org/incoming/ and contact the ffmpeg-devel mailing list. (ffmpeg-devel@ffmpeg.org)
[aac @ 0x7ff3e802ea00] If you heard an audible artifact, there may be a bug in the decoder. Clipped noise gain (313 -> 155) is not implemented. Update your FFmpeg version to the newest one from Git. If the problem still occurs, it means that your file has a feature which has not been implemented.
[aac @ 0x7ff3e802ea00] If you want to help, upload a sample of this file to ftp://upload.ffmpeg.org/incoming/ and contact the ffmpeg-devel mailing list. (ffmpeg-devel@ffmpeg.org)
[aac @ 0x7ff3e802ea00] If you heard an audible artifact, there may be a bug in the decoder. Clipped noise gain (313 -> 155) is not implemented. Update your FFmpeg version to the newest one from Git. If the problem still occurs, it means that your file has a feature which has not been implemented.
[aac @ 0x7ff3e802ea00] If you want to help, upload a sample of this file to ftp://upload.ffmpeg.org/incoming/ and contact the ffmpeg-devel mailing list. (ffmpeg-devel@ffmpeg.org)
[aac @ 0x7ff3e802ea00] If you heard an audible artifact, there may be a bug in the decoder. Clipped noise gain (315 -> 155) is not implemented. Update your FFmpeg version to the newest one from Git. If the problem still occurs, it means that your file has a feature which has not been implemented.
[aac @ 0x7ff3e802ea00] If you want to help, upload a sample of this file to ftp://upload.ffmpeg.org/incoming/ and contact the ffmpeg-devel mailing list. (ffmpeg-devel@ffmpeg.org)
[aac @ 0x7ff3e802ea00] If you heard an audible artifact, there may be a bug in the decoder. Clipped noise gain (314 -> 155) is not implemented. Update your FFmpeg version to the newest one from Git. If the problem still occurs, it means that your file has a feature which has not been implemented.
[aac @ 0x7ff3e802ea00] If you want to help, upload a sample of this file to ftp://upload.ffmpeg.org/incoming/ and contact the ffmpeg-devel mailing list. (ffmpeg-devel@ffmpeg.org)
[aac @ 0x7ff3e802ea00] If you heard an audible artifact, there may be a bug in the decoder. Clipped noise gain (314 -> 155) is not implemented. Update your FFmpeg version to the newest one from Git. If the problem still occurs, it means that your file has a feature which has not been implemented.
[aac @ 0x7ff3e802ea00] If you want to help, upload a sample of this file to ftp://upload.ffmpeg.org/incoming/ and contact the ffmpeg-devel mailing list. (ffmpeg-devel@ffmpeg.org)
[aac @ 0x7ff3e802ea00] If you heard an audible artifact, there may be a bug in the decoder. Clipped noise gain (313 -> 155) is not implemented. Update your FFmpeg version to the newest one from Git. If the problem still occurs, it means that your file has a feature which has not been implemented.
[aac @ 0x7ff3e802ea00] If you want to help, upload a sample of this file to ftp://upload.ffmpeg.org/incoming/ and contact the ffmpeg-devel mailing list. (ffmpeg-devel@ffmpeg.org)
[aac @ 0x7ff3e802ea00] TNS filter order 31 is greater than maximum 12.
[aac @ 0x7ff3e802ea00] invalid band type
[aac @ 0x7ff3e802ea00] Number of bands (62) exceeds limit (39).
[aac @ 0x7ff3e802ea00] Gain control is not implemented. Update your FFmpeg version to the newest one from Git. If the problem still occurs, it means that your file has a feature which has not been implemented.
[aac @ 0x7ff3e802ea00] channel element 0.0 is not allocated
[aac @ 0x7ff3e802ea00] Number of bands (58) exceeds limit (40).
Last message repeated 1 times
[aac @ 0x7ff3e802ea00] Number of bands (48) exceeds limit (39).
[aac @ 0x7ff3e802ea00] Number of bands (61) exceeds limit (39).
[aac @ 0x7ff3e802ea00] Number of bands (52) exceeds limit (39).
[aac @ 0x7ff3e802ea00] Number of bands (65) exceeds limit (40).
[aac @ 0x7ff3e802ea00] Number of bands (52) exceeds limit (40).
[aac @ 0x7ff3e802ea00] invalid band type
Last message repeated 1 times
[aac @ 0x7ff3e802ea00] TNS filter order 30 is greater than maximum 12.
[aac @ 0x7ff3e802ea00] Number of bands (57) exceeds limit (39).
[aac @ 0x7ff3e802ea00] Number of bands (46) exceeds limit (40).
[aac @ 0x7ff3e802ea00] Number of bands (48) exceeds limit (40).
[aac @ 0x7ff3e802ea00] Number of bands (42) exceeds limit (40).
[aac @ 0x7ff3e802ea00] Number of bands (58) exceeds limit (40).
[aac @ 0x7ff3e802ea00] channel element 0.0 is not allocated
[aac @ 0x7ff3e802ea00] Number of bands (19) exceeds limit (14).
[aac @ 0x7ff3e802ea00] Number of scalefactor bands in group (49) exceeds limit (47).
Last message repeated 4 times
[aac @ 0x7ff3e802ea00] invalid band type
[aac @ 0x7ff3e802ea00] TNS filter order 15 is greater than maximum 12.
[aac @ 0x7ff3e802ea00] Number of scalefactor bands in group (49) exceeds limit (47).
Last message repeated 5 times
[aac @ 0x7ff3e802ea00] Number of bands (17) exceeds limit (14).
Last message repeated 1 times
[aac @ 0x7ff3e802ea00] Number of scalefactor bands in group (49) exceeds limit (47).
[aac @ 0x7ff3e802ea00] Number of bands (45) exceeds limit (40).
[aac @ 0x7ff3e802ea00] Number of scalefactor bands in group (49) exceeds limit (47).
Last message repeated 4 times
[aac @ 0x7ff3e802ea00] Number of scalefactor bands in group (48) exceeds limit (47).
[aac @ 0x7ff3e802ea00] Number of bands (50) exceeds limit (40).
[aac @ 0x7ff3e802ea00] Number of scalefactor bands in group (49) exceeds limit (47).
[aac @ 0x7ff3e802ea00] Number of bands (41) exceeds limit (40).
Last message repeated 1 times
[aac @ 0x7ff3e802ea00] Number of bands (43) exceeds limit (40).
[aac @ 0x7ff3e802ea00] Number of bands (46) exceeds limit (40).
[aac @ 0x7ff3e802ea00] Number of bands (68) exceeds limit (40).
[aac @ 0x7ff3e802ea00] Number of bands (42) exceeds limit (40).
[aac @ 0x7ff3e802ea00] invalid band type
[aac @ 0x7ff3e802ea00] Number of bands (55) exceeds limit (40).
[aac @ 0x7ff3e802ea00] Number of scalefactor bands in group (49) exceeds limit (47).
Last message repeated 1 times
[aac @ 0x7ff3e802ea00] Number of bands (17) exceeds limit (14).
[aac @ 0x7ff3e802ea00] Number of bands (18) exceeds limit (14).
[aac @ 0x7ff3e802ea00] Number of scalefactor bands in group (49) exceeds limit (47).
Last message repeated 5 times
[aac @ 0x7ff3e802ea00] Number of bands (16) exceeds limit (14).
[aac @ 0x7ff3e802ea00] Number of scalefactor bands in group (49) exceeds limit (47).
Last message repeated 3 times
[aac @ 0x7ff3e802ea00] Number of bands (19) exceeds limit (14).
[aac @ 0x7ff3e802ea00] Number of bands (15) exceeds limit (14).
[aac @ 0x7ff3e802ea00] invalid band type
[aac @ 0x7ff3e802ea00] Number of bands (15) exceeds limit (14).
[aac @ 0x7ff3e802ea00] Number of bands (17) exceeds limit (14).
[aac @ 0x7ff3e802ea00] Number of bands (15) exceeds limit (14).
[aac @ 0x7ff3e802ea00] Number of bands (16) exceeds limit (14).
[aac @ 0x7ff3e802ea00] Number of bands (15) exceeds limit (14).
[aac @ 0x7ff3e802ea00] invalid band type
[aac @ 0x7ff3e802ea00] Number of bands (16) exceeds limit (14).
[aac @ 0x7ff3e802ea00] error in spectral data, ESC overflow
[aac @ 0x7ff3e802ea00] Number of scalefactor bands in group (49) exceeds limit (47).
Last message repeated 7 times
[aac @ 0x7ff3e802ea00] Number of scalefactor bands in group (48) exceeds limit (47).
[aac @ 0x7ff3e802ea00] Number of bands (53) exceeds limit (40).
[aac @ 0x7ff3e802ea00] invalid band type
[aac @ 0x7ff3e802ea00] Number of bands (57) exceeds limit (40).
[aac @ 0x7ff3e802ea00] Number of bands (55) exceeds limit (40).
[aac @ 0x7ff3e802ea00] invalid band type
[aac @ 0x7ff3e802ea00] Number of bands (43) exceeds limit (40).
[aac @ 0x7ff3e802ea00] Number of bands (48) exceeds limit (40).
Last message repeated 1 times
[aac @ 0x7ff3e802ea00] Number of bands (42) exceeds limit (40).
[aac @ 0x7ff3e802ea00] Number of bands (43) exceeds limit (40).
[aac @ 0x7ff3e802ea00] Number of scalefactor bands in group (49) exceeds limit (47).
[aac @ 0x7ff3e802ea00] Number of bands (15) exceeds limit (14).
[aac @ 0x7ff3e802ea00] invalid band type
[aac @ 0x7ff3e802ea00] Number of bands (20) exceeds limit (14).
[aac @ 0x7ff3e802ea00] Number of scalefactor bands in group (49) exceeds limit (47).
Last message repeated 5 times
[aac @ 0x7ff3e802ea00] invalid band type
[aac @ 0x7ff3e802ea00] Number of scalefactor bands in group (49) exceeds limit (47).
Last message repeated 3 times
[aac @ 0x7ff3e802ea00] Number of bands (51) exceeds limit (40).
[aac @ 0x7ff3e802ea00] Number of scalefactor bands in group (49) exceeds limit (47).
[aac @ 0x7ff3e802ea00] invalid band type
[aac @ 0x7ff3e802ea00] Number of bands (16) exceeds limit (14).
Last message repeated 1 times
[aac @ 0x7ff3e802ea00] Number of bands (15) exceeds limit (14).
[aac @ 0x7ff3e802ea00] Number of bands (18) exceeds limit (14).
[aac @ 0x7ff3e802ea00] invalid band type
[aac @ 0x7ff3e802ea00] Number of bands (17) exceeds limit (14).
[aac @ 0x7ff3e802ea00] Number of bands (19) exceeds limit (14).
[aac @ 0x7ff3e802ea00] Number of bands (16) exceeds limit (14).
[aac @ 0x7ff3e802ea00] Number of scalefactor bands in group (49) exceeds limit (47).
Last message repeated 4 times
[aac @ 0x7ff3e802ea00] Number of bands (17) exceeds limit (14).
[aac @ 0x7ff3e802ea00] Number of scalefactor bands in group (49) exceeds limit (47).
Last message repeated 2 times
[aac @ 0x7ff3e802ea00] Number of bands (68) exceeds limit (40).
[aac @ 0x7ff3e802ea00] Number of bands (49) exceeds limit (40).
[aac @ 0x7ff3e802ea00] Number of bands (46) exceeds limit (40).
[aac @ 0x7ff3e802ea00] Number of bands (57) exceeds limit (40).
[aac @ 0x7ff3e802ea00] Number of bands (51) exceeds limit (39).
[aac @ 0x7ff3e802ea00] Number of bands (61) exceeds limit (40).
[aac @ 0x7ff3e802ea00] Number of bands (44) exceeds limit (40).
[aac @ 0x7ff3e802ea00] Pulse data corrupt or invalid.
[aac @ 0x7ff3e802ea00] Number of bands (41) exceeds limit (40).
[aac @ 0x7ff3e802ea00] Number of scalefactor bands in group (49) exceeds limit (47).
Last message repeated 1 times
[aac @ 0x7ff3e802ea00] Number of bands (56) exceeds limit (40).
[aac @ 0x7ff3e802ea00] Number of bands (15) exceeds limit (14).
[aac @ 0x7ff3e802ea00] Number of scalefactor bands in group (49) exceeds limit (47).
Last message repeated 2 times
[aac @ 0x7ff3e802ea00] invalid band type
[aac @ 0x7ff3e802ea00] Number of bands (16) exceeds limit (14).
[aac @ 0x7ff3e802ea00] invalid band type
Last message repeated 2 times
[aac @ 0x7ff3e802ea00] Number of scalefactor bands in group (49) exceeds limit (47).
Last message repeated 2 times
[aac @ 0x7ff3e802ea00] Number of bands (16) exceeds limit (14).
[aac @ 0x7ff3e802ea00] Number of scalefactor bands in group (49) exceeds limit (47).
Last message repeated 1 times
[aac @ 0x7ff3e802ea00] Number of bands (17) exceeds limit (14).
Last message repeated 1 times
[aac @ 0x7ff3e802ea00] Number of bands (19) exceeds limit (14).
[aac @ 0x7ff3e802ea00] Number of bands (18) exceeds limit (14).
Last message repeated 1 times
[aac @ 0x7ff3e802ea00] Number of bands (16) exceeds limit (14).
[aac @ 0x7ff3e802ea00] invalid band type
[aac @ 0x7ff3e802ea00] Number of bands (15) exceeds limit (14).
[aac @ 0x7ff3e802ea00] Number of bands (18) exceeds limit (14).
[aac @ 0x7ff3e802ea00] Number of scalefactor bands in group (49) exceeds limit (47).
Last message repeated 2 times
[aac @ 0x7ff3e802ea00] Number of bands (19) exceeds limit (14).
[aac @ 0x7ff3e802ea00] invalid band type
[aac @ 0x7ff3e802ea00] Number of bands (15) exceeds limit (14).
[aac @ 0x7ff3e802ea00] Number of scalefactor bands in group (49) exceeds limit (47).
[aac @ 0x7ff3e802ea00] invalid band type
Last message repeated 1 times
[aac @ 0x7ff3e802ea00] Number of scalefactor bands in group (48) exceeds limit (47).
[aac @ 0x7ff3e802ea00] Number of bands (52) exceeds limit (40).
[aac @ 0x7ff3e802ea00] TNS filter order 31 is greater than maximum 12.
[aac @ 0x7ff3e802ea00] Number of bands (43) exceeds limit (40).
[aac @ 0x7ff3e802ea00] Number of bands (56) exceeds limit (40).
[aac @ 0x7ff3e802ea00] Number of bands (49) exceeds limit (40).
[aac @ 0x7ff3e802ea00] Scalefactor (-2) out of range.
[aac @ 0x7ff3e802ea00] Number of bands (44) exceeds limit (40).
[aac @ 0x7ff3e802ea00] invalid band type
[aac @ 0x7ff3e802ea00] Number of scalefactor bands in group (49) exceeds limit (47).
Last message repeated 2 times
[aac @ 0x7ff3e802ea00] Number of bands (16) exceeds limit (14).
[aac @ 0x7ff3e802ea00] Number of scalefactor bands in group (49) exceeds limit (47).
Last message repeated 2 times
[aac @ 0x7ff3e802ea00] Number of bands (18) exceeds limit (14).
[aac @ 0x7ff3e802ea00] Number of bands (16) exceeds limit (14).
[aac @ 0x7ff3e802ea00] Number of bands (15) exceeds limit (14).
[aac @ 0x7ff3e802ea00] invalid band type
[aac @ 0x7ff3e802ea00] Number of scalefactor bands in group (49) exceeds limit (47).
Last message repeated 4 times
[aac @ 0x7ff3e802ea00] Number of bands (15) exceeds limit (14).
[aac @ 0x7ff3e802ea00] Number of bands (16) exceeds limit (14).
[aac @ 0x7ff3e802ea00] Number of bands (18) exceeds limit (14).
[aac @ 0x7ff3e802ea00] Number of bands (16) exceeds limit (14).
[aac @ 0x7ff3e802ea00] Number of bands (19) exceeds limit (14).
Last message repeated 1 times
[aac @ 0x7ff3e802ea00] invalid band type
[aac @ 0x7ff3e802ea00] Number of bands (16) exceeds limit (14).
[aac @ 0x7ff3e802ea00] invalid band type
Last message repeated 1 times
[aac @ 0x7ff3e802ea00] Number of bands (46) exceeds limit (40).
[aac @ 0x7ff3e802ea00] Number of scalefactor bands in group (49) exceeds limit (47).
Last message repeated 3 times
[aac @ 0x7ff3e802ea00] Number of bands (15) exceeds limit (14).
[aac @ 0x7ff3e802ea00] Number of scalefactor bands in group (49) exceeds limit (47).
Last message repeated 1 times
[aac @ 0x7ff3e802ea00] Number of scalefactor bands in group (48) exceeds limit (47).
[aac @ 0x7ff3e802ea00] Number of bands (51) exceeds limit (40).
[aac @ 0x7ff3e802ea00] Number of scalefactor bands in group (49) exceeds limit (47).
[aac @ 0x7ff3e802ea00] Number of bands (61) exceeds limit (39).
[aac @ 0x7ff3e802ea00] Number of bands (41) exceeds limit (39).
[aac @ 0x7ff3e802ea00] Number of bands (56) exceeds limit (39).
[aac @ 0x7ff3e802ea00] invalid band type
[aac @ 0x7ff3e802ea00] Number of bands (50) exceeds limit (40).
[aac @ 0x7ff3e802ea00] Number of bands (51) exceeds limit (40).
[aac @ 0x7ff3e802ea00] Number of bands (49) exceeds limit (40).
[aac @ 0x7ff3e802ea00] Number of bands (59) exceeds limit (40).
[aac @ 0x7ff3e802ea00] Number of scalefactor bands in group (49) exceeds limit (47).
Last message repeated 1 times
[aac @ 0x7ff3e802ea00] Number of bands (18) exceeds limit (14).
[aac @ 0x7ff3e802ea00] Number of bands (19) exceeds limit (14).
[aac @ 0x7ff3e802ea00] Number of scalefactor bands in group (49) exceeds limit (47).
Last message repeated 5 times
[aac @ 0x7ff3e802ea00] Number of bands (18) exceeds limit (14).
[aac @ 0x7ff3e802ea00] Number of scalefactor bands in group (49) exceeds limit (47).
Last message repeated 4 times
[aac @ 0x7ff3e802ea00] Number of bands (16) exceeds limit (14).
[aac @ 0x7ff3e802ea00] Number of bands (17) exceeds limit (14).
[aac @ 0x7ff3e802ea00] Number of bands (16) exceeds limit (14).
[aac @ 0x7ff3e802ea00] invalid band type
[aac @ 0x7ff3e802ea00] Number of bands (20) exceeds limit (14).
[aac @ 0x7ff3e802ea00] Number of bands (15) exceeds limit (14).
[aac @ 0x7ff3e802ea00] invalid band type
[aac @ 0x7ff3e802ea00] Number of bands (16) exceeds limit (14).
[aac @ 0x7ff3e802ea00] Number of bands (15) exceeds limit (14).
[aac @ 0x7ff3e802ea00] Number of bands (20) exceeds limit (14).
[aac @ 0x7ff3e802ea00] Number of scalefactor bands in group (49) exceeds limit (47).
Last message repeated 6 times
[aac @ 0x7ff3e802ea00] Number of scalefactor bands in group (48) exceeds limit (47).
Last message repeated 1 times
[aac @ 0x7ff3e802ea00] Number of bands (49) exceeds limit (40).
[aac @ 0x7ff3e802ea00] invalid band type
Last message repeated 1 times
[aac @ 0x7ff3e802ea00] Number of bands (45) exceeds limit (40).
[aac @ 0x7ff3e802ea00] Number of bands (43) exceeds limit (40).
[aac @ 0x7ff3e802ea00] Number of bands (52) exceeds limit (40).
[aac @ 0x7ff3e802ea00] If you heard an audible artifact, there may be a bug in the decoder. Clipped noise gain (-308 -> -100) is not implemented. Update your FFmpeg version to the newest one from Git. If the problem still occurs, it means that your file has a feature which has not been implemented.
[aac @ 0x7ff3e802ea00] If you want to help, upload a sample of this file to ftp://upload.ffmpeg.org/incoming/ and contact the ffmpeg-devel mailing list. (ffmpeg-devel@ffmpeg.org)
[aac @ 0x7ff3e802ea00] If you heard an audible artifact, there may be a bug in the decoder. Clipped noise gain (-311 -> -100) is not implemented. Update your FFmpeg version to the newest one from Git. If the problem still occurs, it means that your file has a feature which has not been implemented.
[aac @ 0x7ff3e802ea00] If you want to help, upload a sample of this file to ftp://upload.ffmpeg.org/incoming/ and contact the ffmpeg-devel mailing list. (ffmpeg-devel@ffmpeg.org)
[aac @ 0x7ff3e802ea00] If you heard an audible artifact, there may be a bug in the decoder. Clipped noise gain (-312 -> -100) is not implemented. Update your FFmpeg version to the newest one from Git. If the problem still occurs, it means that your file has a feature which has not been implemented.
[aac @ 0x7ff3e802ea00] If you want to help, upload a sample of this file to ftp://upload.ffmpeg.org/incoming/ and contact the ffmpeg-devel mailing list. (ffmpeg-devel@ffmpeg.org)
[aac @ 0x7ff3e802ea00] If you heard an audible artifact, there may be a bug in the decoder. Clipped noise gain (-310 -> -100) is not implemented. Update your FFmpeg version to the newest one from Git. If the problem still occurs, it means that your file has a feature which has not been implemented.
[aac @ 0x7ff3e802ea00] If you want to help, upload a sample of this file to ftp://upload.ffmpeg.org/incoming/ and contact the ffmpeg-devel mailing list. (ffmpeg-devel@ffmpeg.org)
[aac @ 0x7ff3e802ea00] If you heard an audible artifact, there may be a bug in the decoder. Clipped noise gain (-310 -> -100) is not implemented. Update your FFmpeg version to the newest one from Git. If the problem still occurs, it means that your file has a feature which has not been implemented.
[aac @ 0x7ff3e802ea00] If you want to help, upload a sample of this file to ftp://upload.ffmpeg.org/incoming/ and contact the ffmpeg-devel mailing list. (ffmpeg-devel@ffmpeg.org)
[aac @ 0x7ff3e802ea00] TNS filter order 13 is greater than maximum 12.
[aac @ 0x7ff3e802ea00] Number of bands (63) exceeds limit (40).
[aac @ 0x7ff3e802ea00] Number of bands (51) exceeds limit (40).
Last message repeated 1 times
[aac @ 0x7ff3e802ea00] Number of scalefactor bands in group (49) exceeds limit (47).
Last message repeated 1 times
[aac @ 0x7ff3e802ea00] Number of bands (18) exceeds limit (14).
[aac @ 0x7ff3e802ea00] Number of scalefactor bands in group (49) exceeds limit (47).
Last message repeated 8 times
[aac @ 0x7ff3e802ea00] Number of bands (61) exceeds limit (40).
[aac @ 0x7ff3e802ea00] Number of scalefactor bands in group (49) exceeds limit (47).
Last message repeated 1 times
[aac @ 0x7ff3e802ea00] Number of bands (15) exceeds limit (14).
[aac @ 0x7ff3e802ea00] invalid band type
[aac @ 0x7ff3e802ea00] Number of bands (20) exceeds limit (14).
[aac @ 0x7ff3e802ea00] Number of scalefactor bands in group (49) exceeds limit (47).
[aac @ 0x7ff3e802ea00] Number of bands (58) exceeds limit (40).
[aac @ 0x7ff3e802ea00] Number of bands (15) exceeds limit (14).
Last message repeated 4 times
[aac @ 0x7ff3e802ea00] Number of scalefactor bands in group (49) exceeds limit (47).
Last message repeated 3 times
[aac @ 0x7ff3e802ea00] Number of bands (17) exceeds limit (14).
[aac @ 0x7ff3e802ea00] Number of bands (21) exceeds limit (14).
[aac @ 0x7ff3e802ea00] Number of bands (18) exceeds limit (14).
[aac @ 0x7ff3e802ea00] Number of scalefactor bands in group (49) exceeds limit (47).
[aac @ 0x7ff3e802ea00] invalid band type
Last message repeated 1 times
[aac @ 0x7ff3e802ea00] Number of scalefactor bands in group (49) exceeds limit (47).
[aac @ 0x7ff3e802ea00] Number of bands (58) exceeds limit (46).
[aac @ 0x7ff3e802ea00] invalid band type
[aac @ 0x7ff3e802ea00] Number of bands (44) exceeds limit (40).
[aac @ 0x7ff3e802ea00] Number of bands (51) exceeds limit (39).
[aac @ 0x7ff3e802ea00] Number of bands (47) exceeds limit (40).
[aac @ 0x7ff3e802ea00] invalid band type
[aac @ 0x7ff3e802ea00] Number of bands (49) exceeds limit (40).
[aac @ 0x7ff3e802ea00] Number of bands (43) exceeds limit (40).
[aac @ 0x7ff3e802ea00] Number of scalefactor bands in group (49) exceeds limit (47).
Last message repeated 1 times
[aac @ 0x7ff3e802ea00] invalid band type
[aac @ 0x7ff3e802ea00] Number of scalefactor bands in group (49) exceeds limit (47).
Last message repeated 4 times
[aac @ 0x7ff3e802ea00] Number of bands (15) exceeds limit (14).
[aac @ 0x7ff3e802ea00] invalid band type
[aac @ 0x7ff3e802ea00] Number of bands (17) exceeds limit (14).
[aac @ 0x7ff3e802ea00] Number of scalefactor bands in group (49) exceeds limit (47).
Last message repeated 2 times
[aac @ 0x7ff3e802ea00] invalid band type
[aac @ 0x7ff3e802ea00] Number of scalefactor bands in group (49) exceeds limit (47).
Last message repeated 3 times
[aac @ 0x7ff3e802ea00] Number of bands (42) exceeds limit (40).
[aac @ 0x7ff3e802ea00] Number of bands (60) exceeds limit (39).
[aac @ 0x7ff3e802ea00] Number of bands (51) exceeds limit (39).
[aac @ 0x7ff3e802ea00] Number of bands (52) exceeds limit (38).
[aac @ 0x7ff3e802ea00] Number of bands (46) exceeds limit (39).
[aac @ 0x7ff3e802ea00] invalid band type
Last message repeated 1 times
[aac @ 0x7ff3e802ea00] Number of scalefactor bands in group (49) exceeds limit (47).
[aac @ 0x7ff3e802ea00] Number of bands (51) exceeds limit (39).
[aac @ 0x7ff3e802ea00] Number of bands (53) exceeds limit (39).
[aac @ 0x7ff3e802ea00] Number of bands (44) exceeds limit (39).
[aac @ 0x7ff3e802ea00] TNS filter order 28 is greater than maximum 12.
[aac @ 0x7ff3e802ea00] Number of scalefactor bands in group (49) exceeds limit (47).
Last message repeated 2 times
[aac @ 0x7ff3e802ea00] Number of scalefactor bands in group (48) exceeds limit (47).
[aac @ 0x7ff3e802ea00] Number of bands (69) exceeds limit (40).
[aac @ 0x7ff3e802ea00] invalid band type
Last message repeated 1 times
[aac @ 0x7ff3e802ea00] Number of bands (45) exceeds limit (39).
[aac @ 0x7ff3e802ea00] Number of bands (58) exceeds limit (39).
[aac @ 0x7ff3e802ea00] Number of scalefactor bands in group (49) exceeds limit (47).
[aac @ 0x7ff3e802ea00] Number of bands (45) exceeds limit (39).
[aac @ 0x7ff3e802ea00] channel element 0.0 is not allocated
[aac @ 0x7ff3e802ea00] Number of bands (46) exceeds limit (39).
[aac @ 0x7ff3e802ea00] invalid band type
[aac @ 0x7ff3e802ea00] Number of bands (50) exceeds limit (39).
[aac @ 0x7ff3e802ea00] invalid band type
[aac @ 0x7ff3e802ea00] Number of scalefactor bands in group (49) exceeds limit (47).
[aac @ 0x7ff3e802ea00] Number of bands (51) exceeds limit (40).
[aac @ 0x7ff3e802ea00] Number of bands (52) exceeds limit (40).
[aac @ 0x7ff3e802ea00] Number of bands (53) exceeds limit (40).
[aac @ 0x7ff3e802ea00] channel element 1.6 is not allocated
[aac @ 0x7ff3e802ea00] channel element 0.0 is not allocated
[aac @ 0x7ff3e802ea00] Number of bands (47) exceeds limit (39).
[aac @ 0x7ff3e802ea00] Number of bands (61) exceeds limit (40).
[aac @ 0x7ff3e802ea00] invalid band type
[aac @ 0x7ff3e802ea00] Number of bands (52) exceeds limit (40).
[aac @ 0x7ff3e802ea00] Number of bands (58) exceeds limit (40).
[aac @ 0x7ff3e802ea00] Scalefactor (257) out of range.
[aac @ 0x7ff3e802ea00] invalid band type
[aac @ 0x7ff3e802ea00] Number of bands (56) exceeds limit (40).
[aac @ 0x7ff3e802ea00] invalid band type
[aac @ 0x7ff3e802ea00] Number of bands (43) exceeds limit (39).
[aac @ 0x7ff3e802ea00] Number of bands (41) exceeds limit (39).
[aac @ 0x7ff3e802ea00] invalid band type
Last message repeated 1 times
[aac @ 0x7ff3e802ea00] Number of bands (43) exceeds limit (40).
[aac @ 0x7ff3e802ea00] Number of bands (47) exceeds limit (40).
[aac @ 0x7ff3e802ea00] invalid band type
Last message repeated 1 times
[aac @ 0x7ff3e802ea00] Number of bands (51) exceeds limit (40).
[aac @ 0x7ff3e802ea00] channel element 0.0 is not allocated
[aac @ 0x7ff3e802ea00] Number of bands (53) exceeds limit (40).
[aac @ 0x7ff3e802ea00] Number of bands (45) exceeds limit (40).
[aac @ 0x7ff3e802ea00] Number of bands (49) exceeds limit (39).
[aac @ 0x7ff3e802ea00] Number of bands (58) exceeds limit (40).
[aac @ 0x7ff3e802ea00] Number of bands (59) exceeds limit (40).
[aac @ 0x7ff3e802ea00] Number of bands (51) exceeds limit (40).
[aac @ 0x7ff3e802ea00] Number of bands (59) exceeds limit (40).
[aac @ 0x7ff3e802ea00] Number of bands (64) exceeds limit (40).
[aac @ 0x7ff3e802ea00] Number of bands (49) exceeds limit (40).
[aac @ 0x7ff3e802ea00] Number of bands (69) exceeds limit (40).
[aac @ 0x7ff3e802ea00] Number of bands (60) exceeds limit (40).
[aac @ 0x7ff3e802ea00] Number of bands (53) exceeds limit (39).
[aac @ 0x7ff3e802ea00] Number of bands (43) exceeds limit (40).
[aac @ 0x7ff3e802ea00] Scalefactor (263) out of range.
[aac @ 0x7ff3e802ea00] Number of bands (42) exceeds limit (40).
[aac @ 0x7ff3e802ea00] Number of bands (58) exceeds limit (40).
[aac @ 0x7ff3e802ea00] Number of bands (68) exceeds limit (40).
[aac @ 0x7ff3e802ea00] Number of bands (42) exceeds limit (40).
[aac @ 0x7ff3e802ea00] Number of bands (55) exceeds limit (40).
[aac @ 0x7ff3e802ea00] invalid band type
[aac @ 0x7ff3e802ea00] Number of bands (42) exceeds limit (40).
[aac @ 0x7ff3e802ea00] Number of bands (53) exceeds limit (40).
[aac @ 0x7ff3e802ea00] Number of bands (49) exceeds limit (40).

写回答

2回答

请叫我文少

提问者

2019-01-28

#include <stdio.h>
#include <libavutil/log.h>
#include <libavformat/avformat.h>


void adts_header(char *szAdtsHeader, int dataLen){

    int audio_object_type = 2;
    int sampling_frequency_index = 7;
    int channel_config = 2;

    int adtsLen = dataLen + 7;

    szAdtsHeader[0] = 0xff;         //syncword:0xfff                          高8bits
    szAdtsHeader[1] = 0xf0;         //syncword:0xfff                          低4bits
    szAdtsHeader[1] |= (0 << 3);    //MPEG Version:0 for MPEG-4,1 for MPEG-2  1bit
    szAdtsHeader[1] |= (0 << 1);    //Layer:0                                 2bits
    szAdtsHeader[1] |= 1;           //protection absent:1                     1bit

    szAdtsHeader[2] = (audio_object_type - 1)<<6;            //profile:audio_object_type - 1                      2bits
    szAdtsHeader[2] |= (sampling_frequency_index & 0x0f)<<2; //sampling frequency index:sampling_frequency_index  4bits
    szAdtsHeader[2] |= (0 << 1);                             //private bit:0                                      1bit
    szAdtsHeader[2] |= (channel_config & 0x04)>>2;           //channel configuration:channel_config               高1bit

    szAdtsHeader[3] = (channel_config & 0x03)<<6;     //channel configuration:channel_config      低2bits
    szAdtsHeader[3] |= (0 << 5);                      //original:0                               1bit
    szAdtsHeader[3] |= (0 << 4);                      //home:0                                   1bit
    szAdtsHeader[3] |= (0 << 3);                      //copyright id bit:0                       1bit  
    szAdtsHeader[3] |= (0 << 2);                      //copyright id start:0                     1bit
    szAdtsHeader[3] |= ((adtsLen & 0x1800) >> 11);           //frame length:value   高2bits

    szAdtsHeader[4] = (uint8_t)((adtsLen & 0x7f8) >> 3);     //frame length:value    中间8bits
    szAdtsHeader[5] = (uint8_t)((adtsLen & 0x7) << 5);       //frame length:value    低3bits
    szAdtsHeader[5] |= 0x1f;                                 //buffer fullness:0x7ff 高5bits
    szAdtsHeader[6] = 0xfc;
}

int main(int argc,char* argv[]){

    int ret;
    AVFormatContext* fmt_cxt = NULL;
    AVPacket packet;
    char *path = "./test.mp4";


    if(argc < 3){
        av_log(NULL,AV_LOG_ERROR,"arg para < 3\n");
        return -1;
    }

    char *pSrcPath = argv[1];
    char *pDstPath = argv[2];
    if(pSrcPath == NULL || pDstPath == NULL){
        av_log(NULL,AV_LOG_ERROR,"pSrcPath == NULL || pDstPath == NULL\n");
        return -1;
    }
    av_log_set_level(AV_LOG_INFO);

    av_register_all();

    ret = avformat_open_input(&fmt_cxt,pSrcPath,NULL,NULL);
    if(ret < 0){
        av_log(NULL,AV_LOG_ERROR,"Failed to open file:%s\n",av_err2str(ret));
        return -1;
    }
    FILE *file = fopen(pDstPath,"wb");
    if(!file){
        av_log(NULL,AV_LOG_ERROR,"out file open error:%s\n",pDstPath);    
        avformat_close_input(&fmt_cxt);
        return -1;
    }
    av_dump_format(fmt_cxt,0,pSrcPath,0);

    int audio_index = av_find_best_stream(fmt_cxt,AVMEDIA_TYPE_AUDIO,-1,-1,NULL,0);
    if(audio_index < 0){
        av_log(NULL,AV_LOG_ERROR,"Find Stream Error\n");
        avformat_close_input(&fmt_cxt);
        fclose(file);
        return -1;
    }

    av_init_packet(&packet);
    while(av_read_frame(fmt_cxt,&packet) >= 0){
        if(packet.stream_index == audio_index){
            char adts_header_buffer[7];
            adts_header(adts_header_buffer,packet.size);
            fwrite(adts_header_buffer,1,7,file);            

            int len = fwrite(packet.data,1,packet.size,file);
            if(len != packet.size){
                av_log(NULL,AV_LOG_WARNING,"fwrite size can't equal packet size\n");
            }

        }
        av_packet_unref(&packet);
    }
    avformat_close_input(&fmt_cxt);
    if(file){
        fclose(file);
    }

    return 0;
}

0
0

李超

2019-01-28

换git 上另外一个程序xxx_api.c 试试

0
5
李超
回复
qq_期待_fjAHQT
在慕课网上找我的手记
2020-04-27
共5条回复

经典再升级-FFmpeg5.0核心技术精讲,打造音视频播放器

学好FFmpeg核心技术,做高效,高薪,有竞争力的音视频工程师

2727 学习 · 814 问题

查看课程