Fix command parsing issues by using shlex.split to properly handle command parsing
Description of the Issue
When both the audio file and the srt files are under the same directory as the stable_whisper.encode_video_comparison script is executed, [Errno 63] File name too long error occurs on macOS.
When both the audio file and the srt files are not under the same directory as the stable_whisper.encode_video_comparison script is executed, FileNotFound error occurs due to incorrect command parsing
Fix command parsing issues by using
shlex.split
to properly handle command parsingDescription of the Issue
When both the
audio file
and thesrt files
are under the same directory as the stable_whisper.encode_video_comparison script is executed,[Errno 63] File name too long
error occurs on macOS.When both the
audio file
and thesrt files
are not under the same directory as the stable_whisper.encode_video_comparison script is executed,FileNotFound
error occurs due to incorrect command parsingReproduce
https://github.com/shaishaicookie/stable-ts/tree/reproduce-error-encode_video_comparison/reproduce_error
When running python
reproduce_error.py
, the following error occurs: