VODServer - Watch internet streams as TV channels (2 Viewers)

mm1352000

Retired Team Member
  • Premium Supporter
  • September 1, 2008
    21,577
    8,224
    Home Country
    New Zealand New Zealand
    However for some reason the audio only works for mediaportal running on the tv server pc. MP streaming wont send the aac to another client pc.
    Streaming is codec-independent. There's no reason AAC can't be sent to clients. I'd have suggested you check the codec settings on the client.
     

    divxmaster

    Portal Pro
    February 15, 2009
    55
    16
    Home Country
    New Zealand New Zealand
    Streaming is codec-independent. There's no reason AAC can't be sent to clients. I'd have suggested you check the codec settings on the client.

    Tried this on two different MP clients, exactly the same problem on both.

    Update: This is very odd but, I found another permanent workaround:
    Leaving the ffmpeg as codec -copy, go into config, renderer, tv codecs, change LATMAAC to monogram latmaac decoder, - it will now play audio. Then change it back to LAV Filters, and it still continues to now play the audio. This fix worked exactly the same on both MP Clients. Fix survives reboot.

    Cheers,
    Divxmaster
     
    Last edited:

    mm1352000

    Retired Team Member
  • Premium Supporter
  • September 1, 2008
    21,577
    8,224
    Home Country
    New Zealand New Zealand
    Leaving the ffmpeg as codec -copy, go into config, renderer, tv codecs, change LATMAAC to monogram latmaac decoder, - it will now play audio. Then change it back to LAV Filters, and it still continues to now play the audio. This fix worked exactly the same on both MP Clients. Fix survives reboot.
    This tells me you hadn't previously configured your codec settings on those clients.

    When you view the codec settings for the first time, MP configuration will select the LAV codecs as defaults if they're installed. However, those settings are not applied until you actually visit/view them. Until that point MediaPortal will use the codecs with the highest "merit" (DirectShow concept)... which may or may not work, depending on what codecs your PC has acquired over its lifetime.

    Another way of saying this: the LAV codecs would have worked from the start. You thought they were selected because you saw them selected when you went and checked. However, they weren't actually selected until you checked.
     

    divxmaster

    Portal Pro
    February 15, 2009
    55
    16
    Home Country
    New Zealand New Zealand
    Leaving the ffmpeg as codec -copy, go into config, renderer, tv codecs, change LATMAAC to monogram latmaac decoder, - it will now play audio. Then change it back to LAV Filters, and it still continues to now play the audio. This fix worked exactly the same on both MP Clients. Fix survives reboot.
    This tells me you hadn't previously configured your codec settings on those clients.

    When you view the codec settings for the first time, MP configuration will select the LAV codecs as defaults if they're installed. However, those settings are not applied until you actually visit/view them. Until that point MediaPortal will use the codecs with the highest "merit" (DirectShow concept)... which may or may not work, depending on what codecs your PC has acquired over its lifetime.

    Another way of saying this: the LAV codecs would have worked from the start. You thought they were selected because you saw them selected when you went and checked. However, they weren't actually selected until you checked.


    OK, I see what you mean - I loaded MP on a pc that hadn't had it before, and yes, going into tv codecs, not changing a thing and then clicking ok, makes it work. But this seems to me an odd way to do it to me, i.e. what you are seeing in the config screen isn't actually what is 'active'. I guess this is documented somewhere, but I haven't come across this issue before (been using MP for a LONG time, since 1.02 or whatever it was)

    Anyway, this solves the issue, and vodserver is running great with full -codec copy, 0% vodserver and .1% ffmpeg usage.

    Cheers,
    Divxmaster
    (p.s., I know about DS merits, graphedit and graphstudio, etc).
     

    makafre

    Portal Member
    January 5, 2010
    22
    1
    Home Country
    Canada Canada
    Hi

    Thank you for this amazing work!

    Question; I have setup a stream that shows up in MP but it plays like its on 'fast forward'. Both the audio and video are going too fast.
    It however plays correct in VLC.
    Is there a parameter or config to adjust the stream rate? Would that be related to ffmpegOutputParams from the common config file?

    My channel is the following:

    #EXTM3U
    #EXTINF:0,Bobo TV
    http://localhost:9999/channel?id=BOBO

    ......

    <map>
    <entry key="BOBO" value="/play?input=http://live-cdn.direct-stream.org:1935/live/_definst_/101010/Globo_SP_Anderson_Elias.m3u8" />
    </map>


    Thank you
     
    Last edited:

    badboyxx

    Portal Pro
    June 15, 2012
    728
    97
    Home Country
    Germany Germany
    I installed VOD 1.3 and configured it that the sample video is playing in vlc with localhost.
    I tried to configure the following stream:
    http://bit.do/Showtv
    I set everything similar like the example from JohnnyG but the channel doesn't work.

    I ended up modifying the test.xml to
    <entry key="input" value="http://149.255.37.194/hls/8803/index.m3u8"/>

    The VODServer m3u to
    #EXTM3U
    #EXTINF:0,PINK
    http://127.0.0.1:9999/test

    Then copied to the Dvbip tuning folder for Media Portal. Scanned and can now watch the channel on my stand alone client.


    In vlc I can watch the stream.

    I the log-file I can see following:
    Code:
    [2016-03-08-20:33:37.305][INFO ][qtp741669172-23 - /test][VODServiceHandler] /test [SERVICE REQUEST START]
    [2016-03-08-20:33:37.306][INFO ][qtp741669172-23 - /test][CommandRunnerService] /test Executing command: ffmpeg -i "vodserver.mp4" -vcodec mpeg2video -s 720x576 -r 25 -flags cgop+ilme -sc_threshold 1000000000 -b:v 2M -maxrate:v 2M -bufsize:v 1.4M -acodec mp2 -ac 2 -b:a 128k -f mpegts -
    [2016-03-08-20:33:37.362][INFO ][qtp741669172-23 - /test][CommandRunnerService] /test Opening response output stream
    [2016-03-08-20:33:44.693][WARN ][qtp741669172-23 - /test][CommandRunnerService] /test Stream copying finished due to IOException (probably due to closed output channel)
    [2016-03-08-20:33:44.694][INFO ][qtp741669172-23 - /test][VODServiceHandler] /test [SERVICE REQUEST END]


    Does anybody know where the failure is?
     

    Nervesagent

    Portal Pro
    February 26, 2014
    150
    19
    44
    Home Country
    Denmark Denmark
    I installed VOD 1.3 and configured it that the sample video is playing in vlc with localhost.
    I tried to configure the following stream:
    http://bit.do/Showtv
    I set everything similar like the example from JohnnyG but the channel doesn't work.

    I ended up modifying the test.xml to
    <entry key="input" value="http://149.255.37.194/hls/8803/index.m3u8"/>

    The VODServer m3u to
    #EXTM3U
    #EXTINF:0,PINK
    http://127.0.0.1:9999/test

    Then copied to the Dvbip tuning folder for Media Portal. Scanned and can now watch the channel on my stand alone client.


    In vlc I can watch the stream.

    I the log-file I can see following:
    Code:
    [2016-03-08-20:33:37.305][INFO ][qtp741669172-23 - /test][VODServiceHandler] /test [SERVICE REQUEST START]
    [2016-03-08-20:33:37.306][INFO ][qtp741669172-23 - /test][CommandRunnerService] /test Executing command: ffmpeg -i "vodserver.mp4" -vcodec mpeg2video -s 720x576 -r 25 -flags cgop+ilme -sc_threshold 1000000000 -b:v 2M -maxrate:v 2M -bufsize:v 1.4M -acodec mp2 -ac 2 -b:a 128k -f mpegts -
    [2016-03-08-20:33:37.362][INFO ][qtp741669172-23 - /test][CommandRunnerService] /test Opening response output stream
    [2016-03-08-20:33:44.693][WARN ][qtp741669172-23 - /test][CommandRunnerService] /test Stream copying finished due to IOException (probably due to closed output channel)
    [2016-03-08-20:33:44.694][INFO ][qtp741669172-23 - /test][VODServiceHandler] /test [SERVICE REQUEST END]


    Does anybody know where the failure is?
    From your log it looks like you're trying to open vodserver.mp4 file which it can't find. It does play the vodserver.mp4 file in VLC?
     

    badboyxx

    Portal Pro
    June 15, 2012
    728
    97
    Home Country
    Germany Germany
    From your log it looks like you're trying to open vodserver.mp4 file which it can't find. It does play the vodserver.mp4 file in VLC?


    Yes, it plays vodserver.mp4 with VODserver. I'm wondering why it tries to play the file in this case and it even doesn't start.


    My vodserver-service-test.xml looks like this:
    Code:
    <?xml version="1.0" encoding="UTF-8"?>
    <beans xmlns="http://www.springframework.org/schema/beans"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd">
    
        <!-- This test service will simply play a local file. This can be used for testing purposes,
             or used as a service override to speed up initial MediaPortal TV Server channel scanning.
             Please note that we cannot use a forwarding service here, since calling another service
             will simply invoke us again when using the service override option. -->
        <bean id="/test" parent="/play">
            <property name="paramBuilders">
                <list merge="true">
                    <bean class="vodserver.parambuilder.StaticParamBuilder">
                        <property name="order" value="10"/>
                        <property name="staticParams">
                            <map>
                                <entry key="input" value="http://bit.do/Showtv"/>
                            </map>
                        </property>
                    </bean>
                </list>
            </property>
        </bean>
    
    </beans>


    VODServer.m3u looks like this:
    Code:
    #EXTM3U
    #EXTINF:0,SHOWTV
    http://127.0.0.1:9999/test


    Both files are stored in folder VODServer on partition D.

    I created a file called channel.m3u which looks like this:
    Code:
    #EXTM3U
    #EXTINF:0,SHOWTV
    http://127.0.0.1:9999/test


    This file is stored in ...TuningParameters/DvbIP.
    All the other files are untouched.

    This is the procedure how JohnnyG described and did work in his case.
     

    Nervesagent

    Portal Pro
    February 26, 2014
    150
    19
    44
    Home Country
    Denmark Denmark
    I would stay away from the vodserver-service-test.xml and just modify the .m3u that it comes with and use the regular /play function.
    It's been too long since I used it and I can't really get into detail here at work.
     

    badboyxx

    Portal Pro
    June 15, 2012
    728
    97
    Home Country
    Germany Germany
    Maybe when you are at home, you can give me a sample how the modified files have to look like and which files these are?
     

    Users who are viewing this thread

    Top Bottom