(Unofficial) Magic TV tv file maker v0.3
========================================
by IShin 2008
http://i-shin.blogspot.com
For comments and suggestion, welcome to leave at my blog =]

Make sure you make backup of tv folder and tv.db.
Use at your own risk!

File Structure of Magic TV Media Storage
----------------------------------------
+ts\		transport stream (*.ts)
+tv\		transport stream playback info (*.tv)
 tv.db		database

Steps to add a TS (transport stream)
------------------------------------
Make sure the file you want to add is 188byte TS,

1. Put the TS file in ts folder
2. Use the exe to generate the tv file and put it in tv folder

   Press "Determine from TS file..." to automatic fill up all the fields
   Change the Video Info and Channel Info as you want

3. delete tv.db
4. Standby Magic TV ( Red circle button on remote )
5. Plug in the USB HDD back to Magic TV
6. Power On

Magic TV will then regenerate tv.db

Fields
------
[TV File Database]
 TS file name

 Video Length

 File Size

[Video Info]
 The language shown on the info panel is followed by the EPG setting(CHI/ENG) of the channel.

 CHI Title		UTF-8 encoding (Traditional Chinese/Japanese OK)

 ENG Title		UTF-8 encoding (Traditional Chinese/Japanese OK)

 CHI Description	UTF-8 encoding (Traditional Chinese/Japanese OK)

 ENG Description	UTF-8 encoding (Traditional Chinese/Japanese OK)


[Channel Info]
 Channel no		Make sure the channel exists in Magic TV!

 Start Day/Time

[Programme Management]
 Folder			Not in Folder / My favourites / Series / Sport / Movie / Concert /
			Travel / Children / Performance / Arts / Music / Culture / Education /
			Entertainment / Documentary / User 1 / User 2 / User 3 / User 4


Version History
---------------
0.3
- feature enhancement:
  Set Programme Folder(e.g. Series/Sport/Movie...)

- Read TS file and check if
  a. TS is 188 bytes
  b. any unknown stream (e.g. audio/video stream not found)

- Auto complete Video Length and TS File Size upon successful reading of TS file

- Auto complete Chanel no, Start Day/Time if TS File name is MTV default stamp
  YYMMDDHHMMSS_XXX_PROGNAME.ts

- bug fix:
  new line character in description (new line is now shown)

0.2
- feature enhancement:
  file size, channel no, start time, chi/eng description

- known bug:
  new line character in description (To be tested/determined)

0.1
- initial release


Related work
------------
Tv File Maker (PHP)
by stanleyau@avbuzz
http://202.155.247.164/tvFileMaker/

Related document
----------------
pʼW[CɮרMagicTV
by ainono@uwants
http://www.webfilehost.com/?mode=viewupload&id=4564075
