Write your shell commands in English!

Replicate · Intermediate ·🧠 Large Language Models ·1y ago

Key Takeaways

The video demonstrates how to use AI language models like GPT-4 and Llama with the YOLO X command line tool to generate one-liner shell commands for tasks such as video conversion using FFMpeg.

Full Transcript

hello and welcome to another episode of Zeke using a computer and doing a AI stuff um and hopefully showing you something useful so this is going to be a short one I just recorded a video about this flux model um and I'm using OBS to record the video uh which is this open source software that lets you kind of like compose a webcam and do screen recording and mic input and stuff like that um but it saves files in this MKV format and actually maybe I should just see if there's a way to configure OBS to do a different format but anyway I already did the recording and I have this MKV file and I want to put it on Twitter I want to put it on YouTube blah blah blah but it that's the wrong format for those things so I need to convert it so I know there's this tool called FFM Peg and if you've ever used FFM Peg it's like let's actually just like look at the man page for FFM Peg uh it's pretty scary like look at all those flags what do those things do if we do man FFM pic oh my God it's crazy so much so the the thing you used to do if you wanted to use a f pig is like Google how do I convert a video to blah blah blah and then you would end up on a stack Overflow page and copy something we don't have to do that stuff anymore so um I have a command line tool called YOLO X which um sends a command that you type in the terminal to a language model and asks it to convert it to a one liner to run in in your shell so let's try using it um all you need to do to use it is install nodejs and then you can do um npx YOLO X and then an English language command so I'm going to say um uh take uh flux Schnell versus dev. MKV and save it as flux Schnell versus dev. MP4 um using FFM pic preserve the audio and use the [Applause] fastest possible method so I I Ted these extra things because sometimes when you use an FFM Peg command it just drops the audio so let's see what happens let's see if this works um so by default it uses um gp4 to do um to generate the command you can also use llama on replicate so what did it generate it generated this command uh which I don't know maybe that works um and it it ran pretty quickly and now I see we have an mp4 file um here on my desktop and if I open it up hey party people I just want to do a quick one about it looks like it worked so um success YOLO worked on the first try which is the way you want it to be um and just to expound on YOLO a little bit you can use it for all sorts of things like if I didn't like the first 1 second uh of this video clip like maybe it took me a minute to start talking um I could give it a command like extract from 0 colon 30 to 122 I could have said chop off the first 5 Seconds of video and save it as vide cho. MP4 so um this kind of opens up a whole new a whole new world of being able to use uh tools like FFM Peg and image magic and things like that without ever having to look anything up so uh great use of AI super productive that's it thanks for watching have a nice day bye bye and press the stop button now there it is bye

Original Description

This video show you how to use AI language models like GPT-4o and Llama to write one-liner shell commands, then execute them.
Watch on YouTube ↗ (saves to browser)
Sign in to unlock AI tutor explanation · ⚡30

This video shows how to use AI language models with YOLO X to generate one-liner shell commands for tasks like video conversion, making it easier to use tools like FFMpeg without having to look up complex commands. The video demonstrates how to install and use YOLO X with GPT-4 and Llama, and how to use it to convert a video from MKV to MP4 format.

Key Takeaways
  1. Install NodeJS
  2. Install YOLO X using npx
  3. Use YOLO X to generate a shell command for video conversion
  4. Run the generated command to convert the video
  5. Verify the output video file
💡 Using AI language models with YOLO X can simplify the process of using command line tools like FFMpeg, making it easier to perform tasks like video conversion without having to learn complex commands.

Related Reads

📰
ABBYY FineReader Engine with DocLang | AI-native document standard
Learn how ABBYY FineReader Engine 12.8 boosts large language model accuracy with DocLang export, reducing token usage
Medium · AI
📰
These 7 Powerful Things Claude Can Do But ChatGPT Still Can’t
Discover 7 powerful capabilities of Claude that surpass ChatGPT's limitations, and learn how to leverage them for improved AI assistance
Medium · AI
📰
Master Web Scraping with AI-Boosted Local LLMs: Efficient Data Extraction Techniques
Master web scraping with AI-boosted local LLMs for efficient data extraction, reducing manual labor and errors
Dev.to AI
📰
Claude Has a Silent Workspace. Anthropic Just Found It
Discover how Anthropic's AI model Claude can infer answers without explicit prompts, and learn to apply this technique to improve your own AI interactions
Medium · AI
Up next
5 Levels of AI Agents - From Simple LLM Calls to Multi-Agent Systems
Dave Ebbelaar (LLM Eng)
Watch →