Although you can use DVRMS Toolbox straight out of the box (as it were), there are a couple of changes that can help the process. There are also plenty of posts across the internet on basic DVRMS Toolbox settings and issues, this post just covers ad removal for Media Portal.
1. Download and install DVRMS Toolbox, restart your PC.
2. In the start menu folder, launch the ProcessingConditonEditor. These are the rules that DVRMS Toolbox will follow when you either run it from a batch file or on a whole folder from the GUI.
Double click Every File, and from the dropdown at the top select 'Cut commercials out of a DVR-MS file and output DVR-MS'. This is the process we'll run against the DVR-MS files, and will customise in the next step.
Click add to create a new rule for the Every File condition. Select Duration, Does Not Contain, and type -1. When a DVR-MS is still being recorded this is its duration, so this way it won't try editing a file that is still being created.
Unfortunately MP doesn't save any show specific information to the metatags in DVR-MS files, so we can't use any other criteria to filter what files are processed (like Channel, Genre, Show Name, etc).
Save all your changes to close.
3. Now launch DVRMSToMPEGSettings, where you can customise the processes you run. Double click 'Cut commercials out of a DVR-MS file and output DVR-MS' and you'll be presented with the steps the process runs through.
Instead of describing each step, just copy what is in the screenshot.
'Replace & with And in the input file name' Some other programs you use (like Crunchie, which I'll cover in a different thread) choke on & characters. This is a good time to switch it if you want, but Media Portal's Recorded TV won't pick up on the changed file name.
'Migrate value in Context["OutputFile"] to Context ["InputFile"]' This is purely for the benefit of the following steps, as DVRMS Toolbox only allows you to rename input files, not output files.
'Replace _tooled with in the input file name' When you run the commercial cutting without this step, DVRMS Toolbox ads _tooled to the end of your processed file name. For me this is a pain because I want to replace the original file, so when I play it from Recorded TV in MP I get the ad free version without any changes (although the duration in MP stays at the original value). This replaces _tooled with an empty value, thereby removing it.
'Move file specified in Context ("InputFile") to D:\Recorded TV' This moves the file from the output directory you specify when running the process to whatever folder the original files are in, and overwrites it. Select DeleteExisting in the options for this.
You can also delete the step that adds Tooled to the metatag, Advances the slider and whatever else, as this doesn't affect MP or the file processing.
Save all your changes and it'll close.
4. Open DVRMSToMPEGGUI, this is where you can run processes from or create a batch file to do so automatically in the future.
Click the Process Directory tab, enter in your destinations (double click on the text field to find the folder) and hit run. This will now match the files in the directory against what is in the Condition Editor. As each file is completed successfully, it ads it to a file list so it doesn't run that file again. You can edit this list from the Condition Editor. It's best to choose a temporary folder for your output, as the process will move the final renamed file back to your input directory.
To create the text to paste inside a batch file, instead of clicking Run after you enter your directories, go to Tools, Copy Commandline to Clipboard.
Hopefully everything works for you! The ad detector can be useless at times, one channel here it just won't detect any ads on. For some reason the ad detector also hangs most of the time I run it from a batch file, but very rarely from the GUI.
Do more with your TVâ„¢
Record to MPG & stream Live TV (AutoDVRConvert)
Automated Ad Removal (DVRMS Toolbox)
Automated compression after x days (Crunchie)
Manually crop DVR-MS length and remove ads (DVR Edit)
1. Download and install DVRMS Toolbox, restart your PC.
2. In the start menu folder, launch the ProcessingConditonEditor. These are the rules that DVRMS Toolbox will follow when you either run it from a batch file or on a whole folder from the GUI.
Double click Every File, and from the dropdown at the top select 'Cut commercials out of a DVR-MS file and output DVR-MS'. This is the process we'll run against the DVR-MS files, and will customise in the next step.
Click add to create a new rule for the Every File condition. Select Duration, Does Not Contain, and type -1. When a DVR-MS is still being recorded this is its duration, so this way it won't try editing a file that is still being created.
Unfortunately MP doesn't save any show specific information to the metatags in DVR-MS files, so we can't use any other criteria to filter what files are processed (like Channel, Genre, Show Name, etc).
Save all your changes to close.
3. Now launch DVRMSToMPEGSettings, where you can customise the processes you run. Double click 'Cut commercials out of a DVR-MS file and output DVR-MS' and you'll be presented with the steps the process runs through.
Instead of describing each step, just copy what is in the screenshot.
'Replace & with And in the input file name' Some other programs you use (like Crunchie, which I'll cover in a different thread) choke on & characters. This is a good time to switch it if you want, but Media Portal's Recorded TV won't pick up on the changed file name.
'Migrate value in Context["OutputFile"] to Context ["InputFile"]' This is purely for the benefit of the following steps, as DVRMS Toolbox only allows you to rename input files, not output files.
'Replace _tooled with in the input file name' When you run the commercial cutting without this step, DVRMS Toolbox ads _tooled to the end of your processed file name. For me this is a pain because I want to replace the original file, so when I play it from Recorded TV in MP I get the ad free version without any changes (although the duration in MP stays at the original value). This replaces _tooled with an empty value, thereby removing it.
'Move file specified in Context ("InputFile") to D:\Recorded TV' This moves the file from the output directory you specify when running the process to whatever folder the original files are in, and overwrites it. Select DeleteExisting in the options for this.
You can also delete the step that adds Tooled to the metatag, Advances the slider and whatever else, as this doesn't affect MP or the file processing.
Save all your changes and it'll close.
4. Open DVRMSToMPEGGUI, this is where you can run processes from or create a batch file to do so automatically in the future.
Click the Process Directory tab, enter in your destinations (double click on the text field to find the folder) and hit run. This will now match the files in the directory against what is in the Condition Editor. As each file is completed successfully, it ads it to a file list so it doesn't run that file again. You can edit this list from the Condition Editor. It's best to choose a temporary folder for your output, as the process will move the final renamed file back to your input directory.
To create the text to paste inside a batch file, instead of clicking Run after you enter your directories, go to Tools, Copy Commandline to Clipboard.
Hopefully everything works for you! The ad detector can be useless at times, one channel here it just won't detect any ads on. For some reason the ad detector also hangs most of the time I run it from a batch file, but very rarely from the GUI.
Do more with your TVâ„¢
Record to MPG & stream Live TV (AutoDVRConvert)
Automated Ad Removal (DVRMS Toolbox)
Automated compression after x days (Crunchie)
Manually crop DVR-MS length and remove ads (DVR Edit)