Is it possible to use TVserver over Internet...? (1 Viewer)

joxen

MP Donator
  • Premium Supporter
  • May 14, 2008
    146
    14
    stockholm
    Home Country
    Sweden Sweden
    @hkjensen

    i realy like to try this out but i dont under stand how to add / edit the ip tuning details and wher to put the streming profile ???

    maby you can make a quick guide :)
     

    joxen

    MP Donator
  • Premium Supporter
  • May 14, 2008
    146
    14
    stockholm
    Home Country
    Sweden Sweden
    that whould be great.

    i did manage to get te tvserver to conect to my mpextended in direct mode but to ad the streaming profile im out of luck.

    it looks like i have another syntax in my streming profile.xml then the one you use ? (transcoder is transcoders and transcoderconfigurator is transcoderparameter)
    so if copy pasting is the thing to do i realy dont get it ...


    another thing is it posible to get a full channel maping in m3u format for using in the scaning part of tvserver or do you have to make the file of your own ?
     

    hkjensen

    MP Donator
  • Premium Supporter
  • June 11, 2007
    164
    66
    Copenhagen
    Home Country
    Denmark Denmark
    @joxen

    I have a script to create the m3u file, that can be used for scanning for channels.

    Unpack attached iptv.zip

    Open file in notepad and fill out all Database and MPExtended parameters, mpURL is with out http: ex mytvserver.dynalias.org
    Database parameters can be found in Gentle.config in %PROGRAMDATA%\Team MediaPortal\MediaPortal TV Server
    For mpProfile %ProgramData%\MPExtended\StreamingProfiles.xml use profile with <Transport>http</Transport> and <MIME>video/MP2T</MIME> replace space with %20 or copy existing profile to new profile with name without spaces

    All values must be defined as text ex. mpURL = "mytvserver.dynalias.org"
    '** Setup
    ' Database
    dbServer =
    dbBase =
    dbUser =
    dbPassword =

    ' MPExtended
    mpURL =
    mpProfile =
    mpPort =


    Save script and run it (double click)
    a m3u file will be created <mpURL>.m3u

    Copy file to %ProgramData%\Team MediaPortal\MediaPortal TV Server\TuningParameters\dvbip

    Open TV-Config and use file for scanning after channels, adjust parameters in General/Scan if no channels are found

    To check generated URL's in m3u file open URL in VLC/Webbrowser etc.

    This is my current profile for IPTV
    <TranscoderProfile>
    <Name>IPTV</Name>
    <Description>High-quality Android profile based on ffmpeg</Description>
    <HasVideoStream>true</HasVideoStream>
    <MIME>video/MP2T</MIME>
    <MaxOutputWidth>720</MaxOutputWidth>
    <MaxOutputHeight>576</MaxOutputHeight>
    <Targets>
    <Target>pc-vlc-video</Target>
    <Target>android</Target>
    </Targets>
    <Bandwidth>896</Bandwidth>
    <Transport>http</Transport>
    <Transcoder>MPExtended.Services.StreamingService.Transcoders.FFMpeg</Transcoder>
    <TranscoderParameters>
    <noResize>yes</noResize>
    <codecParameters>-s 720x576 -aspect 720:404 -codec:v libx264 -b:v 1024k -profile:v baseline -deinterlace -preset:v superfast -g 16 -r 25 -coder rle -codec:a copy -strict experimental -async 1 -sn -f mpegts</codecParameters>
    </TranscoderParameters>
    </TranscoderProfile>
     

    Attachments

    • iptv.zip
      897 bytes
    Last edited:

    joxen

    MP Donator
  • Premium Supporter
  • May 14, 2008
    146
    14
    stockholm
    Home Country
    Sweden Sweden
    @hkjensen

    i do have som problem whith the script do i have to install vb to make it run ? i get an error at line 48 ( call objFSO.DeleteFile(mpURL & ".m3u") )
    or isit the mpURL that is not working,maby in my case my router dosent make a good loopback so it is not posible for me to use dyn in lokal lan :(

    Is the mpURL have to be conected to mpextended or is it to create the m3u file ?

    Did have som truble setting upp the ODBC 5.1 Driver but google is your friend :)

    Thanks i realy apriciate the help :)
     

    hkjensen

    MP Donator
  • Premium Supporter
  • June 11, 2007
    164
    66
    Copenhagen
    Home Country
    Denmark Denmark
    @joxen

    Updated script so that i doesn't fail when trying to delete old m3u file that doesn't exists.

    vbscript is part of windows so you don't have to install anything to get the script running other that the ODBC driver :)

    All MPExtended parameters is only for generating the file.
     

    joxen

    MP Donator
  • Premium Supporter
  • May 14, 2008
    146
    14
    stockholm
    Home Country
    Sweden Sweden
    @hkjensen
    Thank you (hero) :)

    my server did die on me after som channels have been scand did have to remotly restart boot mpextended/webmediaportal/tvserver for the streaming to begin working again ? do you have any clou on hove to fix that ...

    offtopic the streaming profile you made and the m3u file the script is making work realy good in xbmc ..
     
    Last edited:

    joxen

    MP Donator
  • Premium Supporter
  • May 14, 2008
    146
    14
    stockholm
    Home Country
    Sweden Sweden
    @hkjensen

    i realy like the script that you have made but is it posibel that you could add some control over whitch channel list to import ?

    exp i have groups in tvserver (allchannels/svt/comhem/boxer/sat) and i only like to get the channel listing for svt ?

    it would be realy nice in two ways i can specify one tv card to streaming and mapp all the channels to that card. Sekond it takes a long time to scan 300+ channels in tvserver dvb-ip filter and if am not abel to decode the channel i thing tvserver is not releasing the strem right so looks the card (but it is only a guess from my side).
     

    hkjensen

    MP Donator
  • Premium Supporter
  • June 11, 2007
    164
    66
    Copenhagen
    Home Country
    Denmark Denmark
    @joxen

    Sorry for late answer, been away for a long weekend in Greenland (no internet)

    Replace sql-script with the following.:

    strSQL = "select channel.idChannel as idChannel, displayName, channelNumber " & _
    "from channel,channelgroup,groupmap " & _
    "where isTv=1 and visibleInGuide=1 " & _
    "and channelgroup.groupName='svt' " & _
    "and groupmap.idChannel=channel.idChannel " & _
    "and groupmap.idGroup = channelgroup.idgroup "

    If tvserver can't decode the channel why do you have it visible in you TV-Guide? The script only select channel you have marked as visible in the Guide

    I would not assign channel used for web streaming to only one card, it will only limit you options. fx. Record one view another channel (requires 2 IPTV cards)
     

    joxen

    MP Donator
  • Premium Supporter
  • May 14, 2008
    146
    14
    stockholm
    Home Country
    Sweden Sweden
    @hkjensen
    Thanks !!

    when you have around 1500 channels ven doing a scan it takes a long time to test every one i have only made a ruf delet of the chanels im not Abel to decode so som are stil ther i whil let the tvserver test time shift all the remaning channels later.

    thanks again Life is so mutch easier Whit a litle help.
     

    Users who are viewing this thread

    Top Bottom