![]() With that working, let's get onto building the UI side of things. If all has gone well, you should be able to invoke it from the command line and get back some useful version info ffmpeg -version To play along at home, grab the appropriate FFMPEG binary for your OS here and install it. Into an easy to use desktop application that you could hand over to users. In short, it will transform a "scary" terminal command line this: ffmpeg -ss 300 -i /home/user/path/to/movie.mkv -frames:v 1 outfile.png the output filename where they want the screenshot saved. a timestamp where they'd like to extract a screenshot, and finally 3. We're going to build a UI in which users can specify 1. Additionally, since FFMPEG has a staggeringly deep suite of video processing tools, to keep things simple we're going to expose just a very small subset of its functionality. To make it friendly for our theoretical end user, we're going to expose a subset of it as a simple, familiar GUI in which they can point-and-click their way to success. The learning curve is basically just a brick wall. ![]() Why wrap up another program at all? While FFMPEG is amazing, it is anything but friendly. app bundle, or anything on linux that's executable! jar you've written, or an arbitrary windows. These steps apply to anything, though! You could swap out FFMPEG for a. To show how this all fits together, and that it really works for anything, we're going to walk through building a graphical interface to one of my favorite tools of all time: FFMPEG. We're only using Python here because it has convenient bindings for generating the JSON. Whether you've built your application in Java, Node, or Haskell, or you just want to put a pretty interface on an existing tool like FFMPEG, Gooey can be used to create a fast, practically free UI with just a little bit of Python (about 20 lines!).ĭon't want to write no stinkin' Python? Good news! Gooey is actually controlled entirely by a plain ol' JSON file. It can be used as the frontend client for any language or program. Gooey is a tool for transforming command line interfaces into beautiful desktop applications. ![]() Using Gooey as a Universal Frontend for any Language or CLI Application ![]()
0 Comments
Leave a Reply. |