2008-10-07, 04:19 PM
There have been many times when I'd like to do something with a video file or directory full of video files that I've located when browsing through the Video Library.
For example:
1) sometimes, I'd like to move it to another drive and update the database,
2) other times I'd like to watch it with a different player,
3) still other times, I'd like to import it into the Recordings database (I do this because it makes it easy to find a file I'm thinking about watching, and it lets me "resume" and keep track of what I've watched by marking it.)
For 1) someone posted a clever way to use the Transcoding option to run a batch file that sends all the files to another drive and updates the database. For 3) I used the same method to run a batch file and run a video import utility.
For 2), I can do this with an iso file, by changing config.xml to run a batch file instead of the Daemon Tools executable. The batch file identifies it as a BluRay iso or regular DVD iso and then uses the player I want.
However, these are all hacks, and none work with a complete directory: they only work with certain video format files capable of being transcoded or with an iso file.
It occurs to me that it would be really nice to have a generic option, like the Transcode option that runs a selected homebrew batch file for the selected directory or video file.
Config.xml would simply store a name for each batch file you want to be able to run (similar to the way there is a name for each Transcode option in config.xml) and would pass the selected file/dir to the batch file as the %1 parameter (just as Transcode does).
You'd point to a file or dir and select the Process File/Dir tab from the Video Library screen (just like you currently select Transcode), you'd choose the name associated with the batch file you want to run for that file/dir (just like you choose the Transcode name from the pulldown list) and the batch file would be run by GBPVR.
The specific batch file would be supplied by the user to do whatever he wanted. In my case, I've already got the batch files, I just need a way to run them for all video file types extensions and for directories, instead of just for certain types of video files.
For example:
1) sometimes, I'd like to move it to another drive and update the database,
2) other times I'd like to watch it with a different player,
3) still other times, I'd like to import it into the Recordings database (I do this because it makes it easy to find a file I'm thinking about watching, and it lets me "resume" and keep track of what I've watched by marking it.)
For 1) someone posted a clever way to use the Transcoding option to run a batch file that sends all the files to another drive and updates the database. For 3) I used the same method to run a batch file and run a video import utility.
For 2), I can do this with an iso file, by changing config.xml to run a batch file instead of the Daemon Tools executable. The batch file identifies it as a BluRay iso or regular DVD iso and then uses the player I want.
However, these are all hacks, and none work with a complete directory: they only work with certain video format files capable of being transcoded or with an iso file.
It occurs to me that it would be really nice to have a generic option, like the Transcode option that runs a selected homebrew batch file for the selected directory or video file.
Config.xml would simply store a name for each batch file you want to be able to run (similar to the way there is a name for each Transcode option in config.xml) and would pass the selected file/dir to the batch file as the %1 parameter (just as Transcode does).
You'd point to a file or dir and select the Process File/Dir tab from the Video Library screen (just like you currently select Transcode), you'd choose the name associated with the batch file you want to run for that file/dir (just like you choose the Transcode name from the pulldown list) and the batch file would be run by GBPVR.
The specific batch file would be supplied by the user to do whatever he wanted. In my case, I've already got the batch files, I just need a way to run them for all video file types extensions and for directories, instead of just for certain types of video files.