google / gif-for-cli

https://opensource.googleblog.com/2018/06/tenor-gif-for-cli.html
Apache License 2.0
2.93k stars 161 forks source link

Add fallback regex method to _run_ffmpeg #35

Open SASUPERNOVA opened 1 year ago

SASUPERNOVA commented 1 year ago

Following Add missing "rows" option in _save_config, it is also possible re.search fails to match any groups in err. As a result, num_frames and seconds will be 0, which will also cause issue Can't use gif-for-cli (Float division by zero on execute.py). Since this issue may be system-dependent (Arch Linux), I am making a separate PR for this fix.