2014-11-14, 18:09
I am hoping someone can help me here. I am attempting to make use of the ExternalAction trigger that was added to serverWMC to run a program called CCExtractor which creates an *.srt file by processing a North American ATSC broadcast recording. This allows me to watch the shows with subtitles after the recording is complete. I have tested the batch file I have written that I am attempting to trigger when a recording completes, and it works if I specify the exact file name of the recording. I am at a loss for how to pass the arguments from this post (http://forum.kodi.tv/showthread.php?tid=...pid1605365) on to CCExtractor. Is there a standard syntax for this type of thing or is it dependent on CCExtractor? I previously used CCExtractor as part of my setup when I was using NextPVR (which I am SO glad to be done with now that serverWMC exists!) and the batch file for that was:
ccextractorwin.exe -srt %1 -o "%~dpn1.srt"
I can't say I understand exactly what it all meant, but it worked to take a just-completed recording (somehow designated at "%1") and then create a *.srt file with the same file name in the same location with only the file extension changed. When I replace %1 with a file name in quotes and replace %~dpn1.srt with the filename.srt, it works fine. But as it is listed above, I get no *.srt file. The only thing that changes is the date attached to the file, which switches to a seemingly random date (or at least one that I can't decipher the pattern). Can anyone help?
@krustyreturns - it looks like you might have something like this working already based on your post about live closed captions. I don't need live, but I could REALLY use the automated post-recording system if you have it working!
Thanks for all the help!
ccextractorwin.exe -srt %1 -o "%~dpn1.srt"
I can't say I understand exactly what it all meant, but it worked to take a just-completed recording (somehow designated at "%1") and then create a *.srt file with the same file name in the same location with only the file extension changed. When I replace %1 with a file name in quotes and replace %~dpn1.srt with the filename.srt, it works fine. But as it is listed above, I get no *.srt file. The only thing that changes is the date attached to the file, which switches to a seemingly random date (or at least one that I can't decipher the pattern). Can anyone help?
@krustyreturns - it looks like you might have something like this working already based on your post about live closed captions. I don't need live, but I could REALLY use the automated post-recording system if you have it working!
Thanks for all the help!