Jump to content

FR: Server/Plugin - a streaming plugin


KRA
Go to solution Solved by Luke,

Recommended Posts

This is my suggestion, in my mind it's simple, but it probably isn't :D

 

I'm looking for a plugin where I can put in static URL to video streams, or m3u8 files maybe?. And have those piped through the server and handled by MB3 to make it available for all clients.

 

My main use for this would simply add my own web channels, I would use it for some tv channels that supply feeds online, but also for local tv-server solutions such as nextpvr and tvheadend who can stream tv channels over http.

 

Basically I just put in the url's to a plugin, maybe with a icon.png file. MB3 server can open this url and pipe the data through mb3 server and supply it out to clients, and transcode it if needed. 

 

If I only knew how to code...

Link to comment
Share on other sites

snazy2000

I basicly have what your asking for for my testing I will make it more user friendly and get it out :)

 

Sent from my HTC One using Tapatalk

  • Like 4
Link to comment
Share on other sites

snazy2000

No the podcasts plugin reads feeds not just the url

 

Sent from my HTC One using Tapatalk

  • Like 1
Link to comment
Share on other sites

I basicly have what your asking for for my testing I will make it more user friendly and get it out :)

 

Sent from my HTC One using Tapatalk

 

Sweet, looking forward to this :)

Link to comment
Share on other sites

  • 3 weeks later...
im85288

@@snazy2000 - Any news on this one Snazy? I think this may be a way to get Live TV from TvHeadend playing on devices such as the Roku etc.

 

I think it has potential to be something similar to the PseudoTV Live plugin in XBMC where you can add all sorts of streams etc to create your own channels: http://forum.xbmc.org/showthread.php?tid=169032

Link to comment
Share on other sites

snazy2000

Ive just uploaded an initial release you need the dev build to be able to see then plugin. So some people will have to wait :)

 

There is bound to be some issues but it works ok for me so far :)

Edited by snazy2000
  • Like 1
Link to comment
Share on other sites

im85288

Had a very quick try and it works like a charm so far :) Finally I can watch sky sports news on the roku! Very cool plugin, cheers.

  • Like 1
Link to comment
Share on other sites

Rasputin

Hey, a quick question snazy (and probably a dumb one). All of the PlayOn content is showing 0 of 0 when I go into the channel. I assume it may have something to do with what my PlayOn IP is set to. My PlayOn server is running on the same PC I have the MB server running, so I assume that IP address (in this case, 192.168.1.2) would be what I would put in there? Or do I need to input something else entirely?

 

Thanks!

 

Sent from my SM-N900V using Tapatalk

Link to comment
Share on other sites

snazy2000

This thread is not related to that plugin try entering 127.0.0.1 if it's on the same pc. If doesn't work make a new thread

 

Sent from my HTC One using Tapatalk

Link to comment
Share on other sites

im85288

What is plugin name, I don't see it. I have MB3 linux Version 3.0.5309.28673

 

It is called IPTV,  the Linux version is not the latest DEV version so you will need to wait until that's updated. 

Link to comment
Share on other sites

  • 2 weeks later...

MBT is sloppy with it's errors, I get the same error when it's trying to play AC3 audio to my monitor (that doesn't support it) 

 

This is log from trying to play a channel. 

 

 

2014-07-28 20:59:20.0479 Info - InternalDirectShowPlayer: Playing 5. TV2 Zebra. Audio Renderer: Default, Madvr: True, xySubFilter: True
2014-07-28 20:59:20.0479 Info - InternalDirectShowPlayer: Playing Path http://192.168.10.205:8096/mediabrowser/Videos/dfe7d8cf19ccda3fac56da26afba5128/stream.ts?VideoCodec=h264&AudioCodec=aac
2014-07-28 20:59:21.8104 Debug - InternalDirectShowPlayer: Added default audio renderer
2014-07-28 20:59:21.9314 Debug - InternalDirectShowPlayer: Disable HWA support for: MPEG2DVD
2014-07-28 20:59:21.9314 Debug - InternalDirectShowPlayer: Change HWA resolution support from 3 to -1.
2014-07-28 20:59:21.9314 Debug - InternalDirectShowPlayer: Add LAVAudio to the graph.
2014-07-28 20:59:21.9314 Debug - InternalDirectShowPlayer: Enable LAVAudio Runtime Config
2014-07-28 20:59:21.9453 Debug - InternalDirectShowPlayer: Enable LAVAudio S/PDIF bitstreaming
2014-07-28 20:59:21.9453 Debug - InternalDirectShowPlayer: Enable LAVAudio HDMI bitstreaming
2014-07-28 20:59:21.9453 Debug - InternalDirectShowPlayer: Set LAVAudio auto AV Sync: True
2014-07-28 20:59:21.9453 Debug - InternalDirectShowPlayer: Set LAVAudio Expand61: False
2014-07-28 20:59:21.9453 Debug - InternalDirectShowPlayer: Set LAVAudio ExpandMono: False
2014-07-28 20:59:21.9453 Debug - InternalDirectShowPlayer: Set LAVAudio ConvertToStandardLayout: True
2014-07-28 20:59:21.9453 Debug - InternalDirectShowPlayer: Set LAVAudio audio EnableDRC: False
2014-07-28 20:59:21.9453 Debug - InternalDirectShowPlayer: Set LAVAudio audio ShowTrayIcon: True
2014-07-28 20:59:21.9619 Debug - InternalDirectShowPlayer: AC3 bitstreaming: True
2014-07-28 20:59:21.9619 Debug - InternalDirectShowPlayer: EAC3 bitstreaming: True
2014-07-28 20:59:21.9619 Debug - InternalDirectShowPlayer: TRUEHD bitstreaming: True
2014-07-28 20:59:21.9619 Debug - InternalDirectShowPlayer: DTS bitstreaming: True
2014-07-28 20:59:21.9619 Debug - InternalDirectShowPlayer: DTSHD bitstreaming: True
2014-07-28 20:59:21.9939 Debug - InternalDirectShowPlayer: Completed RenderStreams with 1 pins.
2014-07-28 20:59:21.9939 Error - InternalDirectShowPlayer: InvokeOnPlayerThread
The operation cannot be performed because the pins are not connected.
System.Runtime.InteropServices.COMException
  at System.Windows.Forms.Control.MarshaledInvoke(Control caller, Delegate method, Object[] args, Boolean synchronous)
  at System.Windows.Forms.Control.Invoke(Delegate method, Object[] args)
  at System.Windows.Forms.Control.Invoke(Delegate method)
  at MediaBrowser.Theater.DirectShow.InternalDirectShowPlayer.InvokeOnPlayerThread(Action action)
 
2014-07-28 20:59:21.9939 Debug - App: Navigating to FullscreenVideoPage
2014-07-28 20:59:22.0405 Info - App: Removing resource ResourceDictionary
2014-07-28 20:59:22.0405 Debug - App: Navigation complete to FullscreenVideoPage
2014-07-28 20:59:22.1005 Debug - ScreensaverManager: Calling SetThreadExecutionState to prevent system idle
2014-07-28 20:59:22.1030 Debug - ApiClient: ReportPlaybackStart: Item dfe7d8cf19ccda3fac56da26afba5128
2014-07-28 20:59:22.3591 Info - ApiWebSocket: Received web socket message: PlaybackStart
2014-07-28 20:59:22.4102 Error - ApiWebSocket: Error in OnMessageReceivedInternal
Type definitions should start with a '{', expecting serialized type 'WebSocketMessage', got string starting with: fac56da26afba5128","Type":"ChannelVideoItem","Medi
System.Runtime.Serialization.SerializationException
  at ServiceStack.Text.Common.DeserializeTypeRefJson.StringToType(Type type, String strType, EmptyCtorDelegate ctorFn, Dictionary`2 typeAccessorMap)
  at ServiceStack.Text.Common.DeserializeType`1.<>c__DisplayClass3.<GetParseMethod>b__1(String value)
  at ServiceStack.Text.Json.JsonReader`1.Parse(String value)
  at ServiceStack.Text.JsonSerializer.DeserializeFromString[T](String value)
  at MediaBrowser.Common.Implementations.Serialization.JsonSerializer.DeserializeFromString[T](String text)
  at MediaBrowser.ApiInteraction.WebSocket.BaseApiWebSocket.GetMessageType(String json)
  at MediaBrowser.ApiInteraction.WebSocket.BaseApiWebSocket.OnMessageReceivedInternal(String json)
  at MediaBrowser.ApiInteraction.WebSocket.BaseApiWebSocket.OnMessageReceived(String json)
 
2014-07-28 20:59:22.8592 Info - ApiWebSocket: Received web socket message: UserDataChanged
Link to comment
Share on other sites

Finally got to test the plugin, and it's exactly what I was looking for! Great stuff thanks.

 

Now some comments ;)

 

After you add a stream, it would be nice to be able to edit it. When I click on it in config nothing happens. If I did a typo I have to delete and re-add.

 

Unfortunatly I was unable to send my TVHeadend streams over to MBT, 

MBT Just say "Error in NowPlayingInfo.GetName(): Object referenc..."

 

A look in MB3 log I notice it was transcoding the stream, I find that odd because a) it's not needed with MBT  B) if the stream is transcoded MBT should for sure be able to play it. 

 

I tested revision3 plugin and it is working and playing in MBT, but it's also transcoding the stream. :o

Link to comment
Share on other sites

snazy2000

Ahh! i was going to say! :P

 

MBT seems to have issues with that error you posted ive seen few threads so take look in the MBT forum and there may be a solution :)

Link to comment
Share on other sites

im85288

+1 for being able to edit the links once created... but great plugin thanks. Using it for sending my TVHeadend streams to multiple rokus :)

  • Like 1
Link to comment
Share on other sites

I will post in mbt forum later. But why is server transcoding the stream? MBT should handle it in its native format. Same thing with other channels. Transcoding when not needed.

Link to comment
Share on other sites

im85288

@@KRA - out of curiosity why do you feel that no transcoding is needed when playing the streams from TVHeadEnd? 

 

I have been entering mine in this format: 

http://192.168.1.189:9981/stream/channelid/866

Unless you have an alternative method of entering them then I am not sure how they would not be transcoded? At least in the roku clients I have used they seem to be transcoded to a format they can play natively.

Link to comment
Share on other sites

simono5

Had a very quick try and it works like a charm so far :) Finally I can watch sky sports news on the roku! Very cool plugin, cheers.

@@im85288, can you provide the link to SSNews as I'd like the same set-up as you?

 

Thanks

Link to comment
Share on other sites

im85288

@@im85288, can you provide the link to SSNews as I'd like the same set-up as you?

 

Thanks

 

I cannot, the link is similar to the one I posted above which uses the TVHeadEnd backend for Live TV.  If you have a Live TV backend such as TVHeadEnd you may be able to do a similar thing..

Link to comment
Share on other sites

BATTLE DONKEY

Out of curiosity what other ways or websites are you guys using this plugin with? Or other ways it can potentially be used? The only other way I can think of is for security cameras that u can see the feed over the internet. What ways or websites have u guys thought of or tried out?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...