Project

General

Profile

How to access to the Transport Streams

Added by Víctor Saiáns almost 11 years ago

Hello!

I am trying to access to untouched transport streams from an addon which I am programming for xbmc, the idea is analyze transport streams from tvheadend in my addon. I have installed and configured TVHeadend but now I am unable to access directly to the transport streams.
I have tried with commands like: wget -O "filename.ts" "http://192.168.0.10:9981/stream/mux/_dev_dvb_adapter0_DiBcom_7000PC578000000" I thought that if it worked, I would use those URLs in order to do streaming to my application, but it only download an empty file.

I have found a directory (/storage/.xbmc/userdata/addon_data/service.multimedia.tvheadend/dvbtransports/) which seems to be related with those URLs, in this directory there are folders with the same names that the URLs of the muxes, and in this directories there are files with the following structure:
{
"service_id": 10116,
"pmt": 8020,
"stype": 1,
"scrambled": 0,
"channel": 0,
"provider": "Localia Vigo",
"servicename": "LOCALIA VIGO",
"channelname": "LOCALIA VIGO",
"mapped": 1,
"dvb_eit_enable": 1,
"pcr": 8000,
"disabled": 0,
"stream": {
"pid": 8000,
"type": "MPEG2VIDEO",
"position": 0
},
"stream": {
"pid": 8001,
"type": "MPEG2AUDIO",
"position": 1,
"language": "spa"
}
}

Is there any way to use these structures to access the transport streams?
Which do you think that is the best way to access to them?

Would really appreciate some help, I'm getting a little desperate with this.

Regards

Víctor


Replies (7)

RE: How to access to the Transport Streams - Added by Víctor Saiáns almost 11 years ago

I am searching information about this, and there seems to be people using those URLs to download de TS files, but when I execute the command: wget -O "filename.ts" "http://192.168.0.10:9981/stream/mux/_dev_dvb_adapter0_DiBcom_7000PC746000000"
I always obtain an empty file, and TVHeadend shows the next log messages:

Dec 19 18:50:54.105 dvb: "/dev/dvb/adapter0" tuning to "RGE2: 746,000 kHz" (Full mux subscription)

Dec 19 18:50:54.106 webui: Start streaming /stream/mux/_dev_dvb_adapter0_DiBcom_7000PC746000000

Dec 19 18:51:14.109 webui: Stop streaming /stream/mux/_dev_dvb_adapter0_DiBcom_7000PC746000000, timeout waiting for packets

Dec 19 18:51:14.109 subscription: "HTTP" unsubscribing

Could somebody tell me how to access to the transport stream?

RE: How to access to the Transport Streams - Added by Prof Yaffle almost 11 years ago

Have you looked at the XBMC tvheadend addon to see how it accesses the streams, either for live TV or recorded programmes?

https://github.com/opdenkamp/xbmc-pvr-addons/tree/master/addons/pvr.hts/src

RE: How to access to the Transport Streams - Added by Prof Yaffle almost 11 years ago

Not that I know much about this, but it looks like you're trying to grab the whole mux - you're not locking onto a specific service/channel. Is that correct?

Other thought - see how to get at the channel through VLC - maybe that gives some ideas, depending on how you need to get at the stream and what you want to do with it.

RE: How to access to the Transport Streams - Added by alf alfonsius almost 11 years ago

http://user:pass@ip:9981/stream/mux/xxxxxxxxxxxxxxxxxx
copied from config/muxes/play and inserted user/pass with streamrights
thats how i use it for TsReader

RE: How to access to the Transport Streams - Added by Víctor Saiáns almost 11 years ago

Thanks for your answers Prof Yaffle, I need to download the whole mux because I'm programming a transport stream analyzer addon for xbmc.
The pvr addon and the VLC plugin use HTSP in order to suscribe to some service, but I only want to download the whole mux by HTTP and I don't understand why I can't do it.

Regarding the answer of alf alfonsius: Thanks a lot, I'm using the same URL format, the only difference is that I haven't enabled any authentication in my sistem, and I don't have to add the user:password@ at the begining of the URL.
What TS Reader do you use exactly? And the most important: How does it connect to the webui of TVHeadend in order to access to the TS?
I want to do exactly the same that your TS Reader is doing with the URL.

RE: How to access to the Transport Streams - Added by alf alfonsius almost 11 years ago

whole mux is comming tru with that url

tsreader.jpg (192 KB) tsreader.jpg crypted mux from webui

RE: How to access to the Transport Streams - Added by Anonymous over 10 years ago

would be very useful to remote control all information about the stream.
pity That the development of this plugin https://wiki.videolan.org/TSinfo Has never been started. Perhaps there are too many interests ...

    (1-7/7)