Set up your server for the app
What to set in Tvheadend so channel logos, program pictures, favorites, genres, timeshift, recordings and ad breaks work in Tvheadend Player.
On this page
Tvheadend Player shows what your Tvheadend server sends it. When logos, pictures or genre colors are missing, the fix is almost always a setting on the server, not in the app. This page goes through the settings that matter.
The menu paths below are from Tvheadend 4.3’s web interface. Some fields only appear when the View level button at the top of a tab is set to Advanced or Expert.
Your Tvheadend account
The app talks to Tvheadend over HTSP only. Under Configuration → Users → Access Entries, the account the app signs in with needs:
- Streaming: HTSP, to load channels and the guide and to watch.
- Video recorder: HTSP, to record, stop and delete recordings.
It doesn’t need Web interface or Admin. Without the recorder right you can still watch, and the app says Your account isn’t allowed to record when you try. An account that can’t see channels or a channel gets No access to channels or No access to this channel.
Channel logos
Logos are the channel icons you set in Tvheadend. There are two ways to give channels an icon:
- Picons. Put a folder of picon files on the server and set Picon path and Picon name scheme under Configuration → General → Base, in the Channel icon/Picon Settings group.
- One icon per channel. In Configuration → Channel / EPG → Channels,
set User icon to a web address, or to a
file:///path on the server.
Icons that are files on the server reach the app through the same connection it already uses. Icons that are web addresses depend on Tvheadend’s image cache: with the cache on, Tvheadend downloads them and passes them on; with it off, the TV loads them from that address itself, so it has to be able to reach it.
A channel without a logo shows a small TV symbol, or its name in Channels. Logos are saved on the TV, so they still show when the server can’t be reached.
Program pictures
Program pictures come from your guide data and, like logos, go through Tvheadend’s image cache. Program pictures has the setup, including backdrops and episode pictures without title lettering.
Favorites: channel tags
The app has no favorites list of its own. It uses Tvheadend’s channel tags, so a favorites list is a tag with the channels you want in it:
- In Configuration → Channel / EPG → Channel Tags, add a tag, for example Favorites. Leave Enabled ticked and Internal unticked; internal tags aren’t sent to apps.
- In Configuration → Channel / EPG → Channels, add the tag to each channel in the Tags column.
In the app, the Tags button on Home, in Channels and in the guide switches between your tags and All channels. The choice applies to all three. To hide tags you don’t use, go to Settings → Channel groups. At least one group has to stay on.
Genres and guide categories
Genre colors in the guide, the guide’s Filter by genre, Browse by genre on Home and the Genres folders in Recordings all use DVB genre codes. Tvheadend stores one per program when the guide data gives it one. The app groups them into ten genres: Film & drama, News, Entertainment, Sport, Children, Music, Arts & culture, Society & politics, Education & factual, and Lifestyle & leisure.
Category text is something else. A program can have categories like Sports or Crime drama and still no genre code. The details page lists that text under Categories, but it doesn’t color the guide or match the filter.
Guide data from the broadcast carries genre codes when the broadcaster sends them. For an XMLTV guide, Tvheadend gives a program a genre in two cases:
- A
<category>text is exactly one of Tvheadend’s genre names, such as Movie / Drama or Football / Soccer. Case and spaces don’t matter, other words don’t count. - The category has a DVB code, such as
code="0x45", and the XMLTV module’s Category Code XPath is set to read it.
Either way, Use category instead of genre must be off for that XMLTV module in Configuration → Channel / EPG → EPG Grabber Modules. When it’s on, Tvheadend keeps only the text.
Most XMLTV sources use their own words for categories, so few programs end up with a genre. I wrote xmltv-dvb-genres for that: it sits between the grabber and Tvheadend and rewrites each program’s categories into a genre name Tvheadend knows. It comes with a table for Schedules Direct; other sources need their own.
Genres you change on the server reach programs Tvheadend already has only after it imports the guide again. While the app is connected, it shows the changes Tvheadend sends. There’s no refresh button. If a change still doesn’t show, force-stop the app in the TV’s app settings and open it again, and it loads the guide from the server.
Pause and rewind: timeshift
Pausing and rewinding live TV uses Tvheadend’s timeshift buffer, so the server has to have it on: Configuration → Recording → Timeshift, tick Enabled.
- The app asks for up to two hours. Maximum period (mins) on the server can make that shorter. With Unlimited time ticked, you get the full two hours.
- With On-demand (no first rewind) ticked, the buffer starts when you first pause, so you can’t go back to before that.
- Where the buffer is stored and how big it can get is set on the same tab.
In the app, Settings → Playback → Timeshift is on by default. When the server doesn’t give the channel a buffer, Pause says Pause isn’t available on this channel. With the app’s setting off, it says Timeshift is off in Settings.
Settings → Playback → Keep paused TV tuned keeps a paused channel tuned while you’re in another app, so you can continue where you paused. It keeps a tuner busy and ends early once the timeshift buffer is full. It only works with Timeshift on.
Recording profile
Tvheadend’s recording profiles, under Configuration → Recording → Digital Video Recorder Profiles, decide the file format, where recordings go and how much extra time they get at the start and end. When the server has more than one, pick the one the app records with under Settings → Recordings → Recording profile. Tvheadend’s unnamed default profile shows as Default profile, and that’s what the app uses until you choose another.
The file format matters if you want to watch a recording while it’s still running. That works with MPEG-TS and with Tvheadend’s built-in Matroska profile. MP4 recordings and recordings from the libav Matroska profile play once they’re finished; until then the app says This recording can be played once it’s finished.
Ad breaks and cuts
The app shows ad breaks and cuts on a recording’s timeline and can skip them. Tvheadend doesn’t find ad breaks by itself. It reads them from files with the same name as the recording, next to it:
.txt: the frame list that Comskip writes. Every entry counts as an ad break..edl: one line per span, with start and end in seconds and a type:0cut,1mute,3ad break.
For News.ts, that’s News.txt or News.edl in the same folder. Tvheadend
deletes these files along with the recording.
To make them for every new recording, run Comskip or a similar tool from
Tvheadend’s Post-processor command in the recording profile under
Configuration → Recording → Digital Video Recorder Profiles (an Advanced
field). It runs when a recording ends, and %f stands for the recording’s full
path. For recordings you already have, run the tool on the files directly.
The app asks for the marks when you start playing a recording. When a mark file appears later, start the recording again.
In the app, Settings → Playback → Recording marks decides what happens:
- Ad breaks: Ask (the default) shows a Skip ad break button when a break starts, Skip automatically jumps over each break once, Off plays them. The breaks still show on the timeline.
- Skip cuts is on by default and jumps over spans marked as cuts. The file itself isn’t shortened. Mute spans play silent.
- Skip lands decides whether playback continues at the end of a break or a few seconds before it.
A recording’s playback options also have an Ad breaks entry that overrides the setting for that recording only. It reads None marked when the recording has no ad breaks.
MKV and MP4 recordings that store chapters in the file show those as marks too, without any extra file. When a recording also has ad breaks or cuts marked, only chapters with a name show.
Something missing or wrong on this page? Tell me on GitHub.