Skip to content

Commercials

Hugh Mackworth edited this page Mar 24, 2019 · 5 revisions

Commercials

How to handle Commercials with cTiVo

While downloading shows, cTiVo can automatically Cut or Mark commercials for you, but it must first locate the commercial breakpoints. Cutting means to completely delete the commercials, shortening the video. Marking means to add chapter markers before and after the commercial breakpoints, so they can be easily skipped in whatever video player you use. If you choose to Mark or Cut shows, there are a number of issues to consider before proceeding.

Cut

Accurate commercial breakpoints is obviously critical with Cutting; otherwise, parts of the show may be completely lost. Cut is only supported with Formats using ffmpeg, so Handbrake and Decrypt MP4 Formats can’t be used. Finally, the deletions occur as the file is encoded, so the breakpoints need to be available before encoding starts. On the other hand, the resulting files are smaller, and the playback experience is better as you don't have to manually skip over the commercials.

Mark

Accurate chapter markers are not as critical with Marking, as you can just backup and view any incorrectly skipped portions of a show. Chapter marks are added to the output file after it has been encoded. However, chapter markers only work in MP4 files, and are not supported by some video players.

Finding Commercials

There are two ways for cTiVo to find the commercial breakpoints. First, cTiVo can use “Comskip”, a 3rd-party utility built into cTiVo, to scan the show looking for clues that indicate a commercial. Alternatively, "SkipMode" breakpoints are provided directly by TiVo on recent TiVo models for certain shows. 

Comskip

Comskip finds the breakpoints by scanning the entire show looking for patterns that indicate commercial breaks by analyzing changes in the video  (e.g. black screen transition, channel icons, etc). It’s a CPU-intensive process that takes a few minutes to complete per show.  It’s been used for many years and is surprisingly accurate, but can be tripped up when the differences between the show and the commercials are subtle. 

SkipMode

With SkipMode, TiVo marks the commercials for certain shows. As TiVo's SkipMode analysis is done by humans, it is almost 100% accurate. However, there are some complications: 1) SkipMode may not appear until hours after a show ends, 2) SkipMode is only available for popular channels/shows, not news or sports, and may randomly be unavailable for an episode of a show that normally has it, 3) SkipMode is not available on TiVo Suggestions, unless you Keep the show on TiVo, and 4) most annoyingly, the only way to get the SkipMode breakpoints is for cTiVo to literally play the video and jump to each segment to find where it starts, thus disrupting viewing on the TiVo for 10-20 seconds per show. cTiVo makes it as easy as possible to take advantage of SkipMode, while falling back to Comskip as needed.

If you have a supported TiVo, shows with SkipMode will have a green SKIP icon next to them in the TiVo's Now Playing list. In cTiVo, a show will have one of the following five icons next to it:

SkipMode breakpoints might still be coming (SkipMode-supported channel, and time hasn't expired).

SkipMode breakpoints are available on your TiVo, but have to be retrieved by cTiVo, either manually or automatically.

SkipMode breakpoints are fully loaded into cTiVo.

SkipMode breakpoints failed to load (most likely due to an incomplete recording).

Commercial breakpoints have been calculated by Comskip.

When SkipMode breakpoints become available, they can be automatically retrieved for shows in the Download Queue. If the SkipMode breakpoints aren't available when needed, the download will pause until they become available or until the four-hour wait time expires. To avoid interrupting your viewing, you can schedule a range of times in Preferences that's acceptable for cTiVo to take over your TiVo (see “Auto SkipMode Restricted to” in Preferences>General). Furthermore, in Automatic mode, cTiVo will only retrieve SkipMode breakpoints when your TiVo is playing Live-TV (as that's the default mode for an idle TiVo). cTiVo will not interrupt a show being played back or streamed, 

If you prefer not to have cTiVo retrieve automatically, you can disable Auto SkipMode, and the breakpoints can be retrieved manually by selecting a Show or Download and selecting "Get SkipMode from TiVo" from the cTiVo menus (either TiVo menu or right-click contextual menu). 

Best of Both Worlds (for Commercials at least):

In Preferences>General>Commercial>Strategy, you can choose whether to use Comskip or SkipMode only, or "SkipMode → Comskip", which means "Use SkipMode but if it's not available, fall back to Comskip instead". if you're concerned about losing any content due to any incorrect guesses in Comskip: set "Commercial Handling" to "SkipMode → Comskip (Mark)", then if you do a Skip on a show, and SkipMode is not available (or fails), then cTiVo will Mark using Comskip instead.

So...if you want to use SkipMode:

  • Go to Preferences>General>Commercials
  • Choose whether to Cut or Mark commercials (you can also change this for each download/subscription).
  • Set "Commercials>Strategy"  to one of the SkipMode options.
  • Optionally, enable "Auto SkipMode" and give it the range of time each day that you're NOT going to be watching TV.
  • Note: if you want SkipMode for any pre-existing subscriptions or scheduled downloads, you'll need to enable it in the respective table.

Frequently Asked Questions

Q1. I’m using Cut for a show. Why does it pause with "Wait SkipMode" before encoding?

A1. The breakpoints have to be retrieved before cTiVo starts encoding, as cutting the commercials is part of the encoding process. If the breakpoints have not arrived ("?" icon), cTiVo will wait up to four hours after the show ends before giving up. Once the breakpoints arrive at your TiVo (inverted green on white icon), then cTiVo will wait indefinitely until the breakpoints are retrieved, either automatically during SkipMode window or manually with "Get SkipMode from TiVo". You can also turn off Cutting, and it will proceed without it, or turn off SkipMode and it will proceed with Comskip.

Q2. My TiVo shows that SkipMode is available, but my downloads are paused with a status of "Wait SkipMode" or “Wait SkipMode (Mark)”.

A2a. Make sure Auto SkipMode is enabled in your Preferences. Otherwise, you must manually trigger the retrieval of SkipMode from your TiVo. A2b. Check Auto SkipMode time window. If the SkipMode info arrived on your TiVo after the window closed, then cTiVo will wait until it opens again the next day. Or, just select "Get SkipMode from TiVo". A2c. Check if someone is using your TiVo! Even if SkipMode is available and is within the window, cTiVo minimizes the risk of disrupting a viewer by waiting to start until the TiVo is showing Live TV, which is when it is least likely to be being used. If the TiVo is being used to watch a recorded/streaming show or even on a menu, cTiVo waits for it to drop back into Live TV before proceeding.

Q3. Why does SkipMode not show up on TiVo for a particular episode of a show that normally has it?

A3. The ways of TiVo and SkipMode are mysterious and inexplicable. Feel free to complain to Tivo at shttp://survey.confirmit.com/wix/1/p3075425841.aspx

Q4. Which is better, Comskip or SkipMode?

A4. When available, SkipMode is better than Comskip in every way. But SkipMode isn’t available for many shows, so you’ll likely have to use both.

Q5. Which is better: Mark or Cut?

A5. That’s harder to answer. Cut makes for smaller files and a better viewing experience when the breakpoints are perfect, but there are likely to be occasional shows where parts of the show will get lost. If that’s unacceptable, the best balance might be to use Cut with shows that use SkipMode and Mark with shows that use Comskip. If you use Cut with Comskip, it’s recommended that you keep the show on TiVo until you watch the cut version.

Q6. How does SkipMode processing interact with downloading and encoding?

A6. SkipMode is independent from the downloading/encoding process. If a download is paused with “Wait for SkipMode” status, other shows in the download queue will proceed with downloading, encoding, and Comskip processing. Pausing the queue does not pause SkipMode processing as it takes very little processor power.

Q7. Why isn't cTiVo allowing or waiting for SkipMode on channel XYZ?

A7. TiVo only provides SkipMode on the top 20 channels. The list is at https://www.tivo.com/popup/skipmode-channels . On the other hand, if cTiVo does see SkipMode on another channel, it will remember it (this also handles ABC, CBS, etc affiliates). You can manually enable/disable a SkipMode channel in Preferences>Channels.

Q8. Something else?

A8. Ask us at https://github.com/mackworth/cTiVo/issues