YaoFANGUK / video-subtitle-remover

基于AI的图片/视频硬字幕去除、文本水印去除,无损分辨率生成去字幕、去水印后的图片/视频文件。无需申请第三方API,本地实现。AI-based tool for removing hard-coded subtitles and text-like watermarks from videos or Pictures.
Apache License 2.0
3.25k stars 431 forks source link

音频分离步骤出现错误 #31

Open jinwyp opened 6 months ago

jinwyp commented 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

YaoFANGUK commented 5 months ago

感谢反馈,有空修复