close_btn
로그인, 회원가입후 더 많은 혜택을 누리세요 로그인 회원가입 닫기
조회 수 1055 추천 수 0 댓글 0
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄

Original link of this gist: https://gist.github.com/BenjaminPoncet/bbef9edc1d0800528813e75c1669e57e

Installation instructions

The purpose of this script is to replace Synology VideoStation's ffmpeg by SynoCommunity's ffmpeg in order to increase Synology VideoStation's codec support such as DTS, EAC3 and TrueHD as well as various optimizations.
This wrapper script and these instructions are a kind of compilation of 278 comments on more than 2 years of exchanges on the following issue SynoCommunity/spksrc#2952

Dependencies

Installation (for rtd1296 armv8)

On last ARM NAS, Synology uses gstreamer to transcode video instead of ffmpeg. So that wrapper only partially works.
On the other hand, it's possible to get libs supporting DTS, EAC3 and TrueHD on VideoStation version 2.3.4 to use them on VideoStation version 2.4.6.
Here is how to proceed:

  • Uninstall VideoStation (you can keep the database, it will be recognized by version 2.3.4)
  • Download version 2.3.4 here
  • Install the SPK via the "Manual installation" of the "Package Center".
  • Connecting to the NAS via SSH with "admin" user (some help here)
  • Use the command sudo -i to switch to root user (same password as for "admin")
  • Copy / paste the following commands:
# Copy VideoStation's ffmpeg libs
cp -a /var/packages/VideoStation/target/lib/ffmpeg /tmp/
  • Update VideoStation in "Package Center"
  • Copy / paste the following commands:
# Save VideoStation's ffmpeg libs
mv -n /var/packages/VideoStation/target/lib/ffmpeg /var/packages/VideoStation/target/lib/ffmpeg.orig
# Replace by old VideoStation's ffmpeg libs
mv /tmp/ffmpeg /var/packages/VideoStation/target/lib/
# Save VideoStation's libsynovte.so
cp -n /var/packages/VideoStation/target/lib/libsynovte.so /var/packages/VideoStation/target/lib/libsynovte.so.orig
chown VideoStation:VideoStation /var/packages/VideoStation/target/lib/libsynovte.so.orig
# Patch libsynovte.so to authorize DTS, EAC3 and TrueHD
sed -i -e 's/eac3/3cae/' -e 's/dts/std/' -e 's/truehd/dheurt/' /var/packages/VideoStation/target/lib/libsynovte.so
  • Restart VideoStation (Stop/Start in "Package Center")

Uninstallation (for rtd1296 armv8)

  • Copy / paste the following commands:
# Restore VideoStation's ffmpeg libs, libsynovte.so
rm -f /var/packages/VideoStation/target/lib/ffmpeg
mv -f /var/packages/VideoStation/target/lib/ffmpeg.orig /var/packages/VideoStation/target/lib/ffmpeg
mv -f /var/packages/VideoStation/target/lib/libsynovte.so.orig /var/packages/VideoStation/target/lib/libsynovte.so
  • Or, more simply, uninstall and re-install VideoStation

Installation (for x64, x86 and old arm arch)

  • Connecting to the NAS via SSH with "admin" user (some help here)
  • Use the command sudo -i to switch to root user (same password as for "admin")
  • Copy / paste the following commands:
# Save VideoStation's ffmpeg
mv -n /var/packages/VideoStation/target/bin/ffmpeg /var/packages/VideoStation/target/bin/ffmpeg.orig
# Injecting the script (last revision aka 12)
wget -O - https://gist.githubusercontent.com/BenjaminPoncet/bbef9edc1d0800528813e75c1669e57e/raw/ffmpeg-wrapper > /var/packages/VideoStation/target/bin/ffmpeg
# Change ownership and mode of the script
chown root:VideoStation /var/packages/VideoStation/target/bin/ffmpeg
chmod 750 /var/packages/VideoStation/target/bin/ffmpeg
chmod u+s /var/packages/VideoStation/target/bin/ffmpeg
# Save VideoStation's libsynovte.so
cp -n /var/packages/VideoStation/target/lib/libsynovte.so /var/packages/VideoStation/target/lib/libsynovte.so.orig
chown VideoStation:VideoStation /var/packages/VideoStation/target/lib/libsynovte.so.orig
# Patch libsynovte.so to authorize DTS, EAC3 and TrueHD
sed -i -e 's/eac3/3cae/' -e 's/dts/std/' -e 's/truehd/dheurt/' /var/packages/VideoStation/target/lib/libsynovte.so
  • Restart VideoStation (Stop/Start in "Package Center")

Update the wrapper (for x64, x86 and old arm arch)

  • Copy / paste the following commands:
# Injecting the script (last revision aka 12)
wget -O - https://gist.githubusercontent.com/BenjaminPoncet/bbef9edc1d0800528813e75c1669e57e/raw/ffmpeg-wrapper > /var/packages/VideoStation/target/bin/ffmpeg

Uninstallation (for x64, x86 and old arm arch)

  • Copy / paste the following commands:
# Restore VideoStation's ffmpeg, libsynovte.so
mv -f /var/packages/VideoStation/target/bin/ffmpeg.orig /var/packages/VideoStation/target/bin/ffmpeg
mv -f /var/packages/VideoStation/target/lib/libsynovte.so.orig /var/packages/VideoStation/target/lib/libsynovte.so
  • Or, more simply, uninstall and re-install VideoStation

Feedback

Leaving a feedback when there is a problem or a suggestion is very useful but leaving one when everything is going well is just as useful.
If the wapper works well for you, please leave a comment with the following information (e.g.):

Synology DS718+ / DSM 6.2.2-24922 Update 4 / Video Station 2.4.6-1594 / ffmpeg 4.2.1-19 / ffmpeg wrapper (rev8):
Everything's working fine! But a high CPU load in h265 10bit 4k

Feel free to read the reviews already present in the Compatibility section, you will surely find useful information.

Compatibility

The wrapper is supposed to work with the latest versions of DSM / VideoStation for all Synology NAS.
Here below the list of the tests performed so far according to softwares different versions:

DSM 6.2.2 / Video Station 2.4.6 / ffmpeg 4.2.1-23

  • ffmpeg wrapper rev8-11
    • Synology DS918+: Test OK (Review) (Review)
    • Synology DS718+: Test OK (Review)
    • Synology DS218+: Test OK (Review)
    • Synology DS218: Test KO (Review)
    • Synology DS916+: Test OK (Review)
    • Synology DS216+II: Test OK (Review)
    • Synology DS414: Test OK (Review)
    • Synology DS214play: Test KO (Review)

Alternative

If you are uncomfortable with this procedure, if your NAS is not yet compatible with ffmpeg pre-release or if you can't get the desired result, you can also downgrade VideoStation to version 2.3.4 which is the latest version compatible with DTS, EAC3 and TrueHD by simply installing SynoCommunity ffmpeg and without any command line.

Here is the procedure to follow:

  • Uninstall VideoStation (you can keep the database, it will be recognized by version 2.3.4)
  • Download version 2.3.4 here
  • Install the SPK via the "Manual installation" of the "Package Center".
  • Install the latest ffmpeg version of SynoCommunity: https://synocommunity.com (with VideoStation version 2.3.4 the official ffmpeg version of SynoCommunity works)

Current issues

?

List of Articles
번호 제목 글쓴이 날짜 조회 수 추천 수
공지 Tip & Tech 게시판입니다. Jiondad 2014.12.11 2015 0
» Synology VideoStation ffmpeg wrapper with DTS, EAC3 and TrueHD Support Jiondad 2020.09.07 1055 0
31 윈도우11 오프라인으로 설치하기 Jiondad 2023.02.15 346 0
30 2023년 한국은행 금융통화위원회 및 FOMC 일정 Jiondad 2023.02.15 344 0
29 Synology VideoStation ffmpeg wrapper with DTS, EAC3 and TrueHD Support - Updated Jiondad 2023.02.15 383 0
28 ASUS Zenbook 14X OLED UM5401QA-KN030 R9-5900HX/16GB/512GB/OLED/400nits/90Hz Jiondad 2023.03.10 394 0
27 ASUS ROG Flow Z13 GZ301ZE-LD165W 인텔 i9-12900H/RTX3050Ti/16GB/1TB/120Hz/MUX스위치 Jiondad 2023.03.10 379 0
26 Adobe Flash 지원 종료에 따른 대체 Flash 실행 방법 총정리 Jiondad 2023.03.10 4951 0
25 부동산 수수료 저렴한 곳 Jiondad 2023.03.12 360 0
24 PDF 와 관련된 거의 모든 것을 도와주는 사이트 Jiondad 2023.03.12 401 0
23 윈도우 설치 후 추천 프로그램 Jiondad 2023.03.12 703 0
22 무료 도장 이미지 만들기 사이트 Jiondad 2023.03.12 395 0
21 파일명 자모 분리 해결 (프로그램 설치 없이) Jiondad 2023.03.12 640 0
20 무료 코딩 강의 사이트 4곳 Jiondad 2023.03.12 347 0
19 LGU+ 약정정보 secret Jiondad 2023.03.13 0 0
18 윈도우 관련 명령어 모음 Jiondad 2023.04.05 376 0
17 폴더 및 파일명 텍스트 추출 Jiondad 2023.04.17 520 0
16 L2 Switch Vlan 설정 방법 Jiondad 2023.04.18 388 0
15 신한카드 RPM Platinum# 무료주차 Jiondad 2023.05.06 378 0
14 Upgrading MySQL Databases from MariaDB 5 to MariaDB 10? Jiondad 2023.08.21 931 0
13 시놀로지 구형 모델 펌웨어/패키지 링크 Jiondad 2023.09.11 369 0
Board Pagination Prev 1 2 3 4 5 Next
/ 5