DLNA mediaserver functionality on the Dreambox/enigma2 ?.

  • here is the answer to the play request coming from the lg bp to the mediatombed dm8000:





    And i attached the complete trace from booting the lg, selecting the mediaserver, navigating to the folder, starting playback, ending playback, navigating back to home and poweroff the lg.

    • Offizieller Beitrag

    Hi,


    yes I do know several devtools.
    And I am also using them :).


    If you want you could change the type yourself.
    The python file for it is

    Code
    /usr/lib/enigma2/python/Plugins/SystemPlugins/UPnP/DreamboxServiceStore.py


    Pretty much at the top you'll find


    You could try 2 things with the following line:


    Code
    res = DIDLLite.Resource(self.location, 'http-get:*:video/mpeg:DLNA_PN=MPEG_PS_PAL')


    1. Change "DLNA_PN=MPEG_PS"_PAL to DLNA_PN=MPEG_TS_PAL ->

    Code
    res = DIDLLite.Resource(self.location, 'http-get:*:video/mpeg:DLNA_PN=MPEG_TS_PAL')


    2. remove the "DLNA_PN=..." completeley so it looks like this: [code]res = DIDLLite.Resource(self.location, 'http-get:*:video/mpeg')

  • thanks, i wil do this tonight.
    do i have to restart enigma or the complete box to make the changes active or is there some other way without interfering with tv operation (otherwise i need to find some tv-off-time for testing with my family)

  • it did not work.
    traces attached.


    tracefiles:
    1) with-ps.zip: setting MPEG_PS (default)
    2) with-ts.zip: setting MPEG_TS
    3) without-dp.zip: setting neither of above, but ending with : after the mpeg
    4) without.zip: ending with mpeg, no :.... results in endless loading of the player (no crash. still network traffic going on?!?).


    but the more i think about it and look into the traces, there may be another problem with coherence.


    the lg tries to get metadata for the files in advance because coherence announces that it has this ability. but on the request for metadate it answers with error 500.


    sample of the last request:


    and coherence's answer to it:

    HTTP
    HTTP/1.1 500 Internal Server Error 
    Date: Tue, 05 Feb 2013 20:38:04 GMT 
    Content-Length: 435 
    Content-Type: text/xml; charset="UTF-8" 
    Ext: 
    Server: Linux,3.2-dm8000,UPnP/1.0,Coherence UPnP framework,0.6.7 
    
    
    <?xml version="1.0" encoding="utf-8"?><s:Envelope s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:s="s:ClientUPnPErrorhttp://schemas.xmlsoap.org/soap/envelope/"><s:Body><s:Fault><faultcode>s:Client</faultcode><faultstring>UPnPError</faultstring><detail><UPnPError xmlns="urn:schemas-upnp-org:control-1-0"><errorCode>500</errorCode><errorDescription>without words</errorDescription></UPnPError></detail></s:Fault></s:Body></s:Envelope>


    the lg seems to prescan all info from the mediaserver somehow before displaying the content list. at least it seems so.
    btw:


    if you look into the trace you can also see the possible formats for the lg, which should play anything the dreambox can present to it :smiling_face:


    Code
    <SinkProtocolInfo>http-get:*:image/jpegLNA.ORG_PN=JPEG_TN,http-get:*:image/jpegLNA.ORG_PN=JPEG_SM,http-get:*:image/pngLNA.ORG_PN=PNG_TN,http-get:*:image/pngLNA.ORG_PN=PNG_LRG,http-get:*:image/jpegLNA.ORG_PN=JPEG_MED,http-get:*:image/jpegLNA.ORG_PN=JPEG_LRG,http-get:*:audio/L16LNA.ORG_PN=LPCM,http-get:*:audio/x-ms-wmaLNA.ORG_PN=WMABASE,http-get:*:audio/x-ms-wmaLNA.ORG_PN=WMAFULL,http-get:*:audio/x-ms-wmaLNA.ORG_PN=WMAPRO,http-get:*:audio/mpegLNA.ORG_PN=MP3,http-get:*:audio/mpegLNA.ORG_PN=MP3X,http-get:*:audio/mp4LNA.ORG_PN=AAC_ISO_320,http-get:*:audio/mp4LNA.ORG_PN=HEAAC_L2_ISO,http-get:*:audio/mp4LNA.ORG_PN=AAC_ISO,http-get:*:audio/vnd.dlna.adtsLNA.ORG_PN=AAC_ADTS_320,http-get:*:video/x-ms-asfLNA.ORG_PN=MPEG4_P2_ASF_ASP_L4_SO_G726,http-get:*:video/mpegLNA.ORG_PN=MPEG_PS_PAL,http-get:*:video/mpegLNA.ORG_PN=MPEG_TS_SD_NA_ISO,http-get:*:video/mpegLNA.ORG_PN=MPEG_TS_HD_NA_ISO,http-get:*:video/mpegLNA.ORG_PN=MPEG_PS_PAL_XAC3,http-get:*:video/x-ms-asfLNA.ORG_PN=MPEG4_P2_ASF_SP_G726,http-get:*:video/x-ms-asfLNA.ORG_PN=MPEGSO_G726,http-get:*:video/mpegLNA.ORG_PN=MPEG_TS_SD_EU_ISO,http-get:*:video/mpegLNA.ORG_PN=MPEG_TS_HD_KO_ISO,http-get:*:video/mpegLNA.ORG_PN=MPEG_TS_SD_KO_ISO,http-get:*:video/mpegLNA.ORG_PN=MPEG_PS_NTSC,http-get:*:video/mpegLNA.ORG_PN=MPEG1,http-get:*:video/mpegLNA.ORG_PN=MPEG_PS_NTSC_XAC3,http-get:*:video/vnd.dlna.mpeg-ttsLNA.ORG_PN=MPEG_TS_JP_T,http-get:*:video/vnd.dlna.mpeg-ttsLNA.ORG_PN=MPEG_TS_HD_NA_T,http-get:*:video/vnd.dlna.mpeg-ttsLNA.ORG_PN=MPEG_TS_SD_NA_T,http-get:*:video/vnd.dlna.mpeg-ttsLNA.ORG_PN=MPEG_TS_SD_KO_T,http-get:*:video/vnd.dlna.mpeg-ttsLNA.ORG_PN=MPEG_TS_SD_EU_T,http-get:*:video/vnd.dlna.mpeg-ttsLNA.ORG_PN=MPEG_TS_HD_KO_T,http-get:*:video/vnd.dlna.mpeg-ttsLNA.ORG_PN=MPEG_TS_SD_KO,http-get:*:video/vnd.dlna.mpeg-ttsLNA.ORG_PN=MPEG_TS_HD_KO,http-get:*:video/vnd.dlna.mpeg-ttsLNA.ORG_PN=MPEG_TS_SD_NA,http-get:*:video/vnd.dlna.mpeg-ttsLNA.ORG_PN=MPEG_TS_SD_EU,http-get:*:video/vnd.dlna.mpeg-ttsLNA.ORG_PN=MPEG_TS_HD_NA,http-get:*:video/3gppLNA.ORG_PN=MPEG4_H263_MP4_P0_L10_AAC,http-get:*:video/mp4LNA.ORG_PN=AVC_MP4_BL_CIF15_AAC_520,http-get:*:image/vnd.ms-photo:*,http-get:*:image/gif:*,http-get:*:image/x-ycbcr-yuv420:*,http-get:*:image/jpeg:*,http-get:*:image/bmp:*,http-get:*:image/png:*,http-get:*:image/tiff:*,http-get:*:image/x-icon:*,http-get:*:image/x-quicktime:*,http-get:*:image/jpe:*,http-get:*:image/x-ycbcr-yuv420:*,http-get:*:audio/L16:*,http-get:*:get:*:audio/mp1:*,http-get:*:audio/mp2:*,http-get:*:audio/mpeg:*,http-get:*:audio/basic:*,http-get:*:audio/aiff:*,http-get:*:audio/mid:*,http-get:*:audio/x-ms-wax:*,http-get:*:audio/wav:*,http-get:*:audio/x-ms-wma:*,http-get:*:audio/vnd.rn-realaudio:*,http-get:*:audio/x-mpegurl:*,http-get:*:audio/x-wav:*,http-get:*:audio/mp4:*,http-get:*:audio/vnd.dlna.adts:*,http-get:*:audio/x-ms-wmv:*,http-get:*:audio/x-ogg:*,http-get:*:audio/midi:*,http-get:*:audio/x-aac:*,http-get:*:audio/x-ac3:*,http-get:*:audio/x-atrac3:*,http-get:*:audio/x-dts:*,http-get:*:audio/x-pn-realaudio:*,http-get:*:audio/x-quicktime:*,http-get:*:audio/dolby:*,http-get:*:audio/adts:*,http-get:*:audio/3gpp:*,http-get:*:audio/sonyoma:*,http-get:*:video/vnd.dlna.mpeg-tts:*,http-get:*:video/mp4:*,http-get:*:video/3gpp:*,http-get:*:video/mp2p:*,http-get:*:video/mpeg2:*,http-get:*:video/quicktime:*,http-get:*:video/x-dv:*,http-get:*:video/x-motion-jpeg:*,http-get:*:video/x-nerodigital-ps:*,http-get:*:video/mp1s:*,http-get:*:video/tts:*,http-get:*:video/x-msvideo:*,http-get:*:video/divx:*,http-get:*:video/xiid:*,http-get:*:video/asf:*,http-get:*:video/x-matroska:*,http-get:*:video/rtml:*,http-get:*:video/x-ms-wmx:*,http-get:*:video/x-ms-wm:*,http-get:*:video/x-ms-asf:*,http-get:*:video/x-ms-wvx:*,http-get:*:video/x-ms-dvr:*,http-get:*:video/avi:*,http-get:*:video/mpeg:*,http-get:*:video/vnd.rn-realvideo:*,http-get:*:video/x-pn-realmedia:*</SinkProtocolrty>


    you also find the mediatomb capture attached (mediatomb.zip) as a reference to how mediatomb handles things. looks quiete different as mediatomb obviously supports much fewer functions, but i really believe from that that this has something to do with metadata scanning.

  • no problem, take your time. if you need additional traces i will try to provide them provided i will get my family to do something else *g*


    btw:
    during testing i needed to reboot the lg every time because this s* thing caches the mediaserver information :smiling_face:


    btw2:
    we may also continue in a german speaking thread if needed. i just started in english because this is the english forum and i didnt want to open a new thread.

  • hehe.. btw this was the answer from lg for my request to analyse the trace:



    Zitat

    Hier scheint der BP 420 nicht mit dem Mediaserver der Dreambox kommunizieren zu koennen. Wir empfehlen die Nutzung der "Plex"-Software.


    Translated:


    "It seems the BP420 can not communicate with the Dreambox Mediaserver. We recommend using the "Plex" Software."

  • 3 Mal editiert, zuletzt von fboss ()

  • regarding the lg-bp420 issue:


    reichi seems to have fixed the issues with the dnla server so the lgbp420 (and so hopefully many other lg devices) seem to work with the latest enigma updates :smiling_face:



    thankx @ reichi

  • no, i dont know how to do a log. but if you point me in the right direction via pm i would try to.


    i could also try to do a libcap / wireshark trace of the network traffic if i find some time if that helps.


    Hi niemand0815 ,


    I see you posted some logs after doing the question quoted above . Can u please send to me ( even in private ) some suggestion to do the same thing ( would like to see what the server receive and what it answer back ). Many thanks in advance.


    Cheers

  • the main problem was solved by reichi.


    do you need general trace of the communication between bp420 and the dreambox to see how the communication works?




    Hi ,


    thanks for your replay . I should like to make some experiences in how dlna works ... I don' have bp420 for now ( have in mind to purchase a new dlna tv later ). But work with pc ( something like vlc ) and should like to see across logs the answers dreambox sends to the requesting vlc issues ...


    Thanks in advance


    p.s. Now just bought a Samsung UE22ES5400 that has certified function dlna ... Something is working something not .... Can see from tv the dream but cannot open channels ... ok if u try to play recorded tv from dm8000MediaServer. Need now more to trace comunications between devices to try to understand .... Thanks if u can reply

    Einmal editiert, zuletzt von fboss ()

  • the main problem was solved by reichi.


    do you need general trace of the communication between bp420 and the dreambox to see how the communication works?



    Hi niemand0815 ,


    u were so kind to answer to my first post but never seen u back ... Can u help me to trace dialouge between dreambox and my samsung ue22es5400 trough dlna ?


    Thanks in advance

  • sorry for that. but i ran out of time :frowning_face:


    first Thing is that you Need to install tcpdump on the box. with this installed you can get a trace of the Network traffic directly from the box.


    i installed the following 2 packages:
    tcpdump - 4.1.1-r1
    tcpdump-doc - 4.1.1-r1



    after that you should be able to run "tcpdump -?" on via Telnet.
    the command "tcpdump -i eth0 -s 1500 -w test.pcap" captures all traffic on the ehternet Interface to the file test.pcap


    be Aware that you must not locate this file on the Flash Memory or other small storage. maybe run this command from the hdd or any device with enough space.
    you can of course also run this from tmp.


    after that you can get the file on the pc and use wireshark to look into it.


    hope this helped.


    edit:


    "tcpdump -i eth0 -s 1500 -w test.pcap host 192.168.2.1" captures only the traffic to and from ip 192.168.2.1, for example.

  • Hi niemand0815 , thanks a lot for your answer . I will try to install and execute phe program immediately. I will let u know if i will be able to do that.


    Thanks again.


    Cheers

  • Well, i think we should fix the issue ;).


    Hi Reichi ,


    thanks for all that you are making here .


    I have a problem connecting my Samsung UE22ES5400 ( released at the end of 2012 with latest AllShare ... ). I can work well with dm8000MediaServer but not with dm8000 (TV & Radio). I see the device in tv but dialogue cannot be estabilshed ( TV says cannot coclude connection ). Thanks to the answer of niemand0815 i did take the dump of the dialogue ( I report here some parts i consider interesting but you have all the dum in attachement ). It seems something cannot finish well between devices. Can u please consider this problem in your new fix of experimental dlna and make happy many people have TV samsung ? Thanks in advance and thanks again for your precious work here.


    near the beginning of dialogue :
    ...............................................
    HOST: 239.255.255.250:1900
    CACHE-CONTROL: max-age= 1800
    LOCATION: http://192.168.1.50:7676/smp_14_
    NT: urn:schemas-upnp-org:service:AVTransport:1
    NTS: ssdp:alive
    SERVER: SHP, UPnP/1.0, Samsung UPnP SDK/1.0
    USN: uuid:0d1cef00-00dc-1000-9793-f47b5e55ff6c::urn:schemas-upnp-org:service:AVTransport:1
    ..............................................
    JGET /smp_2_ HTTP/1.0
    Host: 192.168.1.50
    User-Agent: Coherence PageGetter
    ..............................................
    –HTTP/1.1 401 Unauthorised
    Content-Type:
    Content-Length: 0
    Connection: close
    ......................
    in the middle of dialogue :
    ..............................................
    POST /9d024968-5b16-4cd0-99fc-ba193065332e/ContentDirectory/control HTTP/1.1
    Accept: */*
    User-Agent: SEC_HHP_[TV]UE22ES5400/1.0 DLNADOC/1.50
    Host: 192.168.1.2:45743
    SOAPACTION: "urn:schemas-upnp-org:service:ContentDirectory:1#X_GetFeatureList"
    CONTENT-TYPE: text/xml; charset="utf-8"
    Content-Length: 291
    Connection: close
    S–HTTP/1.1 500 Internal Server Error
    Content-Length: 436
    Connection: close
    Server: Linux,3.2-dm8000,UPnP/1.0,Coherence UPnP framework,0.6.7
    Ext:
    Date: Fri, 15 Mar 2013 09:28:43 GMT
    Content-Type: text/xml; charset="UTF-8"


    Zitat


    <?xml version="1.0" encoding="utf-8"?><s:Envelope s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:s="s:ClientUPnPErrorhttp://schemas.xmlsoap.org/soap/envelope/"><s:Body><s:Fault><faultcode>s:Client</faultcode><faultstring>UPnPError</faultstring><detail><UPnPError xmlns="urn:schemas-upnp-org:control-1-0"><errorCode>401</errorCode><errorDescription>Invalid Action</errorDescription></UPnPError></detail></s:Fault></s:Body></s:Envelope>ËéBQ:


    I

  • Well, i think we should fix the issue ;).


    Hi Reichi ,


    thanks for your work. I did download the last version of upnp demo sw and i did make some tests with PC and TV. From dream to TV (Samsung UE22ES5400) u can see TV , u can send recorded TV and they play well , but u cannot send TV channels ( of dm8000 Tv & Rado ). From TV u can see via dm8000MediaServer the recorded TV, but u cannot see TV channels from dm8000 (Tv & Radio). Via PC trough serviio media server u can see both recorded tv and tv channels . If u think some dump are sweetable for you please let me know and I will send them. I also should like to partecipate in testing dlna functions ( i have a DM8000, some win pc in domestic lan and samsung tv UE22ES5400 ). Let me know if i could be of some help.


    Thanks again.

    2 Mal editiert, zuletzt von fboss ()