reticivis-net / mediaforge

A Discord bot for editing and creating videos, images, GIFs, and more!
GNU General Public License v3.0
81 stars 28 forks source link

Command 'caption' raised an exception: CMDError: Command ('ffmpeg', '-i', '/dev/shm/mediaforge/yxAOvEDM.png', '-i', '/dev/shm/mediaforge/cFJJjEtB.gif', '-filter_complex', '[0]format=pix_fmts=yuva420p[0f];[1]format=pix_fmts=yuva420p[1f];[0f][1f]vstack=inputs=2', '-c:v', 'png', '-fs', '1G', '-fps_mode', 'vfr', '/dev/shm/mediaforge/GrWtjORZ.mp4') failed. #244

Open WGrav01 opened 3 months ago

WGrav01 commented 3 months ago

Describe the bug

When sending a video, captioning it, uncaptioning it, and trying to caption it again, the command fails:

discord.app_commands.errors.CommandInvokeError: Hybrid command raised an error: Command 'caption' raised an exception: CMDError: Command ('ffmpeg', '-i', '/dev/shm/mediaforge/yxAOvEDM.png', '-i', '/dev/shm/mediaforge/cFJJjEtB.gif', '-filter_complex', '[0]format=pix_fmts=yuva420p[0f];[1]format=pix_fmts=yuva420p[1f];[0f][1f]vstack=inputs=2', '-c:v', 'png', '-fs', '1G', '-fps_mode', 'vfr', '/dev/shm/mediaforge/GrWtjORZ.mp4') failed.

Traceback

traceback.txt

Expected Behavior

The gif was captioned as intended without throwing a traceback

Steps To Reproduce

1) send a gif as a discord link 2) run /caption on it 3) run /togif on the output 3) run /uncaption on the output 4) try running /caption again, exception gets thrown

Anything Else

image image image

WGrav01 commented 3 months ago

Duplicate of https://github.com/reticivis-net/mediaforge/issues/241 with extra details, sorry, I will leave this open as there are some details missed in other requests.