1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Transcoding

Discussion in 'Zgemma H9S - 4K' started by llok, Sep 17, 2018.

  1. llok

    llok Registered

    4
    0
    1
    Hello I am trying to stream channles to my phone with dreamdroid but I cannot stream with trascoding, only normal stream through the port 8001. If i change the port in dreamdroind to 8002 to get transcoding it doesnt work.
    I thought the transcoding port was by default 8002 and the streaming port by default 8001. At least it is like that in other boxes.


    In the openwebif, clicking in the trascoding icon of the channel i get a m3u file like this:
    #EXTM3U
    #EXTVLCOPT--http-reconnect=true
    #EXTINF:-1,CUATROHD
    http://direccion_ip:8001/1:0:19:7531:426:1:C00000:0:0:0:?bitrate=1500000?wi dth=720?height=576?vcodec=h265?aspectratio=1?inter laced=0

    Where it is using the port 8001 and behind includes the trascoding parameters. (in others receivers the port change to 8002 and doesn't include any trascoding parameter in the m3u file)

    The m3u file without trascoding looks like this:
    EXTM3U
    #EXTVLCOPT--http-reconnect=true
    #EXTINF:-1,CUATROHD
    http://direccion_ip:8001/1:0:19:7531:426:1:C00000:0:0:0:

    Is this a bug or why streaming and transcoding is using the same port?
    I am running openATV 6.1
    Thanks!
     
  2. Artur_k

    Artur_k Registered

    2
    0
    1
    Male
    I was trying to solve this yesterday and here is what i found.
    Streaming with transcoding is using the same port as normal - 8001, with transcoding parameters at the end.
    It works flawlessly, just install VLC Player on your phone, copy the link from webif and paste it in VLC.
    I wasn't able to play transcoded stream on dreamdroid, app just needs an update.
     
  3. llok

    llok Registered

    4
    0
    1
    Yes I got the same conclusion as you.
    I do it like that in my computer. I click on the "phone" or on the "screen" icon on the openwbif interface and download a .m3u file like the ones I posted in my first post, then I edit this file to change the port 8001 to 12001, because for security I don't have opened the port 8001 in my router but the 12001 and forwarded to the 8001 of my box.
    So editing the m3u file and changing this port and then opening with VLC works great on my computer.
    #EXTM3U
    #EXTVLCOPT--http-reconnect=true
    #EXTINF:-1,CUATROHD
    http://direccion_ip:8001/1:0:19:7531:426:1:C00000:0:0:0:?bitrate=1500000?wi dth=720?height=576?vcodec=h265?aspectratio=1?inter laced=0

    But in the phone i have this problem:
    When I click on the phone icon in the openwebif interface being on my phone or iPad, i get a link like this one
    direction_IP:1080/web/stream.m3u?ref=1%3A0%3A19%3A7828%3A428%3A1%3AC00000%3A0%3A0%3A0%3A&name=M.+DEPORTESHD&device=phone
    Where 1080 is the access port that i used for openwebif, but not the streaming port, so I guess it try to connect through the default streaming port 8001 which is closed, and doesn't work.
    And in that link i can't change the streaming port as i do it with the m3u file in the computer.

    Any help?
    I hope i was able to explain myself properly...

    Thanks!
     
  4. Artur_k

    Artur_k Registered

    2
    0
    1
    Male
    what happens when you try to play this link on your phone (with port changed to 12001), try to open it with VLC on phone

    EDIT:
    I'll make it clearer.
    I'm using chrome browser so will explain on that.
    On the phone in chrome open webif, click phone icon next to service you want to stream. It will open a new window but will not play. Click on Chrome 3 dots in top right corner and click on download icon.
    It will save a file stream.m3u8
    You can edit the file to change the port (in your example 12001) and the stream.m3u8 should play
     
    Last edited: Sep 18, 2018
  5. llok

    llok Registered

    4
    0
    1
    Yeah! like this works well, i can access to the file m3u8 and edit it with a text editor and change the port. And I can see the streaming using the VLC player in the phone.
    But now I realized that it happens a weird thing... if I open the m3u8 file edited with my port 12001, it works and plays the streaming, but... if I open the original m3u8 file not edited (so with the default 8001 port) it also works! and plays the stream aswell!
    How can be this posible if in my router I have opened the port 12001 but the 8001 is closed? Isn't it weird?