Videophile II - Manipulate your files with external applications Add/Retrieve right click menu choices How to configure external applications for the use with Videophile II
One of the great adventages of Videophile II is that you can "open your files" / "manipulate your files" / "work with your files" from within Videophile II. You can add/retrieve right click selections untill youre satisfied with the options you have. As an example i'm going to add the posibility to play flv files with VLC Media Player.
Select the menu [ Tools ] / Options
Select the tab "External Apps"
To Add a line, select a "-" in the list. Click the button.
A blanco "External Application Setup" window is displayed.
Fill in
Caption : The name you want to give to the "right click option" My selection : Open with VLC Media PLayer
Visibility : Determines where the right click option will be added. My selection : File Browser
Applicable File Extensions : Determines what type of extensions can be used with this option. My selection : FLV
Path : Determines where the executable is and how the name of the executable is. My selection : C:\Program Files\VideoLAN\VLC\vlc.exe
Command : Determines how you are going to start the application. You can use only "valid keywords" and "command line options" (for the chosen application) in this field. My selection : ExternalAppPath File Where the used keywords will be replaced in :
Code:
- <ExternalAppPath> : C:\Program Files\VideoLAN\VLC\vlc.exe - <File> : Location and name of the selected file
The completed form looks like this :
Close the window with the button.
The new line is now added.
The next time you right click on an flv file/clip. The option will be available for you.
Quote:
Valid keywords you can use :
ExternalAppPath
URL
Tags
File
BackupFile
SelectionStart
SelectionEnd
FilterGraph
A few valid examples : Preconfigured by the Author
Code:
* Open with Virtual Dub - <ExternalAppPath> <BackupFile> * Repair File with DVR - <ExternalAppPath> <BackupFile> * Edit in AViDemux - <ExternalAppPath> <BackupFile> * Open with GSpot - <ExternalAppPath> <File> * Trim with ASFbin - <ExternalAppPath> -i <BackupFile> -o <File> -start <SelectionStart> -stop <SelectionEnd> Overview valid command line options for ASFBin see http://www.radioactivepages.com/index.php?docid=asfbindet§ion=software * Trim with FLVTool2 - <ExternalAppPath> -Cak <BackupFile> <File> -i <SelectionStart> -o <SelectionEnd> * Repair with DixFix++ - <ExternalAppPath> -i <BackupFile> -o <File> * Trim with MPGTX - <ExternalAppPath> -j <BackupFile> [<SelectionStart>-<SelectionEnd>] -o <File> * Open Videophile's Filter Graph - <ExternalAppPath> <FilterGraph> * Open File with GraphEdit - <ExternalAppPath> <File> * Repair with DVR - <ExternalAppPath> <BackupFile> * Repair with ASFbin - <ExternalAppPath> -i <BackupFile> -o <File> -forceindex * Google on this File's Tags - START http://www.google.com\search?q=<Tags>
Last edited by tellmewhy on 21/10/2008 10:26:47; edited 1 time in total
Posted: 20/10/2008 23:13:41 Post subject: Videophile II - Manipulate your files with external applications
Most excellent Mr. Tellmewhy! :-)
I'm glad you found it easy to use :-)
I will add some notes to this thread at some point about what the pre-configured key-words mean and when to use them. Right now I need to sleep!
I would make one observation about your description, though, if I may: You mention that you have to use the built-in keywords to define the command, but this is not strictly true; some of the examples you provide use things like -j, or -i, etc. These are specific commands for a specific application and you may use them if you wish (provided that they are valid for the app concerned, of course!) - the built-in keywords are only provided for convenience because they are commonly used (most apps will need a file-name, for example). So, most command lines will include generic terms (for which I have provided keywords) and application-specific parameters, which the user needs to enter (i.e, -j, -i, -o, etc). Hope that's clear.....
_________________ If you don't know where you're going, any road will take you there... - Mike Skinner
Posted: 21/10/2008 16:21:53 Post subject: Videophile II - Manipulate your files with external applications
Another thought:
I don't know if you used your VLC Player as an example only but, if you were to associate FLV files with VLC Player (in Windows), then you wouldn't have needed to set-up this command - you could just use the menu option 'Open With Default Player'... _________________ If you don't know where you're going, any road will take you there... - Mike Skinner
Posted: 21/10/2008 17:45:22 Post subject: Videophile II - Manipulate your files with external applications
A note about the valid keywords and their meaning:
- <ExternalAppPath> Is the path to the application (fairly obvious). Note that this is not always required - see the Google example where no particular browser is specified.
- <URL> This will be removed in the next version - doesn't offer a whole lot and doesn't need to be used to launch a URL (again, see the Google example)
- <Tags> This will pass a comma-separated list of the Tags that have been set on the file. I use this, again, in the Google example but can't think of another use for it off the top of my head!
- <File> Is the file to be processed by the External Application. Obviously, only required if you intend to perform a process on a file!
- <BackupFile> Normally used in conjunction with <File>. Not required but the use of this keyword gives Videophile II some clues as to what to do when processing a file. For example, <ExternalAppPath> <BackupFile> <File> will do something like the following:
1 Create a Backup copy of <File> 2 Process the <BackupFile> and write the result to <File>
This means that, once the processing has completed, the Library will automatically have the changed version AND will allow you to restore from the backup if you are not happy with the result. the existence of a Backup file and the opportunity to restore from it are displayed in the Specifiations area of teh File Inspector.
- <SelectionStart> The start of a Selection made in the Preview area of the File Inspector. Useful for trimming a file (see the ASFbin example)
- <SelectionEnd> As above but signifies the end of a Selection made in the Preview area of the File Inspector.
- <FilterGraph> The FilterGraph that was constructd by Videophile II. This is a .grf file and can be opened by GraphEdit and some other applications; AVISynth for example.
Recommendation If a process is going to change a file, it is suggested that you make the command visible in the File Inspector only. That way you can check the results of the processing and restore the original file if not happy with the result.
Note I have not yet coded for situations where the file to be processed exists on a read-only media. I will do this in due course... _________________ If you don't know where you're going, any road will take you there... - Mike Skinner
Posted: 21/10/2008 17:55:16 Post subject: Videophile II - Manipulate your files with external applications
VideophileII wrote:
Another thought:
I don't know if you used your VLC Player as an example only but, if you were to associate FLV files with VLC Player (in Windows), then you wouldn't have needed to set-up this command - you could just use the menu option 'Open With Default Player'...
Used only as an example. Seemed easy to begin with a simple one as this to begin understanding what the imact is what the possibilities are. Busy doing some research about "commend line options" you can use with all applications used in the "pre configured examples".
Posted: 21/10/2008 18:08:14 Post subject: Videophile II - Manipulate your files with external applications
Cool. if you can think of some useful Keywords that could be added, then post them here. In the mean-time, I hope you found my notes on Keywords helpful... _________________ If you don't know where you're going, any road will take you there... - Mike Skinner
Posted: 16/11/2008 13:51:31 Post subject: Videophile II - Working with external applications - Second example
Videophile II - Working with external applications - Second example
I want to cut the parts out of an rm file. I know Videophile II supports/can be linked/can work with external applications. RMEditor is a command line application easy to use that is suitable for this purpose. The syntax for this in RMEditor is :
"How can Videophile II translate this towards the application ?"
In this case :
rmeditor would be replaced/filled in by the value of ExternalAppPath. This is the value stored in the field Path in the "External Application Setup".
-i input.rm would be replaced by the file name you selected in the file browser This value is stored in the "File" command of the External Apps Config dialogue.
-o output.rm would be replaced by the New filename and location you type when executing this option. This value is stored in the "New File" command of the External Apps Config dialogue.
-s 0:0:3:2.20 is the starting point of the new file. It will be replaced by the "Start point" of the file segment. This value is stored in the "SelectionStart" command of the External Apps Config dialogue.
-e 0:0:4:2.20 is the ending point of the new file. It will be replaced by the "End point" of the file segment. This value is stored in the "SelectionEnd" command of the External Apps Config dialogue.
File info for the new created file - Horses_segment.rm :
Code:
General Complete name : F:\RM_files\Horses_segment.rm Format : RealMedia File size : 161 KiB Duration : 10s 243ms Overall bit rate : 450 Kbps Performer : (C) 2006 Marzio Copyright : (C) 2006 The Marzio School and Real English L.L.C. -- Real English is a Registered Trademark of The Marzio School. All Rights Reserved.
Video Format : RealVideo 4 Codec ID : RV40 Codec ID/Info : Based on AVC (H.264), Real Player 9 Duration : 10s 154ms Bit rate : 354 Kbps Width : 320 pixels Height : 240 pixels Display aspect ratio : 4/3 Frame rate : 25 fps Resolution : 12 bits Bits/(Pixel*Frame) : 0.184
Audio Format : Cooker Codec ID : cook Codec ID/Info : Based on G.722.1, Real Player 6 Duration : 11s 145ms Bit rate : 96.5 Kbps Channel(s) : 2 channels Sampling rate : 44.1 KHz Resolution : 16 bits
Posted: 16/11/2008 23:37:51 Post subject: Videophile II - Manipulate your files with external applications
Maybe those steps are not realy necessary but,
* Creat a new tag "Horses".
* Tag the segment.
* Drag & drop the "Horses" into the file browser.
* Display only segments in the file browser.
Just for the record, those steps aren't necessary at all; you don't even have to save a segment (let alone tag it) in order to perform the operation you have set up for rmeditor. All you need to do is create a selection in the Preview area of the Inspector and it will work as <SelectionStart> and <SelectionEnd> are substituted with values obtained from there.
Please feel free to delete this post after you have read it, if you wish. I'm just telling you here for your own information so that you can modify your article. IMHO, other vistors don't need to see me clarifying what you have done. It's far better for them if everything is concise and clean. Same applies to my posts in other threads; if you want to incorporate any of my comments and then delete my posts that's cool. This is just a suggestion, btw - not trying to tell you how to organise your forum!!
Cheers... _________________ If you don't know where you're going, any road will take you there... - Mike Skinner