It did not resolve my issue, here are the log file:
[INFO] Starting call to 'videotrans.translator._google.Google._item_task', this is the 1st time calling it.
[DEBUG] [Google] self.target_code='tl' self.source_code='auto'
[DEBUG] [Google]返回code:response.status_code=200
[DEBUG] 以普通文本行按行翻译:原始行数:11,翻译后行数:11
[DEBUG] [字幕翻译]渠道0,:共耗时:0s
[DEBUG] 核对翻译结果前->原始语言字幕行数:11,目标语言字幕行数:11
[INFO] Starting call to 'videotrans.translator._google.Google._item_task', this is the 1st time calling it.
[DEBUG] [Google] self.target_code='tl' self.source_code='auto'
[DEBUG] [Google]返回code:response.status_code=200
[DEBUG] 以普通文本行按行翻译:原始行数:11,翻译后行数:11
[DEBUG] [字幕翻译]渠道0,:共耗时:0s
[DEBUG] 核对翻译结果前->原始语言字幕行数:11,目标语言字幕行数:11
[DEBUG] 最终配置信息:self.cfg=TaskCfg(cache_folder='/Users/name/pyvideotrans/tmp/1299/98ecd14c77', target_dir='/Users/name/Desktop/drama/_video_out/input3-mp4', remove_noise=False, is_separate=False, detect_language='en', subtitle_language=None, source_language='English', target_language='Fil
......
handler_name : ISO Media file produced by Google Inc.
vendor_id : [0][0][0][0]
Input #1, mov,mp4,m4a,3gp,3g2,mj2, from 'origin_audio.m4a':
Metadata:
major_brand : M4A
minor_version : 512
compatible_brands: M4A isomiso2
encoder : Lavf62.3.100
Duration: 00:00:30.02, start: 0.000000, bitrate: 129 kb/s
Stream #1:00x1: Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 128 kb/s (default)
Metadata:
handler_name : ISO Media file produced by Google Inc.
vendor_id : [0][0][0][0]
[AVFilterGraph @ 0x600001822800] No option name near 'end.ass'
[AVFilterGraph @ 0x600001822800] Error parsing a filter description around:
[AVFilterGraph @ 0x600001822800] Error parsing filterchain 'subtitles=end.ass' around:
Error opening output file laste_target.mp4.
Error opening output files: Invalid argument
[WARNING] 回退: 硬件加速失败,将自动回退到 CPU 编码重试...
[DEBUG] cmd=['ffmpeg', '-hide_banner', '-ignore_unknown', '-threads', '0', '-y', '-progress', 'compose1771528077.609667.txt', '-i', 'novoice.mp4', '-i', 'origin_audio.m4a', '-map', '0:v', '-map', '1:a', '-c:v', 'libx265', '-c:a', 'copy', '-vf', 'subtitles=end.ass', '-movflags', '+faststart', '-crf', '24', '-preset', 'veryfast', '-t', '30.030000', 'laste_target.mp4']
[WARNING] FFmpeg 命令执行失败 (force_cpu=True)。
命令: ffmpeg -hide_banner -ignore_unknown -threads 0 -y -progress compose1771528077.609667.txt -i novoice.mp4 -i origin_audio.m4a -map 0:v -map 1:a -c:v libx265 -c:a copy -vf subtitles=end.ass -movflags +faststart -crf 24 -preset veryfast -t 30.030000 laste_target.mp4
错误: Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'novoice.mp4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
encoder : Lavf62.3.100
Duration: 00:00:30.03, start: 0.000000, bitrate: 2133 kb/s
Stream #0:00x1: Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, bt709, progressive), 1920x1080 [SAR 1:1 DAR 16:9], 2130 kb/s, 23.98 fps, 23.98 tbr, 24k tbn (default)
Metadata:
handler_name : ISO Media file produced by Google Inc.
vendor_id : [0][0][0][0]
Input #1, mov,mp4,m4a,3gp,3g2,mj2, from 'origin_audio.m4a':
Metadata:
major_brand : M4A
minor_version : 512
compatible_brands: M4A isomiso2
encoder : Lavf62.3.100
Duration: 00:00:30.02, start: 0.000000, bitrate: 129 kb/s
Stream #1:00x1: Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 128 kb/s (default)
Metadata:
handler_name : ISO Media file produced by Google Inc.
vendor_id : [0][0][0][0]
[AVFilterGraph @ 0x600000450300] No option name near 'end.ass'
[AVFilterGraph @ 0x600000450300] Error parsing a filter description around:
[AVFilterGraph @ 0x600000450300] Error parsing filterchain 'subtitles=end.ass' around:
Error opening output file laste_target.mp4.
Error opening output files: Invalid argument