![]() ![]() If the user wants to change (or simply check) the video and audio and 'other' parameters that are set according to a choice of the 'container format', the user can click on the 'ShowDetailedInputParms' checkbutton at the top of the GUI. (And you can change the default by changing a 'set CONTAINERformat' statement at the bottom of the Tk script.) Note that there are several radiobuttons that allow you to choose the 'container format' of the output file. #Ffmpeg commands add border to video movie#The operation can be as simple as clicking on the 'LaunchMovieCapture' button - and then clicking on the 'PlayMovie' button, after the movie file has been created - if you take the initial defaults. On the basis of the GUI-layout sketch above, I ended up with the GUI seen in the following image. I am certainly interested in making pretty GUI's - as I have expressed on my 'bio' page at uniquename, and as my pages at Experiments in making embellished GUI's and Version 2 of a demo of THEMES for Tk GUI's, using images and colors have indicated.īut at this time, I am satisfied to implement the 'functionality', and let the 'beauty' go for a later date (when I have more beauty tools/code at hand). I just wanted a utility that would make starting a recording session with 'ffmpeg' as simple as a click on a 'Launch' button. I should point out here that I was not especially interested in coming up with a 'beautiful utility'. Hence there are about 4+14+1+6 = 25 options on this utility. See 'Help' for details.įrom the GUI 'sketch' above, it is seen that the GUI consists of about 4 'button' widgetsĢ5 'label' widgets (many are for entry fields)Īll but the 'label' widgets provide operating parameters/options in this utility. If good, can be shown in a movie player, that you specify above. 'ffmpeg' stops, so that you can examine msgs. Recording by re-opening the 'xterm' window and typing 'q'. Minimize the window to get it out of the way of recording. Startup and coding messages from 'ffmpeg'Ĭan be seen in that window. fRguide NOTE: This utility runs 'ffmpeg' in an 'xterm' window. fRthreads Threads: 1_ (to take advantage of a multi-core computer) fRaother Other audio parms: -ar 22050 -ab 96k_ fRacodec Audio codec: pcm_s16le_ Examples: pcm_s16le libmp3lame libfaac vorbis fRainterface Audio interface: pulse_ Examples: pulse hw:0,0 /dev/dsp fRaformat Audio format: alsa_ Examples: alsa oss Audio Channels: 1_ Examples: 1 2 fRvother Other video parms: -vpre /usr/share/ffmpeg/libx264-lossless_ultrafast.ffpreset_ fRvcodec Video codec: libx264_ Examples: libx264 mpeg4 mpeg1video flv. fRvsource Source (display ID): :0.0_ Examples: :0.0 :0.1 Video rate (frames/sec): 25_ fRplayer Player for the movie file: totem_ Examples: totem gmplayer mplayer ffplay vlc | Movie-and-Audio Movie-Capture - a front-end for the 'ffmpeg' command CAPITAL-X indicates a Tk 'checkbutton' widget.CAPITAL-O indicates a Tk 'radiobutton' widget.A COLON indicates that the text before the colon is on a 'label' widget.UNDERSCORES indicate a Tk 'entry' widget.SQUARE-BRACKETS indicate a comment not to be included on the GUI.Like for some image/media/animated-GIF 'find-and-play' utilities that I have posted here, I made a 'text-sketch' for the GUI for this 'movie-capture' utility.ĬONVENTIONS for the GUI 'text-sketch' below: ![]() *** To avoid overwhelming the user with the number of recording parameters available, provide a checkbutton on the GUI to only show the video/audio/other parameters if the user requests to see them. *** Provide a 'Play' button to initiate playing of the completed movie file. *** Provide an entry widget to allow the user to specify a 'delay time' before 'ffmpeg' is started up - so that the user has time to do some preparation, such as minimizing this GUI window, before 'ffmpeg' recording is started. *** Provide a 'Launch' button to start the movie capture. *** Provide an entry widget to allow the user to specify an movie-player program with which to view a completed movie file. *** Provide an entry widget for an output filename, with a default name provided. Provide working defaults for the parameters. ![]() *** Provide entry widgets for the approximately 15 parameters that can be specified to 'ffmpeg' in creating a movie file. My goals for the Tcl-Tk script for this GUI were:
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |