Ad removal
Free-to-air recordings come with their ad breaks. Freetvarr can find those breaks, and optionally cut them out, using Comskip (an ad-detection tool) and FFmpeg, both bundled in the Freetvarr Docker image. Ad removal is off by default. Detection is sometimes wrong, so Freetvarr keeps the original of every cut.
Modes
- Detect leaves the video as it is. It saves where the breaks are against the recording, and in an
.edlfile (a text list of the break times) beside the video (for exampleShow - S01E02.edlnext toShow - S01E02.ts). Use it to check how accurate Comskip is on your channels, or to skip the ads instead of cutting them. - Cut removes the breaks by copying the video across untouched (no re-encoding; the output stays
.ts) and keeps the original as<file>.ts.orig. - Off (the default) skips ad removal for the series.
WARNING
Detection accuracy varies channel by channel, because every broadcaster cuts its breaks differently. Set a series to Detect mode first, and check the breaks Freetvarr reports in the recording log before you switch the series to Cut.
Turn it on
In Freetvarr, turn on ad removal in Settings → RECORDING → Ad removal, then press Save settings. Then open the series in Series rules, pick a mode under Ad removal, and press Save. For one show, you can also turn on Remove ads in Recording options, which sets the series to Cut. Ad removal runs only when both the Settings switch and the series mode are on. To scan one episode by hand, press Find ads, Remove ads, or Remove ads again in its episode menu or in the recording log. A dialog says what changes and what stays before anything starts.
Skip instead of cut
A cut that goes wrong loses part of the show. A skip that goes wrong costs nothing (you rewind). Detect gives you skips in the players that read the .edl file:
- Kodi skips each break once, by itself, when it plays the video from your library folder. Rewind to watch a break.
- Jellyfin needs a plugin that reads
.edlfiles (e.g. EDL to Media Segments), then shows the breaks as commercials you can skip. - Plex, VLC, and Infuse do not read
.edlfiles. Plex skips ads only in recordings made by its own DVR. For these players, use Cut.
Freetvarr's own player also reads the .edl file. While you watch a recording inside a break, a Skip ad button appears at the bottom right of the picture. Press it to jump to the end of the break. Freetvarr never skips by itself. A recording with no .edl file, or one cut by Cut mode, shows no button.
If you rename or move a video by hand, rename or move its .edl with it. A later Cut or a scan that finds no breaks deletes the .edl.
Backups and retention
The first cut keeps the original recording as <file>.ts.orig for the number of days in Keep the original after a cut for (days) in Settings → RECORDING → Ad removal (default 7). The cleanup after each sync removes the backup when the window ends, whatever the last scan found. Deleting the episode deletes its backup too.
Remove ads again starts from the .orig backup while it exists, so the original with ads always survives a second cut. A second cut does not restart the window: the backup keeps the date from the first cut. If the scan of the original finds no breaks, Freetvarr puts the original back in place of the cut, the same as Put the original back. After the backup is gone, Remove ads again cuts the episode as it is now and keeps that version as the new .orig backup. The dialog says which version it keeps.
To undo a cut, press Put the original back in the episode menu while the backup exists. A dialog shows what changes, then the .orig file becomes the episode file again, Freetvarr clears the ad break times, and Freetvarr asks Plex to check the episode again. When the backup is a cut version, the item reads Put the previous version back.
The comskip.ini
Freetvarr ships a comskip.ini tuned for Australian free-to-air, the author's own channels. It is an example, not a requirement. To use your own, put a comskip.ini in Freetvarr's settings folder (config/freetvarr next to your docker-compose.yml, which is /config inside the Freetvarr Docker container). Settings → RECORDING → Ad removal shows which file is in use.
Cost and gating
Scans work the CPU hard: budget roughly 30 minutes per 75-minute recording on NAS-class hardware (the author's measurement on a dual-core Celeron; faster CPUs finish sooner). Scans run at low priority, so imports still run at full speed. For a Cut-mode show, Freetvarr removes the TVHeadend copy only after the cut passes its checks, so a failed cut leaves the original in TVHeadend.
Cuts snap to keyframes (the frames in a video that a player can start from), so a second or two either side of a break is expected. The full pipeline (verify-then-swap, keep-segment maths, crash recovery) is in the deep dive.