Skip to content
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

I have encountered another error issue where the video rendering cannot be synthesized with the audio after completion。Unrecognized option 'y;'. Error splitting the argument list: Option not found #29

Open
gameandwhk111111111111111111 opened this issue Jan 19, 2025 · 5 comments

Comments

@gameandwhk111111111111111111

Image
Image
A video file was indeed generated in the res_death folder, but it seems that the file name is not the same as the video name that needs to be merged during the merge process. I have a screenshot here.

@oisilener1982
Copy link

i also have this problem and ffmpeg is installed

@passionlu
Copy link

把sonic.py中328行改为:os.system(f"ffmpeg -i "{video_path}" -i "{audio_path}" -s {resolution} -vcodec libx264 -acodec aac -crf 18 -shortest "{audio_video_path}" -y") 应该可以解决问题。

@jinwyp
Copy link
Contributor

jinwyp commented Jan 23, 2025

There is a bug on

os.system(f"ffmpeg -i '{video_path}' -i '{audio_path}' -s {resolution} -vcodec libx264 -acodec aac -crf 18 -shortest '{audio_video_path}' -y; rm '{video_path}'")

try to modify below

        # os.system(f"ffmpeg -i '{video_path}'  -i '{audio_path}' -s {resolution} -vcodec libx264 -acodec aac -crf 18 -shortest -y'{audio_video_path}' ; rm '{video_path}'")
        
        ffmpeg_command = f'ffmpeg -i "{video_path}" -i "{audio_path}" -s {resolution} -vcodec libx264 -acodec aac -crf 18 -shortest -y "{audio_video_path}"'
        os.system(ffmpeg_command)
        os.remove(video_path) 

@oisilener1982
Copy link

@jinwyp Thank you so much. Its working fine for me now after modifying the sonic.py

I hope the Devs will update the sonic.py so that there will be no error in future generations

@jinwyp
Copy link
Contributor

jinwyp commented Jan 24, 2025

Already fixed , pls git pull the lastest code

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

4 participants