2 ms·
When will AI integrate with argument parsers? ffmpeg —-ai “convert this video to NTSC output and make the audio track quieter” my input.avi
by russfink 2y ago
When will AI integrate with argument parsers?
ffmpeg —-ai “convert this video to NTSC output and make the audio track quieter” my input.avi
- simonw 2y agoI built a tool for that back in March: https://simonwillison.net/2024/Mar/26/llm-cmd/ https://simonwillison.net/2024/Mar/26/llm-cmd/ llm cmd use imagemagick to convert goats.jpg into four different JPEG qualities I ran that just now and it suggested: convert goats.jpg -quality 10 goats_quality_10.jpg && \ convert goats.jpg -quality 30 goats_quality_30.jpg && \ convert goats.jpg -quality 50 goats_quality_50.jpg && \ convert goats.jpg -quality 90 goats_quality_90.jpg Which, sure enough, produced me a bunch of different quality images!
- pandeiro 2y agoYour tool is really cool, thanks for making it and sharing. I notice that a lot of times, the multi-line output I get from my prompts is truncated or the model just aborts or something. The exit code is still 0 but it seems like something went wrong.
- simonw 2y agoWhich model / plugin are you using there?
- pandeiro 2y agoI'm using Meta-Llama-3-8B-Instruct. BTW it's a great project and I see it's gotten massive adoption on Github, with plenty of Issues to follow. Curse of success! Thanks again. EDIT: Created an Issue for it, probably a more appropriate place to file this ;) https://github.com/simonw/llm/issues/561 https://github.com/simonw/llm/issues/561
- throwup238 2y agoaichat has shell integration scripts that allow you to write English into the command line and press Alt+E to have it replaced with a command: https://github.com/sigoden/aichat/tree/main/scripts/shell-integration https://github.com/sigoden/aichat/tree/main/scripts/shell-in... So you'd just type "use ffmpeg to convert 'my input.avi' to NTSC output and make the audio track quieter" => Alt+E => replaced with `ffmpeg -i "my input.avi" -target ntsc-dvd -af "volume=0.5" "output.mpg`