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.
660 stars 74 forks source link

Video Station Unresponsive (Continuous Loading) After Installation #69

Open Miller-du opened 1 day ago

Miller-du commented 1 day ago

Description: After installing the wrapper, Video Station becomes unresponsive (continuous spinning circle) when attempting to play videos with DTS or similar audio tracks. Videos without these specific audio tracks play normally. There were no errors reported during the installation process.

Reference:

System Details: Model Name: DS423+ DMS Version: DSM 7.2.1-69057 Update 5 FFmpeg 6 Version: 6.0.1-5 FFmpeg 7 Version: 7.0.2-1 Video Station Version: 3.1.1-3168 Advanced Media Extension Version: 3.1.0-3005

Steps to Reproduce:

  1. Install the Wrapper following the instructions.
  2. Open Video Station.
  3. Attempt to play a video containing DTS audio tracks.
  4. The video does not play and instead shows a continuous loading indicator.
  5. Videos without DTS audio play successfully.

Logs:

Installation Log (no error):

root@DS423plus:~# cat /tmp/wrapper_ffmpeg.log
[2024-11-17 13:59:13] INFO: ==================== Installation of the Simplest Wrapper: START ====================
[2024-11-17 13:59:13] INFO: Backup the original ffmpeg41 as ffmpeg41.orig.
[2024-11-17 13:59:13] INFO: Injection of the ffmpeg41 wrapper using this injector: X-Simplest.
[2024-11-17 13:59:16] INFO: Fixing permissions of the ffmpeg41 wrapper.
[2024-11-17 13:59:16] INFO: Adding of the KEY of this Wrapper in /tmp.
[2024-11-17 13:59:16] INFO: Backup the original libsynovte.so in VideoStation as libsynovte.so.orig.
[2024-11-17 13:59:16] INFO: Fixing permissions of /var/packages/VideoStation/target/lib/libsynovte.so.orig
[2024-11-17 13:59:16] INFO: Patching /var/packages/VideoStation/target/lib/libsynovte.so for compatibility with AAC, DTS, EAC3 and TrueHD
[2024-11-17 13:59:16] INFO: Adding of the KEY of this Wrapper in DLNA MediaServer.
[2024-11-17 13:59:16] INFO: Backup the original libsynovte.so in MediaServer as libsynovte.so.orig.
[2024-11-17 13:59:16] INFO: Fixing permissions of /var/packages/MediaServer/target/lib/libsynovte.so.orig
[2024-11-17 13:59:16] INFO: Patching /var/packages/MediaServer/target/lib/libsynovte.so for compatibility with AAC, DTS, EAC3 and TrueHD
[2024-11-17 13:59:16] INFO: Restarting CodecPack...
[2024-11-17 13:59:20] INFO: Restarting VideoStation...
[2024-11-17 13:59:28] INFO: Restarting MediaServer...
[2024-11-17 13:59:33] INFO: ==================== Installation of the Simplest Wrapper: COMPLETE ====================

Video Station Log Output:

root@DS423plus:~# tail -n -10 /volume1/@appdata/VideoStation/log/videostation.log
2024-11-17T13:11:51+08:00 DS423plus synoscgi_SYNO.VideoStation2.Subtitle_3_get[12789]: subtitle/cached.cpp:436 stat undefined failed
2024-11-17T13:13:36+08:00 DS423plus synoscgi_SYNO.VideoStation2.Subtitle_3_get[14238]: subtitle/cached.cpp:436 stat undefined failed
2024-11-17T13:14:17+08:00 DS423plus synoscgi_SYNO.VideoStation2.Subtitle_3_get[15122]: subtitle/cached.cpp:436 stat undefined failed
2024-11-17T13:48:44+08:00 DS423plus synovideoconversiond[26641]: event_ability.cpp:34 got signal 15, terminating daemon
2024-11-17T13:48:44+08:00 DS423plus synovideopreprocessd[26659]: event_ability.cpp:34 got signal 15, terminating daemon
2024-11-17T13:50:41+08:00 DS423plus synoscgi_SYNO.VideoStation2.Subtitle_3_get[31013]: subtitle/cached.cpp:436 stat undefined failed
2024-11-17T13:52:32+08:00 DS423plus synovideoconversiond[24241]: event_ability.cpp:34 got signal 15, terminating daemon
2024-11-17T13:52:32+08:00 DS423plus synovideopreprocessd[24247]: event_ability.cpp:34 got signal 15, terminating daemon
2024-11-17T13:59:20+08:00 DS423plus synovideoconversiond[1669]: event_ability.cpp:34 got signal 15, terminating daemon
2024-11-17T13:59:20+08:00 DS423plus synovideopreprocessd[1675]: event_ability.cpp:34 got signal 15, terminating daemon

I would appreciate any help. Please let me know if any additional logs or information are needed. Thank you! :)

darknebular commented 17 hours ago

Please send my wrapper log in /tmp/wrapper_ffmpeg.log Please try the advanced Wrapper too.

Thanks.

Miller-du commented 16 hours ago

Wrapper log (the simplest wrapper):

root@DS423plus:~# cat /tmp/wrapper_ffmpeg.log
[2024-11-17 13:59:13] INFO: ==================== Installation of the Simplest Wrapper: START ====================
[2024-11-17 13:59:13] INFO: Backup the original ffmpeg41 as ffmpeg41.orig.
[2024-11-17 13:59:13] INFO: Injection of the ffmpeg41 wrapper using this injector: X-Simplest.
[2024-11-17 13:59:16] INFO: Fixing permissions of the ffmpeg41 wrapper.
[2024-11-17 13:59:16] INFO: Adding of the KEY of this Wrapper in /tmp.
[2024-11-17 13:59:16] INFO: Backup the original libsynovte.so in VideoStation as libsynovte.so.orig.
[2024-11-17 13:59:16] INFO: Fixing permissions of /var/packages/VideoStation/target/lib/libsynovte.so.orig
[2024-11-17 13:59:16] INFO: Patching /var/packages/VideoStation/target/lib/libsynovte.so for compatibility with AAC, DTS, EAC3 and TrueHD
[2024-11-17 13:59:16] INFO: Adding of the KEY of this Wrapper in DLNA MediaServer.
[2024-11-17 13:59:16] INFO: Backup the original libsynovte.so in MediaServer as libsynovte.so.orig.
[2024-11-17 13:59:16] INFO: Fixing permissions of /var/packages/MediaServer/target/lib/libsynovte.so.orig
[2024-11-17 13:59:16] INFO: Patching /var/packages/MediaServer/target/lib/libsynovte.so for compatibility with AAC, DTS, EAC3 and TrueHD
[2024-11-17 13:59:16] INFO: Restarting CodecPack...
[2024-11-17 13:59:20] INFO: Restarting VideoStation...
[2024-11-17 13:59:28] INFO: Restarting MediaServer...
[2024-11-17 13:59:33] INFO: ==================== Installation of the Simplest Wrapper: COMPLETE ====================

I tried the advanced wrapper; however, it does not work either: Video Station responds in the same way.

Wrapper log for your reference:

root@DS423plus:~# cat /tmp/wrapper_ffmpeg.log
[2024-11-18 18:10:46] INFO: ==================== Installation of the Advanced Wrapper: START ====================
[2024-11-18 18:10:46] INFO: Backup the original ffmpeg41 as ffmpeg41.orig.
[2024-11-18 18:10:46] INFO: Injection of the ffmpeg41 wrapper using this injector: X-Advanced.
[2024-11-18 18:10:49] INFO: Fixing permissions of the ffmpeg41 wrapper.
[2024-11-18 18:10:49] INFO: Adding of the KEY of this Wrapper in /tmp.
[2024-11-18 18:10:49] INFO: Backup the original libsynovte.so in VideoStation as libsynovte.so.orig.
[2024-11-18 18:10:49] INFO: Fixing permissions of /var/packages/VideoStation/target/lib/libsynovte.so.orig
[2024-11-18 18:10:49] INFO: Patching /var/packages/VideoStation/target/lib/libsynovte.so for compatibility with AAC, DTS, EAC3 and TrueHD
[2024-11-18 18:10:49] INFO: Adding of the KEY of this Wrapper in DLNA MediaServer.
[2024-11-18 18:10:49] INFO: Backup the original libsynovte.so in MediaServer as libsynovte.so.orig.
[2024-11-18 18:10:49] INFO: Fixing permissions of /var/packages/MediaServer/target/lib/libsynovte.so.orig
[2024-11-18 18:10:49] INFO: Patching /var/packages/MediaServer/target/lib/libsynovte.so for compatibility with AAC, DTS, EAC3 and TrueHD
[2024-11-18 18:10:49] INFO: Restarting CodecPack...
[2024-11-18 18:10:56] INFO: Restarting VideoStation...
[2024-11-18 18:11:05] INFO: Restarting MediaServer...
[2024-11-18 18:11:10] INFO: ==================== Installation of the Advanced Wrapper: COMPLETE ====================

Video Station log (I suppose it may help):

root@DS423plus:~# tail -n -5 /volume1/@appdata/VideoStation/log/videostation.log
2024-11-18T14:59:33+08:00 DS423plus synoscgi_SYNO.VideoStation2.File_2_set_playback_setting[22196]: query_base.cpp:51 Query execute failed: Cannot execute query. ERROR:  duplicate key value violates unique constraint "watch_status_ukey"
DETAIL:  Key (uid, video_file_id, mapper_id)=(1026, 2262, 5030) already exists.
2024-11-18T18:10:56+08:00 DS423plus synovideoconversiond[32287]: event_ability.cpp:34 got signal 15, terminating daemon
2024-11-18T18:10:56+08:00 DS423plus synovideopreprocessd[32293]: event_ability.cpp:34 got signal 15, terminating daemon
2024-11-18T18:18:02+08:00 DS423plus synoscgi_SYNO.VideoStation2.Streaming_1_open[14006]: handle_error.cpp:21 error: DetermintStreamFormat failed

Thank you!