Is there any way to get audio only transcoding?
Forum rules
Please make sure you follow the Problem Reporting Guidelines before posting if you want a reply
Please make sure you follow the Problem Reporting Guidelines before posting if you want a reply
-
- Posts: 2
- Joined: Fri Oct 04, 2019 3:07 am
Is there any way to get audio only transcoding?
Hi everybody.
I've recently bought a 4K Panasonic tv (the tx-50GX800) and have been successfully using universal media server to stream content to it in different scenarios. However, I stumbled upon a case where I can't successfully playback a file.
The file is a m2ts file with 2160p HDR content. The video codec is HEVC and the audio codec is DTS-HD Master Audio.
When I try to stream the file using transcoding, pretty often the video stutters even though my CPU is arround 70-80% load (so there's some room left).
When I try to play the file with no transcoding I can view the video stream with no stuttering and in HDR but I get no audio. This happens because the audio codec is not supported by the TV.
As such, is there any way that I can maybe mux the video stream with a transcoded audio stream? I tried fiddling around with a custom renderer config file however I can't figure out how to obtain the desired result.
Just to get a complete overview, the TV officially support the following formats and codecs:
Supported video formats:
AVI (.avi)
Video codec:H.264, MPEG1, MPEG2, MPEG4, VC-1, WMV9
Audio codec:AAC, ADPCM, Dolby Audio (Dolby Digital, Dolby Digital Plus), HE-AAC, LPCM, MP3, WMA, WMA Pro
MP4 (.f4v, .m4v, .mp4)
Video codec:H.264, H.265 (HEVC), MPEG1, MPEG2, MPEG4
Audio codec:AAC, Dolby Audio (Dolby Digital, Dolby Digital Plus, Dolby AC-4), Dolby Atmos, HE-AAC, MP3
MKV (.mkv)
Video codec:H.264, H.265 (HEVC), MPEG1, MPEG2, MPEG4
Audio codec:AAC, Dolby Audio (Dolby Digital, Dolby Digital Plus), HE-AAC, MP3, Vorbis
ASF (.asf, .wmv)
Video codec:MPEG4, VC-1, WMV9
Audio codec:AAC, Dolby Audio (Dolby Digital, Dolby Digital Plus), HE-AAC, LPCM, MP3, WMA, WMA Pro
FLV (.flv)
Video codec:H.264
Audio codec:AAC, MP3
3GPP (.3gp, .3g2)
Video codec:H.264, MPEG4
Audio codec:AAC, HE-AAC
PS (.mod, .mpg, .mpeg, .vob, .vro)
Video codec:H.264, MPEG1, MPEG2, VC-1
Audio codec:AAC, Dolby Audio (Dolby Digital, Dolby Digital Plus), HE-AAC, LPCM, MP3
TS (.mts, .m2ts, .tp, .trp, .ts, .tts)
Video codec:H.264, H.265 (HEVC), MPEG1, MPEG2, VC-1
Audio codec:AAC, Dolby Audio (Dolby Digital, Dolby Digital Plus, Dolby AC-4), Dolby Atmos, HE-AAC, MP3
WebM (.webm)
Video codec:VP9
Audio codec:Vorbis
Supported Subtitles formats
MicroDVD, SubRip, TMPlayer (.srt, .sub, .txt)
Do I have any kind of chance to get this working? Any kind of feedback is appreciated.
I've recently bought a 4K Panasonic tv (the tx-50GX800) and have been successfully using universal media server to stream content to it in different scenarios. However, I stumbled upon a case where I can't successfully playback a file.
The file is a m2ts file with 2160p HDR content. The video codec is HEVC and the audio codec is DTS-HD Master Audio.
When I try to stream the file using transcoding, pretty often the video stutters even though my CPU is arround 70-80% load (so there's some room left).
When I try to play the file with no transcoding I can view the video stream with no stuttering and in HDR but I get no audio. This happens because the audio codec is not supported by the TV.
As such, is there any way that I can maybe mux the video stream with a transcoded audio stream? I tried fiddling around with a custom renderer config file however I can't figure out how to obtain the desired result.
Just to get a complete overview, the TV officially support the following formats and codecs:
Supported video formats:
AVI (.avi)
Video codec:H.264, MPEG1, MPEG2, MPEG4, VC-1, WMV9
Audio codec:AAC, ADPCM, Dolby Audio (Dolby Digital, Dolby Digital Plus), HE-AAC, LPCM, MP3, WMA, WMA Pro
MP4 (.f4v, .m4v, .mp4)
Video codec:H.264, H.265 (HEVC), MPEG1, MPEG2, MPEG4
Audio codec:AAC, Dolby Audio (Dolby Digital, Dolby Digital Plus, Dolby AC-4), Dolby Atmos, HE-AAC, MP3
MKV (.mkv)
Video codec:H.264, H.265 (HEVC), MPEG1, MPEG2, MPEG4
Audio codec:AAC, Dolby Audio (Dolby Digital, Dolby Digital Plus), HE-AAC, MP3, Vorbis
ASF (.asf, .wmv)
Video codec:MPEG4, VC-1, WMV9
Audio codec:AAC, Dolby Audio (Dolby Digital, Dolby Digital Plus), HE-AAC, LPCM, MP3, WMA, WMA Pro
FLV (.flv)
Video codec:H.264
Audio codec:AAC, MP3
3GPP (.3gp, .3g2)
Video codec:H.264, MPEG4
Audio codec:AAC, HE-AAC
PS (.mod, .mpg, .mpeg, .vob, .vro)
Video codec:H.264, MPEG1, MPEG2, VC-1
Audio codec:AAC, Dolby Audio (Dolby Digital, Dolby Digital Plus), HE-AAC, LPCM, MP3
TS (.mts, .m2ts, .tp, .trp, .ts, .tts)
Video codec:H.264, H.265 (HEVC), MPEG1, MPEG2, VC-1
Audio codec:AAC, Dolby Audio (Dolby Digital, Dolby Digital Plus, Dolby AC-4), Dolby Atmos, HE-AAC, MP3
WebM (.webm)
Video codec:VP9
Audio codec:Vorbis
Supported Subtitles formats
MicroDVD, SubRip, TMPlayer (.srt, .sub, .txt)
Do I have any kind of chance to get this working? Any kind of feedback is appreciated.
-
- Posts: 2
- Joined: Fri Oct 04, 2019 3:07 am
Re: Is there any way to get audio only transcoding?
In the end, I kinda hacked together a renderer config (I don't think it's quite what the devs had in mind) with which for my TV, I can get almost anything playing either by choosing no transcoding or choosing transcoding/ffmpeg:
The hackish part is the where I basically disable any video transcoding for ffmpeg and just copy the video stream. Since the TV doesn't support dts audio codec, I always use the ac3 audio codec. Also, in order for this to work, I had to disable subtitles (using the "disable subtitles" option from the GUI) otherwise ffmpeg would complain about the fact it can't use stream copy and advanced filter at the same time. Hope this helps out somebody and maybe a better solution can be found. Also, if somebody actually decides to try and use this config, they will probably need to update the of the device and use their own since I didn't really bother to try and add a proper user agent matcher.
Code: Select all
#----------------------------------------------------------------------------
# Custom Device profile
# See DefaultRenderer.conf for descriptions of all possible renderer options
# and UMS.conf for program options.
RendererName = Panasonic GX500
RendererIcon = panasonic.png
# Options in this file override the default settings for the specific 50GX800_Series device(s) listed below.
# Specify devices by uuid (or address if no uuid), separated by commas if more than one.
Device = uuid:4D454930-0100-1000-8001-80C755C1A954
LoadingPriority = 1
SeekByTime = exclusive
DLNALocalizationRequired = true
MediaInfo = true
TranscodeAudio = MP3
TranscodeVideo = MPEGTS-H265-AAC
H264Level41Limited = false
TranscodeFastStart = true
MaxVideoBitrateMbps = 0
MaxVideoWidth = 0
MaxVideoHeight = 0
ThumbnailPadding = true
KeepAspectRatioTranscoding = false
RescaleByRenderer = true
SendDateMetadata = false
CustomFFmpegOptions = -c:v copy -c:a ac3 -f mpegts
# GX800 supported formats according to manual
# AVI (.avi)
# Video codec:H.264, MPEG1, MPEG2, MPEG4, VC-1, WMV9
# Audio codec:AAC, ADPCM, Dolby Audio (Dolby Digital, Dolby Digital Plus), HE-AAC, LPCM, MP3, WMA, WMA Pro
#
# MP4 (.f4v, .m4v, .mp4)
# Video codec:H.264, H.265 (HEVC), MPEG1, MPEG2, MPEG4
# Audio codec:AAC, Dolby Audio (Dolby Digital, Dolby Digital Plus, Dolby AC-4), Dolby Atmos, HE-AAC, MP3
#
# MKV (.mkv)
# Video codec:H.264, H.265 (HEVC), MPEG1, MPEG2, MPEG4
# Audio codec:AAC, Dolby Audio (Dolby Digital, Dolby Digital Plus), HE-AAC, MP3, Vorbis
#
# ASF (.asf, .wmv)
# Video codec:MPEG4, VC-1, WMV9
# Audio codec:AAC, Dolby Audio (Dolby Digital, Dolby Digital Plus), HE-AAC, LPCM, MP3, WMA, WMA Pro
#
# FLV (.flv)
# Video codec:H.264
# Audio codec:AAC, MP3
#
# 3GPP (.3gp, .3g2)
# Video codec:H.264, MPEG4
# Audio codec:AAC, HE-AAC
#
# PS (.mod, .mpg, .mpeg, .vob, .vro)
# Video codec:H.264, MPEG1, MPEG2, VC-1
# Audio codec:AAC, Dolby Audio (Dolby Digital, Dolby Digital Plus), HE-AAC, LPCM, MP3
#
# TS (.mts, .m2ts, .tp, .trp, .ts, .tts)
# Video codec:H.264, H.265 (HEVC), MPEG1, MPEG2, VC-1
# Audio codec:AAC, Dolby Audio (Dolby Digital, Dolby Digital Plus, Dolby AC-4), Dolby Atmos, HE-AAC, MP3
#
# WebM (.webm)
# Video codec:VP9
# Audio codec:Vorbis
#
# Supported Subtitles formats
# MicroDVD, SubRip, TMPlayer (.srt, .sub, .txt)
#
#
# ============================================================================
#
# ts mime types: application/metastream, video/avchd-stream, video/mts, video/vnd.dlna.mpeg-tts, video/mp2t
# Supported video formats:
Supported = f:avi v:h264|vc1|mpeg1|mpeg2|mp4 a:aac-main|acc-lc|adcpm|ac3|eac3|he-aac|lpcm|mp3|wma|wmapro m:video/avi
Supported = f:f4v|m4v|mp4 v:h264|h265|mpeg1|mpeg2|mp4 a:aac-main|aac-lc|ac3|eac3|atmos|he-aac|mp3 m:video/mp4
Supported = f:mkv v:h264|h265|mpeg1|mpeg2|mp4 a:aac-main|aac-lc|ac3|eac3|he-aac|mp3|vorbis m:video/x-matroska
Supported = f:asf v:mp4|vc1 a:aac-main|aac-lc|ac3|eac3|he-aac|lpcm|mp3|wma|wmapro m:video/x-ms-asf
Supported = f:wmv v:mp4|vc1 a:aac-main|aac-lc|ac3|eac3|he-aac|lpcm|mp3|wma|wmapro m:video/x-ms-wmv
Supported = f:flv v:h264 a:aac-main|aac-lc|mp3 m:video/x-flv
Supported = f:3gp v:h264|mp4 a:aac-main|aac-lc|he-aac m:video/3gpp
Supported = f:3g2 v:h264|mp4 a:aac-main|aac-lc|he-aac m:video/3gpp2
Supported = f:mod|mpg|mpeg|vob|vro v:h264|mpeg1|mpeg2|vc1 a:aac-main|aac-lc|ac3|eac3|he-aac|lpcm|mp3 m:video/mpeg
Supported = f:tp|trp v:h264|h265|mpeg1|mpeg2|vc1 a:aac-main|aac-lc|ac3|eac3|atmos|he-aac|mp3 m:video/mts
Supported = f:mts|m2ts v:h264|h265|mpeg1|mpeg2|vc1 a:aac-main|aac-lc|ac3|eac3|atmos|he-aac|mp3 m:video/mp2t
Supported = f:mpegts|ts v:h264|h265|mpeg1|mpeg2|vc1 a:aac-main|aac-lc|ac3|eac3|atmos|he-aac|mp3 m:video/mpeg
Supported = f:tts v:h264|h265|mpeg1|mpeg2|vc1 a:aac-main|aac-lc|ac3|eac3|atmos|he-aac|mp3 m:video/vnd.dlna.mpeg-tts
Supported = f:webm v:vp9 a:vorbis m:video/webm
# Supported audio formats:
Supported = f:mp3 m:audio/mpeg
Supported = f:m4a m:audio/x-m4a a:(?!alac).+
Supported = f:flac m:audio/x-flac
Supported = f:wma m:audio/x-ms-wma
Supported = f:wav m:audio/L16 s:48000
Supported = f:wav m:audio/L16 a:lpcm s:48000
SupportedExternalSubtitlesFormats = MICRODVD,SUBRIP,TEXT
SupportedInternalSubtitlesFormats = MICRODVD,SUBRIP,TEXT
StreamSubsForTranscodedVideo = true
SupportedVideoBitDepths = 8,10
Code: Select all
CustomFFmpegOptions = -c:v copy -c:a ac3 -f mpegts
Code: Select all
uuid
Re: Is there any way to get audio only transcoding?
Hi,
I tried your configuration on a Panasonic TX-50GX810E and it works well. Have you found a way to enable subtitles too?
For streaming without transcoding, any idea upon the minimum network speed to be able to stream without issues?
Regards,
Cristian.
I tried your configuration on a Panasonic TX-50GX810E and it works well. Have you found a way to enable subtitles too?
For streaming without transcoding, any idea upon the minimum network speed to be able to stream without issues?
Regards,
Cristian.
Last edited by cristisor on Mon Mar 23, 2020 9:50 am, edited 1 time in total.
Re: Is there any way to get audio only transcoding?
There are no such limit, it all depends on the media file. They have a wild variety of bitrate requirements, to stream really high quality content you'd need 1Gbps wired or 802.11ac wireless or better.