Is it possible to icorporate ffmpeg from synology into Tvheadend
#1
Question 
Hello Together,

currently I'm having a really strange combination of PVR Backend on my Synology DS214play. I have installed following packages:
  • Tvheadend (3.9.xx)
  • DVBLink for IPTV (5.1)

In this combination, Tvheadend is tuning the DVB-Hardware (Sundtek DVB-C Stick) and this is working perfectly. In Tvheadend also all the DVB Program Guide Data is there.

I also need DVBLink for IPTV to grab all Tvheadend channels and then be able to transcode the streams (from 1080i to 1080p) with hardware acceleration.
This is done cause DVBLink is using the Intel Chip for transcoding and my FireTV's are not able to deinterlace the Live TV Stream. Transcoded to a 10-12Mbit 1080p stream the Picture is perfect on the FireTVs.

I know a lil confusing maybe. The point is that the DVBLink for IPTV is not reading the DVB EPG data from the Streams. Sad

So is there any way to transfer the data from Tvheadend to DVBLink or to a xmltv.xml-File? I'm open to any hint or Idea Smile

Thanks again for the great support here Smile I hope with so many creative ppl here in teh forums, there will be someone who know how this can be done Smile

Regards
Vlaves
Reply
#2
You could start here if you want to take the long road...

https://tvheadend.org/projects/tvheadend/wiki/Epgdb

... or you could perhaps switch to using XMLTV instead of an OTA grabber and then feed the EPG to both applications.

From a quick Google, it looks like Synology (or the DVBLink folks?) have customised ffmpeg to support Evansport H/W encoding - if those patches were pushed upstream and merged then it should be perfectly possible for tvheadend to do the transcoding natively for you using the media chip instead of CPU. One day, perhaps :-)
Reply
#3
(2015-01-27, 17:46)Prof Yaffle Wrote: You could start here if you want to take the long road...

https://tvheadend.org/projects/tvheadend/wiki/Epgdb

... or you could perhaps switch to using XMLTV instead of an OTA grabber and then feed the EPG to both applications.

From a quick Google, it looks like Synology (or the DVBLink folks?) have customised ffmpeg to support Evansport H/W encoding - if those patches were pushed upstream and merged then it should be perfectly possible for tvheadend to do the transcoding natively for you using the media chip instead of CPU. One day, perhaps :-)

Thanks for the reply Smile Yeah, that is what I also wanted, but there is no free xmltv provider here and EIT has everything I need.

And regarding ffmpeg. I think the changes already were published, but I don't think they are merged already.
Sure, to have Tvheadend supporting hardware acceleration on Evansport, would be the best option Smile

Maybe someone still has an Idea Smile

Regards
Vlaves
Reply
#4
Does someone know i where synology is hosting thei fork of ffmpeg? I couldn't find it.

Thanks for your support Smile

Regards
Vlaves

Edit: Found it here: http://softlayer-ams.dl.sourceforge.net/...nsport.tbz
Reply
#5
Would it be now possible for someone of the tvheadend devs to incorporate those changes in the above Link in to the tvheadend source?

Thanks again for your support here.

Regards
Vlaves

Edit: Changed Thread title to reflect topic better
Reply
#6
As an alternative to Prof Yaffle's idea to use the Tvheadend EPG database one could also use the HTSP method "enableAsyncMetadata" as described in the HTSP dcoumentation

The initial data set will provide channels, tags, dvr and epg entries, which can be written to a xmltv file. In the Tvheadend source there is the python script htspmon which would have to be modified to output xmltv data instead of JSON text.

In my view this would be be farily easy to do with some python and xmltv knowledge.
Reply
#7
I konw that you would rather see
Quote:icorporate ffmpeg from synology into Tvheadend

Nevertherless I have modified the mentioned python script to generate xmltv data from Tvheadend channels and epg entries from HTSP asynchronous initialSync.

Find it here htsp-xmltv.py (EXPIRES: IN 6 DAYS)

To use it you will need python 2.7 plus https://github.com/tvheadend/tvheadend/t...lib/py/tvh.

xmltv output is sent to stdout; just redirect it to a file.

Code:
Usage: htsp-xmltv.py [options]

Options:
  -h, --help            show this help message and exit
  -a HOST, --host=HOST  Specify HTSP server hostname
  -o PORT, --port=PORT  Specify HTSP server port
  -u USER, --user=USER  Specify HTSP authentication username
  -p PASSWD, --passwd=PASSWD
                        Specify HTSP authentication password
  -e, --epg             Do not include EPG data
  -t UPDATE, --update=UPDATE
                        Specify when to receive updates from
Reply
#8
(2015-01-29, 18:00)ulibuck Wrote: I konw that you would rather see
Quote:icorporate ffmpeg from synology into Tvheadend

Nevertherless I have modified the mentioned python script to generate xmltv data from Tvheadend channels and epg entries from HTSP asynchronous initialSync.

Find it here htsp-xmltv.py (EXPIRES: IN 6 DAYS)

To use it you will need python 2.7 plus https://github.com/tvheadend/tvheadend/t...lib/py/tvh.

xmltv output is sent to stdout; just redirect it to a file.

Code:
Usage: htsp-xmltv.py [options]

Options:
  -h, --help            show this help message and exit
  -a HOST, --host=HOST  Specify HTSP server hostname
  -o PORT, --port=PORT  Specify HTSP server port
  -u USER, --user=USER  Specify HTSP authentication username
  -p PASSWD, --passwd=PASSWD
                        Specify HTSP authentication password
  -e, --epg             Do not include EPG data
  -t UPDATE, --update=UPDATE
                        Specify when to receive updates from

Wow, thanks a lot Smile This will help me a lot, til the synology ffmpeg code is getting icorporated.

Regards
Vlaves
Reply
#9
(2015-01-29, 18:00)ulibuck Wrote: I konw that you would rather see
Quote:icorporate ffmpeg from synology into Tvheadend

Nevertherless I have modified the mentioned python script to generate xmltv data from Tvheadend channels and epg entries from HTSP asynchronous initialSync.

Find it here htsp-xmltv.py (EXPIRES: IN 6 DAYS)

...

Thanks agin for your script. But sadly I have now clue how I need to start that script or how to implement a scheduled task on the synology to run the script.

Could you or someone else please assist here Smile

Thanks so much for your help here.

Regards
Vlaves
Reply
#10
Quote:But sadly I have now clue how I need to ...

It would help to have an understanding of the Linux command line: http://ss64.com/bash/.

Give it a try like this.

1. Copy the srcipt and the directory "tvh" from the tvheadend source https://github.com/tvheadend/tvheadend/t...lib/py/tvh on your synology using "File Station" on your synology; for example to /volume1/public

As far as I could verify synology DSM 5.1 has python 2.7 already installed (I have a QNAP, so I cannot tell for sure).

Quote:to start that script
2. get command line access to your synology to verify the that script is running properly

2.1 enable ssh on your synology: Control Panel -> System -> Terminal and SNMP-> enable SSH serrvice

2.2 log into your synology (for example with PuTTy from Windows)

2.3 cd to the path where you copied the script and the "tvh" directory to, for example
Code:
cd /volume1/public

2.4 verify that the script plus th tvh subdirectory are there
Code:
ls -l
should give you output similar to
Code:
-rwxr-xr-x    1 admin      admin          9560 Jan 30 22:45 htsp-xmltv.py
drwxrwxrwx    2 admin      admin         61440 Jan 30 22:38 tvh

2.5 run the script
Code:
python htsp-xmltv.py >htsp-xmltv.xml
should give you output similar to
Code:
2015-02-03 21:55:55 Info   connected to HTS Tvheadend [3.9.2293~g74c563f-dirty]
2015-02-03 21:55:55 Info   using protocol v17
2015-02-03 21:55:55 Info   capabilities [caclient,tvadapters,trace]
2015-02-03 21:55:55 Info   generating xmltv data from channels and epg entries from asynchronous initialSync
2015-02-03 21:56:09 Info   { 'method': 'initialSyncCompleted'}

2.6 verify that the .xml file is now there
Code:
ls -l
should give you output similar to
Code:
-rwxr-xr-x    1 admin      admin          9560 Jan 30 22:45 htsp-xmltv.py
-rw-r--r--    1 admin      admin       1995711 Feb  3 21:56 htsp-xmltv.xml
drwxrwxrwx    2 admin      admin         61440 Jan 30 22:38 tvh

2.7 load the .xml file into your DVBLink app to see if it gives you the desired result there

3. Create a scheduled task on your synology: Control Panel -> System -> Task Scheduler -> Create -> User-defined script
-> General -> User-defined script:
Code:
python /volume1/public/htsp-xmltv.py >/volume1/public/htsp-xmltv.xml 2>>/volume1/public/htsp-xmltv.err

-> Schedule
Do the "Date" settings to your liking.
Reply
#11
(2015-02-03, 23:55)ulibuck Wrote:
Quote:But sadly I have now clue how I need to ...

It would help to have an understanding of the Linux command line: http://ss64.com/bash/.

Give it a try like this.

1. Copy the srcipt and the directory "tvh" from the tvheadend source https://github.com/tvheadend/tvheadend/t...lib/py/tvh on your synology using "File Station" on your synology; for example to /volume1/public

As far as I could verify synology DSM 5.1 has python 2.7 already installed (I have a QNAP, so I cannot tell for sure).

Quote:to start that script
2. get command line access to your synology to verify the that script is running properly

2.1 enable ssh on your synology: Control Panel -> System -> Terminal and SNMP-> enable SSH serrvice

2.2 log into your synology (for example with PuTTy from Windows)

2.3 cd to the path where you copied the script and the "tvh" directory to, for example
Code:
cd /volume1/public

2.4 verify that the script plus th tvh subdirectory are there
Code:
ls -l
should give you output similar to
Code:
-rwxr-xr-x    1 admin      admin          9560 Jan 30 22:45 htsp-xmltv.py
drwxrwxrwx    2 admin      admin         61440 Jan 30 22:38 tvh

2.5 run the script
Code:
python htsp-xmltv.py >htsp-xmltv.xml
should give you output similar to
Code:
2015-02-03 21:55:55 Info   connected to HTS Tvheadend [3.9.2293~g74c563f-dirty]
2015-02-03 21:55:55 Info   using protocol v17
2015-02-03 21:55:55 Info   capabilities [caclient,tvadapters,trace]
2015-02-03 21:55:55 Info   generating xmltv data from channels and epg entries from asynchronous initialSync
2015-02-03 21:56:09 Info   { 'method': 'initialSyncCompleted'}

2.6 verify that the .xml file is now there
Code:
ls -l
should give you output similar to
Code:
-rwxr-xr-x    1 admin      admin          9560 Jan 30 22:45 htsp-xmltv.py
-rw-r--r--    1 admin      admin       1995711 Feb  3 21:56 htsp-xmltv.xml
drwxrwxrwx    2 admin      admin         61440 Jan 30 22:38 tvh

2.7 load the .xml file into your DVBLink app to see if it gives you the desired result there

3. Create a scheduled task on your synology: Control Panel -> System -> Task Scheduler -> Create -> User-defined script
-> General -> User-defined script:
Code:
python /volume1/public/htsp-xmltv.py >/volume1/public/htsp-xmltv.xml 2>>/volume1/public/htsp-xmltv.err

-> Schedule
Do the "Date" settings to your liking.

Wow, thanks so much for these howto Smile Will try to do it a soon as posible...

Regards
Vlaves
Reply
#12
(2015-02-03, 23:55)ulibuck Wrote: ...

2.5 run the script
Code:
python htsp-xmltv.py >htsp-xmltv.xml
should give you output similar to
Code:
2015-02-03 21:55:55 Info   connected to HTS Tvheadend [3.9.2293~g74c563f-dirty]
2015-02-03 21:55:55 Info   using protocol v17
2015-02-03 21:55:55 Info   capabilities [caclient,tvadapters,trace]
2015-02-03 21:55:55 Info   generating xmltv data from channels and epg entries from asynchronous initialSync
2015-02-03 21:56:09 Info   { 'method': 'initialSyncCompleted'}
...

Followed till 2.5. Then I got this:
Code:
Heimserver> python htsp-xmltv.py >htsp-xmltv.xml
2015-02-04 09:28:12 INFO  : connected to HTS Tvheadend [3.9.2357]
2015-02-04 09:28:12 INFO  : using protocol v6
2015-02-04 09:28:12 INFO  : capabilities [caclient,tvadapters,trace]
2015-02-04 09:28:12 INFO  : generating xmltv data from channels and epg entries from asynchronous initialSync
2015-02-04 09:28:13 ERROR : list index out of range

Could you please assist. Thanks so much for your help here again Smile

Regards
Vlaves
Reply
#13
Looks quite good already.

The "list index out of range" is likely the one for the "epg_genre_names".

What might help is to use htsp protocol version 17 instead of v6 (which is what I am doing).

To change that edit line 32 of the file "htsp.py" in the "tvh" directory to read like this:

Code:
HTSP_PROTO_VERSION = 17

If that does not help uncomment line 278 in file "htsp-xmltv.py" to read like this:
Code:
log.info('contentType %s, bits %s, mcat %d scat %d' % (msg['contentType'], bits, mcat, scat))

be sure to keep the 10 leading blanks before "log.info(..."
Reply
#14
(2015-02-04, 11:21)ulibuck Wrote: Looks quite good already.

The "list index out of range" is likely the one for the "epg_genre_names".

What might help is to use htsp protocol version 17 instead of v6 (which is what I am doing).

To change that edit line 32 of the file "htsp.py" in the "tvh" directory to read like this:

Code:
HTSP_PROTO_VERSION = 17

If that does not help uncomment line 278 in file "htsp-xmltv.py" to read like this:
Code:
log.info('contentType %s, bits %s, mcat %d scat %d' % (msg['contentType'], bits, mcat, scat))

be sure to keep the 10 leading blanks before "log.info(..."

Thanks again for supporting me here Smile

I changed to version 17 and uncommented line 278 and kept the 10 blanks. Still same Error Sad

Here is the output:
Code:
python htsp-xmltv.py >htsp-xmltv.xml
2015-02-04 13:07:21 INFO  : connected to HTS Tvheadend [3.9.2357]
2015-02-04 13:07:21 INFO  : using protocol v17
2015-02-04 13:07:21 INFO  : capabilities [caclient,tvadapters,trace]
2015-02-04 13:07:21 INFO  : generating xmltv data from channels and epg entries from asynchronous initialSync
2015-02-04 13:07:21 INFO  : contentType 21, bits 00010101, mcat 1 scat 5
2015-02-04 13:07:21 INFO  : contentType 16, bits 00010000, mcat 1 scat 0
2015-02-04 13:07:21 INFO  : contentType 16, bits 00010000, mcat 1 scat 0
2015-02-04 13:07:21 INFO  : contentType 21, bits 00010101, mcat 1 scat 5
2015-02-04 13:07:21 INFO  : contentType 21, bits 00010101, mcat 1 scat 5
2015-02-04 13:07:21 INFO  : contentType 21, bits 00010101, mcat 1 scat 5
2015-02-04 13:07:21 INFO  : contentType 16, bits 00010000, mcat 1 scat 0
2015-02-04 13:07:21 INFO  : contentType 16, bits 00010000, mcat 1 scat 0
2015-02-04 13:07:21 INFO  : contentType 16, bits 00010000, mcat 1 scat 0
2015-02-04 13:07:21 INFO  : contentType 16, bits 00010000, mcat 1 scat 0
2015-02-04 13:07:21 INFO  : contentType 16, bits 00010000, mcat 1 scat 0
2015-02-04 13:07:21 INFO  : contentType 16, bits 00010000, mcat 1 scat 0
2015-02-04 13:07:21 INFO  : contentType 16, bits 00010000, mcat 1 scat 0
2015-02-04 13:07:21 INFO  : contentType 21, bits 00010101, mcat 1 scat 5
2015-02-04 13:07:21 INFO  : contentType 21, bits 00010101, mcat 1 scat 5
2015-02-04 13:07:21 INFO  : contentType 21, bits 00010101, mcat 1 scat 5
2015-02-04 13:07:21 INFO  : contentType 16, bits 00010000, mcat 1 scat 0
2015-02-04 13:07:21 INFO  : contentType 16, bits 00010000, mcat 1 scat 0
2015-02-04 13:07:21 INFO  : contentType 16, bits 00010000, mcat 1 scat 0
2015-02-04 13:07:21 INFO  : contentType 16, bits 00010000, mcat 1 scat 0
2015-02-04 13:07:21 INFO  : contentType 16, bits 00010000, mcat 1 scat 0
2015-02-04 13:07:21 INFO  : contentType 21, bits 00010101, mcat 1 scat 5
2015-02-04 13:07:21 INFO  : contentType 21, bits 00010101, mcat 1 scat 5
2015-02-04 13:07:21 INFO  : contentType 21, bits 00010101, mcat 1 scat 5
2015-02-04 13:07:21 INFO  : contentType 21, bits 00010101, mcat 1 scat 5
2015-02-04 13:07:21 INFO  : contentType 21, bits 00010101, mcat 1 scat 5
2015-02-04 13:07:21 INFO  : contentType 21, bits 00010101, mcat 1 scat 5
2015-02-04 13:07:21 INFO  : contentType 21, bits 00010101, mcat 1 scat 5
2015-02-04 13:07:21 INFO  : contentType 21, bits 00010101, mcat 1 scat 5
2015-02-04 13:07:21 INFO  : contentType 21, bits 00010101, mcat 1 scat 5
2015-02-04 13:07:21 INFO  : contentType 16, bits 00010000, mcat 1 scat 0
2015-02-04 13:07:21 INFO  : contentType 16, bits 00010000, mcat 1 scat 0
2015-02-04 13:07:21 INFO  : contentType 16, bits 00010000, mcat 1 scat 0
2015-02-04 13:07:21 INFO  : contentType 21, bits 00010101, mcat 1 scat 5
2015-02-04 13:07:21 INFO  : contentType 21, bits 00010101, mcat 1 scat 5
2015-02-04 13:07:21 INFO  : contentType 21, bits 00010101, mcat 1 scat 5
2015-02-04 13:07:21 INFO  : contentType 16, bits 00010000, mcat 1 scat 0
2015-02-04 13:07:21 INFO  : contentType 21, bits 00010101, mcat 1 scat 5
2015-02-04 13:07:21 INFO  : contentType 21, bits 00010101, mcat 1 scat 5
2015-02-04 13:07:21 INFO  : contentType 21, bits 00010101, mcat 1 scat 5
2015-02-04 13:07:21 INFO  : contentType 21, bits 00010101, mcat 1 scat 5
2015-02-04 13:07:21 INFO  : contentType 21, bits 00010101, mcat 1 scat 5
2015-02-04 13:07:21 INFO  : contentType 16, bits 00010000, mcat 1 scat 0
2015-02-04 13:07:21 INFO  : contentType 16, bits 00010000, mcat 1 scat 0
2015-02-04 13:07:21 INFO  : contentType 21, bits 00010101, mcat 1 scat 5
2015-02-04 13:07:21 INFO  : contentType 21, bits 00010101, mcat 1 scat 5
2015-02-04 13:07:21 INFO  : contentType 21, bits 00010101, mcat 1 scat 5
2015-02-04 13:07:21 INFO  : contentType 16, bits 00010000, mcat 1 scat 0
2015-02-04 13:07:21 INFO  : contentType 16, bits 00010000, mcat 1 scat 0
2015-02-04 13:07:21 INFO  : contentType 16, bits 00010000, mcat 1 scat 0
2015-02-04 13:07:21 INFO  : contentType 16, bits 00010000, mcat 1 scat 0
2015-02-04 13:07:21 INFO  : contentType 16, bits 00010000, mcat 1 scat 0
2015-02-04 13:07:21 INFO  : contentType 16, bits 00010000, mcat 1 scat 0
2015-02-04 13:07:21 INFO  : contentType 16, bits 00010000, mcat 1 scat 0
2015-02-04 13:07:21 INFO  : contentType 16, bits 00010000, mcat 1 scat 0
2015-02-04 13:07:21 INFO  : contentType 16, bits 00010000, mcat 1 scat 0
2015-02-04 13:07:21 INFO  : contentType 16, bits 00010000, mcat 1 scat 0
2015-02-04 13:07:21 INFO  : contentType 21, bits 00010101, mcat 1 scat 5
2015-02-04 13:07:21 INFO  : contentType 21, bits 00010101, mcat 1 scat 5
2015-02-04 13:07:21 INFO  : contentType 21, bits 00010101, mcat 1 scat 5
2015-02-04 13:07:21 INFO  : contentType 16, bits 00010000, mcat 1 scat 0
2015-02-04 13:07:21 INFO  : contentType 16, bits 00010000, mcat 1 scat 0
2015-02-04 13:07:21 INFO  : contentType 16, bits 00010000, mcat 1 scat 0
2015-02-04 13:07:21 INFO  : contentType 16, bits 00010000, mcat 1 scat 0
2015-02-04 13:07:21 INFO  : contentType 16, bits 00010000, mcat 1 scat 0
2015-02-04 13:07:21 INFO  : contentType 16, bits 00010000, mcat 1 scat 0
2015-02-04 13:07:21 INFO  : contentType 21, bits 00010101, mcat 1 scat 5
2015-02-04 13:07:21 INFO  : contentType 21, bits 00010101, mcat 1 scat 5
2015-02-04 13:07:21 INFO  : contentType 21, bits 00010101, mcat 1 scat 5
2015-02-04 13:07:21 INFO  : contentType 21, bits 00010101, mcat 1 scat 5
2015-02-04 13:07:21 INFO  : contentType 21, bits 00010101, mcat 1 scat 5
2015-02-04 13:07:21 INFO  : contentType 21, bits 00010101, mcat 1 scat 5
2015-02-04 13:07:21 INFO  : contentType 21, bits 00010101, mcat 1 scat 5
2015-02-04 13:07:21 INFO  : contentType 21, bits 00010101, mcat 1 scat 5
2015-02-04 13:07:21 INFO  : contentType 21, bits 00010101, mcat 1 scat 5
2015-02-04 13:07:21 INFO  : contentType 16, bits 00010000, mcat 1 scat 0
2015-02-04 13:07:21 INFO  : contentType 16, bits 00010000, mcat 1 scat 0
2015-02-04 13:07:21 INFO  : contentType 16, bits 00010000, mcat 1 scat 0
2015-02-04 13:07:21 INFO  : contentType 21, bits 00010101, mcat 1 scat 5
2015-02-04 13:07:21 INFO  : contentType 21, bits 00010101, mcat 1 scat 5
2015-02-04 13:07:21 INFO  : contentType 21, bits 00010101, mcat 1 scat 5
2015-02-04 13:07:21 INFO  : contentType 16, bits 00010000, mcat 1 scat 0
2015-02-04 13:07:21 INFO  : contentType 21, bits 00010101, mcat 1 scat 5
2015-02-04 13:07:21 INFO  : contentType 21, bits 00010101, mcat 1 scat 5
2015-02-04 13:07:21 INFO  : contentType 21, bits 00010101, mcat 1 scat 5
2015-02-04 13:07:21 INFO  : contentType 21, bits 00010101, mcat 1 scat 5
2015-02-04 13:07:21 INFO  : contentType 21, bits 00010101, mcat 1 scat 5
2015-02-04 13:07:21 INFO  : contentType 16, bits 00010000, mcat 1 scat 0
2015-02-04 13:07:21 INFO  : contentType 16, bits 00010000, mcat 1 scat 0
2015-02-04 13:07:21 INFO  : contentType 21, bits 00010101, mcat 1 scat 5
2015-02-04 13:07:21 INFO  : contentType 21, bits 00010101, mcat 1 scat 5
2015-02-04 13:07:21 INFO  : contentType 21, bits 00010101, mcat 1 scat 5
2015-02-04 13:07:21 INFO  : contentType 16, bits 00010000, mcat 1 scat 0
2015-02-04 13:07:21 INFO  : contentType 16, bits 00010000, mcat 1 scat 0
2015-02-04 13:07:21 INFO  : contentType 16, bits 00010000, mcat 1 scat 0
2015-02-04 13:07:21 INFO  : contentType 16, bits 00010000, mcat 1 scat 0
2015-02-04 13:07:21 INFO  : contentType 16, bits 00010000, mcat 1 scat 0
2015-02-04 13:07:21 INFO  : contentType 16, bits 00010000, mcat 1 scat 0
2015-02-04 13:07:21 INFO  : contentType 16, bits 00010000, mcat 1 scat 0
2015-02-04 13:07:21 INFO  : contentType 16, bits 00010000, mcat 1 scat 0
2015-02-04 13:07:21 INFO  : contentType 16, bits 00010000, mcat 1 scat 0
2015-02-04 13:07:21 INFO  : contentType 21, bits 00010101, mcat 1 scat 5
2015-02-04 13:07:21 INFO  : contentType 21, bits 00010101, mcat 1 scat 5
2015-02-04 13:07:21 INFO  : contentType 21, bits 00010101, mcat 1 scat 5
2015-02-04 13:07:21 INFO  : contentType 16, bits 00010000, mcat 1 scat 0
2015-02-04 13:07:21 INFO  : contentType 16, bits 00010000, mcat 1 scat 0
2015-02-04 13:07:21 INFO  : contentType 16, bits 00010000, mcat 1 scat 0
2015-02-04 13:07:21 INFO  : contentType 16, bits 00010000, mcat 1 scat 0
2015-02-04 13:07:21 INFO  : contentType 16, bits 00010000, mcat 1 scat 0
2015-02-04 13:07:21 INFO  : contentType 21, bits 00010101, mcat 1 scat 5
2015-02-04 13:07:21 INFO  : contentType 21, bits 00010101, mcat 1 scat 5
2015-02-04 13:07:21 INFO  : contentType 21, bits 00010101, mcat 1 scat 5
2015-02-04 13:07:21 INFO  : contentType 21, bits 00010101, mcat 1 scat 5
2015-02-04 13:07:21 INFO  : contentType 21, bits 00010101, mcat 1 scat 5
2015-02-04 13:07:21 INFO  : contentType 144, bits 10010000, mcat 9 scat 0
2015-02-04 13:07:21 INFO  : contentType 144, bits 10010000, mcat 9 scat 0
2015-02-04 13:07:21 INFO  : contentType 21, bits 00010101, mcat 1 scat 5
2015-02-04 13:07:21 INFO  : contentType 21, bits 00010101, mcat 1 scat 5
2015-02-04 13:07:21 INFO  : contentType 21, bits 00010101, mcat 1 scat 5
2015-02-04 13:07:21 INFO  : contentType 21, bits 00010101, mcat 1 scat 5
2015-02-04 13:07:21 INFO  : contentType 21, bits 00010101, mcat 1 scat 5
2015-02-04 13:07:21 INFO  : contentType 21, bits 00010101, mcat 1 scat 5
2015-02-04 13:07:21 INFO  : contentType 21, bits 00010101, mcat 1 scat 5
2015-02-04 13:07:21 INFO  : contentType 21, bits 00010101, mcat 1 scat 5
2015-02-04 13:07:21 INFO  : contentType 21, bits 00010101, mcat 1 scat 5
2015-02-04 13:07:21 INFO  : contentType 21, bits 00010101, mcat 1 scat 5
2015-02-04 13:07:21 INFO  : contentType 21, bits 00010101, mcat 1 scat 5
2015-02-04 13:07:21 INFO  : contentType 21, bits 00010101, mcat 1 scat 5
2015-02-04 13:07:21 INFO  : contentType 21, bits 00010101, mcat 1 scat 5
2015-02-04 13:07:21 INFO  : contentType 21, bits 00010101, mcat 1 scat 5
2015-02-04 13:07:21 INFO  : contentType 16, bits 00010000, mcat 1 scat 0
2015-02-04 13:07:21 INFO  : contentType 21, bits 00010101, mcat 1 scat 5
2015-02-04 13:07:21 INFO  : contentType 21, bits 00010101, mcat 1 scat 5
2015-02-04 13:07:21 INFO  : contentType 21, bits 00010101, mcat 1 scat 5
2015-02-04 13:07:21 INFO  : contentType 21, bits 00010101, mcat 1 scat 5
2015-02-04 13:07:21 INFO  : contentType 21, bits 00010101, mcat 1 scat 5
2015-02-04 13:07:21 INFO  : contentType 16, bits 00010000, mcat 1 scat 0
2015-02-04 13:07:21 INFO  : contentType 16, bits 00010000, mcat 1 scat 0
2015-02-04 13:07:21 INFO  : contentType 16, bits 00010000, mcat 1 scat 0
2015-02-04 13:07:21 INFO  : contentType 16, bits 00010000, mcat 1 scat 0
2015-02-04 13:07:21 INFO  : contentType 16, bits 00010000, mcat 1 scat 0
2015-02-04 13:07:21 INFO  : contentType 16, bits 00010000, mcat 1 scat 0
2015-02-04 13:07:21 INFO  : contentType 16, bits 00010000, mcat 1 scat 0
2015-02-04 13:07:21 INFO  : contentType 16, bits 00010000, mcat 1 scat 0
2015-02-04 13:07:21 INFO  : contentType 23, bits 00010111, mcat 1 scat 7
2015-02-04 13:07:21 INFO  : contentType 16, bits 00010000, mcat 1 scat 0
2015-02-04 13:07:21 INFO  : contentType 16, bits 00010000, mcat 1 scat 0
2015-02-04 13:07:21 INFO  : contentType 16, bits 00010000, mcat 1 scat 0
2015-02-04 13:07:21 INFO  : contentType 16, bits 00010000, mcat 1 scat 0
2015-02-04 13:07:21 INFO  : contentType 16, bits 00010000, mcat 1 scat 0
2015-02-04 13:07:21 INFO  : contentType 16, bits 00010000, mcat 1 scat 0
2015-02-04 13:07:21 INFO  : contentType 16, bits 00010000, mcat 1 scat 0
2015-02-04 13:07:21 INFO  : contentType 16, bits 00010000, mcat 1 scat 0
2015-02-04 13:07:21 INFO  : contentType 21, bits 00010101, mcat 1 scat 5
2015-02-04 13:07:21 INFO  : contentType 21, bits 00010101, mcat 1 scat 5
2015-02-04 13:07:21 INFO  : contentType 21, bits 00010101, mcat 1 scat 5
2015-02-04 13:07:21 INFO  : contentType 21, bits 00010101, mcat 1 scat 5
2015-02-04 13:07:21 INFO  : contentType 21, bits 00010101, mcat 1 scat 5
2015-02-04 13:07:21 INFO  : contentType 21, bits 00010101, mcat 1 scat 5
2015-02-04 13:07:21 INFO  : contentType 21, bits 00010101, mcat 1 scat 5
2015-02-04 13:07:21 INFO  : contentType 21, bits 00010101, mcat 1 scat 5
2015-02-04 13:07:21 INFO  : contentType 21, bits 00010101, mcat 1 scat 5
2015-02-04 13:07:21 INFO  : contentType 21, bits 00010101, mcat 1 scat 5
2015-02-04 13:07:21 INFO  : contentType 21, bits 00010101, mcat 1 scat 5
2015-02-04 13:07:21 INFO  : contentType 21, bits 00010101, mcat 1 scat 5
2015-02-04 13:07:21 INFO  : contentType 16, bits 00010000, mcat 1 scat 0
2015-02-04 13:07:21 INFO  : contentType 16, bits 00010000, mcat 1 scat 0
2015-02-04 13:07:21 INFO  : contentType 16, bits 00010000, mcat 1 scat 0
2015-02-04 13:07:21 INFO  : contentType 16, bits 00010000, mcat 1 scat 0
2015-02-04 13:07:21 INFO  : contentType 16, bits 00010000, mcat 1 scat 0
2015-02-04 13:07:21 INFO  : contentType 16, bits 00010000, mcat 1 scat 0
2015-02-04 13:07:21 INFO  : contentType 16, bits 00010000, mcat 1 scat 0
2015-02-04 13:07:21 INFO  : contentType 16, bits 00010000, mcat 1 scat 0
2015-02-04 13:07:21 INFO  : contentType 16, bits 00010000, mcat 1 scat 0
2015-02-04 13:07:21 INFO  : contentType 16, bits 00010000, mcat 1 scat 0
2015-02-04 13:07:21 INFO  : contentType 21, bits 00010101, mcat 1 scat 5
2015-02-04 13:07:21 INFO  : contentType 21, bits 00010101, mcat 1 scat 5
2015-02-04 13:07:21 INFO  : contentType 21, bits 00010101, mcat 1 scat 5
2015-02-04 13:07:21 INFO  : contentType 21, bits 00010101, mcat 1 scat 5
2015-02-04 13:07:21 INFO  : contentType 21, bits 00010101, mcat 1 scat 5
2015-02-04 13:07:21 INFO  : contentType 16, bits 00010000, mcat 1 scat 0
2015-02-04 13:07:21 INFO  : contentType 20, bits 00010100, mcat 1 scat 4
2015-02-04 13:07:21 INFO  : contentType 21, bits 00010101, mcat 1 scat 5
2015-02-04 13:07:21 INFO  : contentType 21, bits 00010101, mcat 1 scat 5
2015-02-04 13:07:21 INFO  : contentType 21, bits 00010101, mcat 1 scat 5
2015-02-04 13:07:21 INFO  : contentType 21, bits 00010101, mcat 1 scat 5
2015-02-04 13:07:21 INFO  : contentType 21, bits 00010101, mcat 1 scat 5
2015-02-04 13:07:21 INFO  : contentType 21, bits 00010101, mcat 1 scat 5
2015-02-04 13:07:21 INFO  : contentType 21, bits 00010101, mcat 1 scat 5
2015-02-04 13:07:21 INFO  : contentType 21, bits 00010101, mcat 1 scat 5
2015-02-04 13:07:21 INFO  : contentType 21, bits 00010101, mcat 1 scat 5
2015-02-04 13:07:21 INFO  : contentType 21, bits 00010101, mcat 1 scat 5
2015-02-04 13:07:21 INFO  : contentType 21, bits 00010101, mcat 1 scat 5
2015-02-04 13:07:21 INFO  : contentType 21, bits 00010101, mcat 1 scat 5
2015-02-04 13:07:21 INFO  : contentType 21, bits 00010101, mcat 1 scat 5
2015-02-04 13:07:21 INFO  : contentType 21, bits 00010101, mcat 1 scat 5
2015-02-04 13:07:21 INFO  : contentType 21, bits 00010101, mcat 1 scat 5
2015-02-04 13:07:21 INFO  : contentType 21, bits 00010101, mcat 1 scat 5
2015-02-04 13:07:21 INFO  : contentType 21, bits 00010101, mcat 1 scat 5
2015-02-04 13:07:21 INFO  : contentType 16, bits 00010000, mcat 1 scat 0
2015-02-04 13:07:21 INFO  : contentType 16, bits 00010000, mcat 1 scat 0
2015-02-04 13:07:21 INFO  : contentType 16, bits 00010000, mcat 1 scat 0
2015-02-04 13:07:21 INFO  : contentType 21, bits 00010101, mcat 1 scat 5
2015-02-04 13:07:21 INFO  : contentType 21, bits 00010101, mcat 1 scat 5
2015-02-04 13:07:21 INFO  : contentType 21, bits 00010101, mcat 1 scat 5
2015-02-04 13:07:21 INFO  : contentType 16, bits 00010000, mcat 1 scat 0
2015-02-04 13:07:21 INFO  : contentType 21, bits 00010101, mcat 1 scat 5
2015-02-04 13:07:21 INFO  : contentType 21, bits 00010101, mcat 1 scat 5
2015-02-04 13:07:21 INFO  : contentType 21, bits 00010101, mcat 1 scat 5
2015-02-04 13:07:21 INFO  : contentType 21, bits 00010101, mcat 1 scat 5
2015-02-04 13:07:21 INFO  : contentType 21, bits 00010101, mcat 1 scat 5
2015-02-04 13:07:21 INFO  : contentType 21, bits 00010101, mcat 1 scat 5
2015-02-04 13:07:21 INFO  : contentType 16, bits 00010000, mcat 1 scat 0
2015-02-04 13:07:21 INFO  : contentType 16, bits 00010000, mcat 1 scat 0
2015-02-04 13:07:21 INFO  : contentType 21, bits 00010101, mcat 1 scat 5
2015-02-04 13:07:21 INFO  : contentType 21, bits 00010101, mcat 1 scat 5
2015-02-04 13:07:21 INFO  : contentType 21, bits 00010101, mcat 1 scat 5
2015-02-04 13:07:21 INFO  : contentType 16, bits 00010000, mcat 1 scat 0
2015-02-04 13:07:21 INFO  : contentType 16, bits 00010000, mcat 1 scat 0
2015-02-04 13:07:21 INFO  : contentType 16, bits 00010000, mcat 1 scat 0
2015-02-04 13:07:21 INFO  : contentType 16, bits 00010000, mcat 1 scat 0
2015-02-04 13:07:21 INFO  : contentType 16, bits 00010000, mcat 1 scat 0
2015-02-04 13:07:21 INFO  : contentType 16, bits 00010000, mcat 1 scat 0
2015-02-04 13:07:21 INFO  : contentType 16, bits 00010000, mcat 1 scat 0
2015-02-04 13:07:21 INFO  : contentType 21, bits 00010101, mcat 1 scat 5
2015-02-04 13:07:21 INFO  : contentType 21, bits 00010101, mcat 1 scat 5
2015-02-04 13:07:21 INFO  : contentType 21, bits 00010101, mcat 1 scat 5
2015-02-04 13:07:21 INFO  : contentType 16, bits 00010000, mcat 1 scat 0
2015-02-04 13:07:21 INFO  : contentType 16, bits 00010000, mcat 1 scat 0
2015-02-04 13:07:21 INFO  : contentType 16, bits 00010000, mcat 1 scat 0
2015-02-04 13:07:21 INFO  : contentType 16, bits 00010000, mcat 1 scat 0
2015-02-04 13:07:21 INFO  : contentType 16, bits 00010000, mcat 1 scat 0
2015-02-04 13:07:21 INFO  : contentType 21, bits 00010101, mcat 1 scat 5
2015-02-04 13:07:21 INFO  : contentType 21, bits 00010101, mcat 1 scat 5
2015-02-04 13:07:21 INFO  : contentType 21, bits 00010101, mcat 1 scat 5
2015-02-04 13:07:21 INFO  : contentType 21, bits 00010101, mcat 1 scat 5
2015-02-04 13:07:21 INFO  : contentType 21, bits 00010101, mcat 1 scat 5
2015-02-04 13:07:21 INFO  : contentType 21, bits 00010101, mcat 1 scat 5
2015-02-04 13:07:21 INFO  : contentType 21, bits 00010101, mcat 1 scat 5
2015-02-04 13:07:21 INFO  : contentType 21, bits 00010101, mcat 1 scat 5
2015-02-04 13:07:21 INFO  : contentType 21, bits 00010101, mcat 1 scat 5
2015-02-04 13:07:21 INFO  : contentType 21, bits 00010101, mcat 1 scat 5
2015-02-04 13:07:21 INFO  : contentType 16, bits 00010000, mcat 1 scat 0
2015-02-04 13:07:21 INFO  : contentType 16, bits 00010000, mcat 1 scat 0
2015-02-04 13:07:21 INFO  : contentType 16, bits 00010000, mcat 1 scat 0
2015-02-04 13:07:21 INFO  : contentType 21, bits 00010101, mcat 1 scat 5
2015-02-04 13:07:21 INFO  : contentType 21, bits 00010101, mcat 1 scat 5
2015-02-04 13:07:21 INFO  : contentType 21, bits 00010101, mcat 1 scat 5
2015-02-04 13:07:21 INFO  : contentType 16, bits 00010000, mcat 1 scat 0
2015-02-04 13:07:21 INFO  : contentType 21, bits 00010101, mcat 1 scat 5
2015-02-04 13:07:21 INFO  : contentType 21, bits 00010101, mcat 1 scat 5
2015-02-04 13:07:21 INFO  : contentType 21, bits 00010101, mcat 1 scat 5
2015-02-04 13:07:21 INFO  : contentType 21, bits 00010101, mcat 1 scat 5
2015-02-04 13:07:21 INFO  : contentType 21, bits 00010101, mcat 1 scat 5
2015-02-04 13:07:21 INFO  : contentType 21, bits 00010101, mcat 1 scat 5
2015-02-04 13:07:21 INFO  : contentType 16, bits 00010000, mcat 1 scat 0
2015-02-04 13:07:21 INFO  : contentType 16, bits 00010000, mcat 1 scat 0
2015-02-04 13:07:21 INFO  : contentType 21, bits 00010101, mcat 1 scat 5
2015-02-04 13:07:21 INFO  : contentType 21, bits 00010101, mcat 1 scat 5
2015-02-04 13:07:21 INFO  : contentType 21, bits 00010101, mcat 1 scat 5
2015-02-04 13:07:21 INFO  : contentType 16, bits 00010000, mcat 1 scat 0
2015-02-04 13:07:21 INFO  : contentType 16, bits 00010000, mcat 1 scat 0
2015-02-04 13:07:21 INFO  : contentType 16, bits 00010000, mcat 1 scat 0
2015-02-04 13:07:21 INFO  : contentType 16, bits 00010000, mcat 1 scat 0
2015-02-04 13:07:21 INFO  : contentType 16, bits 00010000, mcat 1 scat 0
2015-02-04 13:07:21 INFO  : contentType 16, bits 00010000, mcat 1 scat 0
2015-02-04 13:07:21 INFO  : contentType 16, bits 00010000, mcat 1 scat 0
2015-02-04 13:07:21 INFO  : contentType 21, bits 00010101, mcat 1 scat 5
2015-02-04 13:07:21 INFO  : contentType 21, bits 00010101, mcat 1 scat 5
2015-02-04 13:07:21 INFO  : contentType 21, bits 00010101, mcat 1 scat 5
2015-02-04 13:07:21 INFO  : contentType 16, bits 00010000, mcat 1 scat 0
2015-02-04 13:07:21 INFO  : contentType 16, bits 00010000, mcat 1 scat 0
2015-02-04 13:07:21 INFO  : contentType 32, bits 00100000, mcat 2 scat 0
2015-02-04 13:07:21 INFO  : contentType 144, bits 10010000, mcat 9 scat 0
2015-02-04 13:07:21 INFO  : contentType 144, bits 10010000, mcat 9 scat 0
2015-02-04 13:07:21 INFO  : contentType 21, bits 00010101, mcat 1 scat 5
2015-02-04 13:07:21 INFO  : contentType 175, bits 10101111, mcat 10 scat 15
2015-02-04 13:07:21 ERROR : list index out of range

Hope that helps you to find the error. Thanks again for your support Smile

Regards
Vlaves
Reply
#15
Okay "contentType 175" is out of range. I think it can be fixed like this:

In file "htsp-xmltv.py" insert a new line 197 before the existing one

Code:
if len(epg_genre_names[mcat]) <= scat: scat = 0

Have 2 leading blanks at the beginning of the new line.
Reply

Logout Mark Read Team Forum Stats Members Help
Is it possible to icorporate ffmpeg from synology into Tvheadend0