AlexPresso / VideoStation-FFMPEG-Patcher

Patcher to enable DTS, EAC3 and TrueHD transcoding support to Synology VideoStation (from DSM 6.2 to DSM 7.0 and above ; ffmpeg4, 5, 6, 7 ready)
1.06k stars 102 forks source link

ffmpeg27 not found when patching #31

Closed IvanaGyro closed 2 years ago

IvanaGyro commented 2 years ago

System details

Describe the bug An error shows that /var/packages/CodecPack/target/bin/ffmpeg27 is not exist while patching

ll /var/packages/CodecPack/target/bin after patching

root@userme:/tmp# ll /var/packages/CodecPack/target/bin
total 812
drwxr-xr-x 1 root root    188 May  9 20:58 .
drwxr-xr-x 1 root root     24 Jul 17  2021 ..
lrwxrwxrwx 1 root root     44 May  9 20:58 ffmpeg27 -> /var/packages/VideoStation/target/bin/ffmpeg
-rwxr-xr-x 1 root root 246648 Jun 22  2021 ffmpeg33-for-surveillance
lrwxrwxrwx 1 root root     44 May  9 20:58 ffmpeg41 -> /var/packages/VideoStation/target/bin/ffmpeg
-rwxr-xr-x 1 root root 254760 Jun 22  2021 ffmpeg41-for-synoface
-rwxr-xr-x 1 root root 254760 Jun 22  2021 ffmpeg41.orig
-rwxr-xr-x 1 root root  37945 Jun 22  2021 synocodectool
-rwxr-xr-x 1 root root  14664 Jun 22  2021 vainfo
AlexPresso commented 2 years ago

The issue occurs because you may have ran the patcher on an already patched (maybe with another patcher) version of VideoStation / AME, not on the default app version.

Please follow the following steps:

Jeltel commented 2 years ago

Ran into the same problem. Removed VideoStation and Advanced Media Extensions as you said, reinstalled them. The problem persisted however. Tried it again with a restart between removal and installation of the packages.


[2022-05-10 20:56:40] [INFO] You're running DSM 7.1
[2022-05-10 20:56:41] [INFO] Tuned script for DSM 7.1
[2022-05-10 20:56:41] [INFO] ====== Patching procedure ======
[2022-05-10 20:56:41] [INFO] Saving current ffmpeg as ffmpeg.orig
[2022-05-10 20:56:41] [INFO] Downloading ffmpeg's wrapper...
[2022-05-10 20:56:41] [INFO] Patching CodecPack's ffmpeg41
[2022-05-10 20:56:41] [INFO] Patching CodecPack's ffmpeg27
mv: cannot stat '/var/packages/CodecPack/target/pack/bin/ffmpeg27': No such file or directory
[2022-05-10 20:56:41] [INFO] Saving current libsynovte.so as libsynovte.so.orig
[2022-05-10 20:56:41] [INFO] Enabling eac3, dts and truehd
[2022-05-10 20:56:41] [INFO] Restarting CodecPack...
restart package [CodecPack] successfully
[2022-05-10 20:56:53] [INFO] Restarting VideoStation...
restart package [VideoStation] successfully

[2022-05-10 20:57:13] [INFO] Done patching, you can now enjoy your movies ;) (please add a star to the repo if it worked for you)
AlexPresso commented 2 years ago

Oh right, my bad, I didn't know ffmpeg27 could be missing on some NAS models, I'll push a fix