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

?

  1. Tip & Tech 게시판입니다.

    Date2014.12.11 ByJiondad Views2015 Votes0
    read more
  2. 파일명 자모 분리 해결 (프로그램 설치 없이)

    Date2023.03.12 ByJiondad Views640 Votes0
    Read More
  3. 무료 도장 이미지 만들기 사이트

    Date2023.03.12 ByJiondad Views395 Votes0
    Read More
  4. 윈도우 설치 후 추천 프로그램

    Date2023.03.12 ByJiondad Views703 Votes0
    Read More
  5. PDF 와 관련된 거의 모든 것을 도와주는 사이트

    Date2023.03.12 ByJiondad Views401 Votes0
    Read More
  6. 부동산 수수료 저렴한 곳

    Date2023.03.12 ByJiondad Views360 Votes0
    Read More
  7. Adobe Flash 지원 종료에 따른 대체 Flash 실행 방법 총정리

    Date2023.03.10 ByJiondad Views4951 Votes0
    Read More
  8. ASUS ROG Flow Z13 GZ301ZE-LD165W 인텔 i9-12900H/RTX3050Ti/16GB/1TB/120Hz/MUX스위치

    Date2023.03.10 ByJiondad Views379 Votes0
    Read More
  9. ASUS Zenbook 14X OLED UM5401QA-KN030 R9-5900HX/16GB/512GB/OLED/400nits/90Hz

    Date2023.03.10 ByJiondad Views394 Votes0
    Read More
  10. Synology VideoStation ffmpeg wrapper with DTS, EAC3 and TrueHD Support - Updated

    Date2023.02.15 ByJiondad Views383 Votes0
    Read More
  11. 2023년 한국은행 금융통화위원회 및 FOMC 일정

    Date2023.02.15 ByJiondad Views344 Votes0
    Read More
  12. 윈도우11 오프라인으로 설치하기

    Date2023.02.15 ByJiondad Views346 Votes0
    Read More
  13. Synology VideoStation ffmpeg wrapper with DTS, EAC3 and TrueHD Support

    Date2020.09.07 ByJiondad Views1055 Votes0
    Read More
  14. 드론 비행 가능 지역

    Date2017.05.19 ByJiondad Views342 Votes0
    Read More
  15. EPG 기능이 포함된 docker-tvheadend 이미지 소개 및 사용법

    Date2017.03.27 ByJiondad Views422 Votes0
    Read More
  16. Tvheadend EPG 등록 (External XMLTV 사용)

    Date2017.03.16 ByJiondad Views352 Votes0
    Read More
  17. ES 파일 탐색기 FTP 스트리밍하기 (안드로이드)

    Date2016.03.16 ByJiondad Views372 Votes0
    Read More
  18. Tvheadend 설정 백업 방법

    Date2016.03.15 ByJiondad Views347 Votes0
    Read More
  19. Synology Nas에서 Tvheadend를 이용하여 IPTV 송출

    Date2016.03.14 ByJiondad Views659 Votes0
    Read More
  20. 레지스트리를 수정하여 엑셀 2007 여러 창 띄우기 (Windows 7)

    Date2016.03.12 ByJiondad Views639 Votes0
    Read More
  21. Kodi (XBMC) Tvheadend IPTV 방송 시청하기

    Date2016.03.12 ByJiondad Views396 Votes0
    Read More
Board Pagination Prev 1 2 3 4 5 Next
/ 5