PDA

View Full Version : Poor performance transcoding DTS?



hsbrown2
02-24-2021, 08:08 AM
I generally get about 450fps when transcoding, but anything with DTS seems to transcode at around 80fps. I’m using directx/NVENC, any ideas?

Peter
02-24-2021, 09:20 AM
Mezzmo does not remux or transcode to DTS, so any file with DTS that is transcoded will generally go to AC3 audio. Can you please post the ffmpeg information of the file by right-clicking on the file in Mezzmo and select Get FFmpeg information and let us know the profile you are using in Mezzmo for the device. The files with DTS may be doing a full transcode which is slow where files with other formats are being remuxed (copied) which is much faster.

hsbrown2
02-25-2021, 12:36 PM
This is from DTS to what seems to be PCM stereo (AC3 would be fine). This sort of dovetails with my other post regarding Roku.

I'm using a lightly hacked Roku 4k prf. I just removed the dts format:
<format id="dts">
</format>

Here's why...

I have a Roku in my room. This Roku is a 4k Ultra (latest) connected to a 2-channel amplifier that does not decode either AC3 or DTS (et al). The Roku (as far as I can tell) will downmix AC3, but only does DTS passthru. At least, if it is AC3, it plays fine, if it is DTS, I get no sound. Once I removed the container for DTS as above, I could play a movie, but I get a lot of buffering and it *seems* to transcode DTS to stereo, but I can't be certain, as the device is stereo, so even if it were coverting it to AC3 I wouldn't know with this device (the Roku itself is set to output PCM stereo only).

I get that I am on the fringes of supportability here, but it seems like a viable scenario folks could run into (DTS sound with a Roku connected to a stereo amplifier). Here is the ffmpeg output:

ffmpeg version git-2020-06-28-4cfcfb3 Copyright (c) 2000-2020 the FFmpeg developers
built with gcc 9.3.1 (GCC) 20200621
configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-fontconfig --enable-gnutls --enable-iconv --enable-libass --enable-libdav1d --enable-libbluray --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libsrt --enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libzimg --enable-lzma --enable-zlib --enable-gmp --enable-libvidstab --enable-libvmaf --enable-libvorbis --enable-libvo-amrwbenc --enable-libmysofa --enable-libspeex --enable-libxvid --enable-libaom --enable-libgsm --disable-w32threads --enable-libmfx --enable-ffnvcodec --enable-cuda-llvm --enable-cuvid --enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2 --enable-avisynth --enable-libopenmpt --enable-amf
libavutil 56. 55.100 / 56. 55.100
libavcodec 58. 93.100 / 58. 93.100
libavformat 58. 47.100 / 58. 47.100
libavdevice 58. 11.100 / 58. 11.100
libavfilter 7. 86.100 / 7. 86.100
libswscale 5. 8.100 / 5. 8.100
libswresample 3. 8.100 / 3. 8.100
libpostproc 55. 8.100 / 55. 8.100
[matroska,webm @ 000001ab4f64bb00] Could not find codec parameters for stream 4 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size
Consider increasing the value for the 'analyzeduration' (0) and 'probesize' (5000000) options
[matroska,webm @ 000001ab4f64bb00] Could not find codec parameters for stream 5 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size
Consider increasing the value for the 'analyzeduration' (0) and 'probesize' (5000000) options
Input #0, matroska,webm, from 'D:\Movies\Black Panther\Black Panther.mkv':
Metadata:
title : Black Panther
encoder : libebml v1.4.1 + libmatroska v1.6.2
creation_time : 2021-02-22T16:54:49.000000Z
Duration: 02:14:33.15, start: 0.000000, bitrate: 31614 kb/s
Chapter #0:0: start 0.000000, end 416.290875
Metadata:
title : Chapter 01
Chapter #0:1: start 416.290875, end 722.805417
Metadata:
title : Chapter 02
Chapter #0:2: start 722.805417, end 1152.359542
Metadata:
title : Chapter 03
Chapter #0:3: start 1152.359542, end 1712.961250
Metadata:
title : Chapter 04
Chapter #0:4: start 1712.961250, end 1991.698042
Metadata:
title : Chapter 05
Chapter #0:5: start 1991.698042, end 2457.496708
Metadata:
title : Chapter 06
Chapter #0:6: start 2457.496708, end 2914.036125
Metadata:
title : Chapter 07
Chapter #0:7: start 2914.036125, end 3226.097875
Metadata:
title : Chapter 08
Chapter #0:8: start 3226.097875, end 3717.338625
Metadata:
title : Chapter 09
Chapter #0:9: start 3717.338625, end 4113.025583
Metadata:
title : Chapter 10
Chapter #0:10: start 4113.025583, end 4606.768833
Metadata:
title : Chapter 11
Chapter #0:11: start 4606.768833, end 4944.022417
Metadata:
title : Chapter 12
Chapter #0:12: start 4944.022417, end 5481.434292
Metadata:
title : Chapter 13
Chapter #0:13: start 5481.434292, end 6075.360958
Metadata:
title : Chapter 14
Chapter #0:14: start 6075.360958, end 6656.483167
Metadata:
title : Chapter 15
Chapter #0:15: start 6656.483167, end 7156.941458
Metadata:
title : Chapter 16
Chapter #0:16: start 7156.941458, end 7363.898208
Metadata:
title : Chapter 17
Chapter #0:17: start 7363.898208, end 8073.148417
Metadata:
title : Chapter 18
Stream #0:0(eng): Video: h264 (High), yuv420p(progressive), 1920x1080 [SAR 1:1 DAR 16:9], 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc
Metadata:
BPS-eng : 23599557
DURATION-eng : 02:14:33.149000000
NUMBER_OF_FRAMES-eng: 193562
NUMBER_OF_BYTES-eng: 23815342771
_STATISTICS_WRITING_APP-eng: mkvmerge v53.0.0 ('Fool's Gold') 64-bit
_STATISTICS_WRITING_DATE_UTC-eng: 2021-02-22 16:54:49
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Stream #0:1(eng): Audio: dts (DTS-HD MA), 48000 Hz, 7.1, s32p (24 bit) (default)
Metadata:
title : Surround 7.1
BPS-eng : 4980859
DURATION-eng : 02:14:33.152000000
NUMBER_OF_FRAMES-eng: 756858
NUMBER_OF_BYTES-eng: 5026404652
_STATISTICS_WRITING_APP-eng: mkvmerge v53.0.0 ('Fool's Gold') 64-bit
_STATISTICS_WRITING_DATE_UTC-eng: 2021-02-22 16:54:49
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Stream #0:2(eng): Audio: dts (DTS), 48000 Hz, 5.1(side), fltp, 1536 kb/s
Metadata:
title : Surround 5.1
BPS-eng : 1509000
DURATION-eng : 02:14:33.152000000
NUMBER_OF_FRAMES-eng: 756858
NUMBER_OF_BYTES-eng: 1522798296
_STATISTICS_WRITING_APP-eng: mkvmerge v53.0.0 ('Fool's Gold') 64-bit
_STATISTICS_WRITING_DATE_UTC-eng: 2021-02-22 16:54:49
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Stream #0:3(eng): Audio: dts (DTS), 48000 Hz, 5.1(side), fltp, 1536 kb/s
Metadata:
title : Surround 5.1
BPS-eng : 1509000
DURATION-eng : 02:14:33.152000000
NUMBER_OF_FRAMES-eng: 756858
NUMBER_OF_BYTES-eng: 1522798296
_STATISTICS_WRITING_APP-eng: mkvmerge v53.0.0 ('Fool's Gold') 64-bit
_STATISTICS_WRITING_DATE_UTC-eng: 2021-02-22 16:54:49
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Stream #0:4(eng): Subtitle: hdmv_pgs_subtitle
Metadata:
title : English
BPS-eng : 32556
DURATION-eng : 02:14:07.957000000
NUMBER_OF_FRAMES-eng: 3670
NUMBER_OF_BYTES-eng: 32751431
_STATISTICS_WRITING_APP-eng: mkvmerge v53.0.0 ('Fool's Gold') 64-bit
_STATISTICS_WRITING_DATE_UTC-eng: 2021-02-22 16:54:49
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Stream #0:5(eng): Subtitle: hdmv_pgs_subtitle (default) (forced)
Metadata:
title : Forced Sub
BPS-eng : 838
DURATION-eng : 02:10:25.192000000
NUMBER_OF_FRAMES-eng: 136
NUMBER_OF_BYTES-eng: 820331
_STATISTICS_WRITING_APP-eng: mkvmerge v53.0.0 ('Fool's Gold') 64-bit
_STATISTICS_WRITING_DATE_UTC-eng: 2021-02-22 16:54:49
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
At least one output file must be specified

<MEZZMO>: Child process ended with code: 109, ExitCode=1


---> DB Level Info: 41, 100
---> Frame rate: 23.98
---> Aspect ratio: 16:9 PAR=1:1
---> Duration: 02:14:33

Peter
02-26-2021, 11:09 AM
matroska is set to pretranscodeonly="1", so when playing a file that transcodes on the fly it will go to hls. You can try removing pretranscodeonly="1" and this will allow it to remux the video which should be much faster but you will not be able to fast forward