darknebular / Wrapper_VideoStation

Synology VideoStation and DLNA FFmpeg Wrapper with AAC, DTS, EAC3 and TrueHD support via pipes (now with GStreamer support). It enables full hardware transcoding from Synology´s FFmpeg for video and transcoding DTS, EAC3, TrueHD and AAC from the SynoCommunity's FFmpeg only when necessary.
627 stars 70 forks source link

Not working on DS218 with AAC audio #55

Open yana9i opened 4 months ago

yana9i commented 4 months ago

Greeting!

I'm using DS218, Every video file with AAC audio that i'm trying to play an video from the web browser video station with transcoding result in an infinite loading.

More info: DSM version: 7.2.1-69057 Update 5 AME version: 1.1.0-01006 FFmpeg version: 4.1.9 FFmpeg6 version: 6.0-2

And I found an error when transcoding start (some log records for generating thumbnails were ignored):

[2024-05-01 16:26:25] [INFO] *** PROCESS START REV AME_S_2.3 DSds218 (rtd1296) PID 23156 ***
[2024-05-01 16:26:25] [INFO] ========================================[START FFmpeg 23156]
[2024-05-01 16:26:25] [INFO] BINARY   = /var/packages/ffmpeg6/target/bin/ffmpeg
[2024-05-01 16:26:26] [INFO] DEFAULT_ARGS: -i - -map 0 -codec copy -f segment -segment_time 5 -segment_start_number 0 -hls_seek_time 0 /tmp/VideoStation/HLS/bf8e023fe46b5072e4c50ebffb2f2567_SIhIZVld/slice-%05d.ts
[2024-05-01 16:26:26] [ERROR] An error occurred, here is the /tmp/ffmpeg-FFM23156.stderr content:

ffmpeg version 6.0-2 Copyright (c) 2000-2023 the FFmpeg developers
  built with gcc 8.5.0 (GCC)
  configuration: --target-os=linux --cross-prefix=/home/spksrc/ffmpeg4-dsm6-fix/spksrc/toolchain/syno-aarch64-7.1/work/aarch64-unknown-linux-gnu/bin/aarch64-unknown-linux-gnu- --prefix=/var/packages/ffmpeg6/target --extra-cflags=-I/home/spksrc/ffmpeg4-dsm6-fix/spksrc/spk/ffmpeg6/work-aarch64-7.1/install/var/packages/ffmpeg6/target/include --extra-ldflags=-L/home/spksrc/ffmpeg4-dsm6-fix/spksrc/spk/ffmpeg6/work-aarch64-7.1/install/var/packages/ffmpeg6/target/lib --extra-libs='-lxml2 -ldl -lm' --pkg-config=/usr/bin/pkg-config --ranlib=/home/spksrc/ffmpeg4-dsm6-fix/spksrc/toolchain/syno-aarch64-7.1/work/aarch64-unknown-linux-gnu/bin/aarch64-unknown-linux-gnu-ranlib --enable-cross-compile --enable-rpath --enable-pic --enable-shared --enable-gpl --enable-version3 --disable-debug --disable-static --disable-doc --extra-version=2 --extra-cflags=-DSYNO_VIDEOSTATION --extra-cflags=-fno-if-conversion --extra-cflags=-O3 --extra-cflags=-Wno-deprecated-declarations --enable-libcodec2 --enable-libxml2 --enable-demuxer=dash --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libopenjpeg --enable-libmp3lame --enable-libbluray --enable-libspeex --enable-libtheora --enable-libcaca --enable-libdc1394 --enable-libvorbis --enable-libwebp --enable-libzmq --enable-gnutls --enable-libopenh264 --enable-libopus --enable-libsoxr --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-librabbitmq --enable-libtwolame --enable-libzvbi --enable-libx264 --enable-libx265 --enable-libvpx --enable-libshine --enable-chromaprint --enable-libdav1d --enable-librist --enable-libzimg --enable-libfdk-aac --enable-nonfree --enable-libaom --enable-libsvtav1 --arch=arm64 --enable-neon --enable-thumb --enable-libass --enable-frei0r
  libavutil      58.  2.100 / 58.  2.100
  libavcodec     60.  3.100 / 60.  3.100
  libavformat    60.  3.100 / 60.  3.100
  libavdevice    60.  1.100 / 60.  1.100
  libavfilter     9.  3.100 /  9.  3.100
  libswscale      7.  1.100 /  7.  1.100
  libswresample   4. 10.100 /  4. 10.100
  libpostproc    57.  1.100 / 57.  1.100
fd:: Invalid data found when processing input

[2024-05-01 16:26:26] [INFO] ========================================[END FFmpeg 23156]

best regards!

yana9i commented 4 months ago

I reinstall all the DSM. And I install the advance wrapper to get more log info:

root@DS218:/var/packages/CodecPack/target/pack/bin# cat /tmp/wrapper_ffmpeg.log
[2024-05-02 01:16:21] INFO: Your system is a 'ARMv8' device, I recommend to you install the Simplest Wrapper.
[2024-05-02 01:16:26] INFO: ==================== Installation of the Advanced Wrapper: START ====================
[2024-05-02 01:16:26] INFO: Backup the original ffmpeg41 as ffmpeg41.orig.
[2024-05-02 01:16:26] INFO: Injection of the ffmpeg41 wrapper using this injector: X-Advanced.
[2024-05-02 01:16:32] INFO: Fixing permissions of the ffmpeg41 wrapper.
[2024-05-02 01:16:32] INFO: Adding of the KEY of this Wrapper in /tmp.
[2024-05-02 01:16:32] INFO: Backup the original libsynovte.so in VideoStation as libsynovte.so.orig.
[2024-05-02 01:16:32] INFO: Fixing permissions of /var/packages/VideoStation/target/lib/libsynovte.so.orig
[2024-05-02 01:16:32] INFO: Patching /var/packages/VideoStation/target/lib/libsynovte.so for compatibility with AAC, DTS, EAC3 and TrueHD
[2024-05-02 01:16:32] INFO: Restarting CodecPack...
[2024-05-02 01:16:38] INFO: Restarting VideoStation...
[2024-05-02 01:16:49] INFO: ==================== Installation of the Advanced Wrapper: COMPLETE ====================
2024-05-02 01:18:00 - FFM26806 - *** PROCESS START REV AME_12.4.5 DSds218 (rtd1296) PID 26806 ***
2024-05-02 01:18:00 - FFM26806 - MOVIE    = -
2024-05-02 01:18:00 - FFM26806 - VCODEC   =  ()
2024-05-02 01:18:00 - FFM26806 - ACODEC   =
2024-05-02 01:18:00 - FFM26806 - PARAM_ORIG  =
2024-05-02 01:18:00 - FFM26806 -          = -i - -map 0 -codec copy -f segment -segment_time 5 -segment_start_number 0 -hls_seek_time 0 /tmp/VideoStation/HLS/6
2024-05-02 01:18:00 - FFM26806 -          = 572769cb2f2fbfa241dd4fcd2e69383_UwrmhC9o/slice-%05d.ts
2024-05-02 01:18:00 - FFM26806 - MODE     = ORIG-VSMS
2024-05-02 01:18:00 - FFM26806 - FFMPEG   = /var/packages/CodecPack/target/pack/bin/ffmpeg41.orig
2024-05-02 01:18:00 - FFM26806 - PARAM_WRAP  =
2024-05-02 01:18:00 - FFM26806 -          = -i - -map 0 -codec copy -f segment -segment_time 5 -segment_start_number 0 -hls_seek_time 0 /tmp/VideoStation/HLS/6
2024-05-02 01:18:00 - FFM26806 -          = 572769cb2f2fbfa241dd4fcd2e69383_UwrmhC9o/slice-%05d.ts
2024-05-02 01:18:00 - FFM26806 - CHILDPID = 26862
2024-05-02 01:18:00 - FFM26806 - *** CHILD END ***
2024-05-02 01:18:00 - FFM26806 - STDOUT   =
2024-05-02 01:18:00 - FFM26806 -          = ffmpeg version 4.1.9 Copyright (c) 2000-2022 the FFmpeg developers
2024-05-02 01:18:00 - FFM26806 -          =   built with gcc 12.2.0 (GCC)
2024-05-02 01:18:00 - FFM26806 -          =   configuration: --prefix=/usr/pkg --pkg-config=/usr/bin/pkg-config --incdir='${prefix}/include/ffmpeg' --arch=arm64 --t
2024-05-02 01:18:00 - FFM26806 -          = arget-os=linux --cross-prefix=/usr/local/aarch64-unknown-linux-gnu/bin/aarch64-unknown-linux-gnu- --enable-cross-compile
2024-05-02 01:18:00 - FFM26806 -          =  --enable-optimizations --enable-pic --enable-gpl --enable-shared --disable-static --enable-version3 --enable-encoders -
2024-05-02 01:18:00 - FFM26806 -          = -enable-pthreads --disable-protocols --disable-protocol=rtp --enable-protocol=file --enable-protocol=http --enable-proto
2024-05-02 01:18:00 - FFM26806 -          = col=https --enable-protocol=pipe --disable-muxer=image2 --disable-muxer=image2pipe --disable-swscale-alpha --disable-ffp
2024-05-02 01:18:00 - FFM26806 -          = lay --disable-ffprobe --disable-doc --disable-devices --disable-bzlib --disable-altivec --enable-libopencore-amrnb --ena
2024-05-02 01:18:00 - FFM26806 -          = ble-libopencore-amrwb --enable-libmp3lame --disable-cuvid --disable-nvenc --disable-decoder=amrnb --disable-encoder=zmbv
2024-05-02 01:18:00 - FFM26806 -          =  --disable-encoder=dca --disable-decoder=dca --disable-encoder=ac3 --disable-encoder=ac3_fixed --disable-encoder=eac3 --
2024-05-02 01:18:00 - FFM26806 -          = disable-decoder=eac3 --disable-encoder=truehd --disable-decoder=truehd --disable-decoder=aac --disable-decoder=aac_fixed
2024-05-02 01:18:00 - FFM26806 -          =  --disable-encoder=aac --enable-libx264 --enable-encoder=libx264 --extra-cflags=-I/usr/local/aarch64-unknown-linux-gnu/a
2024-05-02 01:18:00 - FFM26806 -          = arch64-unknown-linux-gnu/sysroot//usr/pkg/include --extra-ldflags=-L/usr/local/aarch64-unknown-linux-gnu/aarch64-unknown
2024-05-02 01:18:00 - FFM26806 -          = -linux-gnu/sysroot//usr/pkg/lib
2024-05-02 01:18:00 - FFM26806 -          =   libavutil      56. 22.100 / 56. 22.100
2024-05-02 01:18:00 - FFM26806 -          =   libavcodec     58. 35.100 / 58. 35.100
2024-05-02 01:18:00 - FFM26806 -          =   libavformat    58. 20.100 / 58. 20.100
2024-05-02 01:18:00 - FFM26806 -          =   libavdevice    58.  5.100 / 58.  5.100
2024-05-02 01:18:00 - FFM26806 -          =   libavfilter     7. 40.101 /  7. 40.101
2024-05-02 01:18:00 - FFM26806 -          =   libswscale      5.  3.100 /  5.  3.100
2024-05-02 01:18:00 - FFM26806 -          =   libswresample   3.  3.100 /  3.  3.100
2024-05-02 01:18:00 - FFM26806 -          =   libpostproc    55.  3.100 / 55.  3.100
2024-05-02 01:18:00 - FFM26806 -          = pipe:: Invalid data found when processing input
2024-05-02 01:18:00 - FFM26806 - MODE     = PIPE V_ORIG-A_WRAP-VS
2024-05-02 01:18:00 - FFM26806 - FFMPEG1  = /var/packages/CodecPack/target/pack/bin/ffmpeg41.orig
2024-05-02 01:18:00 - FFM26806 - FFMPEG2  = /var/packages/ffmpeg6/target/bin/ffmpeg
2024-05-02 01:18:00 - FFM26806 - PARAM_WRAP1   =
2024-05-02 01:18:00 - FFM26806 -          = -i - -map 0 -codec copy -f mpegts -bufsize 8192k pipe:
2024-05-02 01:18:00 - FFM26806 - PARAM_WRAP2   =
2024-05-02 01:18:00 - FFM26806 -          = -i pipe: -map 0:0 -map 0:1 -map 0:1 -codec copy -f segment -segment_time 5 -segment_start_number 0 -hls_seek_time 0
2024-05-02 01:18:00 - FFM26806 -          =  /tmp/VideoStation/HLS/6572769cb2f2fbfa241dd4fcd2e69383_UwrmhC9o/slice-%05d.ts$
2024-05-02 01:18:00 - FFM26806 - CHILDPID = 26898
2024-05-02 01:18:00 - FFM26806 - *** CHILD END ***
2024-05-02 01:18:00 - FFM26806 - STDOUT   =
2024-05-02 01:18:00 - FFM26806 -          = ffmpeg version 6.0-2 Copyright (c) 2000-2023 the FFmpeg developers
2024-05-02 01:18:00 - FFM26806 -          =   built with gcc 8.5.0 (GCC)
2024-05-02 01:18:00 - FFM26806 -          =   configuration: --target-os=linux --cross-prefix=/home/spksrc/ffmpeg4-dsm6-fix/spksrc/toolchain/syno-aarch64-7.1/work/a
2024-05-02 01:18:00 - FFM26806 -          = arch64-unknown-linux-gnu/bin/aarch64-unknown-linux-gnu- --prefix=/var/packages/ffmpeg6/target --extra-cflags=-I/home/spk
2024-05-02 01:18:00 - FFM26806 -          = src/ffmpeg4-dsm6-fix/spksrc/spk/ffmpeg6/work-aarch64-7.1/install/var/packages/ffmpeg6/target/include --extra-ldflags=-L/
2024-05-02 01:18:00 - FFM26806 -          = home/spksrc/ffmpeg4-dsm6-fix/spksrc/spk/ffmpeg6/work-aarch64-7.1/install/var/packages/ffmpeg6/target/lib --extra-libs='-
2024-05-02 01:18:00 - FFM26806 -          = lxml2 -ldl -lm' --pkg-config=/usr/bin/pkg-config --ranlib=/home/spksrc/ffmpeg4-dsm6-fix/spksrc/toolchain/syno-aarch64-7.
2024-05-02 01:18:00 - FFM26806 -          = 1/work/aarch64-unknown-linux-gnu/bin/aarch64-unknown-linux-gnu-ranlib --enable-cross-compile --enable-rpath --enable-pic
2024-05-02 01:18:00 - FFM26806 -          =  --enable-shared --enable-gpl --enable-version3 --disable-debug --disable-static --disable-doc --extra-version=2 --extra
2024-05-02 01:18:00 - FFM26806 -          = -cflags=-DSYNO_VIDEOSTATION --extra-cflags=-fno-if-conversion --extra-cflags=-O3 --extra-cflags=-Wno-deprecated-declarat
2024-05-02 01:18:00 - FFM26806 -          = ions --enable-libcodec2 --enable-libxml2 --enable-demuxer=dash --enable-libfontconfig --enable-libfreetype --enable-libf
2024-05-02 01:18:00 - FFM26806 -          = ribidi --enable-libopenjpeg --enable-libmp3lame --enable-libbluray --enable-libspeex --enable-libtheora --enable-libcaca
2024-05-02 01:18:00 - FFM26806 -          =  --enable-libdc1394 --enable-libvorbis --enable-libwebp --enable-libzmq --enable-gnutls --enable-libopenh264 --enable-li
2024-05-02 01:18:00 - FFM26806 -          = bopus --enable-libsoxr --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-librabbitmq --enable-libtwolame --
2024-05-02 01:18:00 - FFM26806 -          = enable-libzvbi --enable-libx264 --enable-libx265 --enable-libvpx --enable-libshine --enable-chromaprint --enable-libdav1
2024-05-02 01:18:00 - FFM26806 -          = d --enable-librist --enable-libzimg --enable-libfdk-aac --enable-nonfree --enable-libaom --enable-libsvtav1 --arch=arm64
2024-05-02 01:18:00 - FFM26806 -          =  --enable-neon --enable-thumb --enable-libass --enable-frei0r
2024-05-02 01:18:00 - FFM26806 -          =   libavutil      58.  2.100 / 58.  2.100
2024-05-02 01:18:00 - FFM26806 -          =   libavcodec     60.  3.100 / 60.  3.100
2024-05-02 01:18:00 - FFM26806 -          =   libavformat    60.  3.100 / 60.  3.100
2024-05-02 01:18:00 - FFM26806 -          =   libavdevice    60.  1.100 / 60.  1.100
2024-05-02 01:18:00 - FFM26806 -          =   libavfilter     9.  3.100 /  9.  3.100
2024-05-02 01:18:00 - FFM26806 -          =   libswscale      7.  1.100 /  7.  1.100
2024-05-02 01:18:00 - FFM26806 -          =   libswresample   4. 10.100 /  4. 10.100
2024-05-02 01:18:00 - FFM26806 -          =   libpostproc    57.  1.100 / 57.  1.100
2024-05-02 01:18:00 - FFM26806 -          = pipe:: Invalid data found when processing input
2024-05-02 01:18:00 - FFM26806 - MODE     = WRAPPER_SINGLE-VS
2024-05-02 01:18:00 - FFM26806 - FFMPEG   = /var/packages/ffmpeg6/target/bin/ffmpeg
2024-05-02 01:18:00 - FFM26806 - PARAM_WRAP   =
2024-05-02 01:18:00 - FFM26806 -          = -i - -map 0 -codec copy -f segment -segment_time 5 -segment_start_number 0 -hls_seek_time 0 /tmp/VideoStation/HLS/6
2024-05-02 01:18:00 - FFM26806 -          = 572769cb2f2fbfa241dd4fcd2e69383_UwrmhC9o/slice-%05d.ts
2024-05-02 01:18:00 - FFM26806 - CHILDPID = 26922
2024-05-02 01:18:00 - FFM26806 - STDOUT   =
2024-05-02 01:18:00 - FFM26806 -          = ffmpeg version 6.0-2 Copyright (c) 2000-2023 the FFmpeg developers
2024-05-02 01:18:00 - FFM26806 -          =   built with gcc 8.5.0 (GCC)
2024-05-02 01:18:00 - FFM26806 -          =   configuration: --target-os=linux --cross-prefix=/home/spksrc/ffmpeg4-dsm6-fix/spksrc/toolchain/syno-aarch64-7.1/work/a
2024-05-02 01:18:00 - FFM26806 -          = arch64-unknown-linux-gnu/bin/aarch64-unknown-linux-gnu- --prefix=/var/packages/ffmpeg6/target --extra-cflags=-I/home/spk
2024-05-02 01:18:00 - FFM26806 -          = src/ffmpeg4-dsm6-fix/spksrc/spk/ffmpeg6/work-aarch64-7.1/install/var/packages/ffmpeg6/target/include --extra-ldflags=-L/
2024-05-02 01:18:00 - FFM26806 -          = home/spksrc/ffmpeg4-dsm6-fix/spksrc/spk/ffmpeg6/work-aarch64-7.1/install/var/packages/ffmpeg6/target/lib --extra-libs='-
2024-05-02 01:18:00 - FFM26806 -          = lxml2 -ldl -lm' --pkg-config=/usr/bin/pkg-config --ranlib=/home/spksrc/ffmpeg4-dsm6-fix/spksrc/toolchain/syno-aarch64-7.
2024-05-02 01:18:00 - FFM26806 -          = 1/work/aarch64-unknown-linux-gnu/bin/aarch64-unknown-linux-gnu-ranlib --enable-cross-compile --enable-rpath --enable-pic
2024-05-02 01:18:00 - FFM26806 -          =  --enable-shared --enable-gpl --enable-version3 --disable-debug --disable-static --disable-doc --extra-version=2 --extra
2024-05-02 01:18:00 - FFM26806 -          = -cflags=-DSYNO_VIDEOSTATION --extra-cflags=-fno-if-conversion --extra-cflags=-O3 --extra-cflags=-Wno-deprecated-declarat
2024-05-02 01:18:00 - FFM26806 -          = ions --enable-libcodec2 --enable-libxml2 --enable-demuxer=dash --enable-libfontconfig --enable-libfreetype --enable-libf
2024-05-02 01:18:00 - FFM26806 -          = ribidi --enable-libopenjpeg --enable-libmp3lame --enable-libbluray --enable-libspeex --enable-libtheora --enable-libcaca
2024-05-02 01:18:00 - FFM26806 -          =  --enable-libdc1394 --enable-libvorbis --enable-libwebp --enable-libzmq --enable-gnutls --enable-libopenh264 --enable-li
2024-05-02 01:18:00 - FFM26806 -          = bopus --enable-libsoxr --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-librabbitmq --enable-libtwolame --
2024-05-02 01:18:00 - FFM26806 -          = enable-libzvbi --enable-libx264 --enable-libx265 --enable-libvpx --enable-libshine --enable-chromaprint --enable-libdav1
2024-05-02 01:18:00 - FFM26806 -          = d --enable-librist --enable-libzimg --enable-libfdk-aac --enable-nonfree --enable-libaom --enable-libsvtav1 --arch=arm64
2024-05-02 01:18:00 - FFM26806 -          =  --enable-neon --enable-thumb --enable-libass --enable-frei0r
2024-05-02 01:18:00 - FFM26806 -          =   libavutil      58.  2.100 / 58.  2.100
2024-05-02 01:18:00 - FFM26806 -          =   libavcodec     60.  3.100 / 60.  3.100
2024-05-02 01:18:00 - FFM26806 -          =   libavformat    60.  3.100 / 60.  3.100
2024-05-02 01:18:00 - FFM26806 -          =   libavdevice    60.  1.100 / 60.  1.100
2024-05-02 01:18:00 - FFM26806 -          =   libavfilter     9.  3.100 /  9.  3.100
2024-05-02 01:18:00 - FFM26806 -          =   libswscale      7.  1.100 /  7.  1.100
2024-05-02 01:18:00 - FFM26806 -          =   libswresample   4. 10.100 /  4. 10.100
2024-05-02 01:18:00 - FFM26806 -          =   libpostproc    57.  1.100 / 57.  1.100
2024-05-02 01:18:00 - FFM26806 -          = fd:: Invalid data found when processing input
2024-05-02 01:18:00 - FFM26806 - *** CHILD END ***
2024-05-02 01:18:00 - FFM26806 - *** PROCESS END ***

Mediainfo about the video:

General
Complete name                            : \\192.168.52.218\video\tvshow\Ookami to Koushinryou - Merchant Meets the Wise Wolf.mp4
Format                                   : MPEG-4
Format profile                           : Base Media
Codec ID                                 : isom (isom/iso2/avc1/mp41)
File size                                : 719 MiB
Duration                                 : 23 min 50 s
Overall bit rate mode                    : Constant
Overall bit rate                         : 4 219 kb/s
Frame rate                               : 23.976 FPS
Writing application                      : ShanaEncoder

Video
ID                                       : 1
Format                                   : AVC
Format/Info                              : Advanced Video Codec
Format profile                           : High@L4
Format settings                          : CABAC / 4 Ref Frames
Format settings, CABAC                   : Yes
Format settings, Reference frames        : 4 frames
Codec ID                                 : avc1
Codec ID/Info                            : Advanced Video Coding
Duration                                 : 23 min 50 s
Bit rate mode                            : Constant
Bit rate                                 : 3 700 kb/s
Width                                    : 1 920 pixels
Height                                   : 1 080 pixels
Display aspect ratio                     : 16:9
Frame rate mode                          : Constant
Frame rate                               : 23.976 (24000/1001) FPS
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Scan type                                : Progressive
Bits/(Pixel*Frame)                       : 0.074
Stream size                              : 631 MiB (88%)
Color range                              : Limited
Color primaries                          : BT.709
Transfer characteristics                 : BT.709
Matrix coefficients                      : BT.709
Codec configuration box                  : avcC

Audio
ID                                       : 2
Format                                   : AAC LC
Format/Info                              : Advanced Audio Codec Low Complexity
Codec ID                                 : mp4a-40-2
Duration                                 : 23 min 50 s
Source duration                          : 23 min 50 s
Bit rate mode                            : Constant
Bit rate                                 : 512 kb/s
Channel(s)                               : 2 channels
Channel layout                           : L R
Sampling rate                            : 48.0 kHz
Frame rate                               : 46.875 FPS (1024 SPF)
Compression mode                         : Lossy
Stream size                              : 87.3 MiB (12%)
Source stream size                       : 87.3 MiB (12%)
Default                                  : Yes
Alternate group                          : 1
darknebular commented 4 months ago

avc1 is not fully supported for your CPU, there isn't any of microcode for it, sorry. My Wrapper doesn´t work very well with this kind of video codec neither. I refer to AVC1.

Could you change de Video Codec and try again?

Best regards.

yana9i commented 4 months ago

Thanks for your reply!


I try to re-encode this video stream of this video into the HEVC format. Here is the mediainfo:

General
Complete name                            : \\192.168.52.218\video\tvshow\output1.mp4
Format                                   : MPEG-4
Format profile                           : Base Media
Codec ID                                 : isom (isom/iso2/mp41)
File size                                : 141 MiB
Duration                                 : 23 min 50 s
Overall bit rate                         : 829 kb/s
Frame rate                               : 23.976 FPS
Writing application                      : Lavf60.3.100

Video
ID                                       : 1
Format                                   : HEVC
Format/Info                              : High Efficiency Video Coding
Format profile                           : Main@L4@Main
Codec ID                                 : hev1
Codec ID/Info                            : High Efficiency Video Coding
Duration                                 : 23 min 50 s
Bit rate                                 : 309 kb/s
Width                                    : 1 920 pixels
Height                                   : 1 080 pixels
Display aspect ratio                     : 16:9
Frame rate mode                          : Constant
Frame rate                               : 23.976 (24000/1001) FPS
Color space                              : YUV
Chroma subsampling                       : 4:2:0 (Type 0)
Bit depth                                : 8 bits
Scan type                                : Progressive
Bits/(Pixel*Frame)                       : 0.006
Stream size                              : 52.7 MiB (37%)
Writing library                          : x265 3.5+96-9c9ab68fc:[Windows][GCC 12.2.0][64 bit] 8bit+10bit+12bit
Encoding settings                        : cpuid=1111039 / frame-threads=3 / numa-pools=12 / wpp / no-pmode / no-pme / no-psnr / no-ssim / log-level=2 / input-csp=1 / input-res=1920x1080 / interlace=0 / total-frames=0 / level-idc=0 / high-tier=1 / uhd-bd=0 / ref=3 / no-allow-non-conformance / no-repeat-headers / annexb / no-aud / no-eob / no-eos / no-hrd / info / hash=0 / temporal-layers=0 / open-gop / min-keyint=23 / keyint=250 / gop-lookahead=0 / bframes=4 / b-adapt=2 / b-pyramid / bframe-bias=0 / rc-lookahead=20 / lookahead-slices=6 / scenecut=40 / no-hist-scenecut / radl=0 / no-splice / no-intra-refresh / ctu=64 / min-cu-size=8 / no-rect / no-amp / max-tu-size=32 / tu-inter-depth=1 / tu-intra-depth=1 / limit-tu=0 / rdoq-level=0 / dynamic-rd=0.00 / no-ssim-rd / signhide / no-tskip / nr-intra=0 / nr-inter=0 / no-constrained-intra / strong-intra-smoothing / max-merge=3 / limit-refs=1 / no-limit-modes / me=1 / subme=2 / merange=57 / temporal-mvp / no-frame-dup / no-hme / weightp / no-weightb / no-analyze-src-pics / deblock=0:0 / sao / no-sao-non-deblock / rd=3 / selective-sao=4 / early-skip / rskip / no-fast-intra / no-tskip-fast / no-cu-lossless / b-intra / no-splitrd-skip / rdpenalty=0 / psy-rd=2.00 / psy-rdoq=0.00 / no-rd-refine / no-lossless / cbqpoffs=0 / crqpoffs=0 / rc=crf / crf=28.0 / qcomp=0.60 / qpstep=4 / stats-write=0 / stats-read=0 / ipratio=1.40 / pbratio=1.30 / aq-mode=2 / aq-strength=1.00 / cutree / zone-count=0 / no-strict-cbr / qg-size=32 / no-rc-grain / qpmax=69 / qpmin=0 / no-const-vbv / sar=1 / overscan=0 / videoformat=5 / range=0 / colorprim=1 / transfer=1 / colormatrix=1 / chromaloc=1 / chromaloc-top=0 / chromaloc-bottom=0 / display-window=0 / cll=0,0 / min-luma=0 / max-luma=255 / log2-max-poc-lsb=8 / vui-timing-info / vui-hrd-info / slices=1 / no-opt-qp-pps / no-opt-ref-list-length-pps / no-multi-pass-opt-rps / scenecut-bias=0.05 / no-opt-cu-delta-qp / no-aq-motion / no-hdr10 / no-hdr10-opt / no-dhdr10-opt / no-idr-recovery-sei / analysis-reuse-level=0 / analysis-save-reuse-level=0 / analysis-load-reuse-level=0 / scale-factor=0 / refine-intra=0 / refine-inter=0 / refine-mv=1 / refine-ctu-distortion=0 / no-limit-sao / ctu-info=0 / no-lowpass-dct / refine-analysis-type=0 / copy-pic=1 / max-ausize-factor=1.0 / no-dynamic-refine / no-single-sei / no-hevc-aq / no-svt / no-field / qp-adaptation-range=1.00 / scenecut-aware-qp=0conformance-window-offsets / right=0 / bottom=0 / decoder-max-rate=0 / no-vbv-live-multi-pass / no-mcstf / no-sbrc
Color range                              : Limited
Color primaries                          : BT.709
Transfer characteristics                 : BT.709
Matrix coefficients                      : BT.709
Codec configuration box                  : hvcC

Audio
ID                                       : 2
Format                                   : AAC LC
Format/Info                              : Advanced Audio Codec Low Complexity
Codec ID                                 : mp4a-40-2
Duration                                 : 23 min 50 s
Source duration                          : 23 min 50 s
Bit rate mode                            : Constant
Bit rate                                 : 512 kb/s
Channel(s)                               : 2 channels
Channel layout                           : L R
Sampling rate                            : 48.0 kHz
Frame rate                               : 46.875 FPS (1024 SPF)
Compression mode                         : Lossy
Stream size                              : 87.3 MiB (62%)
Source stream size                       : 87.3 MiB (62%)
Default                                  : Yes
Alternate group                          : 1

Unfortunately, the video still cannot be transcoded properly. Here is the corresponding error log:

2024-05-02 13:54:08 - FFM20370 - *** PROCESS START REV AME_12.4.5 DSds218 (rtd1296) PID 20370 ***
2024-05-02 13:54:08 - FFM20370 - MOVIE    = -
2024-05-02 13:54:08 - FFM20370 - VCODEC   =  ()
2024-05-02 13:54:08 - FFM20370 - ACODEC   =
2024-05-02 13:54:08 - FFM20370 - PARAM_ORIG  =
2024-05-02 13:54:08 - FFM20370 -          = -i - -map 0 -codec copy -f segment -segment_time 5 -segment_start_number 0 -hls_seek_time 0 /tmp/VideoStation/HLS/d
2024-05-02 13:54:08 - FFM20370 -          = be016360bd736d815bf2e9ff6b698dd_VgFqtC4u/slice-%05d.ts
2024-05-02 13:54:08 - FFM20370 - MODE     = ORIG-VSMS
2024-05-02 13:54:08 - FFM20370 - FFMPEG   = /var/packages/CodecPack/target/pack/bin/ffmpeg41.orig
2024-05-02 13:54:08 - FFM20370 - PARAM_WRAP  =
2024-05-02 13:54:08 - FFM20370 -          = -i - -map 0 -codec copy -f segment -segment_time 5 -segment_start_number 0 -hls_seek_time 0 /tmp/VideoStation/HLS/d
2024-05-02 13:54:08 - FFM20370 -          = be016360bd736d815bf2e9ff6b698dd_VgFqtC4u/slice-%05d.ts
2024-05-02 13:54:08 - FFM20370 - CHILDPID = 20421
2024-05-02 13:54:08 - FFM20370 - *** CHILD END ***
2024-05-02 13:54:08 - FFM20370 - STDOUT   =
2024-05-02 13:54:08 - FFM20370 -          = ffmpeg version 4.1.9 Copyright (c) 2000-2022 the FFmpeg developers
2024-05-02 13:54:08 - FFM20370 -          =   built with gcc 12.2.0 (GCC)
2024-05-02 13:54:08 - FFM20370 -          =   configuration: --prefix=/usr/pkg --pkg-config=/usr/bin/pkg-config --incdir='${prefix}/include/ffmpeg' --arch=arm64 --t
2024-05-02 13:54:08 - FFM20370 -          = arget-os=linux --cross-prefix=/usr/local/aarch64-unknown-linux-gnu/bin/aarch64-unknown-linux-gnu- --enable-cross-compile
2024-05-02 13:54:08 - FFM20370 -          =  --enable-optimizations --enable-pic --enable-gpl --enable-shared --disable-static --enable-version3 --enable-encoders -
2024-05-02 13:54:08 - FFM20370 -          = -enable-pthreads --disable-protocols --disable-protocol=rtp --enable-protocol=file --enable-protocol=http --enable-proto
2024-05-02 13:54:08 - FFM20370 -          = col=https --enable-protocol=pipe --disable-muxer=image2 --disable-muxer=image2pipe --disable-swscale-alpha --disable-ffp
2024-05-02 13:54:08 - FFM20370 -          = lay --disable-ffprobe --disable-doc --disable-devices --disable-bzlib --disable-altivec --enable-libopencore-amrnb --ena
2024-05-02 13:54:08 - FFM20370 -          = ble-libopencore-amrwb --enable-libmp3lame --disable-cuvid --disable-nvenc --disable-decoder=amrnb --disable-encoder=zmbv
2024-05-02 13:54:08 - FFM20370 -          =  --disable-encoder=dca --disable-decoder=dca --disable-encoder=ac3 --disable-encoder=ac3_fixed --disable-encoder=eac3 --
2024-05-02 13:54:08 - FFM20370 -          = disable-decoder=eac3 --disable-encoder=truehd --disable-decoder=truehd --disable-decoder=aac --disable-decoder=aac_fixed
2024-05-02 13:54:08 - FFM20370 -          =  --disable-encoder=aac --enable-libx264 --enable-encoder=libx264 --extra-cflags=-I/usr/local/aarch64-unknown-linux-gnu/a
2024-05-02 13:54:08 - FFM20370 -          = arch64-unknown-linux-gnu/sysroot//usr/pkg/include --extra-ldflags=-L/usr/local/aarch64-unknown-linux-gnu/aarch64-unknown
2024-05-02 13:54:08 - FFM20370 -          = -linux-gnu/sysroot//usr/pkg/lib
2024-05-02 13:54:08 - FFM20370 -          =   libavutil      56. 22.100 / 56. 22.100
2024-05-02 13:54:08 - FFM20370 -          =   libavcodec     58. 35.100 / 58. 35.100
2024-05-02 13:54:08 - FFM20370 -          =   libavformat    58. 20.100 / 58. 20.100
2024-05-02 13:54:08 - FFM20370 -          =   libavdevice    58.  5.100 / 58.  5.100
2024-05-02 13:54:08 - FFM20370 -          =   libavfilter     7. 40.101 /  7. 40.101
2024-05-02 13:54:08 - FFM20370 -          =   libswscale      5.  3.100 /  5.  3.100
2024-05-02 13:54:08 - FFM20370 -          =   libswresample   3.  3.100 /  3.  3.100
2024-05-02 13:54:08 - FFM20370 -          =   libpostproc    55.  3.100 / 55.  3.100
2024-05-02 13:54:08 - FFM20370 -          = pipe:: Invalid data found when processing input
2024-05-02 13:54:08 - FFM20370 - MODE     = PIPE V_ORIG-A_WRAP-VS
2024-05-02 13:54:08 - FFM20370 - FFMPEG1  = /var/packages/CodecPack/target/pack/bin/ffmpeg41.orig
2024-05-02 13:54:08 - FFM20370 - FFMPEG2  = /var/packages/ffmpeg6/target/bin/ffmpeg
2024-05-02 13:54:08 - FFM20370 - PARAM_WRAP1   =
2024-05-02 13:54:08 - FFM20370 -          = -i - -map 0 -codec copy -f mpegts -bufsize 8192k pipe:
2024-05-02 13:54:08 - FFM20370 - PARAM_WRAP2   =
2024-05-02 13:54:08 - FFM20370 -          = -i pipe: -map 0:0 -map 0:1 -map 0:1 -codec copy -f segment -segment_time 5 -segment_start_number 0 -hls_seek_time 0
2024-05-02 13:54:08 - FFM20370 -          =  /tmp/VideoStation/HLS/dbe016360bd736d815bf2e9ff6b698dd_VgFqtC4u/slice-%05d.ts$
2024-05-02 13:54:08 - FFM20370 - CHILDPID = 20457
2024-05-02 13:54:08 - FFM20370 - *** CHILD END ***
2024-05-02 13:54:08 - FFM20370 - STDOUT   =
2024-05-02 13:54:08 - FFM20370 -          = ffmpeg version 6.0-2 Copyright (c) 2000-2023 the FFmpeg developers
2024-05-02 13:54:08 - FFM20370 -          =   built with gcc 8.5.0 (GCC)
2024-05-02 13:54:08 - FFM20370 -          =   configuration: --target-os=linux --cross-prefix=/home/spksrc/ffmpeg4-dsm6-fix/spksrc/toolchain/syno-aarch64-7.1/work/a
2024-05-02 13:54:08 - FFM20370 -          = arch64-unknown-linux-gnu/bin/aarch64-unknown-linux-gnu- --prefix=/var/packages/ffmpeg6/target --extra-cflags=-I/home/spk
2024-05-02 13:54:08 - FFM20370 -          = src/ffmpeg4-dsm6-fix/spksrc/spk/ffmpeg6/work-aarch64-7.1/install/var/packages/ffmpeg6/target/include --extra-ldflags=-L/
2024-05-02 13:54:08 - FFM20370 -          = home/spksrc/ffmpeg4-dsm6-fix/spksrc/spk/ffmpeg6/work-aarch64-7.1/install/var/packages/ffmpeg6/target/lib --extra-libs='-
2024-05-02 13:54:08 - FFM20370 -          = lxml2 -ldl -lm' --pkg-config=/usr/bin/pkg-config --ranlib=/home/spksrc/ffmpeg4-dsm6-fix/spksrc/toolchain/syno-aarch64-7.
2024-05-02 13:54:08 - FFM20370 -          = 1/work/aarch64-unknown-linux-gnu/bin/aarch64-unknown-linux-gnu-ranlib --enable-cross-compile --enable-rpath --enable-pic
2024-05-02 13:54:08 - FFM20370 -          =  --enable-shared --enable-gpl --enable-version3 --disable-debug --disable-static --disable-doc --extra-version=2 --extra
2024-05-02 13:54:08 - FFM20370 -          = -cflags=-DSYNO_VIDEOSTATION --extra-cflags=-fno-if-conversion --extra-cflags=-O3 --extra-cflags=-Wno-deprecated-declarat
2024-05-02 13:54:08 - FFM20370 -          = ions --enable-libcodec2 --enable-libxml2 --enable-demuxer=dash --enable-libfontconfig --enable-libfreetype --enable-libf
2024-05-02 13:54:08 - FFM20370 -          = ribidi --enable-libopenjpeg --enable-libmp3lame --enable-libbluray --enable-libspeex --enable-libtheora --enable-libcaca
2024-05-02 13:54:08 - FFM20370 -          =  --enable-libdc1394 --enable-libvorbis --enable-libwebp --enable-libzmq --enable-gnutls --enable-libopenh264 --enable-li
2024-05-02 13:54:08 - FFM20370 -          = bopus --enable-libsoxr --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-librabbitmq --enable-libtwolame --
2024-05-02 13:54:08 - FFM20370 -          = enable-libzvbi --enable-libx264 --enable-libx265 --enable-libvpx --enable-libshine --enable-chromaprint --enable-libdav1
2024-05-02 13:54:08 - FFM20370 -          = d --enable-librist --enable-libzimg --enable-libfdk-aac --enable-nonfree --enable-libaom --enable-libsvtav1 --arch=arm64
2024-05-02 13:54:08 - FFM20370 -          =  --enable-neon --enable-thumb --enable-libass --enable-frei0r
2024-05-02 13:54:08 - FFM20370 -          =   libavutil      58.  2.100 / 58.  2.100
2024-05-02 13:54:08 - FFM20370 -          =   libavcodec     60.  3.100 / 60.  3.100
2024-05-02 13:54:08 - FFM20370 -          =   libavformat    60.  3.100 / 60.  3.100
2024-05-02 13:54:08 - FFM20370 -          =   libavdevice    60.  1.100 / 60.  1.100
2024-05-02 13:54:08 - FFM20370 -          =   libavfilter     9.  3.100 /  9.  3.100
2024-05-02 13:54:08 - FFM20370 -          =   libswscale      7.  1.100 /  7.  1.100
2024-05-02 13:54:08 - FFM20370 -          =   libswresample   4. 10.100 /  4. 10.100
2024-05-02 13:54:08 - FFM20370 -          =   libpostproc    57.  1.100 / 57.  1.100
2024-05-02 13:54:08 - FFM20370 -          = pipe:: Invalid data found when processing input
2024-05-02 13:54:08 - FFM20370 - MODE     = WRAPPER_SINGLE-VS
2024-05-02 13:54:08 - FFM20370 - FFMPEG   = /var/packages/ffmpeg6/target/bin/ffmpeg
2024-05-02 13:54:08 - FFM20370 - PARAM_WRAP   =
2024-05-02 13:54:08 - FFM20370 -          = -i - -map 0 -codec copy -f segment -segment_time 5 -segment_start_number 0 -hls_seek_time 0 /tmp/VideoStation/HLS/d
2024-05-02 13:54:08 - FFM20370 -          = be016360bd736d815bf2e9ff6b698dd_VgFqtC4u/slice-%05d.ts
2024-05-02 13:54:08 - FFM20370 - CHILDPID = 20481
2024-05-02 13:54:08 - FFM20370 - STDOUT   =
2024-05-02 13:54:08 - FFM20370 -          = ffmpeg version 6.0-2 Copyright (c) 2000-2023 the FFmpeg developers
2024-05-02 13:54:08 - FFM20370 -          =   built with gcc 8.5.0 (GCC)
2024-05-02 13:54:08 - FFM20370 -          =   configuration: --target-os=linux --cross-prefix=/home/spksrc/ffmpeg4-dsm6-fix/spksrc/toolchain/syno-aarch64-7.1/work/a
2024-05-02 13:54:08 - FFM20370 -          = arch64-unknown-linux-gnu/bin/aarch64-unknown-linux-gnu- --prefix=/var/packages/ffmpeg6/target --extra-cflags=-I/home/spk
2024-05-02 13:54:08 - FFM20370 -          = src/ffmpeg4-dsm6-fix/spksrc/spk/ffmpeg6/work-aarch64-7.1/install/var/packages/ffmpeg6/target/include --extra-ldflags=-L/
2024-05-02 13:54:08 - FFM20370 -          = home/spksrc/ffmpeg4-dsm6-fix/spksrc/spk/ffmpeg6/work-aarch64-7.1/install/var/packages/ffmpeg6/target/lib --extra-libs='-
2024-05-02 13:54:08 - FFM20370 -          = lxml2 -ldl -lm' --pkg-config=/usr/bin/pkg-config --ranlib=/home/spksrc/ffmpeg4-dsm6-fix/spksrc/toolchain/syno-aarch64-7.
2024-05-02 13:54:08 - FFM20370 -          = 1/work/aarch64-unknown-linux-gnu/bin/aarch64-unknown-linux-gnu-ranlib --enable-cross-compile --enable-rpath --enable-pic
2024-05-02 13:54:08 - FFM20370 -          =  --enable-shared --enable-gpl --enable-version3 --disable-debug --disable-static --disable-doc --extra-version=2 --extra
2024-05-02 13:54:08 - FFM20370 -          = -cflags=-DSYNO_VIDEOSTATION --extra-cflags=-fno-if-conversion --extra-cflags=-O3 --extra-cflags=-Wno-deprecated-declarat
2024-05-02 13:54:08 - FFM20370 -          = ions --enable-libcodec2 --enable-libxml2 --enable-demuxer=dash --enable-libfontconfig --enable-libfreetype --enable-libf
2024-05-02 13:54:08 - FFM20370 -          = ribidi --enable-libopenjpeg --enable-libmp3lame --enable-libbluray --enable-libspeex --enable-libtheora --enable-libcaca
2024-05-02 13:54:08 - FFM20370 -          =  --enable-libdc1394 --enable-libvorbis --enable-libwebp --enable-libzmq --enable-gnutls --enable-libopenh264 --enable-li
2024-05-02 13:54:08 - FFM20370 -          = bopus --enable-libsoxr --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-librabbitmq --enable-libtwolame --
2024-05-02 13:54:08 - FFM20370 -          = enable-libzvbi --enable-libx264 --enable-libx265 --enable-libvpx --enable-libshine --enable-chromaprint --enable-libdav1
2024-05-02 13:54:08 - FFM20370 -          = d --enable-librist --enable-libzimg --enable-libfdk-aac --enable-nonfree --enable-libaom --enable-libsvtav1 --arch=arm64
2024-05-02 13:54:08 - FFM20370 -          =  --enable-neon --enable-thumb --enable-libass --enable-frei0r
2024-05-02 13:54:08 - FFM20370 -          =   libavutil      58.  2.100 / 58.  2.100
2024-05-02 13:54:08 - FFM20370 -          =   libavcodec     60.  3.100 / 60.  3.100
2024-05-02 13:54:08 - FFM20370 -          =   libavformat    60.  3.100 / 60.  3.100
2024-05-02 13:54:08 - FFM20370 -          =   libavdevice    60.  1.100 / 60.  1.100
2024-05-02 13:54:08 - FFM20370 -          =   libavfilter     9.  3.100 /  9.  3.100
2024-05-02 13:54:08 - FFM20370 -          =   libswscale      7.  1.100 /  7.  1.100
2024-05-02 13:54:08 - FFM20370 -          =   libswresample   4. 10.100 /  4. 10.100
2024-05-02 13:54:08 - FFM20370 -          =   libpostproc    57.  1.100 / 57.  1.100
2024-05-02 13:54:08 - FFM20370 -          = fd:: Invalid data found when processing input
2024-05-02 13:54:08 - FFM20370 - *** CHILD END ***
2024-05-02 13:54:08 - FFM20370 - *** PROCESS END ***

I also try to re-encode the audio stream of this video into the FLAC format:

General
Complete name                            : \\192.168.52.218\video\tvshow\output2.mp4
Format                                   : MPEG-4
Format profile                           : Base Media
Codec ID                                 : isom (isom/iso2/avc1/mp41)
File size                                : 844 MiB
Duration                                 : 23 min 50 s
Overall bit rate mode                    : Variable
Overall bit rate                         : 4 953 kb/s
Frame rate                               : 23.976 FPS
Writing application                      : Lavf60.3.100

Video
ID                                       : 1
Format                                   : AVC
Format/Info                              : Advanced Video Codec
Format profile                           : High@L4
Format settings                          : CABAC / 4 Ref Frames
Format settings, CABAC                   : Yes
Format settings, Reference frames        : 4 frames
Codec ID                                 : avc1
Codec ID/Info                            : Advanced Video Coding
Duration                                 : 23 min 50 s
Bit rate mode                            : Constant
Bit rate                                 : 3 700 kb/s
Width                                    : 1 920 pixels
Height                                   : 1 080 pixels
Display aspect ratio                     : 16:9
Frame rate mode                          : Constant
Frame rate                               : 23.976 (24000/1001) FPS
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Scan type                                : Progressive
Bits/(Pixel*Frame)                       : 0.074
Stream size                              : 631 MiB (75%)
Color range                              : Limited
Color primaries                          : BT.709
Transfer characteristics                 : BT.709
Matrix coefficients                      : BT.709
Codec configuration box                  : avcC

Audio
ID                                       : 2
Format                                   : FLAC
Format/Info                              : Free Lossless Audio Codec
Codec ID                                 : fLaC
Duration                                 : 23 min 50 s
Bit rate mode                            : Variable
Bit rate                                 : 1 249 kb/s
Channel(s)                               : 2 channels
Channel layout                           : L R
Sampling rate                            : 48.0 kHz
Bit depth                                : 24 bits
Compression mode                         : Lossless
Stream size                              : 213 MiB (25%)
Default                                  : Yes
Alternate group                          : 1
MD5 of the unencoded content             : F4CAEB13EBDCF32F1B2BE088B2A9F03D

Then I received an almost identical error log:

2024-05-02 13:57:23 - FFM20815 - *** PROCESS START REV AME_12.4.5 DSds218 (rtd1296) PID 20815 ***
2024-05-02 13:57:23 - FFM20815 - MOVIE    = -
2024-05-02 13:57:23 - FFM20815 - VCODEC   =  ()
2024-05-02 13:57:23 - FFM20815 - ACODEC   =
2024-05-02 13:57:23 - FFM20815 - PARAM_ORIG  =
2024-05-02 13:57:23 - FFM20815 -          = -i - -map 0 -codec copy -f segment -segment_time 5 -segment_start_number 0 -hls_seek_time 0 /tmp/VideoStation/HLS/4
2024-05-02 13:57:23 - FFM20815 -          = a71ad1307da9866b632727fe701687d_gGz74aXm/slice-%05d.ts
2024-05-02 13:57:23 - FFM20815 - MODE     = ORIG-VSMS
2024-05-02 13:57:23 - FFM20815 - FFMPEG   = /var/packages/CodecPack/target/pack/bin/ffmpeg41.orig
2024-05-02 13:57:23 - FFM20815 - PARAM_WRAP  =
2024-05-02 13:57:23 - FFM20815 -          = -i - -map 0 -codec copy -f segment -segment_time 5 -segment_start_number 0 -hls_seek_time 0 /tmp/VideoStation/HLS/4
2024-05-02 13:57:23 - FFM20815 -          = a71ad1307da9866b632727fe701687d_gGz74aXm/slice-%05d.ts
2024-05-02 13:57:23 - FFM20815 - CHILDPID = 20869
2024-05-02 13:57:23 - FFM20815 - *** CHILD END ***
2024-05-02 13:57:23 - FFM20815 - STDOUT   =
2024-05-02 13:57:23 - FFM20815 -          = ffmpeg version 4.1.9 Copyright (c) 2000-2022 the FFmpeg developers
2024-05-02 13:57:23 - FFM20815 -          =   built with gcc 12.2.0 (GCC)
2024-05-02 13:57:23 - FFM20815 -          =   configuration: --prefix=/usr/pkg --pkg-config=/usr/bin/pkg-config --incdir='${prefix}/include/ffmpeg' --arch=arm64 --t
2024-05-02 13:57:23 - FFM20815 -          = arget-os=linux --cross-prefix=/usr/local/aarch64-unknown-linux-gnu/bin/aarch64-unknown-linux-gnu- --enable-cross-compile
2024-05-02 13:57:23 - FFM20815 -          =  --enable-optimizations --enable-pic --enable-gpl --enable-shared --disable-static --enable-version3 --enable-encoders -
2024-05-02 13:57:23 - FFM20815 -          = -enable-pthreads --disable-protocols --disable-protocol=rtp --enable-protocol=file --enable-protocol=http --enable-proto
2024-05-02 13:57:23 - FFM20815 -          = col=https --enable-protocol=pipe --disable-muxer=image2 --disable-muxer=image2pipe --disable-swscale-alpha --disable-ffp
2024-05-02 13:57:23 - FFM20815 -          = lay --disable-ffprobe --disable-doc --disable-devices --disable-bzlib --disable-altivec --enable-libopencore-amrnb --ena
2024-05-02 13:57:23 - FFM20815 -          = ble-libopencore-amrwb --enable-libmp3lame --disable-cuvid --disable-nvenc --disable-decoder=amrnb --disable-encoder=zmbv
2024-05-02 13:57:23 - FFM20815 -          =  --disable-encoder=dca --disable-decoder=dca --disable-encoder=ac3 --disable-encoder=ac3_fixed --disable-encoder=eac3 --
2024-05-02 13:57:23 - FFM20815 -          = disable-decoder=eac3 --disable-encoder=truehd --disable-decoder=truehd --disable-decoder=aac --disable-decoder=aac_fixed
2024-05-02 13:57:23 - FFM20815 -          =  --disable-encoder=aac --enable-libx264 --enable-encoder=libx264 --extra-cflags=-I/usr/local/aarch64-unknown-linux-gnu/a
2024-05-02 13:57:23 - FFM20815 -          = arch64-unknown-linux-gnu/sysroot//usr/pkg/include --extra-ldflags=-L/usr/local/aarch64-unknown-linux-gnu/aarch64-unknown
2024-05-02 13:57:23 - FFM20815 -          = -linux-gnu/sysroot//usr/pkg/lib
2024-05-02 13:57:23 - FFM20815 -          =   libavutil      56. 22.100 / 56. 22.100
2024-05-02 13:57:23 - FFM20815 -          =   libavcodec     58. 35.100 / 58. 35.100
2024-05-02 13:57:23 - FFM20815 -          =   libavformat    58. 20.100 / 58. 20.100
2024-05-02 13:57:23 - FFM20815 -          =   libavdevice    58.  5.100 / 58.  5.100
2024-05-02 13:57:23 - FFM20815 -          =   libavfilter     7. 40.101 /  7. 40.101
2024-05-02 13:57:23 - FFM20815 -          =   libswscale      5.  3.100 /  5.  3.100
2024-05-02 13:57:23 - FFM20815 -          =   libswresample   3.  3.100 /  3.  3.100
2024-05-02 13:57:23 - FFM20815 -          =   libpostproc    55.  3.100 / 55.  3.100
2024-05-02 13:57:23 - FFM20815 -          = pipe:: Invalid data found when processing input
2024-05-02 13:57:23 - FFM20815 - MODE     = PIPE V_ORIG-A_WRAP-VS
2024-05-02 13:57:23 - FFM20815 - FFMPEG1  = /var/packages/CodecPack/target/pack/bin/ffmpeg41.orig
2024-05-02 13:57:23 - FFM20815 - FFMPEG2  = /var/packages/ffmpeg6/target/bin/ffmpeg
2024-05-02 13:57:23 - FFM20815 - PARAM_WRAP1   =
2024-05-02 13:57:23 - FFM20815 -          = -i - -map 0 -codec copy -f mpegts -bufsize 8192k pipe:
2024-05-02 13:57:23 - FFM20815 - PARAM_WRAP2   =
2024-05-02 13:57:23 - FFM20815 -          = -i pipe: -map 0:0 -map 0:1 -map 0:1 -codec copy -f segment -segment_time 5 -segment_start_number 0 -hls_seek_time 0
2024-05-02 13:57:23 - FFM20815 -          =  /tmp/VideoStation/HLS/4a71ad1307da9866b632727fe701687d_gGz74aXm/slice-%05d.ts$
2024-05-02 13:57:23 - FFM20815 - CHILDPID = 20905
2024-05-02 13:57:23 - FFM20815 - *** CHILD END ***
2024-05-02 13:57:23 - FFM20815 - STDOUT   =
2024-05-02 13:57:23 - FFM20815 -          = ffmpeg version 6.0-2 Copyright (c) 2000-2023 the FFmpeg developers
2024-05-02 13:57:23 - FFM20815 -          =   built with gcc 8.5.0 (GCC)
2024-05-02 13:57:23 - FFM20815 -          =   configuration: --target-os=linux --cross-prefix=/home/spksrc/ffmpeg4-dsm6-fix/spksrc/toolchain/syno-aarch64-7.1/work/a
2024-05-02 13:57:23 - FFM20815 -          = arch64-unknown-linux-gnu/bin/aarch64-unknown-linux-gnu- --prefix=/var/packages/ffmpeg6/target --extra-cflags=-I/home/spk
2024-05-02 13:57:23 - FFM20815 -          = src/ffmpeg4-dsm6-fix/spksrc/spk/ffmpeg6/work-aarch64-7.1/install/var/packages/ffmpeg6/target/include --extra-ldflags=-L/
2024-05-02 13:57:23 - FFM20815 -          = home/spksrc/ffmpeg4-dsm6-fix/spksrc/spk/ffmpeg6/work-aarch64-7.1/install/var/packages/ffmpeg6/target/lib --extra-libs='-
2024-05-02 13:57:23 - FFM20815 -          = lxml2 -ldl -lm' --pkg-config=/usr/bin/pkg-config --ranlib=/home/spksrc/ffmpeg4-dsm6-fix/spksrc/toolchain/syno-aarch64-7.
2024-05-02 13:57:23 - FFM20815 -          = 1/work/aarch64-unknown-linux-gnu/bin/aarch64-unknown-linux-gnu-ranlib --enable-cross-compile --enable-rpath --enable-pic
2024-05-02 13:57:23 - FFM20815 -          =  --enable-shared --enable-gpl --enable-version3 --disable-debug --disable-static --disable-doc --extra-version=2 --extra
2024-05-02 13:57:23 - FFM20815 -          = -cflags=-DSYNO_VIDEOSTATION --extra-cflags=-fno-if-conversion --extra-cflags=-O3 --extra-cflags=-Wno-deprecated-declarat
2024-05-02 13:57:23 - FFM20815 -          = ions --enable-libcodec2 --enable-libxml2 --enable-demuxer=dash --enable-libfontconfig --enable-libfreetype --enable-libf
2024-05-02 13:57:23 - FFM20815 -          = ribidi --enable-libopenjpeg --enable-libmp3lame --enable-libbluray --enable-libspeex --enable-libtheora --enable-libcaca
2024-05-02 13:57:23 - FFM20815 -          =  --enable-libdc1394 --enable-libvorbis --enable-libwebp --enable-libzmq --enable-gnutls --enable-libopenh264 --enable-li
2024-05-02 13:57:23 - FFM20815 -          = bopus --enable-libsoxr --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-librabbitmq --enable-libtwolame --
2024-05-02 13:57:23 - FFM20815 -          = enable-libzvbi --enable-libx264 --enable-libx265 --enable-libvpx --enable-libshine --enable-chromaprint --enable-libdav1
2024-05-02 13:57:23 - FFM20815 -          = d --enable-librist --enable-libzimg --enable-libfdk-aac --enable-nonfree --enable-libaom --enable-libsvtav1 --arch=arm64
2024-05-02 13:57:23 - FFM20815 -          =  --enable-neon --enable-thumb --enable-libass --enable-frei0r
2024-05-02 13:57:23 - FFM20815 -          =   libavutil      58.  2.100 / 58.  2.100
2024-05-02 13:57:23 - FFM20815 -          =   libavcodec     60.  3.100 / 60.  3.100
2024-05-02 13:57:23 - FFM20815 -          =   libavformat    60.  3.100 / 60.  3.100
2024-05-02 13:57:23 - FFM20815 -          =   libavdevice    60.  1.100 / 60.  1.100
2024-05-02 13:57:23 - FFM20815 -          =   libavfilter     9.  3.100 /  9.  3.100
2024-05-02 13:57:23 - FFM20815 -          =   libswscale      7.  1.100 /  7.  1.100
2024-05-02 13:57:23 - FFM20815 -          =   libswresample   4. 10.100 /  4. 10.100
2024-05-02 13:57:23 - FFM20815 -          =   libpostproc    57.  1.100 / 57.  1.100
2024-05-02 13:57:23 - FFM20815 -          = pipe:: Invalid data found when processing input
2024-05-02 13:57:23 - FFM20815 - MODE     = WRAPPER_SINGLE-VS
2024-05-02 13:57:23 - FFM20815 - FFMPEG   = /var/packages/ffmpeg6/target/bin/ffmpeg
2024-05-02 13:57:23 - FFM20815 - PARAM_WRAP   =
2024-05-02 13:57:23 - FFM20815 -          = -i - -map 0 -codec copy -f segment -segment_time 5 -segment_start_number 0 -hls_seek_time 0 /tmp/VideoStation/HLS/4
2024-05-02 13:57:23 - FFM20815 -          = a71ad1307da9866b632727fe701687d_gGz74aXm/slice-%05d.ts
2024-05-02 13:57:23 - FFM20815 - CHILDPID = 20930
2024-05-02 13:57:23 - FFM20815 - STDOUT   =
2024-05-02 13:57:23 - FFM20815 -          = ffmpeg version 6.0-2 Copyright (c) 2000-2023 the FFmpeg developers
2024-05-02 13:57:23 - FFM20815 -          =   built with gcc 8.5.0 (GCC)
2024-05-02 13:57:23 - FFM20815 -          =   configuration: --target-os=linux --cross-prefix=/home/spksrc/ffmpeg4-dsm6-fix/spksrc/toolchain/syno-aarch64-7.1/work/a
2024-05-02 13:57:23 - FFM20815 -          = arch64-unknown-linux-gnu/bin/aarch64-unknown-linux-gnu- --prefix=/var/packages/ffmpeg6/target --extra-cflags=-I/home/spk
2024-05-02 13:57:23 - FFM20815 -          = src/ffmpeg4-dsm6-fix/spksrc/spk/ffmpeg6/work-aarch64-7.1/install/var/packages/ffmpeg6/target/include --extra-ldflags=-L/
2024-05-02 13:57:23 - FFM20815 -          = home/spksrc/ffmpeg4-dsm6-fix/spksrc/spk/ffmpeg6/work-aarch64-7.1/install/var/packages/ffmpeg6/target/lib --extra-libs='-
2024-05-02 13:57:23 - FFM20815 -          = lxml2 -ldl -lm' --pkg-config=/usr/bin/pkg-config --ranlib=/home/spksrc/ffmpeg4-dsm6-fix/spksrc/toolchain/syno-aarch64-7.
2024-05-02 13:57:23 - FFM20815 -          = 1/work/aarch64-unknown-linux-gnu/bin/aarch64-unknown-linux-gnu-ranlib --enable-cross-compile --enable-rpath --enable-pic
2024-05-02 13:57:23 - FFM20815 -          =  --enable-shared --enable-gpl --enable-version3 --disable-debug --disable-static --disable-doc --extra-version=2 --extra
2024-05-02 13:57:23 - FFM20815 -          = -cflags=-DSYNO_VIDEOSTATION --extra-cflags=-fno-if-conversion --extra-cflags=-O3 --extra-cflags=-Wno-deprecated-declarat
2024-05-02 13:57:23 - FFM20815 -          = ions --enable-libcodec2 --enable-libxml2 --enable-demuxer=dash --enable-libfontconfig --enable-libfreetype --enable-libf
2024-05-02 13:57:23 - FFM20815 -          = ribidi --enable-libopenjpeg --enable-libmp3lame --enable-libbluray --enable-libspeex --enable-libtheora --enable-libcaca
2024-05-02 13:57:23 - FFM20815 -          =  --enable-libdc1394 --enable-libvorbis --enable-libwebp --enable-libzmq --enable-gnutls --enable-libopenh264 --enable-li
2024-05-02 13:57:23 - FFM20815 -          = bopus --enable-libsoxr --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-librabbitmq --enable-libtwolame --
2024-05-02 13:57:23 - FFM20815 -          = enable-libzvbi --enable-libx264 --enable-libx265 --enable-libvpx --enable-libshine --enable-chromaprint --enable-libdav1
2024-05-02 13:57:23 - FFM20815 -          = d --enable-librist --enable-libzimg --enable-libfdk-aac --enable-nonfree --enable-libaom --enable-libsvtav1 --arch=arm64
2024-05-02 13:57:23 - FFM20815 -          =  --enable-neon --enable-thumb --enable-libass --enable-frei0r
2024-05-02 13:57:23 - FFM20815 -          =   libavutil      58.  2.100 / 58.  2.100
2024-05-02 13:57:23 - FFM20815 -          =   libavcodec     60.  3.100 / 60.  3.100
2024-05-02 13:57:23 - FFM20815 -          =   libavformat    60.  3.100 / 60.  3.100
2024-05-02 13:57:23 - FFM20815 -          =   libavdevice    60.  1.100 / 60.  1.100
2024-05-02 13:57:23 - FFM20815 -          =   libavfilter     9.  3.100 /  9.  3.100
2024-05-02 13:57:23 - FFM20815 -          =   libswscale      7.  1.100 /  7.  1.100
2024-05-02 13:57:23 - FFM20815 -          =   libswresample   4. 10.100 /  4. 10.100
2024-05-02 13:57:23 - FFM20815 -          =   libpostproc    57.  1.100 / 57.  1.100
2024-05-02 13:57:23 - FFM20815 -          = fd:: Invalid data found when processing input
2024-05-02 13:57:23 - FFM20815 - *** CHILD END ***
2024-05-02 13:57:23 - FFM20815 - *** PROCESS END ***

This is a bit strange; it appears that the transcoding functionality has never worked properly. I even suspected that there might be a hardware issue with the device. However, there are actually some videos that can be transcoded correctly, for example, this video:

Format                                   : Matroska
Format version                           : Version 4
File size                                : 1.05 GiB
Duration                                 : 23 min 43 s
Overall bit rate mode                    : Variable
Overall bit rate                         : 6 338 kb/s
Frame rate                               : 23.976 FPS
Encoded date                             : 2022-07-06 23:37:17 UTC
Writing application                      : mkvmerge v67.0.0 ('Under Stars') 64-bit
Writing library                          : libebml v1.4.2 + libmatroska v1.6.4
Attachments                              : WVDLGA0P Regular.ttf

Video
ID                                       : 1
Format                                   : HEVC
Format/Info                              : High Efficiency Video Coding
Format profile                           : Main 10@L4.1@High
Codec ID                                 : V_MPEGH/ISO/HEVC
Duration                                 : 23 min 43 s
Bit rate                                 : 4 909 kb/s
Width                                    : 1 920 pixels
Height                                   : 1 080 pixels
Display aspect ratio                     : 16:9
Frame rate mode                          : Variable
Frame rate                               : 23.976 (24000/1001) FPS
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 10 bits
Bits/(Pixel*Frame)                       : 0.099
Stream size                              : 833 MiB (77%)
Writing library                          : x265 3.5+37+12-4e46995bc:[Windows][MSVC 1931][64 bit] 10bit
Encoding settings                        : cpuid=1111039 / frame-threads=3 / numa-pools=12 / wpp / no-pmode / no-pme / no-psnr / no-ssim / log-level=2 / input-csp=1 / input-res=1920x1080 / interlace=0 / total-frames=34118 / level-idc=41 / high-tier=1 / uhd-bd=0 / ref=4 / no-allow-non-conformance / no-repeat-headers / annexb / no-aud / no-eob / no-eos / no-hrd / info / hash=0 / no-temporal-layers / no-open-gop / min-keyint=1 / keyint=250 / gop-lookahead=0 / bframes=8 / b-adapt=2 / b-pyramid / bframe-bias=0 / rc-lookahead=60 / lookahead-slices=0 / scenecut=40 / no-hist-scenecut / radl=0 / no-splice / no-intra-refresh / ctu=32 / min-cu-size=8 / no-rect / no-amp / max-tu-size=32 / tu-inter-depth=3 / tu-intra-depth=3 / limit-tu=4 / rdoq-level=2 / dynamic-rd=0.00 / no-ssim-rd / signhide / no-tskip / nr-intra=0 / nr-inter=0 / no-constrained-intra / no-strong-intra-smoothing / max-merge=4 / limit-refs=1 / limit-modes / me=3 / subme=4 / merange=38 / temporal-mvp / no-frame-dup / no-hme / weightp / weightb / no-analyze-src-pics / deblock=-1:-1 / no-sao / no-sao-non-deblock / rd=5 / selective-sao=0 / no-early-skip / rskip / no-fast-intra / no-tskip-fast / no-cu-lossless / b-intra / no-splitrd-skip / rdpenalty=0 / psy-rd=1.60 / psy-rdoq=1.00 / no-rd-refine / no-lossless / cbqpoffs=-2 / crqpoffs=-2 / rc=crf / crf=16.0 / qcomp=0.65 / qpstep=4 / stats-write=0 / stats-read=0 / vbv-maxrate=40000 / vbv-bufsize=40000 / vbv-init=0.9 / min-vbv-fullness=50.0 / max-vbv-fullness=80.0 / crf-max=0.0 / crf-min=0.0 / ipratio=1.40 / pbratio=1.20 / aq-mode=1 / aq-strength=0.80 / aq-bias-strength=1.00 / cutree / zone-count=0 / no-strict-cbr / qg-size=8 / no-rc-grain / qpmax=69 / qpmin=0 / no-const-vbv / sar=0 / overscan=0 / videoformat=5 / range=0 / colorprim=2 / transfer=2 / colormatrix=2 / chromaloc=0 / display-window=0 / cll=0,0 / min-luma=0 / max-luma=1023 / log2-max-poc-lsb=8 / vui-timing-info / vui-hrd-info / slices=1 / no-opt-qp-pps / no-opt-ref-list-length-pps / no-multi-pass-opt-rps / scenecut-bias=0.05 / hist-threshold=0.03 / no-opt-cu-delta-qp / no-aq-motion / no-hdr10 / no-hdr10-opt / no-dhdr10-opt / no-idr-recovery-sei / analysis-reuse-level=0 / analysis-save-reuse-level=0 / analysis-load-reuse-level=0 / scale-factor=0 / refine-intra=0 / refine-inter=0 / refine-mv=1 / refine-ctu-distortion=0 / no-limit-sao / ctu-info=0 / no-lowpass-dct / refine-analysis-type=0 / copy-pic=1 / max-ausize-factor=1.0 / no-dynamic-refine / no-single-sei / no-hevc-aq / no-svt / no-field / qp-adaptation-range=1.00 / scenecut-aware-qp=0conformance-window-offsets / right=0 / bottom=0 / decoder-max-rate=0 / no-vbv-live-multi-pass
Default                                  : Yes
Forced                                   : No

Audio
ID                                       : 2
Format                                   : FLAC
Format/Info                              : Free Lossless Audio Codec
Codec ID                                 : A_FLAC
Duration                                 : 23 min 43 s
Bit rate mode                            : Variable
Bit rate                                 : 1 423 kb/s
Channel(s)                               : 2 channels
Channel layout                           : L R
Sampling rate                            : 48.0 kHz
Frame rate                               : 10.417 FPS (4608 SPF)
Bit depth                                : 24 bits
Compression mode                         : Lossless
Stream size                              : 241 MiB (22%)
Writing library                          : Lavf59.20.101
Language                                 : Japanese
Default                                  : No
Forced                                   : No
MD5 of the unencoded content             : 79423A141CA93C759BB916EB87E8406B

and the log:

2024-05-02 14:04:03 - FFM21535 - *** PROCESS START REV AME_12.4.5 DSds218 (rtd1296) PID 21535 ***
2024-05-02 14:04:03 - FFM21535 - MOVIE    = -
2024-05-02 14:04:03 - FFM21535 - VCODEC   = h264 (High)
2024-05-02 14:04:03 - FFM21535 - ACODEC   =
2024-05-02 14:04:03 - FFM21535 - PARAM_ORIG  =
2024-05-02 14:04:03 - FFM21535 -          = -i - -map 0 -codec copy -f segment -segment_time 5 -segment_start_number 0 -hls_seek_time 0 /tmp/VideoStation/HLS/4
2024-05-02 14:04:03 - FFM21535 -          = c6d1a9dd266bb293c2186c82da08a5b_QeL06WHd/slice-%05d.ts
2024-05-02 14:04:03 - FFM21535 - MODE     = ORIG-VSMS
2024-05-02 14:04:03 - FFM21535 - FFMPEG   = /var/packages/CodecPack/target/pack/bin/ffmpeg41.orig
2024-05-02 14:04:03 - FFM21535 - PARAM_WRAP  =
2024-05-02 14:04:03 - FFM21535 -          = -i - -map 0 -codec copy -f segment -segment_time 5 -segment_start_number 0 -hls_seek_time 0 /tmp/VideoStation/HLS/4
2024-05-02 14:04:03 - FFM21535 -          = c6d1a9dd266bb293c2186c82da08a5b_QeL06WHd/slice-%05d.ts
2024-05-02 14:04:03 - FFM21535 - CHILDPID = 21602
2024-05-02 14:04:03 - FFM21535 - *** CHILD END ***
2024-05-02 14:04:03 - FFM21535 - STDOUT   =
2024-05-02 14:04:03 - FFM21535 -          = ffmpeg version 4.1.9 Copyright (c) 2000-2022 the FFmpeg developers
2024-05-02 14:04:03 - FFM21535 -          =   built with gcc 12.2.0 (GCC)
2024-05-02 14:04:03 - FFM21535 -          =   configuration: --prefix=/usr/pkg --pkg-config=/usr/bin/pkg-config --incdir='${prefix}/include/ffmpeg' --arch=arm64 --t
2024-05-02 14:04:03 - FFM21535 -          = arget-os=linux --cross-prefix=/usr/local/aarch64-unknown-linux-gnu/bin/aarch64-unknown-linux-gnu- --enable-cross-compile
2024-05-02 14:04:03 - FFM21535 -          =  --enable-optimizations --enable-pic --enable-gpl --enable-shared --disable-static --enable-version3 --enable-encoders -
2024-05-02 14:04:03 - FFM21535 -          = -enable-pthreads --disable-protocols --disable-protocol=rtp --enable-protocol=file --enable-protocol=http --enable-proto
2024-05-02 14:04:03 - FFM21535 -          = col=https --enable-protocol=pipe --disable-muxer=image2 --disable-muxer=image2pipe --disable-swscale-alpha --disable-ffp
2024-05-02 14:04:03 - FFM21535 -          = lay --disable-ffprobe --disable-doc --disable-devices --disable-bzlib --disable-altivec --enable-libopencore-amrnb --ena
2024-05-02 14:04:03 - FFM21535 -          = ble-libopencore-amrwb --enable-libmp3lame --disable-cuvid --disable-nvenc --disable-decoder=amrnb --disable-encoder=zmbv
2024-05-02 14:04:03 - FFM21535 -          =  --disable-encoder=dca --disable-decoder=dca --disable-encoder=ac3 --disable-encoder=ac3_fixed --disable-encoder=eac3 --
2024-05-02 14:04:03 - FFM21535 -          = disable-decoder=eac3 --disable-encoder=truehd --disable-decoder=truehd --disable-decoder=aac --disable-decoder=aac_fixed
2024-05-02 14:04:03 - FFM21535 -          =  --disable-encoder=aac --enable-libx264 --enable-encoder=libx264 --extra-cflags=-I/usr/local/aarch64-unknown-linux-gnu/a
2024-05-02 14:04:03 - FFM21535 -          = arch64-unknown-linux-gnu/sysroot//usr/pkg/include --extra-ldflags=-L/usr/local/aarch64-unknown-linux-gnu/aarch64-unknown
2024-05-02 14:04:03 - FFM21535 -          = -linux-gnu/sysroot//usr/pkg/lib
2024-05-02 14:04:03 - FFM21535 -          =   libavutil      56. 22.100 / 56. 22.100
2024-05-02 14:04:03 - FFM21535 -          =   libavcodec     58. 35.100 / 58. 35.100
2024-05-02 14:04:03 - FFM21535 -          =   libavformat    58. 20.100 / 58. 20.100
2024-05-02 14:04:03 - FFM21535 -          =   libavdevice    58.  5.100 / 58.  5.100
2024-05-02 14:04:03 - FFM21535 -          =   libavfilter     7. 40.101 /  7. 40.101
2024-05-02 14:04:03 - FFM21535 -          =   libswscale      5.  3.100 /  5.  3.100
2024-05-02 14:04:03 - FFM21535 -          =   libswresample   3.  3.100 /  3.  3.100
2024-05-02 14:04:03 - FFM21535 -          =   libpostproc    55.  3.100 / 55.  3.100
2024-05-02 14:04:03 - FFM21535 -          = pipe:: Invalid data found when processing input
2024-05-02 14:04:03 - FFM21535 - MODE     = PIPE V_ORIG-A_WRAP-VS
2024-05-02 14:04:03 - FFM21535 - FFMPEG1  = /var/packages/CodecPack/target/pack/bin/ffmpeg41.orig
2024-05-02 14:04:03 - FFM21535 - FFMPEG2  = /var/packages/ffmpeg6/target/bin/ffmpeg
2024-05-02 14:04:03 - FFM21535 - PARAM_WRAP1   =
2024-05-02 14:04:03 - FFM21535 -          = -i - -map 0 -codec copy -f mpegts -bufsize 8192k pipe:
2024-05-02 14:04:03 - FFM21535 - PARAM_WRAP2   =
2024-05-02 14:04:03 - FFM21535 -          = -i pipe: -map 0:0 -map 0:1 -map 0:1 -codec copy -f segment -segment_time 5 -segment_start_number 0 -hls_seek_time 0
2024-05-02 14:04:03 - FFM21535 -          =  /tmp/VideoStation/HLS/4c6d1a9dd266bb293c2186c82da08a5b_QeL06WHd/slice-%05d.ts$
2024-05-02 14:04:03 - FFM21535 - CHILDPID = 21638
2024-05-02 14:04:58 - FFM21535 - *** KILLCHILD ***
2024-05-02 14:04:58 - FFM21535 - *** CHILD END ***
2024-05-02 14:04:58 - FFM21535 - *** PROCESS END ***

During the playback of the video, the transcoding functionality operates smoothly and without any issues.


Am I missing something?

Best regards!

darknebular commented 4 months ago

It's strange, the Video Station send pipe:: and doesn´t send the path of the movie.

darknebular commented 4 months ago

The video Station send this: -i - -map 0 -codec copy -f segment -segment_time 5 -segment_start_number 0 -hls_seek_time 0 /tmp/VideoStation/HLS/4c6d1a9dd266bb293c2186c82da08a5b_QeL06WHd/slice-%05d.ts

And this is Strange

darknebular commented 4 months ago

And this is the mine: 2024-05-02 22:05:00 - FFM9934 - PARAM_ORIG = -ss 0.000 -vaapi_device /dev/dri/renderD128 -hwaccel vaapi -hwaccel_output_format vaapi -noautorotate -i /volume1/SERIES-DOCUMENTALES/FALLOUT/Fallout 1x01 El fin.mkv -vcodec h264_vaapi -vf format=nv12|vaapi,hwupload,scale_vaapi=w=1920:h=1072,scale_vaapi=format=nv12 -vsync 2 -bf 0 -vb 8000000 -acodec libmp3lame -ab 128K -ac 2 -f ssegment -segment_format mpegts -segment_list_type m3u8 -hls_seek_time 0 -segment_time 5 -segment_time_delta 0.000 -segment_start_number 00000 -a void_negative_ts 0 -break_non_keyframes 1 -max_muxing_queue_size 1024 -map 0:0 -map 0:1 /tmp/VideoStation/HLS/450a904098ad7a63bfa54b9aff08ed67_fAJJOXvl/slice-%05d.ts

yana9i commented 4 months ago

I'm not sure what happened. Should I try some lower version video station or DSM?

darknebular commented 4 months ago

I'm not sure what happened. Should I try some lower version video station or DSM?

I am not sure why your Video Station doesn't send the complete path of your video. I tested in several appliances and in all It sends correctly the complete path of the movie.

Untitled-code commented 2 weeks ago

Hello there! After installation of this script I can not play big media files (it causes infinite loop), just short ones. Those videos that worked before installation, doesn't work now. I have DS1621+. Can I fix it? Thanks for help in advance!

darknebular commented 1 week ago

play big media files (it causes infinite loop), just short ones. Those videos that worked before installation, doesn't work now. I have DS1621+. Can I fix it? Thanks for help in advance!

Have you had other Wrappers installed? If you click reinstall, the script will detect that you have a Wrapper installed and will try to uninstall everything, including other lesser-known Wrappers. Please send me the logs and we will study it, thank you.

Regards.

Untitled-code commented 1 week ago

Thanks so much for the reply. No I don't have any other Wrappers on the server. What kind for of the logs you ask? Unfortunetely the script doesn't generate wrapper_ffmpeg.log

darknebular commented 1 week ago

What kind for of the logs you ask? Unfortunetely the script doesn't generate wrapper_ffmpeg.log

If this file is not generated, then It is not correctly installed or the Wrapper is not installed in your server. Please reinstall the Wrapper again, thanks.

Untitled-code commented 1 week ago

Thanks. I removed and reinstalled the Wrapper with the flag --install. Here is the logs:

Please, What option wish to use?I
You have ALL necessary packages Installed, GOOD.
[2024-08-28 18:37:45] INFO: ==================== Installation of the Advanced Wrapper: START ====================
[2024-08-28 18:37:45] INFO: You are running DSM 7.2.1
[2024-08-28 18:37:45] INFO: DSM 7.2.1 is supported for this installer and the installer will tuned for your DSM
[2024-08-28 18:37:45] INFO: DSM 7.2.1 is using this path: /var/packages/CodecPack/target/pack/bin
[2024-08-28 18:37:45] INFO: DSM 7.2.1 is using this injector: X-Advanced
[2024-08-28 18:37:45] INFO: Backup the original ffmpeg41 as ffmpeg41.orig.
[2024-08-28 18:37:45] INFO: Creating the esqueleton of the ffmpeg41
[2024-08-28 18:37:45] INFO: Injection of the ffmpeg41 wrapper using this injector: X-Advanced.
[2024-08-28 18:37:46] INFO: Waiting for consolidate the download of the wrapper.
[2024-08-28 18:37:49] INFO: Fixing permissions of the ffmpeg41 wrapper.
[2024-08-28 18:37:49] INFO: Ensuring the existence of the new log file wrapper_ffmpeg and its access.
[2024-08-28 18:37:49] INFO: Installed correctly the wrapper41 in /var/packages/CodecPack/target/pack/bin
[2024-08-28 18:37:49] INFO: Adding of the KEY of this Wrapper in /tmp.
[2024-08-28 18:37:49] INFO: Installed correctly the KEY in /tmp
[2024-08-28 18:37:49] INFO: Backup the original libsynovte.so in VideoStation as libsynovte.so.orig.
[2024-08-28 18:37:49] INFO: Fixing permissions of /var/packages/VideoStation/target/lib/libsynovte.so.orig
[2024-08-28 18:37:49] INFO: Patching /var/packages/VideoStation/target/lib/libsynovte.so for compatibility with AAC, DTS, EAC3 and TrueHD
[2024-08-28 18:37:49] INFO: Modified correctly the file /var/packages/VideoStation/target/lib/libsynovte.so
[2024-08-28 18:37:49] INFO: Installed correctly the Advanced Wrapper in VideoStation.
[2024-08-28 18:37:49] INFO: Adding of the KEY of this Wrapper in DLNA MediaServer.
[2024-08-28 18:37:49] INFO: Installed correctly the KEY in /var/packages/MediaServer/target/bin
[2024-08-28 18:37:49] INFO: Backup the original libsynovte.so in MediaServer as libsynovte.so.orig.
[2024-08-28 18:37:49] INFO: Fixing permissions of /var/packages/MediaServer/target/lib/libsynovte.so.orig
[2024-08-28 18:37:49] INFO: Patching /var/packages/MediaServer/target/lib/libsynovte.so for compatibility with AAC, DTS, EAC3 and TrueHD
[2024-08-28 18:37:49] INFO: Modified correctly the file /var/packages/MediaServer/target/lib/libsynovte.so
[2024-08-28 18:37:49] INFO: Installed correctly the Advanced Wrapper in Media Server.
[2024-08-28 18:37:49] INFO: Restarting CodecPack...
restart package [CodecPack] successfully
[2024-08-28 18:37:52] INFO: Restarting VideoStation...
restart package [VideoStation] successfully
[2024-08-28 18:37:58] INFO: Restarting MediaServer...
restart package [MediaServer] successfully
[2024-08-28 18:38:04] INFO: ==================== Installation of the Advanced Wrapper: COMPLETE ====================

It didn't solved the problem, but /tmp/wrapper_ffmpeg.log appeared, It contains only installation process. No other updates after I played videos in VS.

root@XXX:~# tail -f /tmp/wrapper_ffmpeg.log
[2024-08-28 18:37:49] INFO: Fixing permissions of /var/packages/VideoStation/target/lib/libsynovte.so.orig
[2024-08-28 18:37:49] INFO: Patching /var/packages/VideoStation/target/lib/libsynovte.so for compatibility with AAC, DTS, EAC3 and TrueHD
[2024-08-28 18:37:49] INFO: Adding of the KEY of this Wrapper in DLNA MediaServer.
[2024-08-28 18:37:49] INFO: Backup the original libsynovte.so in MediaServer as libsynovte.so.orig.
[2024-08-28 18:37:49] INFO: Fixing permissions of /var/packages/MediaServer/target/lib/libsynovte.so.orig
[2024-08-28 18:37:49] INFO: Patching /var/packages/MediaServer/target/lib/libsynovte.so for compatibility with AAC, DTS, EAC3 and TrueHD
[2024-08-28 18:37:49] INFO: Restarting CodecPack...
[2024-08-28 18:37:52] INFO: Restarting VideoStation...
[2024-08-28 18:37:58] INFO: Restarting MediaServer...
[2024-08-28 18:38:04] INFO: ==================== Installation of the Advanced Wrapper: COMPLETE ====================
darknebular commented 1 week ago

What is your model? What codecs are you trying to see in VS?

Untitled-code commented 1 week ago

My model DS1621+. And I want to set eac3 codec

darknebular commented 1 week ago

If no new logs are generated that means that VS is not referring to FFmpeg from A.M.E.

maybe you are not using FFmpeg and are using other binaries like GStreamer?

Untitled-code commented 1 week ago

How to check it? I installed ffmpeg from Synology package center.

XXXX@XXXXX:~$ synopkg list | grep ffmpeg
ffmpeg6-6.0.1-3: FFmpeg is a complete, cross-platform solution to record, convert and stream audio and video. It includes libavcodec - the leading audio/video codec library.  More information from SynoCommunity FFmpeg package available at https://github.com/SynoCommunity/spksrc/wiki/FAQ-FFmpeg
darknebular commented 1 week ago

In the installation logs it does not appear that GStreamer has been installed.

Please, could you run this command?

cd /var/packages/VideoStation/target/bin/
ls -la | grep gst-inspect-1.0

Regards.

Untitled-code commented 1 week ago

thanks. you are right, no GStreamer has been installed.

XXX@nXXXXX:~$ cd /var/packages/VideoStation/target/bin/
XXX@nXXXXX:/var/packages/VideoStation/target/bin$ ls -la | grep gst-inspect-1.0
XXX@nXXXXX:/var/packages/VideoStation/target/bin$ ls -la
total 2424
drwxr-xr-x 1 VideoStation VideoStation    882 Dec 15  2023 .
drwxr-xr-x 1 VideoStation VideoStation    208 May 22 12:15 ..
-rwxr-xr-x 1 VideoStation VideoStation  70524 Dec 15  2023 cffmpeg
-rwxr-xr-x 1 VideoStation VideoStation  37466 Dec 15  2023 check_folder_conf
-rwsr-x--- 1 root         VideoStation  33316 Dec 15  2023 db_setup_handler
-rwxr-xr-x 1 VideoStation VideoStation  20810 Dec 15  2023 dtvstreamserver
-rwsr-x--- 1 root         VideoStation 271304 Dec 15  2023 ffmpeg
-rwxr-xr-x 1 VideoStation VideoStation 180064 Dec 15  2023 ffprobe
-rwxr-xr-x 1 VideoStation VideoStation 128091 Dec 15  2023 handle_ame_post_install
-rwxr-xr-x 1 VideoStation VideoStation  68208 Dec 15  2023 hdhomerun_config
-rwxr-xr-x 1 VideoStation VideoStation  29290 Dec 15  2023 hdhomerunscan
-rwxr-xr-x 1 VideoStation VideoStation  12450 Dec 15  2023 plugin_check
-rwxr-xr-x 1 VideoStation VideoStation  16985 Dec 15  2023 plugin_runner
-rwsr-x--- 1 root         VideoStation  46201 Dec 15  2023 synocodectool
-rwxr-xr-x 1 VideoStation VideoStation  12458 Dec 15  2023 synodtvd_ffmpeg_record
-rwxr-xr-x 1 VideoStation VideoStation  64478 Dec 15  2023 synodvbepg
-rwsr-x--- 1 root         VideoStation 116028 Dec 15  2023 synovideoconversion
-rwsr-x--- 1 root         VideoStation 119977 Dec 15  2023 synovideoindex
-rwsr-x--- 1 root         VideoStation 111763 Dec 15  2023 synovideopreprocess
-rwsr-x--- 1 root         VideoStation  12514 Dec 15  2023 synovideostation
-rwxr-xr-x 1 VideoStation VideoStation 292528 Dec 15  2023 synovideostation_check_need_codec
-rwxr-xr-x 1 VideoStation VideoStation 462552 Dec 15  2023 synovideostation_share_tool
-rwsr-x--- 1 root         VideoStation  41602 Dec 15  2023 synovideostation_update_conf
-rwsr-x--- 1 root         VideoStation  12450 Dec 15  2023 synovideostation_user_check
-rwsr-x--- 1 root         VideoStation  12474 Dec 15  2023 synovideostation_user_del
-rwsr-x--- 1 root         VideoStation 111691 Dec 15  2023 synovideosubtitleextraction
-rwxr-xr-x 1 VideoStation VideoStation  14832 Dec 15  2023 vainfo
-rwsr-x--- 1 root         VideoStation 107673 Dec 15  2023 video_hash

What can I do next then?

darknebular commented 1 week ago

Don't worry, everything is fine. The installer did not install it because your system DOES NOT have GStreamer. Use only FFmpeg.

If you try to open a video in Video Station using a web browser, will it play? Are logs generated?

darknebular commented 1 week ago

In AME have you got a green tick? image

Untitled-code commented 6 days ago

Screenshot from 2024-08-30 15-24-47 I just have HEVC codec installed. Strange. Yes, I always play videos in the browser (is there ant other way to do it?). No log generated:(

darknebular commented 6 days ago

If Video Station does not bypass the AME binary, there may be other codecs that are not supported, I mean perhaps a video codec like AV1 or similar codecs, regardless of whether the audio codec is EAC3 or DTS, etc.

What kind of codecs does that movie have? all, audio (I think you told me it was EAC3) and video, what codec is it? There is something in that file that VS doesn't like and that's why it doesn't send it to the AME binary. For this reason, no logs are generated. If the video codec is not supported by VS, the AME binary will not be used to transcode DTS, EAC3 or TrueHD. Have you tried another file or movie?

Regards.

Untitled-code commented 6 days ago

Sure, I have tried all videos on my NAS. After the Wrapper was installed I can not play big video (infinite loop), regardless of audio codec. Small videos 50-250 MB work well. Or maybe because small videos have one audiotrack (aac). I will check this

Untitled-code commented 6 days ago

The size doesn't matter. But I still doesn't get how it works. I test different formats. It works well with mp4 with audiotrack mp3. this file doesn't work:

Input #0, matroska,webm, from 'output_video.mkv':
  Metadata:
    title           : Mad Men - Season 2 Episode 6
    ENCODER         : Lavf58.76.100
  Duration: 00:47:53.92, start: 0.000000, bitrate: 5223 kb/s
  Stream #0:0(eng): Video: h264 (High), yuv420p(progressive), 1280x720 [SAR 1:1 DAR 16:9], 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc (default)
    Metadata:
      title           : Mad Men - Season 2 Episode 7
      DURATION        : 00:47:53.703000000
  Stream #0:1(rus): Audio: ac3, 48000 Hz, stereo, fltp, 192 kb/s (default)
    Metadata:
      title           : FOX Life @ DD 2.0
      DURATION        : 00:47:53.920000000

When I converted it to mp4 with mp3 it works.

Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'test_video_mp3.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    title           : Mad Men - Season 2 Episode 6
    encoder         : Lavf58.76.100
  Duration: 00:47:53.92, start: 0.000000, bitrate: 5225 kb/s
  Stream #0:0(eng): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], 5029 kb/s, 23.98 fps, 23.98 tbr, 16k tbn, 47.95 tbc (default)
    Metadata:
      handler_name    : VideoHandler
      vendor_id       : [0][0][0][0]
  Stream #0:1(rus): Audio: mp3 (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 192 kb/s (default)
    Metadata:
      handler_name    : SoundHandler
      vendor_id       : [0][0][0][0]

But mkv with mp3 doesn't work.

Input #0, matroska,webm, from 'output_video_mp3.mkv':
  Metadata:
    title           : Mad Men - Season 2 Episode 6
    ENCODER         : Lavf58.76.100
  Duration: 00:47:53.94, start: 0.000000, bitrate: 5224 kb/s
  Stream #0:0(eng): Video: h264 (High), yuv420p(progressive), 1280x720 [SAR 1:1 DAR 16:9], 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc (default)
    Metadata:
      title           : Mad Men - Season 2 Episode 7
      DURATION        : 00:47:53.726000000
  Stream #0:1(rus): Audio: mp3, 48000 Hz, stereo, fltp, 192 kb/s (default)
    Metadata:
      title           : FOX Life @ DD 2.0
      ENCODER         : Lavc58.134.100 libmp3lame
      DURATION        : 00:47:53.943000000