I always have problem with this. When I cut off commercials using my script and move and rename video to the previous location what I should do in what order?
- regenerate video index
- redetect commercials
- fix video timestamp
I always have problem with this. When I cut off commercials using my script and move and rename video to the previous location what I should do in what order?
What I do is
If you didn't have commercial detection run on the original recording and you're replacing it with a copy that has the commercials removed, then no need for step 3.
Is there any way to run action 1 and 2 using API request?
No published API AFAIK.
There are endpoints you can poke/prod by examining what the web UI sends to/receives from the DVR engine.
Since they're not open/exposed/published they could change/break at anytime.
The devs don't support them, so you're on your own.
This is how I figured out how to add manual time/channel based recording jobs.
HINTS;
Refresh Metadata PUT http://x.x.x.x:8089/dvr/files/FILE#/reprocess
Regenerate Video Index PUT http://x.x.x.x:8089/dvr/files/FILE#/m3u8
Thank you very much
It helps a lot