EPG cannot show Chinese - TV (air) (ver. 3.3.110)
Added by Chan Tai Man about 12 years ago
I live in Hong Kong. However, the EPG cannot show Chinese using brower. Only show english.
Any idea.
Thanks
Replies (21)
RE: EPG cannot show Chinese - TV (air) (ver. 3.3.110) - Added by Adam Sutton about 12 years ago
Does your EPG provider provide the information in Chinese? TVH does not do translation, it merely allows selection from the provided languages (where available). Though I guess its not unreasonable to assume that signals in Hong Kong would include a Chinese set.
Can you send me your .hts/tvheadend/epgdb.v2 file (you'll need to stop TVH first).
Adam
RE: EPG cannot show Chinese - TV (air) (ver. 3.3.110) - Added by Chan Tai Man about 12 years ago
Hong Kong TV is include a Chinese. I use tv_grab_dvb to grab the file. It inlcude Chinese set. Please refer attached file. However, tv_grab_dvb cannot handle "space". Some Chinese Program name are miss. I also send the epgdb.v2 to you.
In tvheadend set Default Language to "Chinese"
What is the format for .v2 and how to open it?
Thank you for your help.
RE: EPG cannot show Chinese - TV (air) (ver. 3.3.110) - Added by Adam Sutton about 12 years ago
The EPG DB file is a binary serialized version of the standard TVH configuration format (or nearly), you can extract it to a more human readable format using the epgdump script provided with the source code:
./support/epgdump PATH_TO_DB_FILE
From what I can see your DB only contains information retrieved from the DVB network (EIT) and not anything you've tried to insert using XMLTV. However this EIT data only appears to include the English data, which is probably why you don't yet have any chinese.
I ran the attached XMLTV file through the parser and it appeared to correctly extract and store the chinese strings.
One thing I don't understand is if you're using tv_grab_dvb to pull the EPG data (presumably with TVH offline) how that is managing to get Chinese strings when TVH cannot. There really should be no need to use tv_grab_dvb as all the important functionality of that script should already exist inside TVH.
Adam
RE: EPG cannot show Chinese - TV (air) (ver. 3.3.110) - Added by Chan Tai Man about 12 years ago
If the important functionality of that script should already exist inside TVH. I don't know why EPG cannot show Chinese in TVH.
However, I modify below file in tv_grab_dvb
dvb_text_iconv.c line 56
//[0x11] = {encoding_fixed, "ISO-10646/UCS2"}, // FIXME: UCS-2 LE/BE ???
[0x11] = {encoding_fixed, "UTF-16BE"}, // hong kong 0x11 is UTF-16BE
let the program can grab Chinese into the XMLTV fiel.
According to previous file. THV only grab six channels and tv_grav_dvb can get 11 channels
Thanks
RE: EPG cannot show Chinese - TV (air) (ver. 3.3.110) - Added by Adam Sutton about 12 years ago
Ah OK,
yes it looks like TVH does not include the conversion routines for the Chinese encoding. I'll see if this can be looked at.
But that doesn't explain why the XMLTV input is not being loaded as I think it should. Try disabling all OTA EPG sources (EIT etc...), stop TVH, remove the EPG DB file and then restart. See if it then loads the XMLTV properly.
Adam
RE: EPG cannot show Chinese - TV (air) (ver. 3.3.110) - Added by Chan Tai Man about 12 years ago
Disabling all OTA EPG sources (EIT etc...), stop TVH, remove the EPG DB file and then restart. Still only grab 6 channels' EPG and cannot grab other 5 channels. Also cannot show Chinese.
updated EPG DB file attached
RE: EPG cannot show Chinese - TV (air) (ver. 3.3.110) - Added by Adam Sutton about 12 years ago
I really don't understand this. That DB file still only contains data from EIT and nothing from XMLTV. What debug output do you get when the XMLTV script runs?
Adam
RE: EPG cannot show Chinese - TV (air) (ver. 3.3.110) - Added by Chan Tai Man about 12 years ago
How to see the debug output and where to run the XMLTV srcipt?
Please advise - I will try it.
Thanks
RE: EPG cannot show Chinese - TV (air) (ver. 3.3.110) - Added by Chan Tai Man about 12 years ago
Cannot enable grabber module. Why
See attached.!!
grabber.jpg (15.6 KB) grabber.jpg |
RE: EPG cannot show Chinese - TV (air) (ver. 3.3.110) - Added by Adam Sutton about 12 years ago
I don't fully understand? But if you're saying the only thing in the drop-down is "Disabled", that means it couldn't find the XMLTV scripts. They must be in the PATH and begin tv_grab_ for TVH to find them (or you must have tv_find_grabbers in the path).
Adam
RE: EPG cannot show Chinese - TV (air) (ver. 3.3.110) - Added by Chan Tai Man about 12 years ago
The drop-down only show "Disabled". Where can I find the XMLTV scripts? Where is the path? I complie from github https://github.com/tvheadend/tvheadend. Is the build included the XMLTV script or I need to download the tv_grab_.
Thanks
RE: EPG cannot show Chinese - TV (air) (ver. 3.3.110) - Added by Adam Sutton about 12 years ago
XMLTV is not provided with TVH, however if you install it via the debs it will most probably pull them in.
IF you've done the install manually then you will need to install XMLTV manually as well, sudo apt-get install xmltv-utils. However I thought you already had XMLTV since you provided output from an XMLTV script? Or have you only got that locally available and not in the system path?
Adam
RE: EPG cannot show Chinese - TV (air) (ver. 3.3.110) - Added by Chan Tai Man about 12 years ago
After install xmltv-utils. I can select tv_grab* in the Web. However, no tv_grab suitable for Hong Kong TV. I can use tv_grab_dvb srcipt to output XMLTV file. Where is the path TVH can use the XMLTV file.
Thanks
RE: EPG cannot show Chinese - TV (air) (ver. 3.3.110) - Added by Adam Sutton about 12 years ago
If you have a local XMLTV script (tv_grab_dvb in this case) it must be located somewhere in the PATH that is set at the time TVH is started. Then it should be listed along with the other scripts.
Adam
RE: EPG cannot show Chinese - TV (air) (ver. 3.3.110) - Added by Chan Tai Man about 12 years ago
Thanks
When TVH used the script output the XMLTV file. Where can I find the XMLTV file.
RE: EPG cannot show Chinese - TV (air) (ver. 3.3.110) - Added by Adam Sutton about 12 years ago
No file is created the output from the script is simply read directly by TVH.
Adam
RE: EPG cannot show Chinese - TV (air) (ver. 3.3.110) - Added by Chan Tai Man about 12 years ago
Thanks
RE: EPG cannot show Chinese - TV (air) (ver. 3.3.110) - Added by Chan Tai Man about 12 years ago
Adam,
I put tv_grab_dvb in the path /usr/bin. However, I cannot find tv_grab_dvb script in EPG Internal Grabber. How to use tv_grab_dvb XMLTV for THV use.
Thanks
RE: EPG cannot show Chinese - TV (air) (ver. 3.3.110) - Added by Adam Sutton about 12 years ago
Hmmm,
Can you check that tv_grab_dvb responds to the following:
tv_grab_dvb --capabilities
and
tv_grab_dvb --description
Also can you check if you have the tv_find_grabbers script installed and if so what does it output?
Adam
RE: EPG cannot show Chinese - TV (air) (ver. 3.3.110) - Added by Chan Tai Man about 12 years ago
tv_grab_dvb --capabilities
and
tv_grab_dvb --description
same output.
tv_find_grabbers cannot find the script tv_grab_dvb.
Please refer attached file.
tv_grab_dvb.png (72.9 KB) tv_grab_dvb.png | |||
tv_find_grabbers.txt (1.14 KB) tv_find_grabbers.txt |
RE: EPG cannot show Chinese - TV (air) (ver. 3.3.110) - Added by Adam Sutton about 12 years ago
I'm afraid that is your answer, that script does not respond to the standard XMLTV script options and therefore neither TVH not tv_find_grabbers are able to locate the script (or more specifically validate it as an XMLTV script). Therefore you cannot use it as is.
You have 2 options:
1) fix the script so that it returns valid output for those two options, --description should just be a string describing the script and --capabities can just return teh string "baseline" I think.
OR
2) enable the external XMLTV interface (see epg grab config tab) and send the data into the socket that is created (path listed in the config tab) using netcat, e.g:
tv_grab_dvb | netcat -U SOCK_PATH
Note: on some systems the version of netcat requires -u (lowercase) rather than -U (uppercase).
You can then run this command in a cronjob.
Adam