My small contribution I call - StreamTV (6 Viewers)

MoPhat

Retired Team Member
  • Premium Supporter
  • June 17, 2007
    816
    226
    Berg
    Home Country
    Switzerland Switzerland
    thank you valk, i have tryet at home with 3 clients for 1 hour without any problem.
    i will try this release tommorow at work for more then a few days for streaming ;)

    i will give you feedback

    :D
    MoPhat
     

    Valk

    Portal Pro
    February 25, 2006
    302
    108
    Home Country
    Australia Australia
    Well if it all works out I'll release 1.0.2.0, i'll give it a few days before I update everything on GC to 1.0.2.0 (incase there is something I missed).

    I've fixed radio playback so as long as video works fine I'll be able to release a stable and solid release :)

    One thing worth checking is how much work your HDD is doing, its a balancing act between smooth playback and how quickly you try and get data off the drive. I'm using SSD drives so I imagine there could be a issue (try multiple clients).

    Oh and if you want you can run the server on port 80 without affecting other programs. Other servers shouldn't have a problem running with StreamTv on port 80 since I specified the TvServer folder in the prefix, if you want to know more or your having troubles HttpListener Class (System.Net) explains how the prefixes work (read the remarks section).

    StreamTv uses: "http://*:{0}/TvServer/" where {0} = port.
     

    MoPhat

    Retired Team Member
  • Premium Supporter
  • June 17, 2007
    816
    226
    Berg
    Home Country
    Switzerland Switzerland
    I have now started at 10.30 the stream a client, and will try how long is running fine ;)

    Ohter question, did you read for each client the streaming files or did you use a memory buffer?

    client A connects for Channel 1, stream is startet with a buffer 16MB (?), the client is served from the buffer...

    now client B connects for Channel 1 to, its not again readed the stream > its served from the same stream.

    is this so, or is this a good idea (i have not checked the sources for the moment)?

    P.S.
    i will give you later a feedback

    thx
    MoPhat
     

    Valk

    Portal Pro
    February 25, 2006
    302
    108
    Home Country
    Australia Australia
    Yeah I've thought about that, for now it opens a fresh handle to access the file since I don't know if you want to timeshift right back to the first file or not (even though you can't do that at the moment).

    I'll probably change it so if the stream can't seek it will just access a common buffer but I was aiming for stability and simplicity.
     

    MoPhat

    Retired Team Member
  • Premium Supporter
  • June 17, 2007
    816
    226
    Berg
    Home Country
    Switzerland Switzerland
    i think i (others to?) dont need go back in timeshift file, bacause its a live tv streaming.

    if anyone needs this, he can use the mp client, right?


    whats about mutlicast streaming? < just a improvement idea :D

    P.S.
    i have noticed that the streaming is now little jerky

    thx
    MoPhat
     

    vuego

    Documentation Group
  • Team MediaPortal
  • August 5, 2006
    1,645
    776
    Göteborg
    Home Country
    Sweden Sweden
    Thanks Valk for this great plugin. I used it to stream a soccer game externally when I was visiting a friend and it worked very nice. I have 10 Mbit/s upstream at home :)
    I wish we could have a list of supported client software somewhere, perhaps on your Google code page. I know that VLC does work and Windows Media Player does not but what about other players? I tried The KMPlayer which should be able to play .ts files and streaming video but it just crashed when connected to StreamTV.
     

    Valk

    Portal Pro
    February 25, 2006
    302
    108
    Home Country
    Australia Australia
    I'll have to read up a little on multicast etc. I picked HTTP since I thought that would be my best bet to get it working with something like PS3MediaServer or Tversity (those programs are darn picky). Have to see how things go.

    I'm impressed you managed to watch something via the internet, couldn't do that here in aus (yet anyway). I'd ask if you had stuttering issues but I'll hold off on that until I publish the next version (a lot of changes surrounding that problem have been done to get radio working).

    Well considering no one has come back crying it stops playing I'll declare it seems stable. When I get a chance I'll release the next version and update the SVN.

    As for clients to be honest I haven't gone through and seen what works / doesn't. VLC is a pain to use when testing because of how easily it crashes when it doesn't get its way.

    As a simple guide anything that uses directshow like windows media player, sasami2k will not work since the required codecs aren't installed. Other apps like VLC and I think mplayer which don't use directshow but their own set of codec's would probably work.

    For the moment I don't really use the GC site for anything except a SVN repository but that will change eventually :)
     

    MoPhat

    Retired Team Member
  • Premium Supporter
  • June 17, 2007
    816
    226
    Berg
    Home Country
    Switzerland Switzerland
    Thank you Valk for the feedback.

    Have you me a hint with which codec i can use the media player?

    anyway, here are the log files when my client (just one) stops the stream (VLC and DirectX Client). the duration is not every time the same > 15min 3h... !?!?

    P.S.
    On the Channel List i got this

    "http://tagviw002/TvServer/TimeShift.ts%3FChannelId=2"

    instead of this

    "http://tagviw002/TvServer/TimeShift.ts?ChannelId=2"

    thx
    MoPhat
     

    MoPhat

    Retired Team Member
  • Premium Supporter
  • June 17, 2007
    816
    226
    Berg
    Home Country
    Switzerland Switzerland
    This error came today when the stream are stopped:
    Code:
    2009-06-16 11:02:54.705208 [27]: Controller: Error on delete in CleanTimeshiftFiles
    2009-06-16 11:02:54.705208 [27]: Controller: Error on delete in CleanTimeshiftFiles
    2009-06-16 11:58:43.556408 [23]: Controller: Error on delete in CleanTimeshiftFiles
    2009-06-16 11:58:43.556408 [23]: Controller: Error on delete in CleanTimeshiftFiles
    2009-06-16 11:58:43.556408 [23]: Controller: Error on delete in CleanTimeshiftFiles

    I have 3 timeshift files (min3, max3) with 256Mb/file... and just one dvb-t usb tuner attached.

    i'l try now with 8 x1GB files... (!?) how long the stream is playing.

    :confused:
    MoPhat
     

    Valk

    Portal Pro
    February 25, 2006
    302
    108
    Home Country
    Australia Australia
    Yeah don't worry about the timeshift file issue i've fixed all that up. With the %3F I already knew about that long ago. I modified the code to compensate for it.
     

    Users who are viewing this thread

    Top Bottom