WHat is the order of things to do after cutting commercials?

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

What I do is

  1. Refresh Metadata
  2. Regenerate Video Index
  3. Edit Commercials (to mark all as Show material, faster than Redetect Commercials)

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.

1 Like

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

1 Like

Thank you very much :slight_smile: It helps a lot