regeszter's custom MP (4 Viewers)

Nervesagent

Portal Pro
February 26, 2014
150
19
44
Home Country
Denmark Denmark
Do you talk about to play same stream on another client?
...
I use the same.

Exactly.. so you restream the rtsp://tvserver:556/stream8.0 ? Have you experienced any locking of the .ts files when you do this?
I had another issue that caused my tv server instability, so I may give it another go then..

What I want to achieve is to stream what I'm watching over the internet (to share with a friend) in a comprehensive way and respect the Cam-limit of 1.
So I figured I could configure a channel on a new (virtual) dvb-ip card named Stream 8.0 (with Cam-limit 0) and have my friend tune to that via WebMediaPortal.
The result was that my friend could tune to it, but he would start watching at the beginning of the ts buffer and there is no way to fast forward to make him watch the "live content".
Also if I change channel, my friend would just be watching to the end of the buffer and then the webclient would stop. Restarting the webclient would have him start watching the beginning of the same buffer.

Another way I figured out I could do this is to load the channels I want to share in a modified Vodserver (see forum) configuration , so if I tune to that channel, it would create 2 ffmpeg output streams:
1 for my MediaPortal to watch and 1 transcoded for Wan for my friend. I'm still figuring out how to properly do this, since it got all glitchy when I tested, but that would be a less elegant way then to have him go to my WebMediaPortal.

If you can point me in the right direction or have some advice it would be very much appreciated.



EDIT:
The other way around it works perfectly..so first start a stream on WebMediaportal, then go to active streams and you'll see the webmedia portal stream listed. If only there was a way to open active streams in WebMediaPortal...
 
Last edited:

Nervesagent

Portal Pro
February 26, 2014
150
19
44
Home Country
Denmark Denmark
I can not help you with WebMediaPortal.
Can you tell me the command(s) you use for opening the stream on the second client? is it like mpextended does this?
So
1..start timeshifting
2..Create named pipe (this process is a bit unclear to me, should I create my own named pipe?)
3. Transcode

I got this info from the MPextended log... Are you using this method or is yours simpler?

Code:
2016-06-20 11:48:24.01943 [(36)] INFO: Starting timeshifting on channel 236 for client aMPdroid with identifier aMPdroid.-962293662.ts
2016-06-20 11:48:24.01991 [(30)] DEBUG: Starting timeshifting with username mpextended-aMPdroid.-962293662.ts on channel id 236
2016-06-20 11:48:24.01991 [(30)] DEBUG: Starting timeshifting
2016-06-20 11:48:29.75587 [(30)] DEBUG: Timeshifting succeeded
2016-06-20 11:48:29.77937 [(36)] DEBUG: Timeshifting started!
2016-06-20 11:48:29.77937 [(36)] INFO: Called InitStream with type=TV; provider=0; itemId=E:\timeshift\live2-0.ts.tsbuffer; offset=0; clientDescription=aMPdroid; identifier=aMPdroid.-962293662.ts; idleTimeout=
2016-06-20 11:48:30.02190 [(36)] DEBUG: Called StartStreamWithStreamSelection with ident=aMPdroid.-962293662.ts; profile=Android FFmpeg LQ; start=0; audioId=-1; subtitleId=-2
2016-06-20 11:48:30.02190 [(36)] DEBUG: StartStream with identifier aMPdroid.-962293662.ts for file mediatype=TV provider=0 id=E:\timeshift\live2-0.ts.tsbuffer filetype=Content offset=0 path=E:\timeshift\live2-0.ts.tsbuffer
2016-06-20 11:48:30.02190 [(36)] DEBUG: Using 400x224 as output size for stream aMPdroid.-962293662.ts
2016-06-20 11:48:30.02190 [(36)] DEBUG: Final stream selection: audioId=64, subtitleId=
2016-06-20 11:48:30.04890 [(36)] INFO: Assembling following pipeline:
2016-06-20 11:48:30.04890 [(36)] INFO:  data 1: MPExtended.Services.StreamingService.Units.InputUnit (input False, data True, log False)
2016-06-20 11:48:30.04890 [(36)] INFO:  data 5: MPExtended.Services.StreamingService.Units.EncoderUnit (input True, data True, log True)
2016-06-20 11:48:30.04890 [(36)] INFO:  dataconn 1 -> 5
2016-06-20 11:48:30.04890 [(36)] INFO:  log  6: MPExtended.Services.StreamingService.Units.FFMpegLogParsingUnit
2016-06-20 11:48:30.04890 [(36)] INFO:  logconn 5 -> 6
2016-06-20 11:48:30.04890 [(36)] INFO: Using TsBuffer to read input
2016-06-20 11:48:30.05140 [(36)] INFO: TsBuffer: Files added 1, removed 0
2016-06-20 11:48:30.05390 [(36)] DEBUG: Setup data unit 1
2016-06-20 11:48:30.05390 [(36)] INFO: Encoding: starting input named pipe \\.\pipe\2232758e-08d3-4ae2-b260-a18ee4f0f505
2016-06-20 11:48:30.05390 [(36)] INFO: Encoding: starting output named pipe \\.\pipe\2350a49b-efeb-4c46-875b-3595e36726cd
2016-06-20 11:48:30.05390 [(36)] INFO: Encoder: Transcoder configuration dump
2016-06-20 11:48:30.05390 [(36)] INFO: Encoder:  hasStdin False, hasStdout False, hasStderr True
2016-06-20 11:48:30.05390 [(36)] INFO: Encoder:  path D:\Program Files (x86)\MPExtended\Service\Streaming\ffmpeg.exe
2016-06-20 11:48:30.05390 [(36)] INFO: Encoder:  arguments -y  -i "\\.\pipe\2232758e-08d3-4ae2-b260-a18ee4f0f505" -s 400x224 -aspect 400:224 -map v:0 -map a:0 -codec:v libx264 -b:v 256k -profile:v baseline -preset:v ultrafast -coder rle -codec:a aac -b:a 64k -ac 2 -strict experimental -async 1 -sn -f mpegts "\\.\pipe\2350a49b-efeb-4c46-875b-3595e36726cd"
 

Nervesagent

Portal Pro
February 26, 2014
150
19
44
Home Country
Denmark Denmark
Can you tell me the command(s) you use for opening the stream on the second client? is it like mpextended does this?

Please forgot mpextended. It is the TvServer.
I get that...
Sorry for being so nosey, but my only question here is: what is the command you use to get the stream duplicated in tv server? (*so maybe I can use that command elsewhere).
Thanks!
 

regeszter

Retired Team Member
  • Premium Supporter
  • October 29, 2005
    5,335
    4,954
    Home Country
    Hungary Hungary
    Can you tell me the command(s) you use for opening the stream on the second client? is it like mpextended does this?

    Please forgot mpextended. It is the TvServer.
    I get that...
    Sorry for being so nosey, but my only question here is: what is the command you use to get the stream duplicated in tv server? (*so maybe I can use that command elsewhere).
    Thanks!

    No any duplication. The second client watches the same rtsp stream as 1st one.
     

    Nervesagent

    Portal Pro
    February 26, 2014
    150
    19
    44
    Home Country
    Denmark Denmark
    Please forgot mpextended. It is the TvServer.
    I get that...
    Sorry for being so nosey, but my only question here is: what is the command you use to get the stream duplicated in tv server? (*so maybe I can use that command elsewhere).
    Thanks!

    No any duplication. The second client watches the same rtsp stream as 1st one.
    Ok thanks..
    I have a workable situation now:
    -My friend can view use the transcoded streams from Webmediaportal in his Kodi IPTV setup (links from WebMediaPortal)
    -My friend has a lower user priority so he's not in the way and will get kicked if he tries to use a card that I'm using
    -If we both want to see a channel at the same time on the same card with Cam-limit 1 he can tune to the channel first, and I can tune to the active tv stream with your wonderful build!
    -I'm upping the cam limit from 1 to 2 soon by purchasing another iptv subscription with the same channels.

    I'm going to work on WebMediaPortal/MPextended to figure out how to access and transcode a currently active stream outside of MePo, just like regeszter does in MePo client.
     

    Users who are viewing this thread

    Top Bottom