Error parsing ADTS frame header!
微wx笑
2025-02-08【运维日志】
55
0
0关键字:
windows 7 下使用以下命令将 ts 文件合并为 mp4文件时,ffmpeg -protocol_whitelist "file,crypto" -allowed_extensions ALL -threads auto -i "newindex.m3u8" -c copy -bsf
windows 7 下使用以下命令将 ts 文件合并为 mp4文件时,
1 | ffmpeg -protocol_whitelist "file,crypto" -allowed_extensions ALL -threads auto -i "newindex.m3u8" -c copy -bsf:a aac_adtstoasc "%curr%.mp4" |
可能会遇到下面的错误
Error parsing ADTS frame header! Error applying bitstream filters to an output packet for stream #0:1.
这个错误可能是由于 ts 文件不完整导致的;
解决办法
1、重新下载对应的 ts 文件
2. 移除 aac_adtstoasc
过滤器
但是需要注意,
我尝试的结果是移除 aac_adtstoasc 过滤器后,该 ts文件后面的所有ts文件都不会被继续合并了;
本文由 微wx笑 创作,采用 署名-非商业性使用-相同方式共享 4.0 许可协议,转载请附上原文出处链接及本声明。
原文链接:https://www.ivu4e.cn/blog/service/2025-02-08/2020.html