Difference between revisions of "Internal Filenames"

From MythTV Official Wiki
Jump to: navigation, search
(5 digit channel id note added.)
(channel number defaults to id of the video source * 1000 + 16bit program_number for DVB channels)
 
Line 9: Line 9:
 
   +---------------------------------- Channel ID
 
   +---------------------------------- Channel ID
  
The channel number is 4 digits long (but see note) and includes the [[Tuner Card]] 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 channel id is 4 digits long or longer (see [http://code.mythtv.org/doxygen/classChannelUtil.html#ab8d92b1ef931b979f50b0a3bbec7964b 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:
 
  yyyymmddhhmmnn
 
  yyyymmddhhmmnn
 
The last two digits, <tt>nn</tt>, are generated to make unique filenames and does not reflect the start time of the program in seconds.
 
The last two digits, <tt>nn</tt>, are generated to make unique filenames and does not reflect the start time of the program in seconds.
Line 15: Line 15:
 
[[mythrename.pl]] is a convenient script which will rename the recording files to be more human readable and update the database.
 
[[mythrename.pl]] is a convenient script which will rename the recording files to be more human readable and update the database.
  
Note:  Following a DVB-T channel reallocation in the UK, channel 20 (Drama) has a 5 digit channel ID.  Using Mythtv 0.25.
 
 
 
 
[[Category:Glossary]]
 
[[Category:Glossary]]

Latest revision as of 11:43, 21 October 2013

Naming convention

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

 1022_20051120194900.mpg
  |     |        |
  |     +--------+------------------- 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:

yyyymmddhhmmnn

The last two digits, nn, are generated to make unique filenames and does not reflect the start time of the program in seconds.

mythrename.pl is a convenient script which will rename the recording files to be more human readable and update the database.