Writing a DLNA profile - TranscodeTargets being ignored?

Server Version#: 4.30.2

Hi, I am attempting to put together a DLNA profile for my ageing Panasonic Viera TV; I’ve uploaded the current version to this post PanasonicVieraTC-P50S60.txt (2.2 KB) (renamed to .txt to get around the upload filename filter). The built-in profile is no good to me since it indicates that the device supports ac3, which my TV does not.

I have so far disabled the supplied profile and installed mine in the correct folder. The logs show that the TV DLNA client is being mapped to my file:

Jan 03, 2021 22:12:54.077 [0x809655500] VERBOSE - Request headers: User-Agent: Panasonic MIL DLNA CP UPnP/1.0 DLNADOC/1.50; Host: 192.168.15.56:32469; transferMode.dlna.org: Interactive
Jan 03, 2021 22:12:54.077 [0x809655500] DEBUG - Mapped client to profile Panasonic Viera TC-P50S60 using header User-Agent: Panasonic MIL DLNA CP UPnP/1.0 DLNADOC/1.50

, however when I attempt to play a file that is encoded with a codec that the TV does not support (MKV/H264/EAC3), the log says:

Jan 03, 2021 22:12:54.453 [0x809656400] DEBUG - MDE: *filename*: Direct Playing due to no transcode profile
Jan 03, 2021 22:12:54.453 [0x809656400] DEBUG - MDE: *filename*: no direct play video profile exists for http/mkv/h264
Jan 03, 2021 22:12:54.453 [0x809656400] DEBUG - MDE: *filename*: no direct play video profile exists for http/mkv/h264/eac3

I have read and re-read this post but for the life of me cannot see what I’m doing wrong - why does it not pick up the TranscodeTarget in the file? Anybody have any suggestions?

Many thanks,

Ian

I have made some progress - it seems that my TV does support ac3 and eac3 (despite no mention of these codecs nor Dolby anything in any of the literature!). I have consequently updated the profile PanasonicVieraTC-P50S60.txt (1.5 KB) and now the video file referenced in my first post DirectPlays just fine.

However transcoding is still not working for files unsupported by the TV, such as those encoded AVI/MPEG4/MP3. For these, the log says:

Jan 05, 2021 13:58:37.845 [0x809655500] DEBUG - MDE: Classic.Albums.Queen.The.Making.of.A.Night.At.The.Opera (2020): no direct play video profile exists for http/avi/mpeg4
Jan 05, 2021 13:58:37.845 [0x809655500] DEBUG - MDE: Classic.Albums.Queen.The.Making.of.A.Night.At.The.Opera (2020): no direct play video profile exists for http/avi/mpeg4/mp3
Jan 05, 2021 13:58:37.845 [0x809655500] DEBUG - MDE: Classic.Albums.Queen.The.Making.of.A.Night.At.The.Opera (2020): avoiding video remux due to potentially unsafe container/codec combination
Jan 05, 2021 13:58:37.845 [0x809655500] DEBUG - MDE: Classic.Albums.Queen.The.Making.of.A.Night.At.The.Opera (2020): no remuxable profile found, so video stream will be transcoded
Jan 05, 2021 13:58:37.845 [0x809655500] DEBUG - MDE: Cannot direct stream video stream due to profile or setting limitations
Jan 05, 2021 13:58:37.845 [0x809655500] DEBUG - Scaled up video bitrate to 2869Kbps based on 1.500000x fudge factor.
Jan 05, 2021 13:58:37.845 [0x809655500] DEBUG - MDE: Cannot direct stream audio stream due to codec mp3 when profile only allows aac
Jan 05, 2021 13:58:37.845 [0x809655500] DEBUG - MDE: Classic.Albums.Queen.The.Making.of.A.Night.At.The.Opera (2020): selected media 0 / 858
Jan 05, 2021 13:58:37.847 [0x809655500] DEBUG - MDE: Selected protocol http; container: mkv

Clearly it is tripping up on the mp3 stream, but why does it try to direct stream the audio rather than transcode it to aac as the TranscodeTarget requests?

With the same profile, playing an mkv/hevc/ac3 has a similar result:

Jan 05, 2021 14:18:39.818 [0x80a216500] DEBUG - MDE: Selected protocol http; container: mpegts
Jan 05, 2021 14:18:39.818 [0x80a216500] DEBUG - MDE: analyzing media item 1136
Jan 05, 2021 14:18:39.818 [0x80a216500] DEBUG - MDE: <filename> (2021): no direct play video profile exists for http/mkv/hevc
Jan 05, 2021 14:18:39.818 [0x80a216500] DEBUG - MDE:  <filename> (2021): no direct play video profile exists for http/mkv/hevc/aac
Jan 05, 2021 14:18:39.818 [0x80a216500] DEBUG - MDE:  <filename> (2021): no remuxable profile found, so video stream will be transcoded
Jan 05, 2021 14:18:39.818 [0x80a216500] DEBUG - MDE: Cannot direct stream video stream due to profile or setting limitations
Jan 05, 2021 14:18:39.819 [0x80a216500] DEBUG - Scaled up video bitrate to 5116Kbps based on 4.500000x fudge factor.

Is there any way to get more info about what “Cannot direct stream video stream due to profile or setting limitations” means? I already have verbose logging enabled but that doesn’t provide any additional log lines. Why even does this get output when in the previous log line already say that transcoding will be required? Very confusing :frowning:

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.