Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FFMPEG has problems with more then 5.1 Channel audio in DTS #3206

Closed
Denton22 opened this issue Mar 6, 2018 · 26 comments
Closed

FFMPEG has problems with more then 5.1 Channel audio in DTS #3206

Denton22 opened this issue Mar 6, 2018 · 26 comments
Assignees

Comments

@Denton22
Copy link

Denton22 commented Mar 6, 2018

Package Name: FFMPEG
Package Version: 3.4.1-9

NAS Model: DS918+
NAS Architecture: Apollo Lake
DSM version: DSM 6.1.5-15254 Update 1

Expected behavior

That Videos with more then 5.1(side) load up and play.

Actual behavior

The Video just doesent load at all. Everything works up to 5.1(side) in audio, but as soon as i load a video with 6Channel Audio or 7.1 Audio it will be stuck and "load" forever.

Steps to reproduce

1. Load Any DTS File with 7.1 Audio in Video Station

Package log

Sadly there is no log for FFMPEG on my device anyway.

Can anyone confirm this or is this already a known problem?

Thanks already 👍

@ymartin59
Copy link
Contributor

Please report result of /usr/local/ffmpeg/bin/ffprobe with your media file.

@Denton22
Copy link
Author

Denton22 commented Mar 8, 2018

Sure thing!

ffprobe version 3.4.1 Copyright (c) 2007-2017 the FFmpeg developers
built with gcc 4.9.3 (crosstool-NG 1.20.0) 20150311 (prerelease)
configuration: --target-os=linux --cross-prefix=/spksrc/toolchains/syno-x64-6. 1/work/x86_64-pc-linux-gnu/bin/x86_64-pc-linux-gnu- --prefix=/var/packages/ffmpe g/target --extra-cflags=-I/spksrc/spk/ffmpeg/work-x64-6.1/install/var/packages/f fmpeg/target/include --extra-ldflags=-L/spksrc/spk/ffmpeg/work-x64-6.1/install/v ar/packages/ffmpeg/target/lib --extra-libs='-lxml2 -ldl' --pkg-config=/usr/bin/p kg-config --ranlib=/spksrc/toolchains/syno-x64-6.1/work/x86_64-pc-linux-gnu/bin/ x86_64-pc-linux-gnu-ranlib --enable-cross-compile --enable-rpath --enable-pic -- enable-shared --enable-optimizations --enable-pthreads --enable-gpl --enable-ver sion3 --enable-nonfree --enable-fontconfig --enable-libass --enable-libbluray -- enable-avresample --enable-libfdk-aac --enable-libfreetype --enable-libfribidi - -enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enabl e-libopenjpeg --enable-libopus --enable-librtmp --enable-libsoxr --enable-libspe ex --enable-libtheora --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libx265 --enable-openssl --disable-debug --disable-do c --disable-htmlpages --disable-manpages --disable-podpages --disable-static --d isable-txtpages --arch=x86_64 --enable-thumb
libavutil 55. 78.100 / 55. 78.100
libavcodec 57.107.100 / 57.107.100
libavformat 57. 83.100 / 57. 83.100
libavdevice 57. 10.100 / 57. 10.100
libavfilter 6.107.100 / 6.107.100
libavresample 3. 7. 0 / 3. 7. 0
libswscale 4. 8.100 / 4. 8.100
libswresample 2. 9.100 / 2. 9.100
libpostproc 54. 7.100 / 54. 7.100
[matroska,webm @ 0x207d340] decoding for stream 1 failed
[matroska,webm @ 0x207d340] Could not find codec parameters for stream 1 (Audio: dts (dca) (DTS-HD MA), 48000 Hz, 8 channels): unspecified sample format
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[matroska,webm @ 0x207d340] Could not find codec parameters for stream 3 (Subtit le: hdmv_pgs_subtitle (pgssub)): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[matroska,webm @ 0x207d340] Could not find codec parameters for stream 4 (Subtit le: hdmv_pgs_subtitle (pgssub)): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[matroska,webm @ 0x207d340] Could not find codec parameters for stream 5 (Subtit le: hdmv_pgs_subtitle (pgssub)): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
Input #0, matroska,webm, from 'testfile':
Metadata:
encoder : libebml v1.3.4 + libmatroska v1.4.5
creation_time : 2017-06-24T18:50:33.000000Z
Duration: 02:05:43.04, start: 0.000000, bitrate: 9473 kb/s
Chapter #0:0: start 0.000000, end 460.335000
Metadata:
title : 00:00:00.000
Chapter #0:1: start 460.335000, end 860.735000
Metadata:
title : 00:07:40.335
Chapter #0:2: start 860.735000, end 1231.564000
Metadata:
title : 00:14:20.735
Chapter #0:3: start 1231.564000, end 1668.417000
Metadata:
title : 00:20:31.564
Chapter #0:4: start 1668.417000, end 2094.801000
Metadata:
title : 00:27:48.417
Chapter #0:5: start 2094.801000, end 2462.627000
Metadata:
title : 00:34:54.801
Chapter #0:6: start 2462.627000, end 2788.786000
Metadata:
title : 00:41:02.627
Chapter #0:7: start 2788.786000, end 3185.516000
Metadata:
title : 00:46:28.786
Chapter #0:8: start 3185.516000, end 3660.240000
Metadata:
title : 00:53:05.516
Chapter #0:9: start 3660.240000, end 4102.557000
Metadata:
title : 01:01:00.240
Chapter #0:10: start 4102.557000, end 4483.813000
Metadata:
title : 01:08:22.557
Chapter #0:11: start 4483.813000, end 4891.261000
Metadata:
title : 01:14:43.813
Chapter #0:12: start 4891.261000, end 5461.706000
Metadata:
title : 01:21:31.261
Chapter #0:13: start 5461.706000, end 5922.750000
Metadata:
title : 01:31:01.706
Chapter #0:14: start 5922.750000, end 6341.085000
Metadata:
title : 01:38:42.750
Chapter #0:15: start 6341.085000, end 6768.971000
Metadata:
title : 01:45:41.085
Chapter #0:16: start 6768.971000, end 7080.115000
Metadata:
title : 01:52:48.971
Chapter #0:17: start 7080.115000, end 7543.040000
Metadata:
title : 01:58:00.115
Stream #0:0: Video: hevc (Main 10), yuv420p10le(tv), 1920x804 [SAR 1:1 DAR 1 60:67], 23.98 fps, 23.98 tbr, 1k tbn, 23.98 tbc (default)
Stream #0:1(ger): Audio: dts (DTS-HD MA), 48000 Hz, 8 channels (default)
Stream #0:2(eng): Audio: ac3, 48000 Hz, 5.1(side), fltp, 384 kb/s
Stream #0:3(ger): Subtitle: hdmv_pgs_subtitle (default)
Metadata:
title : German forced
Stream #0:4(ger): Subtitle: hdmv_pgs_subtitle
Metadata:
title : German
Stream #0:5(eng): Subtitle: hdmv_pgs_subtitle
Metadata:
title : English

@Denton22
Copy link
Author

Denton22 commented Mar 8, 2018

Here is also a snippet of a File with 0 Channels?The Codec specifies it is "3F2R/LFE"

ffprobe version 3.4.1 Copyright (c) 2007-2017 the FFmpeg developers
built with gcc 4.9.3 (crosstool-NG 1.20.0) 20150311 (prerelease)
configuration: --target-os=linux --cross-prefix=/spksrc/toolchains/syno-x64-6.1/work/x86_64-pc-linux-gnu/bin/x86_64-pc-linux-gnu- --prefix=/var/packages/ffmpeg/target --extra-cflags=-I/spksrc/spk/ffmpeg/work-x64-6.1/install/var/packages/ffmpeg/target/include --extra-ldflags=-L/spksrc/spk/ffmpeg/work-x64-6.1/install/var/packages/ffmpeg/target/lib --extra-libs='-lxml2 -ldl' --pkg-config=/usr/bin/pkg-config --ranlib=/spksrc/toolchains/syno-x64-6.1/work/x86_64-pc-linux-gnu/bin/x86_64-pc-linux-gnu-ranlib --enable-cross-compile --enable-rpath --enable-pic --enable-shared --enable-optimizations --enable-pthreads --enable-gpl --enable-version3 --enable-nonfree --enable-fontconfig --enable-libass --enable-libbluray --enable-avresample --enable-libfdk-aac --enable-libfreetype --enable-libfribidi --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libx265 --enable-openssl --disable-debug --disable-doc --disable-htmlpages --disable-manpages --disable-podpages --disable-static --disable-txtpages --arch=x86_64 --enable-thumb
libavutil 55. 78.100 / 55. 78.100
libavcodec 57.107.100 / 57.107.100
libavformat 57. 83.100 / 57. 83.100
libavdevice 57. 10.100 / 57. 10.100
libavfilter 6.107.100 / 6.107.100
libavresample 3. 7. 0 / 3. 7. 0
libswscale 4. 8.100 / 4. 8.100
libswresample 2. 9.100 / 2. 9.100
libpostproc 54. 7.100 / 54. 7.100
[mpegts @ 0x1923340] decoding for stream 1 failed
[mpegts @ 0x1923340] Could not find codec parameters for stream 1 (Audio: dts (dca) (DTS-HD MA) ([134][0][0][0] / 0x0086), 48000 Hz, 0 channels): unspecified sample format
Consider increasing the value for the 'analyzeduration' and 'probesize' options
Input #0, mpegts, from 'test.m2ts':
Duration: 00:41:41.06, start: 600.000000, bitrate: 52634 kb/s
Program 1
Stream #0:0[0x1011]: Video: hevc (Main 10) (HDMV / 0x564D4448), yuv420p10le(tv, bt709), 3840x2160 [SAR 1:1 DAR 16:9], 23.98 fps, 23.98 tbr, 90k tbn, 23.98 tbc
Stream #0:1[0x1100]: Audio: dts (DTS-HD MA) ([134][0][0][0] / 0x0086), 48000 Hz, 0 channels
Stream #0:2[0x1101]: Audio: truehd (AC-3 / 0x332D4341), 48000 Hz, 7.1, s32 (24 bit)
Stream #0:3[0x1101]: Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz, 5.1(side), fltp, 640 kb/s

@ymartin59
Copy link
Contributor

No problem with SynoCommunity ffmpeg package from my point of view.
Recent VideoStation version no longer loads SynoCommunity ffmpeg libraries. I should not recommend that but there is a process to downgrade it: #2952 (comment)

@Denton22
Copy link
Author

Denton22 commented Mar 8, 2018

Recent VideoStation version no longer loads SynoCommunity ffmpeg libraries.

I hear this alot, but on my end it does work asfar i can tell. I can play Everything including AC3,DTS,etc... in video station. This was not possible without installing the Syno Community Package. The only Media i have trouble with playing is, Anyfile with True-HD Audio and Anyfile with DTS Audio that has more then 5.1 Sound.

there is a process to downgrade it

A Downgrade is also no solution. We finaly can decode/transcode 10bit Media on Apollolake NAS's. This is not possible with older Versions of Video Station

@ymartin59
Copy link
Contributor

ymartin59 commented Mar 9, 2018

OK. Because of warning in output, may you please try again with these additional options
ffprobe -analyzeduration 1000M -probesize 1000M

@Denton22
Copy link
Author

Sure thing

Here is the same file as post 3:

x@xbe:/$ ./usr/local/ffmpeg/bin/ffprobe -analyzeduration 1000M -prob esize 1000M test.file
ffprobe version 3.4.1 Copyright (c) 2007-2017 the FFmpeg developers
built with gcc 4.9.3 (crosstool-NG 1.20.0) 20150311 (prerelease)
configuration: --target-os=linux --cross-prefix=/spksrc/toolchains/syno-x64-6. 1/work/x86_64-pc-linux-gnu/bin/x86_64-pc-linux-gnu- --prefix=/var/packages/ffmpe g/target --extra-cflags=-I/spksrc/spk/ffmpeg/work-x64-6.1/install/var/packages/f fmpeg/target/include --extra-ldflags=-L/spksrc/spk/ffmpeg/work-x64-6.1/install/v ar/packages/ffmpeg/target/lib --extra-libs='-lxml2 -ldl' --pkg-config=/usr/bin/p kg-config --ranlib=/spksrc/toolchains/syno-x64-6.1/work/x86_64-pc-linux-gnu/bin/ x86_64-pc-linux-gnu-ranlib --enable-cross-compile --enable-rpath --enable-pic -- enable-shared --enable-optimizations --enable-pthreads --enable-gpl --enable-ver sion3 --enable-nonfree --enable-fontconfig --enable-libass --enable-libbluray -- enable-avresample --enable-libfdk-aac --enable-libfreetype --enable-libfribidi - -enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enabl e-libopenjpeg --enable-libopus --enable-librtmp --enable-libsoxr --enable-libspe ex --enable-libtheora --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libx265 --enable-openssl --disable-debug --disable-do c --disable-htmlpages --disable-manpages --disable-podpages --disable-static --d isable-txtpages --arch=x86_64 --enable-thumb
libavutil 55. 78.100 / 55. 78.100
libavcodec 57.107.100 / 57.107.100
libavformat 57. 83.100 / 57. 83.100
libavdevice 57. 10.100 / 57. 10.100
libavfilter 6.107.100 / 6.107.100
libavresample 3. 7. 0 / 3. 7. 0
libswscale 4. 8.100 / 4. 8.100
libswresample 2. 9.100 / 2. 9.100
libpostproc 54. 7.100 / 54. 7.100
[matroska,webm @ 0x21f13a0] decoding for stream 1 failed
[matroska,webm @ 0x21f13a0] Could not find codec parameters for stream 1 (Audio: dts (dca) (DTS-HD MA), 48000 Hz, 8 channels): unspecified sample format
Consider increasing the value for the 'analyzeduration' and 'probesize' options
Input #0, matroska,webm, from 'test.file':
Metadata:
encoder : libebml v1.3.4 + libmatroska v1.4.5
creation_time : 2017-06-24T18:50:33.000000Z
Duration: 02:05:43.04, start: 0.000000, bitrate: 9473 kb/s
Chapter #0:0: start 0.000000, end 460.335000
Metadata:
title : 00:00:00.000
Chapter #0:1: start 460.335000, end 860.735000
Metadata:
title : 00:07:40.335
Chapter #0:2: start 860.735000, end 1231.564000
Metadata:
title : 00:14:20.735
Chapter #0:3: start 1231.564000, end 1668.417000
Metadata:
title : 00:20:31.564
Chapter #0:4: start 1668.417000, end 2094.801000
Metadata:
title : 00:27:48.417
Chapter #0:5: start 2094.801000, end 2462.627000
Metadata:
title : 00:34:54.801
Chapter #0:6: start 2462.627000, end 2788.786000
Metadata:
title : 00:41:02.627
Chapter #0:7: start 2788.786000, end 3185.516000
Metadata:
title : 00:46:28.786
Chapter #0:8: start 3185.516000, end 3660.240000
Metadata:
title : 00:53:05.516
Chapter #0:9: start 3660.240000, end 4102.557000
Metadata:
title : 01:01:00.240
Chapter #0:10: start 4102.557000, end 4483.813000
Metadata:
title : 01:08:22.557
Chapter #0:11: start 4483.813000, end 4891.261000
Metadata:
title : 01:14:43.813
Chapter #0:12: start 4891.261000, end 5461.706000
Metadata:
title : 01:21:31.261
Chapter #0:13: start 5461.706000, end 5922.750000
Metadata:
title : 01:31:01.706
Chapter #0:14: start 5922.750000, end 6341.085000
Metadata:
title : 01:38:42.750
Chapter #0:15: start 6341.085000, end 6768.971000
Metadata:
title : 01:45:41.085
Chapter #0:16: start 6768.971000, end 7080.115000
Metadata:
title : 01:52:48.971
Chapter #0:17: start 7080.115000, end 7543.040000
Metadata:
title : 01:58:00.115
Stream #0:0: Video: hevc (Main 10), yuv420p10le(tv), 1920x804 [SAR 1:1 DAR 160:67], 23.98 fps, 23.98 tbr, 1k tbn, 23.98 tbc (default)
Stream #0:1(ger): Audio: dts (DTS-HD MA), 48000 Hz, 8 channels (default)
Stream #0:2(eng): Audio: ac3, 48000 Hz, 5.1(side), fltp, 384 kb/s
Stream #0:3(ger): Subtitle: hdmv_pgs_subtitle, 1920x1080 (default)
Metadata:
title : German forced
Stream #0:4(ger): Subtitle: hdmv_pgs_subtitle, 1920x1080
Metadata:
title : German
Stream #0:5(eng): Subtitle: hdmv_pgs_subtitle, 1920x1080
Metadata:
title : English

And here is a file that works:

x@xbe:/$ ./usr/local/ffmpeg/bin/ffprobe -analyzeduration 1000M -probesize 1000M test.file.2
ffprobe version 3.4.1 Copyright (c) 2007-2017 the FFmpeg developers1997.German.D built with gcc 4.9.3 (crosstool-NG 1.20.0) 20150311 (prerelease)
configuration: --target-os=linux --cross-prefix=/spksrc/toolchains/syno-x64-6.1/work/x86_64-pc-linux-gnu/bin/x86_64-pc-linux-gnu- --prefix=/var/packages/ffmpeg/target --extra-cflags=-I/spksrc/spk/ffmpeg/work-x64-6.1/install/var/packages/ffmpeg/target/include --extra-ldflags=-L/spksrc/spk/ffmpeg/work-x64-6.1/install/var/packages/ffmpeg/target/lib --extra-libs='-lxml2 -ldl' --pkg-config=/usr/bin/pkg-config --ranlib=/spksrc/toolchains/syno-x64-6.1/work/x86_64-pc-linux-gnu/bin/x86_64-pc-linux-gnu-ranlib --enable-cross-compile --enable-rpath --enable-pic --enable-shared --enable-optimizations --enable-pthreads --enable-gpl --enable-version3 --enable-nonfree --enable-fontconfig --enable-libass --enable-libbluray --enable-avresample --enable-libfdk-aac --enable-libfreetype --enable-libfribidi --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libx265 --enable-openssl --disable-debug --disable-doc --disable-htmlpages --disable-manpages --disable-podpages --disable-static --disable-txtpages --arch=x86_64 --enable-thumb
libavutil 55. 78.100 / 55. 78.100
libavcodec 57.107.100 / 57.107.100
libavformat 57. 83.100 / 57. 83.100
libavdevice 57. 10.100 / 57. 10.100
libavfilter 6.107.100 / 6.107.100
libavresample 3. 7. 0 / 3. 7. 0
libswscale 4. 8.100 / 4. 8.100
libswresample 2. 9.100 / 2. 9.100
libpostproc 54. 7.100 / 54. 7.100
Input #0, matroska,webm, from 'test.file.2':
Metadata:
encoder : libebml v1.3.5 + libmatroska v1.4.8
creation_time : 2018-01-04T13:44:36.000000Z
Duration: 02:06:00.93, start: 0.000000, bitrate: 46486 kb/s
Chapter #0:0: start 0.000000, end 156.489000
Metadata:
title : Chapter 1
Chapter #0:1: start 156.489000, end 731.772000
Metadata:
title : Chapter 2
Chapter #0:2: start 731.772000, end 1457.539000
Metadata:
title : Chapter 3
Chapter #0:3: start 1457.539000, end 1934.682000
Metadata:
title : Chapter 4
Chapter #0:4: start 1934.682000, end 2405.277000
Metadata:
title : Chapter 5
Chapter #0:5: start 2405.277000, end 2896.810000
Metadata:
title : Chapter 6
Chapter #0:6: start 2896.810000, end 3203.241000
Metadata:
title : Chapter 7
Chapter #0:7: start 3203.241000, end 3616.613000
Metadata:
title : Chapter 8
Chapter #0:8: start 3616.613000, end 4037.033000
Metadata:
title : Chapter 9
Chapter #0:9: start 4037.033000, end 4276.730000
Metadata:
title : Chapter 10
Chapter #0:10: start 4276.730000, end 4914.659000
Metadata:
title : Chapter 11
Chapter #0:11: start 4914.659000, end 5245.657000
Metadata:
title : Chapter 12
Chapter #0:12: start 5245.657000, end 5909.778000
Metadata:
title : Chapter 13
Chapter #0:13: start 5909.778000, end 6395.347000
Metadata:
title : Chapter 14
Chapter #0:14: start 6395.347000, end 6746.364000
Metadata:
title : Chapter 15
Chapter #0:15: start 6746.364000, end 7560.928000
Metadata:
title : Chapter 16
Stream #0:0: Video: hevc (Main 10), yuv420p10le(tv, bt2020nc/bt2020/smpte2084), 3840x1600, SAR 1:1 DAR 12:5, 23.98 fps, 23.98 tbr, 1k tbn, 23.98 tbc (default)
Metadata:
BPS : 39256861
BPS-eng : 39256861
DURATION : 02:05:53.546000000
DURATION-eng : 02:05:53.546000000
NUMBER_OF_FRAMES: 181104
NUMBER_OF_FRAMES-eng: 181104
NUMBER_OF_BYTES : 37066063679
NUMBER_OF_BYTES-eng: 37066063679
_STATISTICS_WRITING_APP: mkvmerge v19.0.0 ('Brave Captain') 64-bit
_STATISTICS_WRITING_APP-eng: mkvmerge v19.0.0 ('Brave Captain') 64-bit
_STATISTICS_WRITING_DATE_UTC: 2018-01-04 13:44:36
_STATISTICS_WRITING_DATE_UTC-eng: 2018-01-04 13:44:36
_STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Stream #0:1(ger): Audio: dts (DTS), 48000 Hz, 5.1(side), fltp, 1536 kb/s (default)
Metadata:
BPS : 1509002
BPS-eng : 1509002
DURATION : 02:06:00.928000000
DURATION-eng : 02:06:00.928000000
NUMBER_OF_FRAMES: 708837
NUMBER_OF_FRAMES-eng: 708837
NUMBER_OF_BYTES : 1426182410
NUMBER_OF_BYTES-eng: 1426182410
_STATISTICS_WRITING_APP: mkvmerge v19.0.0 ('Brave Captain') 64-bit
_STATISTICS_WRITING_APP-eng: mkvmerge v19.0.0 ('Brave Captain') 64-bit
_STATISTICS_WRITING_DATE_UTC: 2018-01-04 13:44:36
_STATISTICS_WRITING_DATE_UTC-eng: 2018-01-04 13:44:36
_STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Stream #0:2(eng): Audio: truehd, 48000 Hz, 7.1, s32 (24 bit)
Metadata:
BPS : 5665701
BPS-eng : 5665701
DURATION : 02:05:53.546000000
DURATION-eng : 02:05:53.546000000
NUMBER_OF_FRAMES: 9064255
NUMBER_OF_FRAMES-eng: 9064255
NUMBER_OF_BYTES : 5349517484
NUMBER_OF_BYTES-eng: 5349517484
_STATISTICS_WRITING_APP: mkvmerge v19.0.0 ('Brave Captain') 64-bit
_STATISTICS_WRITING_APP-eng: mkvmerge v19.0.0 ('Brave Captain') 64-bit
_STATISTICS_WRITING_DATE_UTC: 2018-01-04 13:44:36
_STATISTICS_WRITING_DATE_UTC-eng: 2018-01-04 13:44:36
_STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Stream #0:3(eng): Subtitle: hdmv_pgs_subtitle, 1920x1080
Metadata:
BPS : 36368
BPS-eng : 36368
DURATION : 02:05:23.683000000
DURATION-eng : 02:05:23.683000000
NUMBER_OF_FRAMES: 3661
NUMBER_OF_FRAMES-eng: 3661
NUMBER_OF_BYTES : 34202813
NUMBER_OF_BYTES-eng: 34202813
_STATISTICS_WRITING_APP: mkvmerge v19.0.0 ('Brave Captain') 64-bit
_STATISTICS_WRITING_APP-eng: mkvmerge v19.0.0 ('Brave Captain') 64-bit
_STATISTICS_WRITING_DATE_UTC: 2018-01-04 13:44:36
_STATISTICS_WRITING_DATE_UTC-eng: 2018-01-04 13:44:36
_STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Stream #0:4(eng): Subtitle: hdmv_pgs_subtitle, 1920x1080
Metadata:
BPS : 32257
BPS-eng : 32257
DURATION : 01:58:25.056000000
DURATION-eng : 01:58:25.056000000
NUMBER_OF_FRAMES: 2943
NUMBER_OF_FRAMES-eng: 2943
NUMBER_OF_BYTES : 28648500
NUMBER_OF_BYTES-eng: 28648500
_STATISTICS_WRITING_APP: mkvmerge v19.0.0 ('Brave Captain') 64-bit
_STATISTICS_WRITING_APP-eng: mkvmerge v19.0.0 ('Brave Captain') 64-bit
_STATISTICS_WRITING_DATE_UTC: 2018-01-04 13:44:36
_STATISTICS_WRITING_DATE_UTC-eng: 2018-01-04 13:44:36
_STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES

This file only works with DTS, but not with DTS-HD (True-HD)

@Denton22
Copy link
Author

Also i have found a strange file. This file is 5.1 , but with 6 Channels and fails to decode because of it:

./usr/local/ffmpeg/bin/ffprobe -analyzeduration 1000M -probesize 1000M strangefile.file
ffprobe version 3.4.1 Copyright (c) 2007-2017 the FFmpeg developers
built with gcc 4.9.3 (crosstool-NG 1.20.0) 20150311 (prerelease)
configuration: --target-os=linux --cross-prefix=/spksrc/toolchains/syno-x64-6.1/work/x86_64-pc-linux-gnu/bin/x86_64-pc-linux-gnu- --prefix=/var/packages/ffmpeg/target --extra-cflags=-I/spksrc/spk/ffmpeg/work-x64-6.1/install/var/packages/ffmpeg/target/include --extra-ldflags=-L/spksrc/spk/ffmpeg/work-x64-6.1/install/var/packages/ffmpeg/target/lib --extra-libs='-lxml2 -ldl' --pkg-config=/usr/bin/pkg-config --ranlib=/spksrc/toolchains/syno-x64-6.1/work/x86_64-pc-linux-gnu/bin/x86_64-pc-linux-gnu-ranlib --enable-cross-compile --enable-rpath --enable-pic --enable-shared --enable-optimizations --enable-pthreads --enable-gpl --enable-version3 --enable-nonfree --enable-fontconfig --enable-libass --enable-libbluray --enable-avresample --enable-libfdk-aac --enable-libfreetype --enable-libfribidi --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libx265 --enable-openssl --disable-debug --disable-doc --disable-htmlpages --disable-manpages --disable-podpages --disable-static --disable-txtpages --arch=x86_64 --enable-thumb
libavutil 55. 78.100 / 55. 78.100
libavcodec 57.107.100 / 57.107.100
libavformat 57. 83.100 / 57. 83.100
libavdevice 57. 10.100 / 57. 10.100
libavfilter 6.107.100 / 6.107.100
libavresample 3. 7. 0 / 3. 7. 0
libswscale 4. 8.100 / 4. 8.100
libswresample 2. 9.100 / 2. 9.100
libpostproc 54. 7.100 / 54. 7.100
[matroska,webm @ 0x109c3a0] decoding for stream 1 failed
[matroska,webm @ 0x109c3a0] decoding for stream 2 failed
[matroska,webm @ 0x109c3a0] Could not find codec parameters for stream 1 (Audio: dts (dca) (DTS-HD MA), 48000 Hz, 6 channels): unspecified sample format
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[matroska,webm @ 0x109c3a0] Could not find codec parameters for stream 2 (Audio: dts (dca) (DTS-HD MA), 48000 Hz, 6 channels): unspecified sample format
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[matroska,webm @ 0x109c3a0] Could not find codec parameters for stream 3 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
Input #0, matroska,webm, from 'strangefile.file:
Metadata:
encoder : libebml v1.3.4 + libmatroska v1.4.5
creation_time : 2016-09-21T21:58:47.000000Z
Duration: 01:42:21.07, start: 0.000000, bitrate: 18231 kb/s
Chapter #0:0: start 0.000000, end 768.292000
Metadata:
title : 00:00:00.000
Chapter #0:1: start 768.292000, end 1502.708000
Metadata:
title : 00:12:48.292
Chapter #0:2: start 1502.708000, end 2261.375000
Metadata:
title : 00:25:02.708
Chapter #0:3: start 2261.375000, end 3058.750000
Metadata:
title : 00:37:41.375
Chapter #0:4: start 3058.750000, end 3782.417000
Metadata:
title : 00:50:58.750
Chapter #0:5: start 3782.417000, end 4588.375000
Metadata:
title : 01:03:02.417
Chapter #0:6: start 4588.375000, end 5379.042000
Metadata:
title : 01:16:28.375
Chapter #0:7: start 5379.042000, end 6141.067000
Metadata:
title : 01:29:39.042
Stream #0:0(eng): Video: h264 (High), yuv420p(progressive), 1920x804, SAR 1:1 DAR 160:67, 24 fps, 24 tbr, 1k tbn, 48 tbc (default)
Metadata:
title : Eye.in.the.Sky.Movie
BPS : 12969291
BPS-eng : 12969291
DURATION : 01:42:19.792000000
DURATION-eng : 01:42:19.792000000
NUMBER_OF_FRAMES: 147355
NUMBER_OF_FRAMES-eng: 147355
NUMBER_OF_BYTES : 9953594116
NUMBER_OF_BYTES-eng: 9953594116
_STATISTICS_WRITING_APP: mkvmerge v9.3.1 ('Mask Machine') 64bit
_STATISTICS_WRITING_APP-eng: mkvmerge v9.3.1 ('Mask Machine') 64bit
_STATISTICS_WRITING_DATE_UTC: 2016-09-21 21:58:47
_STATISTICS_WRITING_DATE_UTC-eng: 2016-09-21 21:58:47
_STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Stream #0:1(ger): Audio: dts (DTS-HD MA), 48000 Hz, 6 channels (default)
Metadata:
title : DTS-HD MA 5.1 @ 1964 kbps core 5.1 @ 1509 kbps
BPS : 1963706
BPS-eng : 1963706
DURATION : 01:42:21.067000000
DURATION-eng : 01:42:21.067000000
NUMBER_OF_FRAMES: 575725
NUMBER_OF_FRAMES-eng: 575725
NUMBER_OF_BYTES : 1507406504
NUMBER_OF_BYTES-eng: 1507406504
_STATISTICS_WRITING_APP: mkvmerge v9.3.1 ('Mask Machine') 64bit
_STATISTICS_WRITING_APP-eng: mkvmerge v9.3.1 ('Mask Machine') 64bit
_STATISTICS_WRITING_DATE_UTC: 2016-09-21 21:58:47
_STATISTICS_WRITING_DATE_UTC-eng: 2016-09-21 21:58:47
_STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Stream #0:2(eng): Audio: dts (DTS-HD MA), 48000 Hz, 6 channels
Metadata:
title : DTS-HD MA 5.1 @ 3258 kbps core 5.1 @ 1509 kbps
BPS : 3240438
BPS-eng : 3240438
DURATION : 01:42:19.819000000
DURATION-eng : 01:42:19.819000000
NUMBER_OF_FRAMES: 575608
NUMBER_OF_FRAMES-eng: 575608
NUMBER_OF_BYTES : 2486962856
NUMBER_OF_BYTES-eng: 2486962856
_STATISTICS_WRITING_APP: mkvmerge v9.3.1 ('Mask Machine') 64bit
_STATISTICS_WRITING_APP-eng: mkvmerge v9.3.1 ('Mask Machine') 64bit
_STATISTICS_WRITING_DATE_UTC: 2016-09-21 21:58:47
_STATISTICS_WRITING_DATE_UTC-eng: 2016-09-21 21:58:47
_STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Stream #0:3(ger): Subtitle: hdmv_pgs_subtitle (default) (forced)
Metadata:
title : German Forced PGS
BPS : 58088
BPS-eng : 58088
DURATION : 00:00:01.417000000
DURATION-eng : 00:00:01.417000000
NUMBER_OF_FRAMES: 2
NUMBER_OF_FRAMES-eng: 2
NUMBER_OF_BYTES : 10289
NUMBER_OF_BYTES-eng: 10289
_STATISTICS_WRITING_APP: mkvmerge v9.3.1 ('Mask Machine') 64bit
_STATISTICS_WRITING_APP-eng: mkvmerge v9.3.1 ('Mask Machine') 64bit
_STATISTICS_WRITING_DATE_UTC: 2016-09-21 21:58:47
_STATISTICS_WRITING_DATE_UTC-eng: 2016-09-21 21:58:47
_STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Stream #0:4(ger): Subtitle: hdmv_pgs_subtitle, 1920x1080
Metadata:
title : German PGS
BPS : 39341
BPS-eng : 39341
DURATION : 01:32:33.708000000
DURATION-eng : 01:32:33.708000000
NUMBER_OF_FRAMES: 1800
NUMBER_OF_FRAMES-eng: 1800
NUMBER_OF_BYTES : 27311572
NUMBER_OF_BYTES-eng: 27311572
_STATISTICS_WRITING_APP: mkvmerge v9.3.1 ('Mask Machine') 64bit
_STATISTICS_WRITING_APP-eng: mkvmerge v9.3.1 ('Mask Machine') 64bit
_STATISTICS_WRITING_DATE_UTC: 2016-09-21 21:58:47
_STATISTICS_WRITING_DATE_UTC-eng: 2016-09-21 21:58:47
_STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Stream #0:5(eng): Subtitle: hdmv_pgs_subtitle, 1920x1080
Metadata:
title : English PGS
BPS : 11583
BPS-eng : 11583
DURATION : 01:31:09.500000000
DURATION-eng : 01:31:09.500000000
NUMBER_OF_FRAMES: 2286
NUMBER_OF_FRAMES-eng: 2286
NUMBER_OF_BYTES : 7919451
NUMBER_OF_BYTES-eng: 7919451
_STATISTICS_WRITING_APP: mkvmerge v9.3.1 ('Mask Machine') 64bit
_STATISTICS_WRITING_APP-eng: mkvmerge v9.3.1 ('Mask Machine') 64bit
_STATISTICS_WRITING_DATE_UTC: 2016-09-21 21:58:47
_STATISTICS_WRITING_DATE_UTC-eng: 2016-09-21 21:58:47
_STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Stream #0:6(ger): Subtitle: dvd_subtitle, 1920x1080
Metadata:
title : German Forced VobSub
BPS : 7626
BPS-eng : 7626
DURATION : 00:00:01.434000000
DURATION-eng : 00:00:01.434000000
NUMBER_OF_FRAMES: 1
NUMBER_OF_FRAMES-eng: 1
NUMBER_OF_BYTES : 1367
NUMBER_OF_BYTES-eng: 1367
_STATISTICS_WRITING_APP: mkvmerge v9.3.1 ('Mask Machine') 64bit
_STATISTICS_WRITING_APP-eng: mkvmerge v9.3.1 ('Mask Machine') 64bit
_STATISTICS_WRITING_DATE_UTC: 2016-09-21 21:58:47
_STATISTICS_WRITING_DATE_UTC-eng: 2016-09-21 21:58:47
_STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Stream #0:7(ger): Subtitle: dvd_subtitle, 1920x1080
Metadata:
title : German VobSub
BPS : 5702
BPS-eng : 5702
DURATION : 01:32:33.714000000
DURATION-eng : 01:32:33.714000000
NUMBER_OF_FRAMES: 900
NUMBER_OF_FRAMES-eng: 900
NUMBER_OF_BYTES : 3958853
NUMBER_OF_BYTES-eng: 3958853
_STATISTICS_WRITING_APP: mkvmerge v9.3.1 ('Mask Machine') 64bit
_STATISTICS_WRITING_APP-eng: mkvmerge v9.3.1 ('Mask Machine') 64bit
_STATISTICS_WRITING_DATE_UTC: 2016-09-21 21:58:47
_STATISTICS_WRITING_DATE_UTC-eng: 2016-09-21 21:58:47
_STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Stream #0:8(eng): Subtitle: dvd_subtitle, 1920x1080
Metadata:
title : English VobSub
BPS : 5707
BPS-eng : 5707
DURATION : 01:31:09.498000000
DURATION-eng : 01:31:09.498000000
NUMBER_OF_FRAMES: 1143
NUMBER_OF_FRAMES-eng: 1143
NUMBER_OF_BYTES : 3902368
NUMBER_OF_BYTES-eng: 3902368
_STATISTICS_WRITING_APP: mkvmerge v9.3.1 ('Mask Machine') 64bit
_STATISTICS_WRITING_APP-eng: mkvmerge v9.3.1 ('Mask Machine') 64bit
_STATISTICS_WRITING_DATE_UTC: 2016-09-21 21:58:47
_STATISTICS_WRITING_DATE_UTC-eng: 2016-09-21 21:58:47
_STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES

@Denton22 Denton22 changed the title FFMPEG has problems with more then 6 Channel audio in DTS FFMPEG has problems with more then 5.1 Channel audio in DTS Mar 10, 2018
@Denton22
Copy link
Author

I have found a file with AC3 that had 6 Channel Audio. It didnt work either. Looks like there is a general Problem with more then 5.1 (side) audio.

@ymartin59 did you have time looking into this? Or can i help you in anyway?

@ymartin59
Copy link
Contributor

@Denton22 If you may look for some publicly available test files to reproduce failure so that I can investigate, I would appreciate.

@Denton22
Copy link
Author

Denton22 commented Mar 17, 2018

@ymartin59 Sure thing.

File 1: (My own Testfile) https://www.file-upload.net/download-13033319/testfile.mkv.html
This first file has 3 Audio streams , DTS 5.1(side) , DTS 6 Channel and AC3 Stereo
When i watch this file in Video Station it loads on DTS 5.1 and AC3 Stereo. It will fail on DTS 6 Channel

File 2: (DATASAT Testfile) https://we.tl/TuS23zuDCk

After further investigation with ffprobe it looks like DTS-HD MA is a problem in general and Video Station shows it as DTS 6 Ch.

Unfortunaly i deleted my AC3 file with 6 Channel yesterday.. i will try to get a hold of it.

@Denton22
Copy link
Author

@ymartin59 did you find time to look at the samples?

@kuenming
Copy link

kuenming commented Mar 21, 2018

DS918+ has the same problem

/usr/local/ffmpeg/bin/ffprobe -analyzeduration 1000M -probesize 1000M /sample.mkv
ffprobe version 3.4.1 Copyright (c) 2007-2017 the FFmpeg developers
  built with gcc 4.9.3 (crosstool-NG 1.20.0) 20150311 (prerelease)
  configuration: --target-os=linux --cross-prefix=/spksrc/toolchains/syno-x64-6.1/work/x86_64-pc-linux-gnu/bin/x86_64-pc-linux-gnu- --prefix=/var/packages/ffmpeg/target --extra-cflags=-I/spksrc/spk/ffmpeg/work-x64-6.1/install/var/packages/ffmpeg/target/include --extra-ldflags=-L/spksrc/spk/ffmpeg/work-x64-6.1/install/var/packages/ffmpeg/target/lib --extra-libs='-lxml2 -ldl' --pkg-config=/usr/bin/pkg-config --ranlib=/spksrc/toolchains/syno-x64-6.1/work/x86_64-pc-linux-gnu/bin/x86_64-pc-linux-gnu-ranlib --enable-cross-compile --enable-rpath --enable-pic --enable-shared --enable-optimizations --enable-pthreads --enable-gpl --enable-version3 --enable-nonfree --enable-fontconfig --enable-libass --enable-libbluray --enable-avresample --enable-libfdk-aac --enable-libfreetype --enable-libfribidi --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libx265 --enable-openssl --disable-debug --disable-doc --disable-htmlpages --disable-manpages --disable-podpages --disable-static --disable-txtpages --arch=x86_64 --enable-thumb
  libavutil      55. 78.100 / 55. 78.100
  libavcodec     57.107.100 / 57.107.100
  libavformat    57. 83.100 / 57. 83.100
  libavdevice    57. 10.100 / 57. 10.100
  libavfilter     6.107.100 /  6.107.100
  libavresample   3.  7.  0 /  3.  7.  0
  libswscale      4.  8.100 /  4.  8.100
  libswresample   2.  9.100 /  2.  9.100
  libpostproc    54.  7.100 / 54.  7.100
[matroska,webm @ 0x10ee3a0] decoding for stream 1 failed
[matroska,webm @ 0x10ee3a0] Could not find codec parameters for stream 1 (Audio: dts (dca) (DTS-HD MA), 48000 Hz, 6 channels): unspecified sample format
Consider increasing the value for the 'analyzeduration' and 'probesize' options
Input #0, matroska,webm, from '/sample.mkv':
  Metadata:
    encoder         : libebml v1.3.1 + libmatroska v1.4.2
    creation_time   : 2018-03-07T23:51:03.000000Z
  Duration: 02:15:20.41, start: 0.000000, bitrate: 16864 kb/s
    Stream #0:0: Video: h264 (High), yuv420p(progressive), 1920x804 [SAR 1:1 DAR 160:67], 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc (default)
    Metadata:
      _STATISTICS_WRITING_APP: mkvmerge v7.7.0 ('Six Voices') 32bit built on Feb 28 2015 23:23:00
      _STATISTICS_WRITING_APP-eng: mkvmerge v7.7.0 ('Six Voices') 32bit built on Feb 28 2015 23:23:00
      _STATISTICS_WRITING_DATE_UTC: 2018-03-07 23:51:03
      _STATISTICS_WRITING_DATE_UTC-eng: 2018-03-07 23:51:03
      _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
      BPS             : 12491046
      BPS-eng         : 12491046
      DURATION        : 02:15:20.404000000
      DURATION-eng    : 02:15:20.404000000
      NUMBER_OF_FRAMES: 194695
      NUMBER_OF_FRAMES-eng: 194695
      NUMBER_OF_BYTES : 12679043275
      NUMBER_OF_BYTES-eng: 12679043275
    Stream #0:1(eng): Audio: dts (DTS-HD MA), 48000 Hz, 6 channels (default)
    Metadata:
      title           : ?梯祗
      BPS             : 4370008
      BPS-eng         : 4370008
      DURATION        : 02:15:20.406000000
      DURATION-eng    : 02:15:20.406000000
      NUMBER_OF_FRAMES: 761288
      NUMBER_OF_FRAMES-eng: 761288
      NUMBER_OF_BYTES : 4435780052
      NUMBER_OF_BYTES-eng: 4435780052
      _STATISTICS_WRITING_APP: mkvmerge v7.7.0 ('Six Voices') 32bit built on Feb 28 2015 23:23:00
      _STATISTICS_WRITING_APP-eng: mkvmerge v7.7.0 ('Six Voices') 32bit built on Feb 28 2015 23:23:00
      _STATISTICS_WRITING_DATE_UTC: 2018-03-07 23:51:03
      _STATISTICS_WRITING_DATE_UTC-eng: 2018-03-07 23:51:03
      _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES

@jocover
Copy link

jocover commented Mar 27, 2018

I have same problem
DS 218+
VideoStation: 2.4.0-1505
ffmpeg : 3.4.1-9

@jinwooyoo
Copy link

My 918+ has same problem
DSM: 6.1.5-15254 Update 1
VideoStation: 2.4.0-1505
ffmpeg : 3.4.1-9

@kref
Copy link

kref commented Aug 5, 2018

I replace ffmpeg binary with upstream 4.0.2-static build, then it works without problem

@Denton22
Copy link
Author

Denton22 commented Aug 5, 2018

@kref Can you please tell me what you replaced with what? Because i tried to replace the ffmpeg in different phats, but it never worked for me :(

@Denton22
Copy link
Author

Denton22 commented Aug 5, 2018

Ok so with @kref tipp, here is a little summary and i can confirm, dts up to 8 Channel audio is now working on my 918+!

So first download the 4.02 Static Build for x86-x64: https://johnvansickle.com/ffmpeg/releases/ffmpeg-release-64bit-static.tar.xz

Then Extract it on your workstation.

Now navigate to /var/packages/ffmpeg/target/bin And replace ffmpeg with the new build.

Make sure the permissions are identical.

"If you are on Windows, and want to write it with Winscp, but you cannot log into the root account, you can enable it with the following tipps:

  1. Change the passwd with sudo synouser -setpw root admin_passwort
    2.Enable Root ssh with sudo vi /etc/ssh/sshd_config and edit to PermitRootLogin yes"

You can now transcode everything exept TRUEHD and EAC3

I hope @ymartin59 can write a patch, because it really is a problem of the ffmpeg Package providede here.

@th0ma7
Copy link
Contributor

th0ma7 commented Dec 16, 2019

Quite interesting @kc6108 .
Have you reported that upstream to ffmpeg developpers?
Also is the static build referred earlier working (thus potentially making the issue specific to synocommunuity build)?

kref added a commit to kref/spksrc that referenced this issue Dec 20, 2019
synology's ancient gcc generates incorrect instructions for function
ff_dca_core_filter_fixed, make it unable to decode DTS-HD MA stream.
Seems pass -fno-if-conversion will prevent this bug from triggering.
@th0ma7
Copy link
Contributor

th0ma7 commented Dec 21, 2019

New test -17 packages available at https://github.com/th0ma7/synology/tree/master/packages
I've ported @kref patches from kref@0b9f5d1
Let me know if this helps and/or solve some of the problems found.

@chengleon
Copy link

I have tested -17 package, DTS-HD MA format can be played on my DS1019+.

@Denton22
Copy link
Author

Has anyone tested it with the latest Videostation 2.4.6-1594 ?
With the previous workaround, Videostaton above 2.4.3-x did not work anymore.

@Denton22
Copy link
Author

@Denton22

That is version of VideoStation I am using... which is the latest.

Edit...

I'm also running the latest test build:

https://github.com/th0ma7/synology/tree/master/packages

Don't forget:

# Backup Synology's original ffmpeg and link directly to SynoCommunity's version instead
mv /var/packages/VideoStation/target/bin/ffmpeg /var/packages/VideoStation/target/bin/ffmpeg.old
ln -sf /var/packages/ffmpeg/target/bin/ffmpeg /var/packages/VideoStation/target/bin/ffmpeg
chmod u+s /var/packages/ffmpeg/target/bin/ffmpeg

mv /var/packages/VideoStation/target/bin/ffprobe /var/packages/VideoStation/target/bin/ffprobe.old
ln -sf /var/packages/ffmpeg/target/bin/ffprobe /var/packages/VideoStation/target/bin/ffprobe
chmod u+s /var/packages/ffmpeg/target/bin/ffprobe

# remove "eac3", "dts", and "truehd" from blacklisted codecs in LibSynoVTE::ArgumentHelper::AbleToDecodeAudioByCodec()
cp -p /var/packages/VideoStation/target/lib/libsynovte.so /var/packages/VideoStation/target/lib/libsynovte.so.old
sed -i'-BACKUP' -e 's/eac3/ZAAP/' -e 's/dts/ZAP/' -e 's/truehd/ZAPZAP/' /var/packages/VideoStation/target/lib/libsynovte.so

Holy damn... thank you! I didnt even know that the blacklist was in libsynovte.so. I can confirm, after removing the blacklist with the -18 Release i was able to play eac3 , truehd and dts-hd ma files wihtout anyproblem.

It is the best working version ever.

@Denton22
Copy link
Author

@Denton22

You should be following this issue thread:

#2952

The only outstanding issues with the latest ffmpeg version deal with playing h264(hevc) files. It shouldn’t be long til those issues are nailed down as well.

Ty, yes can confirm 4k / hevc files are not playing. This has worked in the past with the static ffmpeg build. Cant wait until it is fixed :)

@Denton22
Copy link
Author

Yes, i thought so, the only thing that would work is to go back to Video Station 2.4.5/2.4.3 , use the static build and remove the blocked codecs in libsynovte.so.

With that everything should work, but you would be stuck on the old version.

@th0ma7
Copy link
Contributor

th0ma7 commented Dec 26, 2019

Hi all,

I suggest that you have a look at thread #2952 where a lot of exchanges went through.
Also @kc6108 and @BenjaminPoncet posted variations of the scripts such as:

And testing packages (-19 version) where made available for testing here:

I believe that the originating issue (e.g. 5.1 DTS) is now solved as part of merged patch (originally from @kc6108) e630cf9

Please open-up new bug requests for issues unreleated to this specific entry. And most importantly, again, thnx to all who partcipated to this thread discussion & testing. Cheers!

@th0ma7 th0ma7 closed this as completed Dec 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants