Internal Filenames

From MythTV Official Wiki
Revision as of 11:43, 21 October 2013 by Dekarl (talk | contribs) (channel number defaults to id of the video source * 1000 + 16bit program_number for DVB channels)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Naming convention

MythTV uses long numeric filenames to name the captured recordings that it saves. The format, as of 0.19, is

  |     |        |
  |     +--------+------------------- Start time of recording
  +---------------------------------- Channel ID

The channel id is 4 digits long or longer (see ChannelUtil::CreateChanID()) and includes the Video Source identifier as well as the channel number. The channel ID can be used to lookup detailed information in the channel table. The time stamps are formatted as follows:


The last two digits, nn, are generated to make unique filenames and does not reflect the start time of the program in seconds. is a convenient script which will rename the recording files to be more human readable and update the database.