Jump to content


Photo

GStreamer 1.0

gstreamer 1.0 openpli

  • Please log in to reply
2520 replies to this topic

Re: GStreamer 1.0 #81 Erik Slagter

  • PLi® Core member
  • 46,969 posts

+541
Excellent

Posted 25 January 2014 - 11:33

Parasol, please open a new topic in [EN] development, describe what you have done to come so far and what the problems are (with logs etc.) That way we can achieve a new OpenPLi-4 build environment HOWTO step by step. Experienced builders like athoik, ims and blzr might step in as well.


* Wavefrontier T90 with 28E/23E/19E/13E via SCR switches 2 x 2 x 6 user bands
I don't read PM -> if you have something to ask or to report, do it in the forum so others can benefit. I don't take freelance jobs.
Ik lees geen PM -> als je iets te vragen of te melden hebt, doe het op het forum, zodat anderen er ook wat aan hebben.


Re: GStreamer 1.0 #82 athoik

  • PLi® Core member
  • 8,458 posts

+327
Excellent

Posted 25 January 2014 - 15:31

@athoik, how is the integration with the rest of the image, of this livestreamer?


It's working very well with livestreamersrv on satdreamgr image. Also code in livestreamersrv is realy simple :)

Until gstreamer 1.0 happen, livestreamer helps..
Wavefield T90: 0.8W - 1.9E - 4.8E - 13E - 16E - 19.2E - 23.5E - 26E - 33E - 39E - 42E - 45E on EMP Centauri DiseqC 16/1
Unamed: 13E Quattro - 9E Quattro on IKUSI MS-0916

Re: GStreamer 1.0 #83 Erik Slagter

  • PLi® Core member
  • 46,969 posts

+541
Excellent

Posted 25 January 2014 - 16:19

What I mean is, you say livestreamer is a cli app, where is it called/started?


* Wavefrontier T90 with 28E/23E/19E/13E via SCR switches 2 x 2 x 6 user bands
I don't read PM -> if you have something to ask or to report, do it in the forum so others can benefit. I don't take freelance jobs.
Ik lees geen PM -> als je iets te vragen of te melden hebt, doe het op het forum, zodat anderen er ook wat aan hebben.


Re: GStreamer 1.0 #84 athoik

  • PLi® Core member
  • 8,458 posts

+327
Excellent

Posted 25 January 2014 - 16:38

We are using livestreamer as a library only.

 

Livestreamersrv does the job. It binds on port 88 and listens for http requests. (we are starting livestreamersrv as a service on boot).

 

Here is the m3u8 (from previous posts) in the form recognized by livestreamer and livestremersrv.

 

#SERVICE 4097:0:1:0:0:0:0:0:0:0:http%3a//127.1%3a88/hlsvariant%3a//http%3a//tv3latviavod.deac.lv%3a1935/vod/_definst_/tv3/saimnieks/klipi/2013.12.20.ventis.mp4/playlist.m3u8:TEST

 

Playback is continious (doesn't freeze like gstreamer 0.10 does), here is a screenshot:

 

Attached File  4097_0_1_0_0_0_0_0_0_0.jpg   74.53KB   78 downloads

 

PS. Because HLS is TS streams you can use also 1:0:... service and you get as a bonus recording also....


Edited by athoik, 25 January 2014 - 16:41.

Wavefield T90: 0.8W - 1.9E - 4.8E - 13E - 16E - 19.2E - 23.5E - 26E - 33E - 39E - 42E - 45E on EMP Centauri DiseqC 16/1
Unamed: 13E Quattro - 9E Quattro on IKUSI MS-0916

Re: GStreamer 1.0 #85 Erik Slagter

  • PLi® Core member
  • 46,969 posts

+541
Excellent

Posted 25 January 2014 - 16:40

I am beginning to understand ;)

 

Livestreamsrv is a proxy, uses livestream, to convert a hls to a flat http stream, right?


* Wavefrontier T90 with 28E/23E/19E/13E via SCR switches 2 x 2 x 6 user bands
I don't read PM -> if you have something to ask or to report, do it in the forum so others can benefit. I don't take freelance jobs.
Ik lees geen PM -> als je iets te vragen of te melden hebt, doe het op het forum, zodat anderen er ook wat aan hebben.


Re: GStreamer 1.0 #86 athoik

  • PLi® Core member
  • 8,458 posts

+327
Excellent

Posted 25 January 2014 - 16:48

I am beginning to understand ;)

 

Livestreamsrv is a proxy, uses livestream, to convert a hls to a flat http stream, right?

 

That is correct! Simple, but really elegance solution i think ;)

 

PS. Not only hls, but every stream that livestreamer supports! (httpstream, hls, hds, rtmp, ...)


Edited by athoik, 25 January 2014 - 16:49.

Wavefield T90: 0.8W - 1.9E - 4.8E - 13E - 16E - 19.2E - 23.5E - 26E - 33E - 39E - 42E - 45E on EMP Centauri DiseqC 16/1
Unamed: 13E Quattro - 9E Quattro on IKUSI MS-0916

Re: GStreamer 1.0 #87 Erik Slagter

  • PLi® Core member
  • 46,969 posts

+541
Excellent

Posted 25 January 2014 - 16:50

Simple, maybe, elegant... hmmm ;) It's better than not working at all ;)

 

Is it much work to produce a patch (doesn't need to be exact right now, just to know what you did)?


* Wavefrontier T90 with 28E/23E/19E/13E via SCR switches 2 x 2 x 6 user bands
I don't read PM -> if you have something to ask or to report, do it in the forum so others can benefit. I don't take freelance jobs.
Ik lees geen PM -> als je iets te vragen of te melden hebt, doe het op het forum, zodat anderen er ook wat aan hebben.


Re: GStreamer 1.0 #88 athoik

  • PLi® Core member
  • 8,458 posts

+327
Excellent

Posted 25 January 2014 - 17:53

Just add livestreamer and livestreamersrv bitbake's into the OpenPLi OE build system (currently i am using meta-local for that purpose).

 

Then add them at IMAGE_INSTALL or at OPTIONAL_PACKAGES.

 

Attached Files


Wavefield T90: 0.8W - 1.9E - 4.8E - 13E - 16E - 19.2E - 23.5E - 26E - 33E - 39E - 42E - 45E on EMP Centauri DiseqC 16/1
Unamed: 13E Quattro - 9E Quattro on IKUSI MS-0916

Re: GStreamer 1.0 #89 Erik Slagter

  • PLi® Core member
  • 46,969 posts

+541
Excellent

Posted 25 January 2014 - 18:05

Wow you means it's completely modular, no changes necessary in the base setup?

 

I think I like it ;)


* Wavefrontier T90 with 28E/23E/19E/13E via SCR switches 2 x 2 x 6 user bands
I don't read PM -> if you have something to ask or to report, do it in the forum so others can benefit. I don't take freelance jobs.
Ik lees geen PM -> als je iets te vragen of te melden hebt, doe het op het forum, zodat anderen er ook wat aan hebben.


Re: GStreamer 1.0 #90 athoik

  • PLi® Core member
  • 8,458 posts

+327
Excellent

Posted 25 January 2014 - 18:18

Not a signle change on base setup, just adding two extra packages on the build.

 

Installing those packages is enough. (off course adding url must follow livestreamer(srv) syntax)


Wavefield T90: 0.8W - 1.9E - 4.8E - 13E - 16E - 19.2E - 23.5E - 26E - 33E - 39E - 42E - 45E on EMP Centauri DiseqC 16/1
Unamed: 13E Quattro - 9E Quattro on IKUSI MS-0916

Re: GStreamer 1.0 #91 maigais

  • Senior Member
  • 431 posts

+4
Neutral

Posted 25 January 2014 - 18:23

We are using livestreamer as a library only.
 
Livestreamersrv does the job. It binds on port 88 and listens for http requests. (we are starting livestreamersrv as a service on boot).
 
Here is the m3u8 (from previous posts) in the form recognized by livestreamer and livestremersrv.

#SERVICE 4097:0:1:0:0:0:0:0:0:0:http://127.1:88/hlsvariant://http://tv3latviavod.deac.lv:1935/vod/_definst_/tv3/saimnieks/klipi/2013.12.20.ventis.mp4/playlist.m3u8:TEST
 
Playback is continious (doesn't freeze like gstreamer 0.10 does), here is a screenshot:
 
attachicon.gif4097_0_1_0_0_0_0_0_0_0.jpg
 
PS. Because HLS is TS streams you can use also 1:0:... service and you get as a bonus recording also....


to start a thread, I do not see a coherent sense of
but how to start the XMBC addon where scads of channels,
I Proveja addon plugin.video.tv3play.dk
Satdreamgr to your image-3.0-beta-dm800
and proved that it is all the same illness that others

BlackHole-3.1.0F_DM800 ,Tuner + ALINK DTU & Digital USB DVB-T HDTV TV Tuner Recorder Receiver , HDD TOSHIBA MK2552GSX 250gb,usb 16gb,skins Glamour_X-Infinity mod


Re: GStreamer 1.0 #92 maigais

  • Senior Member
  • 431 posts

+4
Neutral

Posted 25 January 2014 - 18:40

have just examined Satdreamgr-3.0-beta-dm800-20140115

Calling API: http://viastream.via...bileData/334650
content = {"SamiFile":"","ageLimit":null,"adcalls":[{"time":0,"url":"http:\/\/viastream.viasat.tv\/videoplaza\/adcall.php?country_code=lv&rt=vast_2.0.1&tt=p&s=1b4f8838-23cc-4028-b4d8-b3ccc4bb68a9&cf=long_form&tid=iyFDLHAjVWmq8ZAWOFvK278skk7T9R&rnd=jspY5bGGvBDS2MR","type":"preroll"}]}
Calling API: http://viastream.via...leStream/334650
content = "http:\/\/tv3latviavod.deac.lv:1935\/vod\/_definst_\/tv3\/ballitebus\/2013.11.27.ballite_bus_571873.mp4\/playlist.m3u8"
Here in url = http://tv3latviavod....4/playlist.m3u8
content = #EXTM3U
#EXT-X-VERSION:3
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=1005834,CODECS="avc1.100.30, mp4a.40.2",RESOLUTION=720x406
chunklist_w1777369803.m3u8

ulines = []
Traceback (most recent call last):
File "/usr/lib/enigma2/python/Plugins/Extensions/XBMCAddons/XBMC/plugin.video.tv3play.dk/default.py", line 233, in <module>
tv3PlayAddon.playVideo(PARAMS['playVideo'][0])
File "/usr/lib/enigma2/python/Plugins/Extensions/XBMCAddons/XBMC/plugin.video.tv3play.dk/default.py", line 158, in playVideo
url = self.getm3u8(url)
File "/usr/lib/enigma2/python/Plugins/Extensions/XBMCAddons/XBMC/plugin.video.tv3play.dk/default.py", line 188, in getm3u8
if int(bwi) > int(bw):
ValueError: invalid literal for int() with base 10: '005834,CODECS="avc1.100.30, mp4a.40.2",RESOLUTION=720x406'

Attached Files

  • Attached File  e.zip   12.71KB   17 downloads

Edited by maigais, 25 January 2014 - 18:41.

BlackHole-3.1.0F_DM800 ,Tuner + ALINK DTU & Digital USB DVB-T HDTV TV Tuner Recorder Receiver , HDD TOSHIBA MK2552GSX 250gb,usb 16gb,skins Glamour_X-Infinity mod


Re: GStreamer 1.0 #93 athoik

  • PLi® Core member
  • 8,458 posts

+327
Excellent

Posted 25 January 2014 - 18:47

plugin.video.tv3play.dk must use livestreamersrv ask from author to examine solution.
Wavefield T90: 0.8W - 1.9E - 4.8E - 13E - 16E - 19.2E - 23.5E - 26E - 33E - 39E - 42E - 45E on EMP Centauri DiseqC 16/1
Unamed: 13E Quattro - 9E Quattro on IKUSI MS-0916

Re: GStreamer 1.0 #94 pcd

  • Senior Member
  • 759 posts

+88
Good

Posted 25 January 2014 - 22:19

plugin.video.tv3play.dk must use livestreamersrv ask from author to examine solution.

Hi athoic,

 

Can you please give an example python code to use livestreamersrv ?

I looked at gst-player.py in your github - but cannot see how I can replace :

 " ref = eServiceReference(0x1001, 0, url)
  ref.setName(name)
  self.session.nav.stopService()
  self.session.nav.playService(ref)"

 

Regards.



Re: GStreamer 1.0 #95 athoik

  • PLi® Core member
  • 8,458 posts

+327
Excellent

Posted 26 January 2014 - 03:07

Hi,
Livestreamersrv is a (kind of) proxy, so you must convert url (prefix http://127.1:88/hlsvariant://url) in order to go through proxy.
Wavefield T90: 0.8W - 1.9E - 4.8E - 13E - 16E - 19.2E - 23.5E - 26E - 33E - 39E - 42E - 45E on EMP Centauri DiseqC 16/1
Unamed: 13E Quattro - 9E Quattro on IKUSI MS-0916

Re: GStreamer 1.0 #96 maigais

  • Senior Member
  • 431 posts

+4
Neutral

Posted 2 March 2014 - 18:27

Just add livestreamer and livestreamersrv bitbake's into the OpenPLi OE build system (currently i am using meta-local for that purpose).
 
Then add them at IMAGE_INSTALL or at OPTIONAL_PACKAGES.

question!

whether it is able to open pleylist.m3u

#EXTM3U
#EXTINF:-1 tvg-shift=2 ,OTP
h**p://46.251.49.113:7777/udp/239.195.1.83:1234
 

I'd Attempt
add XMBC

Edited by maigais, 2 March 2014 - 18:29.

BlackHole-3.1.0F_DM800 ,Tuner + ALINK DTU & Digital USB DVB-T HDTV TV Tuner Recorder Receiver , HDD TOSHIBA MK2552GSX 250gb,usb 16gb,skins Glamour_X-Infinity mod


Re: GStreamer 1.0 #97 athoik

  • PLi® Core member
  • 8,458 posts

+327
Excellent

Posted 2 March 2014 - 18:39

I think  Enigma2 can handle m3u playlist. Then you need correct url (in livestreamersrv format)


Wavefield T90: 0.8W - 1.9E - 4.8E - 13E - 16E - 19.2E - 23.5E - 26E - 33E - 39E - 42E - 45E on EMP Centauri DiseqC 16/1
Unamed: 13E Quattro - 9E Quattro on IKUSI MS-0916

Re: GStreamer 1.0 #98 maigais

  • Senior Member
  • 431 posts

+4
Neutral

Posted 12 March 2014 - 18:00

Help needed


#DESCRIPTION Discovery Science TV
#SERVICE 4097:0:1:19:1:2:FFFF0000:0:0:0:http://127.1:88/hlsv...ist.m3u8:Animal Planet TV

Attached Files

  • Attached File  nov.jpg   37.01KB   21 downloads

BlackHole-3.1.0F_DM800 ,Tuner + ALINK DTU & Digital USB DVB-T HDTV TV Tuner Recorder Receiver , HDD TOSHIBA MK2552GSX 250gb,usb 16gb,skins Glamour_X-Infinity mod


Re: GStreamer 1.0 #99 maigais

  • Senior Member
  • 431 posts

+4
Neutral

Posted 12 March 2014 - 18:52

will not work



#SERVICE 4097:0:1:458:1:64:FFFF0000:0:0:0:http%3a//127.1%3a88/hlsvariant%3a//http%3a//xxxxxxxxx/streaming/discovery/tvrec/playlist.m3u8:Discovery Channel TV
#DESCRIPTION Discovery Channel TV


BlackHole-3.1.0F_DM800 ,Tuner + ALINK DTU & Digital USB DVB-T HDTV TV Tuner Recorder Receiver , HDD TOSHIBA MK2552GSX 250gb,usb 16gb,skins Glamour_X-Infinity mod


Re: GStreamer 1.0 #100 athoik

  • PLi® Core member
  • 8,458 posts

+327
Excellent

Posted 13 March 2014 - 18:42

Run the livestreamersrv in debug mode and paste the output when you are trying to open the channel.
# /etc/init.d/livestreamersrv stop
# /etc/init.d/livestreamersrv manualstart
Thu Mar 13 19:40:46 2014 Server Starts - :88
.... more debugging will be shown here...

Wavefield T90: 0.8W - 1.9E - 4.8E - 13E - 16E - 19.2E - 23.5E - 26E - 33E - 39E - 42E - 45E on EMP Centauri DiseqC 16/1
Unamed: 13E Quattro - 9E Quattro on IKUSI MS-0916



2 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users


    Bing (1)