Open jinwyp opened 6 months ago
因为代码中默认写的 是aac 如果视频文件的音轨是mp3格式就会报错 temp = tempfile.NamedTemporaryFile(suffix='.aac', delete=False)
报错
[adts @ 0000021071a3cf80] Only AAC streams can be muxed by the ADTS muxer [out#0/adts @ 0000021071a3ce80] Could not write header (incorrect codec parameters ?): Invalid argument Error opening output file m.aac. Error opening output files: Invalid argument
建议先识别一下文件格式
https://github.com/YaoFANGUK/video-subtitle-remover/issues/8
感谢反馈,有空修复
因为代码中默认写的 是aac 如果视频文件的音轨是mp3格式就会报错 temp = tempfile.NamedTemporaryFile(suffix='.aac', delete=False)
报错
[adts @ 0000021071a3cf80] Only AAC streams can be muxed by the ADTS muxer [out#0/adts @ 0000021071a3ce80] Could not write header (incorrect codec parameters ?): Invalid argument Error opening output file m.aac. Error opening output files: Invalid argument
建议先识别一下文件格式
https://github.com/YaoFANGUK/video-subtitle-remover/issues/8