Skip to content

Error: 任务失败,原因:generateAudioSubtitles.linkToFile ffmpeg error: exec: no command #106

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
Kapi1anRex opened this issue Apr 12, 2025 · 4 comments

Comments

@Kapi1anRex
Copy link

При попытке запустить программу выскакивает данное сообщение

@maranello-o
Copy link
Collaborator

maranello-o commented Apr 12, 2025

Please provide the complete information from app.log regarding the generateAudioSubtitles.linkToFile ffmpeg error from this usage. There should be more details printed.

@VaultBoy9519
Copy link

Hi, I'm encountering the same error. Here are the logs:
{"level":"info","ts":"2025-04-12T23:27:50.391+0300","caller":"config/config.go:144","msg":"已找到配置文件,从配置文件中加载配置"}
{"level":"error","ts":"2025-04-12T23:27:50.392+0300","caller":"server/main.go:20","msg":"加载配置失败","error":"使用OpenAI转写服务需要配置 OpenAI API Key"}
{"level":"info","ts":"2025-04-12T23:28:19.656+0300","caller":"config/config.go:144","msg":"已找到配置文件,从配置文件中加载配置"}
{"level":"error","ts":"2025-04-12T23:28:19.656+0300","caller":"server/main.go:20","msg":"加载配置失败","error":"使用OpenAI转写服务需要配置 OpenAI API Key"}
{"level":"info","ts":"2025-04-12T23:29:34.015+0300","caller":"config/config.go:144","msg":"已找到配置文件,从配置文件中加载配置"}
{"level":"info","ts":"2025-04-12T23:29:34.016+0300","caller":"config/config.go:144","msg":"已找到配置文件,从配置文件中加载配置"}
{"level":"info","ts":"2025-04-12T23:29:34.016+0300","caller":"service/init.go:38","msg":"当前选择的转录源: ","transcriber":"openai"}
{"level":"info","ts":"2025-04-12T23:29:34.016+0300","caller":"service/init.go:46","msg":"当前选择的LLM源: ","llm":"openai"}
{"level":"info","ts":"2025-04-12T23:29:34.016+0300","caller":"server/server.go:17","msg":"服务启动","host":"127.0.0.1","port":8888}
{"level":"info","ts":"2025-04-12T23:29:55.941+0300","caller":"service/subtitle_service.go:138","msg":"video subtitle start task","taskId":"g6LLiryz"}
{"level":"error","ts":"2025-04-12T23:29:55.941+0300","caller":"service/link2file.go:33","msg":"generateAudioSubtitles.linkToFile ffmpeg error","step param":{"TaskId":"g6LLiryz","TaskPtr":{"id":0,"task_id":"g6LLiryz","title":"","description":"","translated_title":"","translated_description":"","origin_language":"","target_language":"","video_src":"local:./uploads/test.mp4","status":1,"last_success_step_num":0,"fail_reason":"","process_percent":3,"duration":0,"srt_num":0,"SubtitleInfos":null,"cover":"","speech_download_url":"","create_time":0,"update_time":0},"TaskBasePath":"tasks\g6LLiryz","Link":"local:./uploads/test.mp4","AudioFilePath":"","SmallAudios":null,"SubtitleResultType":3,"EnableModalFilter":true,"EnableTts":false,"TtsVoiceCode":"longchen","VoiceCloneAudioUrl":"","ReplaceWordsMap":{},"OriginLanguage":"en","TargetLanguage":"ru","UserUILanguage":"zh_cn","BilingualSrtFilePath":"","ShortOriginMixedSrtFilePath":"","SubtitleInfos":null,"TtsSourceFilePath":"","TtsResultFilePath":"","InputVideoPath":"./uploads/test.mp4","EmbedSubtitleVideoType":"none","VerticalVideoMajorTitle":"","VerticalVideoMinorTitle":"","MaxWordOneLine":12},"output":"","error":"exec: no command"}
{"level":"error","ts":"2025-04-12T23:29:55.942+0300","caller":"service/subtitle_service.go:141","msg":"StartVideoSubtitleTask linkToFile err","req":{"app_id":0,"url":"local:./uploads/test.mp4","origin_lang":"en","target_lang":"ru","bilingual":1,"translation_subtitle_pos":1,"modal_filter":1,"tts":2,"tts_voice_code":0,"tts_voice_clone_src_file_url":"","replace":null,"language":"zh_cn","embed_subtitle_video_type":"none","vertical_major_title":"","vertical_minor_title":"","origin_language_word_one_line":0},"error":"generateAudioSubtitles.linkToFile ffmpeg error: exec: no command"}

ffmpeg is located on drive C, in the root folder, and it's added to the system environment variables.
When I run ffmpeg --version in the console, it outputs version information correctly.

ffmpeg version 2025-03-31-git-35c091f4b7-full_build-www.gyan.dev Copyright (c) 2000-2025 the FFmpeg developers
built with gcc 14.2.0 (Rev1, Built by MSYS2 project)

@bsik8
Copy link

bsik8 commented Apr 12, 2025

same

@SUIY1
Copy link

SUIY1 commented Apr 13, 2025

相同的问题

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants