Quantcast
Jump to content

  • 0

LG SmartShare cannot handle multiple UPnP/DLNA streams


Question

Posted

I discovered that my LG SmartShare app could not play FLAC or M4A audio files natively from my DLNA server, so I decided to enable transcoding on the server to present MP3/WAV resources in addition to the native stream. However, the SmartShare app still doesn't display those files when browsing for audio, and I am trying to determine why.

And now, the extreme technical detail:

I have a shell utility, upnp-browse.sh to make HTTP calls to my DLNA server, emulating the types of calls that LG SmartShare would make:

#!/bin/sh

curl -s -d @- -H 'Content-Type: text/xml; charset="utf-8"' -H 'SOAPAction: #Browse' http://host/path/to/DLNA \
	| xmllint --xpath '////Result/text()' - \
	| recode html..utf8 \
	| xml_pp

The curl call makes a HTTP POST request with the data from stdin, which would have similar content to the following:

<?xml version="1.0"?>
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
	<s:Body>
		<u:Browse xmlns:u="urn:schemas-upnp-org:service:serviceType:v">
			<ObjectID>ID_PARENT</ObjectID>
			<BrowseFlag>BrowseDirectChildren</BrowseFlag>
		</u:Browse>
	</s:Body>
</s:Envelope>

The call to curl then yields an XML Response similar to the following:

<?xml version="1.0" encoding="utf-8"?>
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><s:Body><u:BrowseResponse xmlns:u="urn:schemas-upnp-org:service:ContentDirectory:1"><Result><DIDL-Lite xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:upnp="urn:schemas-upnp-org:metadata-1-0/upnp/" xmlns="urn:schemas-upnp-org:metadata-1-0/DIDL-Lite/" xmlns:dlna="urn:schemas-dlna-org:metadata-1-0/">
<item id="ID_FILE" parentID="ID_PARENT" restricted="1"><dc:title>Title</dc:title><upnp:class>object.item.audioItem.musicTrack</upnp:class><dc:creator>Creator</dc:creator><upnp:artist>Artist</upnp:artist><res size="######" duration="H:MM:SS.###" bitrate="1022868" sampleFrequency="44100" nrAudioChannels="2" protocolInfo="http-get:*:audio/x-flac:*">http://IP:port/MediaItems/####.ext</res><res duration="H:MM:SS.###" bitrate="176400" sampleFrequency="44100" nrAudioChannels="2" protocolInfo="http-get:*:audio/L16;rate=44100;channels=2:DLNA.ORG_PN=LPCM;DLNA.ORG_OP=10;DLNA.ORG_CI=1;DLNA.ORG_FLAGS=01500000000000000000000000000000">http://IP:port/MediaItems/TranscodeAudio/LPCM/####.ext</res><res duration="H:MM:SS.###" nrAudioChannels="2" protocolInfo="http-get:*:audio/mpeg:DLNA.ORG_PN=MP3;DLNA.ORG_OP=10;DLNA.ORG_CI=1;DLNA.ORG_FLAGS=01500000000000000000000000000000">http://IP:port/MediaItems/TranscodeAudio/MP3/####.ext</res></item><container id="ID_FOLDER" parentID="ID_PARENT" restricted="1" searchable="1" childCount="#"><dc:title>folder name</dc:title><upnp:class>object.container.storageFolder</upnp:class><upnp:storageUsed>-1</upnp:storageUsed></container></DIDL-Lite></Result>
<NumberReturned>2</NumberReturned>
<TotalMatches>2</TotalMatches>
<UpdateID>3</UpdateID></u:BrowseResponse></s:Body></s:Envelope>

Then the calls to xmllint, recode, and xml_pp take this data and extract the data from the Result node and format it for readability, yielding an output similar to:

<DIDL-Lite xmlns="urn:schemas-upnp-org:metadata-1-0/DIDL-Lite/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:dlna="urn:schemas-dlna-org:metadata-1-0/" xmlns:upnp="urn:schemas-upnp-org:metadata-1-0/upnp/">
  <item id="ID_FILE" parentID="ID_PARENT" restricted="1">
    <dc:title>Title</dc:title>
    <upnp:class>object.item.audioItem.musicTrack</upnp:class>
    <dc:creator>Creator</dc:creator>
    <upnp:artist>Artist</upnp:artist>
    <res bitrate="1022868" duration="H:MM:SS.###" nrAudioChannels="2" protocolInfo="http-get:*:audio/x-flac:*" sampleFrequency="44100" size="######">http://IP:port/MediaItems/####.ext</res>
    <res bitrate="176400" duration="H:MM:SS.###" nrAudioChannels="2" protocolInfo="http-get:*:audio/L16;rate=44100;channels=2:DLNA.ORG_PN=LPCM;DLNA.ORG_OP=10;DLNA.ORG_CI=1;DLNA.ORG_FLAGS=01500000000000000000000000000000" sampleFrequency="44100">http://IP:port/MediaItems/TranscodeAudio/LPCM/####.ext</res>
    <res duration="H:MM:SS.###" nrAudioChannels="2" protocolInfo="http-get:*:audio/mpeg:DLNA.ORG_PN=MP3;DLNA.ORG_OP=10;DLNA.ORG_CI=1;DLNA.ORG_FLAGS=01500000000000000000000000000000">http://IP:port/MediaItems/TranscodeAudio/MP3/####.ext</res>
  </item>
  <container childCount="#" id="ID_FOLDER" parentID="ID_PARENT" restricted="1" searchable="1">
    <dc:title>folder name</dc:title>
    <upnp:class>object.container.storageFolder</upnp:class>
    <upnp:storageUsed>-1</upnp:storageUsed>
  </container>
</DIDL-Lite>

Note with the sample file (item node), it contains three res nodes. The DLNA client (LG SmartShare) should select the data from the res node for the format it supports, and allow for selection of the item, but when I browse in the container which contains the item, LG SmartShare doesn't show it.

For native MP3 files, SmartShare will show and play those items. I can provide output for native MP3 items, as well as OGG or MP4/M4A files if those would help, though they all look fairly similar. However, for native MP3 files, the first res node has a slightly different set of DLNA flags:

<res bitrate="128000" duration="H:MM:SS.###" nrAudioChannels="2" protocolInfo="http-get:*:audio/mpeg:DLNA.ORG_PN=MP3;DLNA.ORG_OP=01;DLNA.ORG_CI=0;DLNA.ORG_FLAGS=01700000000000000000000000000000" sampleFrequency="44100" size="######">http://IP:port/MediaItems/####.mp3</res>

Is my server serving something incorrectly, does SmartShare just not support multiple res nodes, or have I overlooked something?

1 answer to this question

Recommended Posts

  • 0
Posted (edited)

@palswim Interesting and neat (but very technical) thing to do! 😊

I assume you are using the latest Smartshare (33).2.3.1511.1201 ?  I always found it very clunky and "old fashioned", and as it has not been updated for over 2 years, I suspect it has bugs, and has fallen behind modern techiques and codec standards and stream processing methods.

I noticed on the same LG download site when checking the versions, there is mention of a "plex TV" app or "Plex Media Server", but I am unsure if this is suitable for your needs, or compatible with your DLNA  setup? See

link hidden, please login to view

By the way, did you check that all of your  DLNA devices have the latest firmware, and software stacks running on them?

Edited by td47
typo

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



  • Popular Now

  • Similar Topics

    • By News Reporter
      Company Recognized Across Range of Categories for Its Smart Life Solutions,
      Earns Two Best of Innovation Awards

      SEOUL, Nov. 6, 2025 — LG Electronics (LG) has been honored with numerous CES® 2026 Innovation Awards, including two Best of Innovation distinctions, reaffirming its leadership in next-generation smart life solutions and display technology excellence.
      Presented annually by the Consumer Technology Association (CTA) ahead of CES – the world’s largest consumer electronics and IT trade show – the Innovation Awards recognize groundbreaking products and services that drive the future of technology and design.
      LG’s latest honors span multiple product categories, with its OLED TVs and monitors alone earning five Innovation Awards across Imaging, Gaming & eSports and Computer Hardware & Components. Leading the lineup is the LG SIGNATURE OLED T, which received the Best of Innovation Award in the Imaging category. The recognition underscores LG’s dominance in OLED technology and its commitment to delivering new value and user experiences.
      The 2026 honors mark the fourth consecutive year an LG OLED TV has claimed a Best of Innovation Award. The milestone follows a remarkable run of previous winners: the LG OLED evo featuring a new Brightness Enhancement technology (2025); LG’s first wireless OLED TV (2024); and the bendable gaming OLED TV, LG OLED Flex (2023). For 2026, the world’s first true wireless and transparent TV – the LG SIGNATURE OLED T – continues this legacy of innovation at the pinnacle of the TV industry.
      The LG SIGNATURE OLED T redefines the viewing experience with a stunning 77-inch transparent OLED display, ultra-sharp 4K (3,840 x 2,160) resolution and LG’s wireless AV transmission technology. Combining groundbreaking form with unrivaled performance, it sets a new benchmark for immersive design. Last month, the OLED T drew global attention at the APEC CEO Summit Korea 2025 in Gyeongju, where LG created a kinetic media chandelier using 28 units of the transparent TV – a striking showcase of LG’s vision for future display innovation.
      LG’s webOS smart TV platform, a key pillar of the company’s platform-based service business, earned dual recognition this year with Innovation Awards in both Artificial Intelligence and Cybersecurity categories. webOS has now been honored in the Cybersecurity category for two consecutive years, reinforcing its reputation as a secure and intelligent entertainment platform.
      In the Home Appliances category, LG’s new built-in robot vacuum station received an Innovation Award for its ingenious built-in design and advanced functionality. Hidden from sight when not in use, the station can be installed in underutilized spaces such as under kitchen sinks or behind doors. It features the world’s first steam-cleaning system applied to both the robot vacuum and the station, elevating cleaning performance and hygiene management to new heights.
      Other LG products recognized by the CES 2026 Innovation Awards include a premium LCD TV with Micro RGB technology; the LG StanbyME 2, a next-generation portable lifestyle screen; and the LG UltraFine evo 6K professional monitor, the world’s first display to support both 6K (6,144 × 3,456) resolution and the latest Thunderbolt 5 interface.
      The full list and details of LG’s CES 2026 Innovation Award-winning products will be revealed at CES 2026 in Las Vegas on January 6, 2026.
      # # #

      link hidden, please login to view
    • By News Reporter
      Company Secures Prestigious “Best of IFA” Recognition and Multiple Category Wins 

      SEOUL, Sep. 5, 2025 — LG Electronics (LG) has been recognized with 17 awards at the inaugural IFA 2025 Innovation Awards, including the top distinction, Best of IFA title. Established this year, the awards celebrate products that set new benchmarks in innovation, technology, design and market impact. With over 1,800 participating companies, winners were selected in 16 categories, including Mobility, Home Appliances, Home Entertainment, Design and Smart Home. The highest honors – Best of IFA, Best Tech Innovation and Best Brand – were reserved for the most outstanding entries. 
      The LG SIGNATURE OLED T, the world’s first wireless transparent TV, earned the Best of IFA award, underscoring LG’s leadership in advanced television technology. The groundbreaking product also won Best in Home Entertainment, achieving a double win at this year’s awards. 
      In addition to securing the Best of IFA title, LG received five Category Best awards in Mobility, Accessibility, Home Appliances and Home Entertainment, along with 11 Category Honoree recognitions in Home Appliances, Design, Smart Home and Home Entertainment. Collectively, these distinctions strengthen the company’s reputation as a global innovation leader and trusted industry pioneer. 
      In Mobility, LG’s Spielraum received the Best in Mobility award. This AI-powered mobility space solution blends personal wellness with multi-sensory experiences. Its compact cabin integrates built-in appliances, LG ThinQ ON and entertainment features, introducing a new mobility-linked lifestyle that expands the LG AI Home concept.  
      In Accessibility, LG’s Comfort Kit was named Best in Accessibility Focused Product. Designed to improve usability for people of all ages and abilities, it highlights LG’s focus on inclusive design. 
      In Home Appliances, LG’s AI Sense Clean Dishwasher and Microplastic Filter claimed the Best in Home Appliances award. The dishwasher’s intelligent wash system optimizes cycles and wash time based on load size and soil levels, while the filter removes microplastics released during the laundry cycle, combining convenience with environmental responsibility.  
      In addition to securing multiple Category Best awards, LG was also given Honoree distinctions across a wide range of fields, from Home Appliances to Smart Home, further underscoring its competitiveness in the global market. In the Best of Home Appliances category, LG earned four Honoree recognitions for its cutting-edge laundry and cleaning solutions, each boasting advanced performance with thoughtful design. The LG WashTower simplifies laundry with intuitive controls and AI-powered features, while the Washer and Dryer with Heat Pump enhances efficiency with reduced energy consumption. For floor care, the LG Robot Vacuum with Built-in Station features an auto-opening door that conceals the unit when not in use, and the LG Wet and Dry Stick Vacuum Cleaner employs AI Roller Control to sense movement direction, helping reduce wrist strain. 
      The company also received four Honoree awards in the Best in Design category for products that blend style and functionality. The Washer & Tumble Dryer Pair and TrueSteam Dishwasher present refined designs that integrate seamlessly into modern kitchens. The Next LG Massage Recliner complements living areas with its elegant aesthetics, while the LG Styler Mini offers a compact, premium solution that maximizes functionality in smaller spaces. 
      Designed to fit effortlessly into connected home ecosystems, the LG Robot Vacuum with Objet Station was acknowledged in the Best in Smart Home category. With automated docking, smart scheduling and ThinQ compatibility, it showcases LG’s expertise in building cohesive, AI-driven home solutions.  
      Furthermore, LG received recognition in the Home Entertainment category with Honoree awards for the LG Wireless OLED TV (M5) and the LG StanbyME 2, reinforcing the company’s global leadership. 
      # # # 

      link hidden, please login to view
    • By Joe C
      Since the Web OS update last week, the line on the Home Screen with all my apps has changed.  Now Apps is the first one in the line.  I do not want it there, but cannot move it.  If I go to the end where it shows Edit Apps, I can click on any app to move it or delete it.  But, the Apps icon is grayed out and cannot be moved.  My neighbor has the exact same model I do -- LG OLED 653PUA -- and it is not like that on his tv.  He can move the App icon anywhere he wants.  This is very annoying as it defaults to the Apps icon when I click on Home and then I need to click to get to YouTube TV, which until the update was always first in the line.  
    • By Andreas Boyatzoglou
      Model: OLED55BX3LB
      WebOS ver: 5.6.0-1001 (jhericurl-jimna)
      Viewing videos from
      link hidden, please login to view was fine up to about one month ago. I do not know if there was an upgrade, but videos from that site  cannot be played any longer on this tv. From the same wifi network (home network) videos from that site play fine to a number of devices (Android phones, 2 win11 laptops, 1 win10 laptop).
      Adjusted all browser settings (JavaScript, cookies), cleared cookies, cleared all browser data and history. 
      No updates available to download
      Finally, reset to factory settings but still videos from cannot be played on the tv set.
       
       
       
       
    • By Justin Bester
      Hi

      I've been trying many different ways to connect to my TV. I have followed every guide I can find and nothing is working.
       
      Basically, the webOS Desktop Dev Manager thinks my passphrase is wrong. My passphrase is NOT wrong. I have also tried with the CLI tools but nothing works. I have NO idea what I can try further. Any help would be greatly appreciated.

×
×
  • Create New...