Giter VIP home page Giter VIP logo

videostation-ffmpeg-patcher's Introduction

VideoStation-FFMPEG-Patcher

Banner

This patcher is designed to continue the work of Benjamin Poncet, to enable DTS, EAC3 and TrueHD support to Synology VideoStation, by replacing the original ffmpeg and gstreamer files by a wrapper using SynoCommunity packages.

Huge thanks to Benjamin Poncet, Vincent Fortier, SynoCommunity and all contributors.

Also want to patch MediaServer ? there you go

Dependencies

  • DSM 6.2.2-24922 Update 4 (and above)
  • Video Station 2.4.6-1594 (and above)
  • SynoCommunity ffmpeg 4.x.x, ffmpeg 5.x.x or ffmpeg 6.x.x (help)

Supported scenarios

  • [DTS or EAC3 or TrueHD] + [Any non HEVC standard video format]: ✅
  • [no DTS, no EAC3, no TrueHD] + [HEVC]: ✅
  • [DTS or EAC3 or TrueHD] + [HEVC]: ✅ (credits to @nap-liu)

Instructions

  • Check that you meet the required dependencies
  • Install SynoCommunity ffmpeg (help)
  • If you plan to play HEVC / AAC videos, install Advanced Media Extensions and license it using your Synology account inside the app
  • Connect to your NAS using SSH (admin user required) (help)
  • Use the command sudo -i to switch to root user
  • Use the following command (Basic command) to execute the patch
    • Note : Basic command uses ffmpeg4 by default, if you want to use a different ffmpeg version (i.e. ffmpeg5 or ffmpeg6), please check the command flags.
  • You'll have to re-run the patcher everytime you update VideoStation, Advanced Media Extensions and DSM

Update procedure

To update the wrapper, just unpatch and repatch using the following commands:

  • Unpatch: curl https://raw.githubusercontent.com/AlexPresso/VideoStation-FFMPEG-Patcher/main/patcher.sh | bash -s -- -a unpatch
  • Patch: curl https://raw.githubusercontent.com/AlexPresso/VideoStation-FFMPEG-Patcher/main/patcher.sh | bash

Usage

Basic command:
curl https://raw.githubusercontent.com/AlexPresso/VideoStation-FFMPEG-Patcher/main/patcher.sh | bash
With options:
curl https://raw.githubusercontent.com/AlexPresso/VideoStation-FFMPEG-Patcher/main/patcher.sh | bash -s -- <flags>

Flags Required Description Default
-a No Action flag: choose between patch or unpatch ; example: -a patch patch
-b No Branch flag: allows you to choose the wrapper branch to use ; example -b main main
-p No Proxy flag: allows you to use a proxy to connect to github ; example -p http://my-proxy https://raw.githubusercontent.com
-v No FFMpeg version flag: allows you to choose desired ffmpeg version ; example -v 5 4

videostation-ffmpeg-patcher's People

Contributors

alexpresso avatar carr0t2 avatar hoax017 avatar twardakm avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

videostation-ffmpeg-patcher's Issues

[QA] Support Photos and Surveillance Station H265 video Thumbnail

Question

First of all, thank you very much for your patch, after installing it, my Surveillance Station real-time video (H265 format) can get thumbnails normally. But still unable to get thumbnails of recorded videos of Synology Photos and Surveillance Station. Do you have any tips or solutions?

[QA] Unable to perform this operation in VideoStation

Hello guys,

I commented the gist https://gist.github.com/BenjaminPoncet/bbef9edc1d0800528813e75c1669e57e#gistcomment-3808866 because I have an issue with VideoStation after running the script. Do not get me wrong. I am very happy that there is hope to get DTS running. Sorry for spamming the gist.

I got this message when I am trying to access the VideoStation-Webinterface:

Screenshot_01749

My Configuration:

DS118 (rtd1296 (armv8))
DSM 7.0-41890
VS 3.0.1-2067
FFMPEG 4.3.2-37
Advanced Media Extensions 1.1.0-0201

I reinstalled VideoStation + Advanced Media Extensions an run your script. I checked the ressources monitor. There is no load on the ressources. CPU 0-5% and the RAM is constantly up to 43%.

Do you have any ideas to solve the problem?

That would be great!

Thank you very much
Kind regards
David

VideoStation-FFMPEG-Patcher installs but does not work.

Hello,

I wanted to reach out to you and offer any assistance you might need to help resolve the problem of the patch not working. I followed your conversation with this user [(https://github.com//issues/18)] and I believe I am having the same or similar issue. I get the red circle of death when I try to play a video from my NAS to my Samsung TV:

Synology DS1821+
DSM 7.1-42621

Video Station
3.0.3-2084

Advanced Media Extensions
1.1.1-0202

ffmgeg (Vincent Fortier)
4.4.2-43

Samsung TV
QN65Q80AAFXZA

This is the output I received when I ran the script while following these instructions ([https://github.com/AlexPresso/VideoStation-FFMPEG-Patcher]):

root@Residence:~# curl https://raw.githubusercontent.com/AlexPresso/VideoStation-FFMPEG-Patcher/main/patcher.sh | bash -s -- -patch
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 3749 100 3749 0 0 19975 0 --:--:-- --:--:-- --:--:-- 20048
[2022-05-19 23:31:04] [INFO] ffmpeg-patcher v1.5
[2022-05-19 23:31:05] [Message of the day]

The patcher was redesigned to include an unpatch procedure.

I'm aware of an issue with HEVC and I'm working on it.

As always, please let me know of any issue you could have.

[2022-05-19 23:31:05] [INFO] You're running DSM 7.1
[2022-05-19 23:31:05] [INFO] Tuned script for DSM 7.1
[2022-05-19 23:31:05] [INFO] ====== Patching procedure ======
[2022-05-19 23:31:05] [INFO] Saving current ffmpeg as ffmpeg.orig
[2022-05-19 23:31:05] [INFO] Downloading ffmpeg's wrapper...
[2022-05-19 23:31:06] [INFO] Saving current libsynovte.so as libsynovte.so.orig
[2022-05-19 23:31:06] [INFO] Enabling eac3, dts and truehd
[2022-05-19 23:31:06] [INFO] Restarting VideoStation...
restart package [VideoStation] successfully

[2022-05-19 23:31:10] [INFO] Done patching, you can now enjoy your movies ;) (please add a star to the repo if it worked for you)
root@Residence:~#

If you need me to supply any logs or any information please provide instructions on how to obtain them? Thank you very much for your efforts to resolve all these issues.

Need help with "unknown error" please - newb

Question
Hi,
I've followed the dependences, instructions and usages from the FFMPEG patcher page. I was running FFMPEG 3.3.9 and 6.2.2 before I upgraded to DSM 6.2.4-25556 Update 2 and the libraries in your patcher page. Most movies, TV shows would play fine in DS Video on the Sony Smart TV. Anyway, the error I get most now when trying to play the files with DS video is "unknown error". Sometimes I get something about "unable to open file" and do you want to try a 3rd party player. i don't know what logs to send so I'm just sending stuff that looks interesting. Thank you.

-Bill

Audio log:
2022-01-01T09:10:01-08:00 Synology1 synoaudiod: get_capability.cpp:150 Failed to download AVT SCPD xml, url [http://192.168.1.14:52323/AVTransportSCPD.xml], rc[-207], msg[UPNP_E_TIMEDOUT]
2022-01-01T09:10:01-08:00 Synology1 synoaudiod: upnp.cpp:904 Failed to get renderer capability

Messages:
2022-01-01T19:33:19-08:00 Synology1 audiotrack.cgi: video_metadata.cpp:481 ParserMetaDataFromFFMPEG fail.
2022-01-01T19:33:19-08:00 Synology1 audiotrack.cgi: video_webapi.cpp:223 [WebAPI] Failed to get track information /volume1/video/TV Shows/Futurama/Futurama Season 6/Futurama S06.E03.mkv
2022-01-01T19:33:19-08:00 Synology1 subtitle.cgi: video_metadata.cpp:481 ParserMetaDataFromFFMPEG fail.
2022-01-01T19:33:20-08:00 Synology1 synoscgi_SYNO.VideoStation2.File_1_get_track_info[31930]: video_metadata.cpp:481 ParserMetaDataFromFFMPEG fail.
2022-01-01T19:33:20-08:00 Synology1 synoscgi_SYNO.VideoStation2.File_1_get_track_info[31930]: handle_error.cpp:21 error: failed to load metadata /volume1/video/TV Shows/Futurama/Futurama Season 6/Futurama S06.E03.mkv

[BUG] offline transcode runs through but gives an error at 100% and does not create the file

System details

  • Synology model: ds1520+ with dx517
  • DSM version: 7.1.1-42962 Update 1
  • SynoCommunity FFMPEG Version: 4.4.2-46
  • VideoStation version: 3.0.4-2107
  • Advanced Media Extensions version: 3.0.1-2004

Describe the bug

offline transcoding runs without problems but no file is created at 100% but an error is issued that the network connection is unstable

ffmpeg.log

https://gist.github.com/Fabian1601/317246375e6ca5eb3a94f764b50c1713.js

ffmpeg-FFMxxxx.stderr

https://gist.github.com/Fabian1601/c560d46b3ae98fdf68505f65b46d8936.js

DSM 7.1-42661 Update 1 spin on Chromecast

Hi !
First, great job, it work well, before i update the Syno ;)

Advanced Media Extensions version: 2.0.0-1017
VideoStation version: 3.0.3-2084
SynoCommunity FFMPEG version: 4.4.2-43
Synology model: DS220+
DSM 7.1-42661 Update 1

I Can launch movie (EAC3) on DSVideoStation on Windows (need external player like VLC), Iphone and Ipad with no error, like before update

But, i can't cast to Chromecast (Bbox Miami) whith EAC3 audio, AAC_LC work.

Any idea ? i have already test the last closed issue's solution (dsm 7.1 codec not working #26)

[QA] HLS support

Question

There are any patch for hls playing?

With 2.3.2 until 2.3.8 is working but not at newer versions.

[BUG] Video station use ffmpeg.orig

System details

  • Synology model: DS1618+
  • DSM version: DSM 7.0-41890
  • VideoStation version: 3.0.1-2067
  • Advanced Media Extensions version: 1.1.1-0202

Describe the bug
Video station use ffmpeg.orig ...

image

Video Station no more responding

Hello,
i run your script (without problem) then when i try to open video station it says, "Unable to perform this operation, possibly because the network is unstable or the system is busy. Please try again later" and that never pass, even after rebooting the nas.
It used to work on DSM 6.x

RS819
DSM 7.0-41890
Video Station 3.0.1-2067
FFmpeg 4.3.2-37

I have to uninstall VS, and install it back to acces it again.

Do you have any ideas ?

Thanks (we can speak in french, i guess you are with your nickname)

dsm 7.1 codec not working

System details

  • Synology model: 220+
  • DSM version: 7.1-42661
  • on DSM 7.0 it is working fine
  • SynoCommunity FFMPEG Version: latest
  • VideoStation version: latest
  • Advanced Media Extensions version: latest

Describe the bug
video with dts eac3 and truehd the circle keeps spinning

[BUG] Fileplay stutter [need someone with DS916+ to reproduce]

https://gist.github.com/BenjaminPoncet/bbef9edc1d0800528813e75c1669e57e
Dear Alex,

Thanks for this amazing work but I have an issue.

My setup is:

  • DS916+ with 8GB ram
  • DSM 6.2.4-25556 Update 2
  • Video Station 2.5.0.-1656
  • ffmpeg 4.3.2-38
  • Advanced Media Extensions 1.0.1-0025.

I ran the scripts and now the video's play, but there is some issues when playing this file:

  • Video: HVC1 1920x960 23.976fps [V: hevc main 10 L4.0, yuv420p10le, 1920x960 [default]]
  • Audio: DD+ 48000Hz 6ch 640kbps [A: English [eng] (eac3, 48000 Hz, 5.1, 640 kb/s)]

I use a Chromium 93 browser to play and have VLC player installed

  1. When playing this file there is a buffer/reload every 3 seconds that lasts almost 5 seconds on high and on low a stutter of 1-2 seconds every 5 seconds.
  2. I can not choose play original stream, only low, medium and high are available in browser.
  3. After closing the browser the FFmpeg task keeps burning CPU percentages and only uninstalling ffmpeg / rebooting the unit helps.
  4. Opening the video again makes another never ending FFmpeg task again draining 10-20% CPU per task.
  • Is my setup too weak for this type of file or is it not using hardware decoding?
  • Why can I not choose original?
  • The ffmpeg task not closing seems a bug.

This is already proof it could work and I'm happy and now hoping it's fixable :).
p.s. im a linux noob, so getting the ffmpeg logs I need more help with the exact steps... sorry....

offline transcoding fails (unknown encoder aac)

hello alex,

i have a ds1520+ and when i use your new patch i get the error "the operation could not be performed. possibly the network connection is unstable..." when transcoding offline.
i have the same error with a ds720+ as well
but strangely enough the playback works fine.
videostation and ame were already reinstalled, but there was no change.
all packages are up to date and dsm too.

here the ffmpeg.log

https://gist.github.com/Fabian1601/ceda916cf53711f9a351fc9f1fe46bf4

according to the log it does not know the aac encoder.

greetings

Problems after updating to DSM 7.0-41890 - Videos with DTS Audio don't play in VideoStation Web Interface anymore

After updating my DSM some days ago to the newest version (as mentioned above) I'm not able anymore to play videos with DTS audio in the VideoStation Web Interface anymore.

Negative/main side effect is that Videos with DTS audio track now are very often buffering when streaming from outside my network like they did also when no ffmpeg was installed and your patch hasn't been applied - before DSM update it worked like a charm.

Patching again has only the effect that the video does not stop with a shown error but simply does not start (in Web-Interface)

Hope I described it as good as possible...

Any ideas?

My System:

DS-218+
DSM 7.0-41890
Video Station 3.0.1-2067
ffmpeg 4.3.2-37
Advanced media extensions 1.1.1-0202

hevc main 10 offline transcode to high fails

hello alex,

when i try to transcode hevc main 10 offline the conversion always fails and it creates me a 0mb mp4 file.
in the "offline transcoding list" it says "done".
but if i choose "medium" as resolution it creates the correct file.
are you already aware of the error?

greetings

I have attached the log file from the conversion of the film in high and medium resolution
ffmpeg.log
gs

ffmpeg 4.4.3 missing permission to /dev/dri/renderD128 and video files

Did fresh install:

  1. VideoStation - working
  2. VideoStation + ffmpeg - working
  3. VideoStation + ffmpeg + patch - NOT working
  4. After Unpatch - working

System details

  • Synology model: DS916+
  • DSM version: DSM 6.2.4-25556 Update 6
  • SynoCommunity FFMPEG Version: 4.4.3
  • VideoStation version: 2.5.0-1656
  • Advanced Media Extensions version: 1.0.1-0025

Describe the bug
Any video just wont play at all after the patch

[BUG] Losing HEVC Main 10 file support after patching

Describe the bug
After patching my ffmpeg4, I'm losing the support of HEVC Main 10 files. The app is waiting for something but never stop looping (no error message).

image

HEVC Main files keep on working though.
H264 and H265 main files are reading correctly eac and dts tracks as expected.
I tried with ffmpeg5 and ffmpeg6 patch, but this time it did not work at all (no eac and dts support for H264 and H265 main files AND no H265 Main 10 file playing)

This may be the same issue than in #81

Additional context
I just upgraded my video station to latest version that removes the support of aac. I suspect this bug coming from the Advanced Media extension package.
Result of: curl https://raw.githubusercontent.com/AlexPresso/VideoStation-FFMPEG-Patcher/main/issue-report.sh | bash

https://gist.github.com/djhibee/20263d6c02ee7856013d532bb5ba58cb

[BUG] transcode fails with "the network connection is unstable or the system is busy"

System details

  • Synology model: ds1019+
  • DSM version: 7.0-41882
  • VideoStation version: 3.0.1-2067
  • Advanced Media Extensions version: 1.1.0-0201
  • ffmpeg version: 4.3.2-37

Describe the bug
after the script update, every conversion fails with "the network connection is unstable or the system is busy"
unfortunately no ffmpeg.log is created either.
have video station + advanced media extension + ffmpeg reinstalled several times but no change

[QA] Automatic repatch

Question / Enhancement

Could it be possible to automatically repatch VideoStation? It might be at reboot time, or checking every hour if the repatch is needed, for instance. We, maybe, could use the task planner within DSM, but I doubt it has root access.

Has anyone tried that, yet?

[BUG] Endless play

System details

  • Synology model: DS418play
  • DSM version: DSM 7.0-41890
  • VideoStation version: 3.0.1-2067
  • Advanced Media Extensions version: 1.1.1-0202

Describe the bug
Can't play file with eac3 audio, playing icon endless turn, other file work.
i tried uninstall and reinstall videostation, then re applying the patch without success.

FFMPEG logs

2021-10-12 14:42:53 - FFM15503 - *** PROCESS START REV AME_12.2 DS418play (apollolake) PID 15503 ***
2021-10-12 14:42:53 - FFM15503 - MOVIE    = /volume1/Share/Séries/9-1-1/Saison 4/9-1-1 - 4x07 - Nos chers voisins.mkv
2021-10-12 14:42:53 - FFM15503 - VCODEC   = hevc (Main 10)
2021-10-12 14:42:53 - FFM15503 - ACODEC   = eac3
2021-10-12 14:42:53 - FFM15503 - PARAMVS  =
2021-10-12 14:42:53 - FFM15503 -          = -ss 0.000 -vaapi_device /dev/dri/renderD128 -hwaccel vaapi -hwaccel_output_format vaapi -noautorotate -i /volume1/Share/
2021-10-12 14:42:53 - FFM15503 -          = Séries/9-1-1/Saison 4/9-1-1 - 4x07 - Nos chers voisins.mkv -vcodec h264_vaapi -vf format=nv12|vaapi,hwupload,scale_vaap
2021-10-12 14:42:53 - FFM15503 -          = i=w=1920:h=1072:format=nv12 -vsync 2 -bf 0 -vb 5275218 -acodec libmp3lame -ab 128K -ac 2 -f ssegment -pix_fmt yuv420p -s
2021-10-12 14:42:53 - FFM15503 -          = egment_format mpegts -segment_list_type m3u8 -hls_seek_time 0 -segment_time 5 -segment_time_delta 0.000 -segment_start_n
2021-10-12 14:42:53 - FFM15503 -          = umber 00000 -avoid_negative_ts 0 -break_non_keyframes 1 -max_muxing_queue_size 1024 -map 0:0 -map 0:1 /tmp/VideoStation/
2021-10-12 14:42:53 - FFM15503 -          = HLS/674429cdf968961660fafd17cfe28aaf_BXW097OJ/slice-%05d.ts
2021-10-12 14:42:53 - FFM15503 - MODE     = ORIG
2021-10-12 14:42:53 - FFM15503 - FFMPEG   = /var/packages/CodecPack/target/bin/ffmpeg41.orig
2021-10-12 14:42:53 - FFM15503 - PARAMWP  =
2021-10-12 14:42:53 - FFM15503 -          = -ss 0.000 -vaapi_device /dev/dri/renderD128 -hwaccel vaapi -hwaccel_output_format vaapi -noautorotate -i /volume1/Share/
2021-10-12 14:42:53 - FFM15503 -          = Séries/9-1-1/Saison 4/9-1-1 - 4x07 - Nos chers voisins.mkv -vcodec h264_vaapi -vf scale_vaapi=format=nv12,hwupload,sets
2021-10-12 14:42:53 - FFM15503 -          = ar=sar=1 -vsync 2 -bf 0 -vb 5275218 -acodec libmp3lame -ab 128K -ac 2 -f ssegment -pix_fmt yuv420p -segment_format mpegt
2021-10-12 14:42:53 - FFM15503 -          = s -segment_list_type m3u8 -hls_seek_time 0 -segment_time 5 -segment_time_delta 0.000 -segment_start_number 00000 -avoid_
2021-10-12 14:42:53 - FFM15503 -          = negative_ts 0 -break_non_keyframes 1 -map 0:0 -map 0:1 /tmp/VideoStation/HLS/674429cdf968961660fafd17cfe28aaf_BXW097OJ/s
2021-10-12 14:42:53 - FFM15503 -          = lice-%05d.ts
2021-10-12 14:42:53 - FFM15503 - CHILDPID = 15568
2021-10-12 14:42:53 - FFM15568 - *** PROCESS START REV 12 DS418play (apollolake) PID 15568 ***
2021-10-12 14:42:53 - FFM15568 - DEVICE   =
2021-10-12 14:42:53 - FFM15568 - MOVIE    = /volume1/Share/Séries/9-1-1/Saison 4/9-1-1 - 4x07 - Nos chers voisins.mkv
2021-10-12 14:42:53 - FFM15568 - VCODEC   = hevc (Main 10)
2021-10-12 14:42:53 - FFM15568 - ACODEC   = eac3
2021-10-12 14:42:53 - FFM15568 - PARAMVS  =
2021-10-12 14:42:53 - FFM15568 -          = -ss 0.000 -vaapi_device /dev/dri/renderD128 -hwaccel vaapi -hwaccel_output_format vaapi -noautorotate -i /volume1/Share/
2021-10-12 14:42:53 - FFM15568 -          = Séries/9-1-1/Saison 4/9-1-1 - 4x07 - Nos chers voisins.mkv -vcodec h264_vaapi -vf scale_vaapi=format=nv12,hwupload,sets
2021-10-12 14:42:53 - FFM15568 -          = ar=sar=1 -vsync 2 -bf 0 -vb 5275218 -acodec libmp3lame -ab 128K -ac 2 -f ssegment -pix_fmt yuv420p -segment_format mpegt
2021-10-12 14:42:53 - FFM15568 -          = s -segment_list_type m3u8 -hls_seek_time 0 -segment_time 5 -segment_time_delta 0.000 -segment_start_number 00000 -avoid_
2021-10-12 14:42:53 - FFM15568 -          = negative_ts 0 -break_non_keyframes 1 -map 0:0 -map 0:1 /tmp/VideoStation/HLS/674429cdf968961660fafd17cfe28aaf_BXW097OJ/s
2021-10-12 14:42:53 - FFM15568 -          = lice-%05d.ts
2021-10-12 14:42:53 - FFM15568 - MODE     = WRAP
2021-10-12 14:42:53 - FFM15568 - FFMPEG   = /var/packages/ffmpeg/target/bin/ffmpeg
2021-10-12 14:42:53 - FFM15568 - PARAMWP  =
2021-10-12 14:42:53 - FFM15568 -          = -ss 0.000 -vaapi_device /dev/dri/renderD128 -hwaccel vaapi -hwaccel_output_format vaapi -noautorotate -i /volume1/Share/
2021-10-12 14:42:53 - FFM15568 -          = Séries/9-1-1/Saison 4/9-1-1 - 4x07 - Nos chers voisins.mkv -vcodec h264_vaapi -vf scale_vaapi=w=scale_vaapi=format=nv12
2021-10-12 14:42:53 - FFM15568 -          = ,hwupload,setsar=sar=1:h=scale_vaapi=format=nv12,hwupload,setsar=sar=1:format=nv12,hwupload,setsar=sar=1 -vsync 2 -bf 0
2021-10-12 14:42:53 - FFM15568 -          = -vb 5275218 -acodec libmp3lame -ab 128K -ac 2 -f ssegment -pix_fmt yuv420p -segment_format mpegts -segment_list_type m3u
2021-10-12 14:42:53 - FFM15568 -          = 8 -hls_seek_time 0 -segment_time 5 -segment_time_delta 0.000 -segment_start_number 00000 -avoid_negative_ts 0 -break_non
2021-10-12 14:42:53 - FFM15568 -          = _keyframes 1 -map 0:0 -map 0:1 /tmp/VideoStation/HLS/674429cdf968961660fafd17cfe28aaf_BXW097OJ/slice-%05d.ts
2021-10-12 14:42:53 - FFM15568 - CHILDPID = 15625
2021-10-12 14:42:54 - FFM15568 - *** CHILD END ***
2021-10-12 14:42:54 - FFM15568 - STDOUT   =
2021-10-12 14:42:54 - FFM15568 -          =       _STATISTICS_WRITING_DATE_UTC: 2021-06-29 18:57:45
2021-10-12 14:42:54 - FFM15568 -          =       _STATISTICS_WRITING_DATE_UTC-eng: 2021-06-29 18:57:45
2021-10-12 14:42:54 - FFM15568 -          =       _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
2021-10-12 14:42:54 - FFM15568 -          =       _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
2021-10-12 14:42:54 - FFM15568 -          =       DURATION        : 00:44:07.965000000
2021-10-12 14:42:54 - FFM15568 -          = Stream mapping:
2021-10-12 14:42:54 - FFM15568 -          =   Stream #0:0 -> #0:0 (hevc (native) -> h264 (h264_vaapi))
2021-10-12 14:42:54 - FFM15568 -          =   Stream #0:1 -> #0:1 (eac3 (native) -> mp3 (libmp3lame))
2021-10-12 14:42:54 - FFM15568 -          = Press [q] to stop, [?] for help
2021-10-12 14:42:54 - FFM15568 -          = [Parsed_setsar_2 @ 0xffc280] Option 'h' not found
2021-10-12 14:42:54 - FFM15568 -          = [AVFilterGraph @ 0xfc3440] Error initializing filter 'setsar' with args 'sar=1:h=scale_vaapi=format=nv12'
2021-10-12 14:42:54 - FFM15568 -          = Error reinitializing filters!
2021-10-12 14:42:54 - FFM15568 -          = Failed to inject frame into filter network: Option not found
2021-10-12 14:42:54 - FFM15568 -          = Error while processing the decoded data for stream #0:0
2021-10-12 14:42:54 - FFM15568 -          = Conversion failed!
2021-10-12 14:42:54 - FFM15568 - MODE     = PIPE SV
2021-10-12 14:42:54 - FFM15568 - FFMPEG1  = /var/packages/ffmpeg/target/bin/ffmpeg
2021-10-12 14:42:54 - FFM15568 - FFMPEG2  = /var/packages/VideoStation/target/bin/ffmpeg.orig

Additional context

not working with the samsung tv app

this isn't working with the Samsung tv app the video plays but no sound . it does work with the internet browser on the tv but crashes

DS1019+

dsm 7.1.1-42962

Samsung free style projector app
and the app ver : 10.07-81
SynoCommunity FFMPEG Version: [] 6
Advanced Media Extensions version: 3.0.1-2004

no error file were created
using this command ls -al | grep ffmpeg

the videos all play but they have no sound on the tv app . the only work with the web bowers

[BUG] thumbnails are empty

System details

  • Synology model: DS3617xs
  • DSM version: 6.2
  • SynoCommunity FFMPEG Version: 4.4.2-43
  • VideoStation version: 2.4.10-1632
  • Advanced Media Extensions version: none

Describe the bug
I'm really embarrassed to open a new bug report right away. But after switching to your ffmpeg and adding the files for ther workaround of #39 I do not receive any thumbnails anymore. It says: Error while opening decoder for input stream #0:0 : Operation not permitted

Provide Log files

ffmpeg.log (containing the ffmpeg-wrapper execution logs)

https://gist.github.com/Subtixx/bd1eebf65d303992d4ea1a066236fbe8

[QA] How does it work & Capabilities (moved to Wiki section)

This page moved to the FAQ Section : https://github.com/AlexPresso/VideoStation-FFMPEG-Patcher/wiki/FAQ

Hello
A good idea this patch.
I don't know very well how VideoStation works, so I have several questions :

  1. VideoStation works on different configurations :
    • You can choose from the DSM menu directly on a web basis interface (not working well...)
    • You can run VideoStation app from IOS or Android
    • You can also run VideStation from a Samsung or a LG TV with the plugin installed on your TV
      From the DSM point of view, are these configurations working in the same way ?
  2. When you launch a video, when ffmpeg is called, is it working in real time?
  3. by reading the shell script, I saw you patch directly dynamics libraries with sed, very touchy process ...
    Finaly I wonder what we are changing with the patch and how should we test it ?
    VideoStation is supposed to act as passthrough when encountering DTS sound track (to be decoded by a home cinema for example) or is it processing the sound track to produce a 5.1 sound track for example ?
    Most of Samsung TV don't allow DTS format soundtrack, because they don't pay royalties I guess, is the TV VideoStation plugin substituing the TV sound processing ?

thanks for your time :)

Henri

patcher won't work

System details

  • Synology model: 220+
  • DSM version:7.0
  • VideoStation version: 3.0.1-2067
  • Advanced Media Extensions version: 1.1.1-0202
    Describe the bug
    after execute the Basic command, these shows:

bash: line 1: syntax error near unexpected token `newline'. along with the "DOCTYPE html" error

the patcher won't work.

FFMPEG logs
[use ssh to open logs in /tmp/ffmpeg.log then put the content in a code block / create a gist]

Additional context
Add any other context about the problem here.

Alternative way of applying patch via Task Scheduler instead of SSH

Maybe for someone it will be easier to apply the patch without SSH and it could be reflected in the docs:

  1. Check that you meet the required dependencies.
  2. Install SynoCommunity ffmpeg (help).
  3. Control Panel -> Task Scheduler -> Create -> Scheduled Task -> User-defined script.
  4. Choose "root" user.
  5. Populate "User-defined script" with:
#!/bin/bash
curl https://raw.githubusercontent.com/AlexPresso/VideoStation-FFMPEG-Patcher/main/patcher.sh | bash
  1. Save and run the task.

Optionally to enable script output, select a folder for your output results in Task Scheduler -> Settings. Run the script and then go to Task Scheduler -> Actions -> View Result to check the results of your script.

The script should be applied every time you update VideoStation, Advanced Media Extensions, and DSM.

[BUG] Subtitles aren't working anymore on iPhone 13 Pro & iOS 16.0.2 via DS Video

System details

  • Synology model: DS920+
  • DSM version: DSM 7.1-42661 Update 4
  • SynoCommunity FFMPEG Version: 4.4.2-46
  • VideoStation version: 3.0.4-2107
  • Advanced Media Extensions version: 2.0.1-1021

Describe the bug
The subtiltes doesn't appear anymore on my iPhone 13 Pro - iSo 16.0.2 (on any video) with DS Video
Whether de subtitles are embedded in the .mkv or with a .srt file.

Note : There is no problem of subtitles while using VideoStation on my PC.

ffmpeg.log (containing the ffmpeg-wrapper execution logs)

ffmpeg-FFMxxxx.stderr (containing chunks transcoding operations)

  • There is not ffmpeg-FFMxxxx.stderr :
    image

Additional context
Add any other context about the problem here.

[BUG] Script didn't start

System details

  • Synology model: DS918+
  • DSM version: DSM 7.1-42661 Update 4
  • SynoCommunity FFMPEG Version: 4.4.2-46
  • VideoStation version: 3.0.4-2107
  • Advanced Media Extensions version: 2.0.1-1021

Describe the bug
Running the latest version of the patcher didn't work.
I received no output in the terminal. (besides the curl overview)
Seems like the script didn't start. Also didn't find any logfiles

I downloaded the previous version of the patcher (curl https://raw.githubusercontent.com/AlexPresso/VideoStation-FFMPEG-Patcher/4535c6ae6759178150f9ee1696953c3196ed993/patcher.sh | bash): this worked immediately.

这是我找到的最棒的解决方案了!

牛哇牛哇,这个方法解决了Video Stations、synology photos的视频略缩图的问题。找了好久,只有这个方案是目前完美解决的。
之前在百度找的方法最多最好的就是能解决大部分视频的略缩图问题,但是苹果的拍摄视频的高效格式HEIF/HEVC的视频还是不会显示略色图。这个方案就解决了。别人提的问题目前我是没有遇到过。
谢谢作者。

mkv内置字幕没识别出来

Before posting any bug issue, please make sure you have patched a clean VideoStation / AME install by doing the following:

  • Uninstall VideoStation (keep your library)
  • Uninstall Advanced Media Extensions
  • Re-install VideoStation (it should also ask to install Advanced Media Extensions)
  • Run the patch

System details

  • Synology model: [Synology NAS model]
  • DSM version: [version]
  • SynoCommunity FFMPEG Version: [version]
  • VideoStation version: [version]
  • Advanced Media Extensions version: [version / "none" if you don't have it installed]

Describe the bug
A clear and concise description of what the bug is.

Provide Log files

  • Start the video on VideoStation, wait for the video to play and put the browser in background (keep the video playing)
  • Connect through SSH (help)
  • Switch to root user: sudo -i

ffmpeg.log (containing the ffmpeg-wrapper execution logs)

  • Go to the temporary directory: cd /tmp
  • Type ls -al | grep ffmpeg to list all files containing "ffmpeg" and check you have one named ffmpeg.log
  • Type tail -200 ffmpeg.log to print the last 200 lines to the console
  • Copy paste those lines in a new gist
  • Add the gist link to the issue

ffmpeg-FFMxxxx.stderr (containing chunks transcoding operations)

  • When you ran ls -al | grep ffmpeg you should have seen another file that looks like ffmpeg-FFMxxxx.stderr
  • Type tail -100 ffmpeg-FFMxxxx.stderr (replacing the filename by the correct one)
  • Copy paste those lines in a new gist
  • Type head -300 ffmpeg-FFMxxxx.stderr (replacing the filename by the correct one)
  • Copy paste those lines in another new gist
  • Copy paste all the gists links in the issue

Additional context
Add any other context about the problem here.

dsm 6.2.4 videostation 2.5,试过很多方法都是转圈不出画,博主的东西倒是可以出画了,不过mkv内置字幕没识别出来,这个应该可以研究修正一下的

[BUG] after last wrapper update video playback stops working

System details

  • Synology model: ds1520+
  • DSM version: 7.2-64570
  • SynoCommunity FFMPEG Version: 4.4.4-49
  • VideoStation version: 3.1.0-3153
  • Advanced Media Extensions version: 1.1.0-51005

Describe the bug
hello alex,
i ran the patch again today and now nothing works. neither the video playback nor the transcoding. no log file is created either. i can only give you the result of the patch

result.txt

ffmpeg27 not found when patching

System details

  • Synology model: DS1621+
  • DSM version: DSM 7.0.1-42218 Update 2
  • SynoCommunity FFMPEG Version: 4.4.2-43
  • VideoStation version: 3.0.2-2072
  • Advanced Media Extensions version: 1.1.1-0202

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

[BUG] Decoder (codec hevc) not found for input stream

System details

  • Synology model: DS1621+
  • DSM version: DSM 7.0.1-42218 Update 2
  • SynoCommunity FFMPEG Version: 4.4.2-43
  • VideoStation version: 3.0.2-2072
  • Advanced Media Extensions version: 1.1.1-0202

Describe the bug
My video contains HEVC stream, but it is mapped to H.264

Stream mapping:
  Stream #0:0 -> #0:0 (? (?) -> h264 (libx264))
  Stream #0:1 -> #0:1 (copy)
Decoder (codec hevc) not found for input stream #0:0

FFMPEG logs

ffmpeg.log

2022-05-09 20:59:18 - FFM8730 - *** PROCESS START REV 12.1 DS1621+ (v1000) PID 8730 ***
2022-05-09 20:59:18 - FFM8730 - MOVIE    = /volume1/userme/Movies/Glass.2019.2160p.BluRay.x265.10bit.HDR.DTS-HD.MA.TrueHD.7.1.Atmos-SWTYBLZ/Glass.2019.2160p.BluRay.x265.10bit.HDR.DTS-HD.MA.TrueHD.7.1.Atmos-SWTYBLZ.mkv
2022-05-09 20:59:18 - FFM8730 - VCODEC   = hevc (Main 10)
2022-05-09 20:59:18 - FFM8730 - ACODEC   = truehd
2022-05-09 20:59:18 - FFM8730 - PARAMVS  =
2022-05-09 20:59:18 - FFM8730 -          = -ss 0.000 -i /volume1/userme/Movies/Glass.2019.2160p.BluRay.x265.10bit.HDR.DTS-HD.MA.TrueHD.7.1.Atmos-SWTYBLZ/Glass.2019.
2022-05-09 20:59:18 - FFM8730 -          = 2160p.BluRay.x265.10bit.HDR.DTS-HD.MA.TrueHD.7.1.Atmos-SWTYBLZ.mkv -threads 0 -vcodec libx264 -vsync 2 -preset superfast
2022-05-09 20:59:18 - FFM8730 -          =  -vprofile baseline -level 30 -s 480x360 -vb 720000 -r 15 -acodec libmp3lame -ab 64k -ac 2 -f ssegment -pix_fmt yuv420p
2022-05-09 20:59:18 - FFM8730 -          = -segment_format mpegts -segment_list_type m3u8 -hls_seek_time 0 -segment_time 5 -segment_time_delta 0.000 -segment_start
2022-05-09 20:59:18 - FFM8730 -          = _number 00000 -avoid_negative_ts 0 -break_non_keyframes 1 -max_muxing_queue_size 1024 -map 0:0 -map 0:1 /tmp/VideoStatio
2022-05-09 20:59:18 - FFM8730 -          = n/HLS/0e0de6613138984a9e5c17ffd5cd6288_cwLQLByq/slice-%05d.ts
2022-05-09 20:59:18 - FFM8730 - MODE     = ORIG
2022-05-09 20:59:18 - FFM8730 - FFMPEG   = /var/packages/VideoStation/target/bin/ffmpeg.orig
2022-05-09 20:59:18 - FFM8730 - PARAMWP  =
2022-05-09 20:59:18 - FFM8730 -          = -ss 0.000 -i /volume1/userme/Movies/Glass.2019.2160p.BluRay.x265.10bit.HDR.DTS-HD.MA.TrueHD.7.1.Atmos-SWTYBLZ/Glass.2019.
2022-05-09 20:59:18 - FFM8730 -          = 2160p.BluRay.x265.10bit.HDR.DTS-HD.MA.TrueHD.7.1.Atmos-SWTYBLZ.mkv -threads 0 -vcodec libx264 -vsync 2 -preset superfast
2022-05-09 20:59:18 - FFM8730 -          =  -vprofile baseline -level 30 -s 480x360 -vb 720000 -r 15 -acodec libmp3lame -ab 64k -ac 2 -f ssegment -pix_fmt yuv420p
2022-05-09 20:59:18 - FFM8730 -          = -segment_format mpegts -segment_list_type m3u8 -hls_seek_time 0 -segment_time 5 -segment_time_delta 0.000 -segment_start
2022-05-09 20:59:18 - FFM8730 -          = _number 00000 -avoid_negative_ts 0 -break_non_keyframes 1 -map 0:0 -map 0:1 /tmp/VideoStation/HLS/0e0de6613138984a9e5c17
2022-05-09 20:59:18 - FFM8730 -          = ffd5cd6288_cwLQLByq/slice-%05d.ts
2022-05-09 20:59:18 - FFM8730 - CHILDPID = 8930
2022-05-09 20:59:18 - FFM8730 - *** CHILD END ***
2022-05-09 20:59:18 - FFM8730 - STDOUT   =
2022-05-09 20:59:18 - FFM8730 -          =     Metadata:
2022-05-09 20:59:18 - FFM8730 -          =       filename        : small_cover_land.jpg
2022-05-09 20:59:18 - FFM8730 -          =       mimetype        : image/jpeg
2022-05-09 20:59:18 - FFM8730 -          =     Stream #0:11: Video: mjpeg, yuvj444p(pc, bt470bg/unknown/unknown), 600x882, 90k tbr, 90k tbn, 90k tbc
2022-05-09 20:59:18 - FFM8730 -          =     Metadata:
2022-05-09 20:59:18 - FFM8730 -          =       filename        : cover.jpg
2022-05-09 20:59:18 - FFM8730 -          =       mimetype        : image/jpeg
2022-05-09 20:59:18 - FFM8730 -          =     Stream #0:12: Video: mjpeg, yuvj444p(pc, bt470bg/unknown/unknown), 1067x600, 90k tbr, 90k tbn, 90k tbc
2022-05-09 20:59:18 - FFM8730 -          =     Metadata:
2022-05-09 20:59:18 - FFM8730 -          =       filename        : cover_land.jpg
2022-05-09 20:59:18 - FFM8730 -          =       mimetype        : image/jpeg
2022-05-09 20:59:18 - FFM8730 -          = Stream mapping:
2022-05-09 20:59:18 - FFM8730 -          =   Stream #0:0 -> #0:0 (? (?) -> h264 (libx264))
2022-05-09 20:59:18 - FFM8730 -          =   Stream #0:1 -> #0:1 (? (?) -> mp3 (libmp3lame))
2022-05-09 20:59:18 - FFM8730 -          = Decoder (codec hevc) not found for input stream #0:0
2022-05-09 20:59:18 - FFM8730 - MODE     = PIPE V_ORIG-A_WRAP
2022-05-09 20:59:18 - FFM8730 - FFMPEG1  = /var/packages/VideoStation/target/bin/ffmpeg.orig
2022-05-09 20:59:18 - FFM8730 - FFMPEG2  = /var/packages/ffmpeg/target/bin/ffmpeg
2022-05-09 20:59:18 - FFM8730 - PARAM1   =
2022-05-09 20:59:18 - FFM8730 -          = -ss 0.000 -noaccurate_seek -i /volume1/userme/Movies/Glass.2019.2160p.BluRay.x265.10bit.HDR.DTS-HD.MA.TrueHD.7.1.Atmos-SW
2022-05-09 20:59:18 - FFM8730 -          = TYBLZ/Glass.2019.2160p.BluRay.x265.10bit.HDR.DTS-HD.MA.TrueHD.7.1.Atmos-SWTYBLZ.mkv -threads 0 -vcodec libx264 -vsync 2
2022-05-09 20:59:18 - FFM8730 -          = -preset superfast -vprofile baseline -level 30 -s 480x360 -vb 720000 -r 15 -acodec copy -f mpegts -pix_fmt yuv420p -map
2022-05-09 20:59:18 - FFM8730 -          = 0:0 -map 0:1 -bufsize 1024k pipe:1
2022-05-09 20:59:18 - FFM8730 - PARAM2   =
2022-05-09 20:59:18 - FFM8730 -          = -analyzeduration 10000000 -i pipe:0 -map 0 -vcodec copy -vb 720000 -acodec libmp3lame -ab 64k -ac 2 -f ssegment -segment
2022-05-09 20:59:18 - FFM8730 -          = _format mpegts -segment_list_type m3u8 -hls_seek_time 0 -segment_time 5 -segment_time_delta 0.000 -segment_start_number
2022-05-09 20:59:18 - FFM8730 -          = 00000 -avoid_negative_ts 0 -break_non_keyframes 1 -max_muxing_queue_size 1024 /tmp/VideoStation/HLS/0e0de6613138984a9e5c
2022-05-09 20:59:18 - FFM8730 -          = 17ffd5cd6288_cwLQLByq/slice-%05d.ts
2022-05-09 20:59:18 - FFM8730 - CHILDPID = 8969
2022-05-09 20:59:19 - FFM8730 - *** CHILD END ***
2022-05-09 20:59:19 - FFM8730 - STDOUT   =
2022-05-09 20:59:19 - FFM8730 -          = ffmpeg version 4.4.2 Copyright (c) 2000-2021 the FFmpeg developers
2022-05-09 20:59:19 - FFM8730 -          =   built with gcc 7.5.0 (GCC)
2022-05-09 20:59:19 - FFM8730 -          =   configuration: --target-os=linux --cross-prefix=/github/workspace/toolchain/syno-x64-7.0/work/x86_64-pc-linux-gnu/bin/
2022-05-09 20:59:19 - FFM8730 -          = x86_64-pc-linux-gnu- --prefix=/var/packages/ffmpeg/target --extra-cflags=-I/github/workspace/spk/ffmpeg/work-x64-7.0/ins
2022-05-09 20:59:19 - FFM8730 -          = tall/var/packages/ffmpeg/target/include --extra-ldflags=-L/github/workspace/spk/ffmpeg/work-x64-7.0/install/var/packages
2022-05-09 20:59:19 - FFM8730 -          = /ffmpeg/target/lib --extra-libs='-lxml2 -ldl' --pkg-config=/usr/bin/pkg-config --ranlib=/github/workspace/toolchain/syno
2022-05-09 20:59:19 - FFM8730 -          = -x64-7.0/work/x86_64-pc-linux-gnu/bin/x86_64-pc-linux-gnu-ranlib --enable-cross-compile --enable-rpath --enable-pic --en
2022-05-09 20:59:19 - FFM8730 -          = able-shared --enable-gpl --enable-version3 --enable-fontconfig --enable-avresample --disable-debug --disable-static --di
2022-05-09 20:59:19 - FFM8730 -          = sable-doc --extra-cflags=-DSYNO_VIDEOSTATION --extra-cflags=-fno-if-conversion --extra-cflags=-O3 --extra-cflags=-Wno-de
2022-05-09 20:59:19 - FFM8730 -          = precated-declarations --enable-libxml2 --enable-demuxer=dash --enable-libfreetype --enable-libfribidi --enable-libopenjp
2022-05-09 20:59:19 - FFM8730 -          = eg --enable-libmp3lame --enable-libbluray --enable-libspeex --enable-libtheora --enable-libvorbis --enable-gnutls --enab
2022-05-09 20:59:19 - FFM8730 -          = le-libopus --enable-libsoxr --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libzmq --enable-libzvbi --ena
2022-05-09 20:59:19 - FFM8730 -          = ble-libx264 --enable-libx265 --enable-libvpx --enable-libshine --enable-libdav1d --enable-librist --enable-libfdk-aac --
2022-05-09 20:59:19 - FFM8730 -          = enable-nonfree --enable-libaom --enable-libsvtav1 --enable-libsvthevc --arch=x86_64 --enable-vaapi --enable-libmfx --ena
2022-05-09 20:59:19 - FFM8730 -          = ble-libdrm
2022-05-09 20:59:19 - FFM8730 -          =   libavutil      56. 70.100 / 56. 70.100
2022-05-09 20:59:19 - FFM8730 -          =   libavcodec     58.134.100 / 58.134.100
2022-05-09 20:59:19 - FFM8730 -          =   libavformat    58. 76.100 / 58. 76.100
2022-05-09 20:59:19 - FFM8730 -          =   libavdevice    58. 13.100 / 58. 13.100
2022-05-09 20:59:19 - FFM8730 -          =   libavfilter     7.110.100 /  7.110.100
2022-05-09 20:59:19 - FFM8730 -          =   libavresample   4.  0.  0 /  4.  0.  0
2022-05-09 20:59:19 - FFM8730 -          =   libswscale      5.  9.100 /  5.  9.100
2022-05-09 20:59:19 - FFM8730 -          =   libswresample   3.  9.100 /  3.  9.100
2022-05-09 20:59:19 - FFM8730 -          =   libpostproc    55.  9.100 / 55.  9.100
2022-05-09 20:59:19 - FFM8730 -          = pipe:0: Invalid data found when processing input
2022-05-09 20:59:19 - FFM8730 - MODE     = PIPE V_WRAP-A_ORIG
2022-05-09 20:59:19 - FFM8730 - FFMPEG1  = /var/packages/ffmpeg/target/bin/ffmpeg
2022-05-09 20:59:19 - FFM8730 - FFMPEG2  = /var/packages/VideoStation/target/bin/ffmpeg.orig
2022-05-09 20:59:19 - FFM8730 - PARAM1   =
2022-05-09 20:59:19 - FFM8730 -          = -ss 0.000 -noaccurate_seek -i /volume1/userme/Movies/Glass.2019.2160p.BluRay.x265.10bit.HDR.DTS-HD.MA.TrueHD.7.1.Atmos-SW
2022-05-09 20:59:19 - FFM8730 -          = TYBLZ/Glass.2019.2160p.BluRay.x265.10bit.HDR.DTS-HD.MA.TrueHD.7.1.Atmos-SWTYBLZ.mkv -vcodec copy -vb 720000 -acodec libm
2022-05-09 20:59:19 - FFM8730 -          = p3lame -ab 64k -ac 2 -f mpegts -map 0:0 -map 0:1 -bufsize 1024k pipe:1
2022-05-09 20:59:19 - FFM8730 - PARAM2   =
2022-05-09 20:59:19 - FFM8730 -          = -analyzeduration 10000000 -i pipe:0 -map 0 -threads 0 -vcodec libx264 -vsync 2 -preset superfast -vprofile baseline -lev
2022-05-09 20:59:19 - FFM8730 -          = el 30 -s 480x360 -vb 720000 -r 15 -acodec copy -f ssegment -pix_fmt yuv420p -segment_format mpegts -segment_list_type m3
2022-05-09 20:59:19 - FFM8730 -          = u8 -hls_seek_time 0 -segment_time 5 -segment_time_delta 0.000 -segment_start_number 00000 -avoid_negative_ts 0 -break_no
2022-05-09 20:59:19 - FFM8730 -          = n_keyframes 1 -max_muxing_queue_size 1024 /tmp/VideoStation/HLS/0e0de6613138984a9e5c17ffd5cd6288_cwLQLByq/slice-%05d.ts
2022-05-09 20:59:19 - FFM8730 - CHILDPID = 8999
2022-05-09 20:59:20 - FFM8730 - *** CHILD END ***
2022-05-09 20:59:20 - FFM8730 - STDOUT   =
2022-05-09 20:59:20 - FFM8730 -          =   libpostproc    55.  3.100 / 55.  3.100
2022-05-09 20:59:20 - FFM8730 -          = [mpegts @ 0x56351a960d40] Could not find codec parameters for stream 0 (Video: hevc (HEVC / 0x43564548), none): unspecif
2022-05-09 20:59:20 - FFM8730 -          = ied size
2022-05-09 20:59:20 - FFM8730 -          = Consider increasing the value for the 'analyzeduration' and 'probesize' options
2022-05-09 20:59:20 - FFM8730 -          = Input #0, mpegts, from 'pipe:0':
2022-05-09 20:59:20 - FFM8730 -          =   Duration: N/A, start: 1.459978, bitrate: N/A
2022-05-09 20:59:20 - FFM8730 -          =   Program 1
2022-05-09 20:59:20 - FFM8730 -          =     Metadata:
2022-05-09 20:59:20 - FFM8730 -          =       service_name    : Glass.2019.2160p.BluRay.x265.10bit.HDR.DTS-HD.MA.TrueHD.7.1.Atmos-SWTYBLZ
2022-05-09 20:59:20 - FFM8730 -          =       service_provider: FFmpeg
2022-05-09 20:59:20 - FFM8730 -          =     Stream #0:0[0x100]: Video: hevc (HEVC / 0x43564548), none, 23.98 fps, 23.98 tbr, 90k tbn, 90k tbc
2022-05-09 20:59:20 - FFM8730 -          =     Stream #0:1[0x101](eng): Audio: mp3 ([3][0][0][0] / 0x0003), 48000 Hz, stereo, fltp, 64 kb/s
2022-05-09 20:59:20 - FFM8730 -          = Stream mapping:
2022-05-09 20:59:20 - FFM8730 -          =   Stream #0:0 -> #0:0 (? (?) -> h264 (libx264))
2022-05-09 20:59:20 - FFM8730 -          =   Stream #0:1 -> #0:1 (copy)
2022-05-09 20:59:20 - FFM8730 -          = Decoder (codec hevc) not found for input stream #0:0
2022-05-09 20:59:20 - FFM8730 - MODE     = WRAPPER
2022-05-09 20:59:20 - FFM8730 - FFMPEG   = /var/packages/ffmpeg/target/bin/ffmpeg
2022-05-09 20:59:20 - FFM8730 - CHILDPID = 9038

ffmpeg-FFM17601.stderr

ffmpeg version 4.4.2 Copyright (c) 2000-2021 the FFmpeg developers
  built with gcc 7.5.0 (GCC)
  configuration: --target-os=linux --cross-prefix=/github/workspace/toolchain/syno-x64-7.0/work/x86_64-pc-linux-gnu/bin/x86_64-pc-linux-gnu- --prefix=/var/packages/ffmpeg/target --extra-cflags=-I/github/workspace/spk/ffmpeg/work-x64-7.0/install/var/packages/ffmpeg/target/include --extra-ldflags=-L/github/workspace/spk/ffmpeg/work-x64-7.0/install/var/packages/ffmpeg/target/lib --extra-libs='-lxml2 -ldl' --pkg-config=/usr/bin/pkg-config --ranlib=/github/workspace/toolchain/syno-x64-7.0/work/x86_64-pc-linux-gnu/bin/x86_64-pc-linux-gnu-ranlib --enable-cross-compile --enable-rpath --enable-pic --enable-shared --enable-gpl --enable-version3 --enable-fontconfig --enable-avresample --disable-debug --disable-static --disable-doc --extra-cflags=-DSYNO_VIDEOSTATION --extra-cflags=-fno-if-conversion --extra-cflags=-O3 --extra-cflags=-Wno-deprecated-declarations --enable-libxml2 --enable-demuxer=dash --enable-libfreetype --enable-libfribidi --enable-libopenjpeg --enable-libmp3lame --enable-libbluray --enable-libspeex --enable-libtheora --enable-libvorbis --enable-gnutls --enable-libopus --enable-libsoxr --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libzmq --enable-libzvbi --enable-libx264 --enable-libx265 --enable-libvpx --enable-libshine --enable-libdav1d --enable-librist --enable-libfdk-aac --enable-nonfree --enable-libaom --enable-libsvtav1 --enable-libsvthevc --arch=x86_64 --enable-vaapi --enable-libmfx --enable-libdrm
  libavutil      56. 70.100 / 56. 70.100
  libavcodec     58.134.100 / 58.134.100
  libavformat    58. 76.100 / 58. 76.100
  libavdevice    58. 13.100 / 58. 13.100
  libavfilter     7.110.100 /  7.110.100
  libavresample   4.  0.  0 /  4.  0.  0
  libswscale      5.  9.100 /  5.  9.100
  libswresample   3.  9.100 /  3.  9.100
  libpostproc    55.  9.100 / 55.  9.100
[matroska,webm @ 0x86fa00] Stream #9: not enough frames to estimate rate; consider increasing probesize
[matroska,webm @ 0x86fa00] Stream #10: not enough frames to estimate rate; consider increasing probesize
[matroska,webm @ 0x86fa00] Stream #11: not enough frames to estimate rate; consider increasing probesize
[matroska,webm @ 0x86fa00] Stream #12: not enough frames to estimate rate; consider increasing probesize
[matroska,webm @ 0x86fa00] Could not find codec parameters for stream 6 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size
Consider increasing the value for the 'analyzeduration' (0) and 'probesize' (5000000) options
[matroska,webm @ 0x86fa00] Could not find codec parameters for stream 7 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size
Consider increasing the value for the 'analyzeduration' (0) and 'probesize' (5000000) options
[matroska,webm @ 0x86fa00] Could not find codec parameters for stream 8 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size
Consider increasing the value for the 'analyzeduration' (0) and 'probesize' (5000000) options
Input #0, matroska,webm, from '/volume1/userme/Movies/Glass.2019.2160p.BluRay.x265.10bit.HDR.DTS-HD.MA.TrueHD.7.1.Atmos-SWTYBLZ/Glass.2019.2160p.BluRay.x265.10bit.HDR.DTS-HD.MA.TrueHD.7.1.Atmos-SWTYBLZ.mkv':
  Metadata:
    title           : Glass.2019.2160p.BluRay.x265.10bit.HDR.DTS-HD.MA.TrueHD.7.1.Atmos-SWTYBLZ
    encoder         : libebml v1.3.7 + libmatroska v1.5.0
    creation_time   : 2019-04-10T14:02:37.000000Z
  Duration: 02:09:01.60, start: 0.000000, bitrate: 20562 kb/s
  Chapters:
    Chapter #0:0: start 0.000000, end 248.457000
      Metadata:
        title           : Chapter 01
    Chapter #0:1: start 248.457000, end 576.367000
      Metadata:
        title           : Chapter 02
    Chapter #0:2: start 576.367000, end 870.078000
      Metadata:
        title           : Chapter 03
    Chapter #0:3: start 870.078000, end 1189.897000
      Metadata:
        title           : Chapter 04
    Chapter #0:4: start 1189.897000, end 1481.063000
      Metadata:
        title           : Chapter 05
    Chapter #0:5: start 1481.063000, end 1785.826000
      Metadata:
        title           : Chapter 06
    Chapter #0:6: start 1785.826000, end 2100.598000
      Metadata:
        title           : Chapter 07
    Chapter #0:7: start 2100.598000, end 2347.595000
      Metadata:
        title           : Chapter 08
    Chapter #0:8: start 2347.595000, end 2848.220000
      Metadata:
        title           : Chapter 09
    Chapter #0:9: start 2848.220000, end 3436.224000
      Metadata:
        title           : Chapter 10
    Chapter #0:10: start 3436.224000, end 3775.271000
      Metadata:
        title           : Chapter 11
    Chapter #0:11: start 3775.271000, end 4166.829000
      Metadata:
        title           : Chapter 12
    Chapter #0:12: start 4166.829000, end 4470.299000
      Metadata:
        title           : Chapter 13
    Chapter #0:13: start 4470.299000, end 4903.774000
      Metadata:
        title           : Chapter 14
    Chapter #0:14: start 4903.774000, end 5410.530000
      Metadata:
        title           : Chapter 15
    Chapter #0:15: start 5410.530000, end 5895.515000
      Metadata:
        title           : Chapter 16
    Chapter #0:16: start 5895.515000, end 6248.742000
      Metadata:
        title           : Chapter 17
    Chapter #0:17: start 6248.742000, end 6847.215000
      Metadata:
        title           : Chapter 18
    Chapter #0:18: start 6847.215000, end 7380.290000
      Metadata:
        title           : Chapter 19
    Chapter #0:19: start 7380.290000, end 7741.600000
      Metadata:
        title           : Chapter 20
  Stream #0:0: Video: hevc (Main 10), yuv420p10le(tv, bt2020nc/bt2020/smpte2084), 3840x1606 [SAR 1:1 DAR 1920:803], 23.98 fps, 23.98 tbr, 1k tbn, 23.98 tbc (default)
    Metadata:
      title           : Glass.2019.2160p.BluRay.x265.10bit.HDR.DTS-HD.MA.TrueHD.7.1.Atmos-SWTYBLZ
      BPS-eng         : 11445060
      DURATION-eng    : 02:09:01.567000000
      NUMBER_OF_FRAMES-eng: 185612
      NUMBER_OF_BYTES-eng: 11075337991
      _STATISTICS_WRITING_APP-eng: mkvmerge v32.0.0 ('Astral Progressions') 64-bit
      _STATISTICS_WRITING_DATE_UTC-eng: 2019-04-10 14:02:37
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
  Stream #0:1(eng): Audio: truehd, 48000 Hz, 7.1, s32 (24 bit) (default)
    Metadata:
      title           : Glass.2019.2160p.BluRay.x265.10bit.HDR.DTS-HD.MA.TrueHD.7.1.Atmos-SWTYBLZ
      BPS-eng         : 4109199
      DURATION-eng    : 02:09:01.569000000
      NUMBER_OF_FRAMES-eng: 9289882
      NUMBER_OF_BYTES-eng: 3976456526
      _STATISTICS_WRITING_APP-eng: mkvmerge v32.0.0 ('Astral Progressions') 64-bit
      _STATISTICS_WRITING_DATE_UTC-eng: 2019-04-10 14:02:37
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
  Stream #0:2(eng): Audio: dts (DTS-HD MA), 48000 Hz, 7.1, s32p (24 bit)
    Metadata:
      title           : Glass.2019.2160p.BluRay.x265.10bit.HDR.DTS-HD.MA.TrueHD.7.1.Atmos-SWTYBLZ
      BPS-eng         : 4462769
      DURATION-eng    : 02:09:01.600000000
      NUMBER_OF_FRAMES-eng: 725775
      NUMBER_OF_BYTES-eng: 4318622424
      _STATISTICS_WRITING_APP-eng: mkvmerge v32.0.0 ('Astral Progressions') 64-bit
      _STATISTICS_WRITING_DATE_UTC-eng: 2019-04-10 14:02:37
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
  Stream #0:3(eng): Audio: ac3, 48000 Hz, 5.1(side), fltp, 448 kb/s
    Metadata:
      title           : Glass.2019.2160p.BluRay.x265.10bit.HDR.DTS-HD.MA.TrueHD.7.1.Atmos-SWTYBLZ
      BPS-eng         : 448000
      DURATION-eng    : 02:09:01.568000000
      NUMBER_OF_FRAMES-eng: 241924
      NUMBER_OF_BYTES-eng: 433527808
      _STATISTICS_WRITING_APP-eng: mkvmerge v32.0.0 ('Astral Progressions') 64-bit
      _STATISTICS_WRITING_DATE_UTC-eng: 2019-04-10 14:02:37
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
  Stream #0:4(eng): Subtitle: subrip (default)
    Metadata:
      title           : English-SRT
      BPS-eng         : 43
      DURATION-eng    : 02:01:44.295000000
      NUMBER_OF_FRAMES-eng: 1197
      NUMBER_OF_BYTES-eng: 39862
      _STATISTICS_WRITING_APP-eng: mkvmerge v32.0.0 ('Astral Progressions') 64-bit
      _STATISTICS_WRITING_DATE_UTC-eng: 2019-04-10 14:02:37
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
  Stream #0:5(eng): Subtitle: subrip
    Metadata:
      title           : English-SDH-SRT
      BPS-eng         : 50
      DURATION-eng    : 02:02:26.916000000
      NUMBER_OF_FRAMES-eng: 1561
      NUMBER_OF_BYTES-eng: 46817
      _STATISTICS_WRITING_APP-eng: mkvmerge v32.0.0 ('Astral Progressions') 64-bit
      _STATISTICS_WRITING_DATE_UTC-eng: 2019-04-10 14:02:37
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
  Stream #0:6(eng): Subtitle: hdmv_pgs_subtitle
    Metadata:
      title           : English-PGS
      BPS-eng         : 36091
      DURATION-eng    : 02:02:26.923000000
      NUMBER_OF_FRAMES-eng: 3130
      NUMBER_OF_BYTES-eng: 33144774
      _STATISTICS_WRITING_APP-eng: mkvmerge v32.0.0 ('Astral Progressions') 64-bit
      _STATISTICS_WRITING_DATE_UTC-eng: 2019-04-10 14:02:37
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
  Stream #0:7(spa): Subtitle: hdmv_pgs_subtitle
    Metadata:
      title           : Spanish-PGS
      BPS-eng         : 26852
      DURATION-eng    : 02:08:31.454000000
      NUMBER_OF_FRAMES-eng: 2450
      NUMBER_OF_BYTES-eng: 25883503
      _STATISTICS_WRITING_APP-eng: mkvmerge v32.0.0 ('Astral Progressions') 64-bit
      _STATISTICS_WRITING_DATE_UTC-eng: 2019-04-10 14:02:37
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
  Stream #0:8(fre): Subtitle: hdmv_pgs_subtitle
    Metadata:
      title           : French-PGS
      BPS-eng         : 26794
      DURATION-eng    : 02:08:31.454000000
      NUMBER_OF_FRAMES-eng: 2457
      NUMBER_OF_BYTES-eng: 25827857
      _STATISTICS_WRITING_APP-eng: mkvmerge v32.0.0 ('Astral Progressions') 64-bit
      _STATISTICS_WRITING_DATE_UTC-eng: 2019-04-10 14:02:37
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
  Stream #0:9: Video: mjpeg (Baseline), yuvj444p(pc, bt470bg/unknown/unknown), 120x176, 90k tbr, 90k tbn, 90k tbc (attached pic)
    Metadata:
      filename        : small_cover.jpg
      mimetype        : image/jpeg
  Stream #0:10: Video: mjpeg (Baseline), yuvj444p(pc, bt470bg/unknown/unknown), 213x120, 90k tbr, 90k tbn, 90k tbc (attached pic)
    Metadata:
      filename        : small_cover_land.jpg
      mimetype        : image/jpeg
  Stream #0:11: Video: mjpeg (Baseline), yuvj444p(pc, bt470bg/unknown/unknown), 600x882, 90k tbr, 90k tbn, 90k tbc (attached pic)
    Metadata:
      filename        : cover.jpg
      mimetype        : image/jpeg
  Stream #0:12: Video: mjpeg (Baseline), yuvj444p(pc, bt470bg/unknown/unknown), 1067x600, 90k tbr, 90k tbn, 90k tbc (attached pic)
    Metadata:
      filename        : cover_land.jpg
      mimetype        : image/jpeg
Stream mapping:
  Stream #0:0 -> #0:0 (hevc (native) -> h264 (libx264))
  Stream #0:1 -> #0:1 (truehd (native) -> mp3 (libmp3lame))
Press [q] to stop, [?] for help
[libx264 @ 0xb2cd40] using SAR=1440/803
[libx264 @ 0xb2cd40] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
[libx264 @ 0xb2cd40] profile Constrained Baseline, level 3.0, 4:2:0, 8-bit
[stream_segment,ssegment @ 0xa837c0] Opening '/tmp/VideoStation/HLS/0e0de6613138984a9e5c17ffd5cd6288_y83oOoOr/slice-00026.ts' for writing
Output #0, stream_segment,ssegment, to '/tmp/VideoStation/HLS/0e0de6613138984a9e5c17ffd5cd6288_y83oOoOr/slice-%05d.ts':
  Metadata:
    title           : Glass.2019.2160p.BluRay.x265.10bit.HDR.DTS-HD.MA.TrueHD.7.1.Atmos-SWTYBLZ
    encoder         : Lavf58.76.100
  Chapters:
    Chapter #0:0: start 0.000000, end 118.457000
      Metadata:
        title           : Chapter 01
    Chapter #0:1: start 118.457000, end 446.367000
      Metadata:
        title           : Chapter 02
    Chapter #0:2: start 446.367000, end 740.078000
      Metadata:
        title           : Chapter 03
    Chapter #0:3: start 740.078000, end 1059.897000
      Metadata:
        title           : Chapter 04
    Chapter #0:4: start 1059.897000, end 1351.063000
      Metadata:
        title           : Chapter 05
    Chapter #0:5: start 1351.063000, end 1655.826000
      Metadata:
        title           : Chapter 06
    Chapter #0:6: start 1655.826000, end 1970.598000
      Metadata:
        title           : Chapter 07
    Chapter #0:7: start 1970.598000, end 2217.595000
      Metadata:
        title           : Chapter 08
    Chapter #0:8: start 2217.595000, end 2718.220000
      Metadata:
        title           : Chapter 09
    Chapter #0:9: start 2718.220000, end 3306.224000
      Metadata:
        title           : Chapter 10
    Chapter #0:10: start 3306.224000, end 3645.271000
      Metadata:
        title           : Chapter 11
    Chapter #0:11: start 3645.271000, end 4036.829000
      Metadata:
        title           : Chapter 12
    Chapter #0:12: start 4036.829000, end 4340.299000
      Metadata:
        title           : Chapter 13
    Chapter #0:13: start 4340.299000, end 4773.774000
      Metadata:
        title           : Chapter 14
    Chapter #0:14: start 4773.774000, end 5280.530000
      Metadata:
        title           : Chapter 15
    Chapter #0:15: start 5280.530000, end 5765.515000
      Metadata:
        title           : Chapter 16
    Chapter #0:16: start 5765.515000, end 6118.742000
      Metadata:
        title           : Chapter 17
    Chapter #0:17: start 6118.742000, end 6717.215000
      Metadata:
        title           : Chapter 18
    Chapter #0:18: start 6717.215000, end 7250.290000
      Metadata:
        title           : Chapter 19
    Chapter #0:19: start 7250.290000, end 7611.600000
      Metadata:
        title           : Chapter 20
  Stream #0:0: Video: h264, yuv420p(tv, bt2020nc/bt2020/smpte2084, progressive), 480x360 [SAR 1440:803 DAR 1920:803], q=2-31, 720 kb/s, 15 fps, 90k tbn (default)
    Metadata:
      title           : Glass.2019.2160p.BluRay.x265.10bit.HDR.DTS-HD.MA.TrueHD.7.1.Atmos-SWTYBLZ
      BPS-eng         : 11445060
      DURATION-eng    : 02:09:01.567000000
      NUMBER_OF_FRAMES-eng: 185612
      NUMBER_OF_BYTES-eng: 11075337991
      _STATISTICS_WRITING_APP-eng: mkvmerge v32.0.0 ('Astral Progressions') 64-bit
      _STATISTICS_WRITING_DATE_UTC-eng: 2019-04-10 14:02:37
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
      encoder         : Lavc58.134.100 libx264
    Side data:
      cpb: bitrate max/min/avg: 0/0/720000 buffer size: 0 vbv_delay: N/A
  Stream #0:1(eng): Audio: mp3, 48000 Hz, stereo, s32p (24 bit), 64 kb/s (default)
    Metadata:
      title           : Glass.2019.2160p.BluRay.x265.10bit.HDR.DTS-HD.MA.TrueHD.7.1.Atmos-SWTYBLZ
      BPS-eng         : 4109199
      DURATION-eng    : 02:09:01.569000000
      NUMBER_OF_FRAMES-eng: 9289882
      NUMBER_OF_BYTES-eng: 3976456526
      _STATISTICS_WRITING_APP-eng: mkvmerge v32.0.0 ('Astral Progressions') 64-bit
      _STATISTICS_WRITING_DATE_UTC-eng: 2019-04-10 14:02:37
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
      encoder         : Lavc58.134.100 libmp3lame
[stream_segment,ssegment @ 0xa837c0] Opening '/tmp/VideoStation/HLS/0e0de6613138984a9e5c17ffd5cd6288_y83oOoOr/slice-00027.ts' for writing
[stream_segment,ssegment @ 0xa837c0] Opening '/tmp/VideoStation/HLS/0e0de6613138984a9e5c17ffd5cd6288_y83oOoOr/slice-00028.ts' for writing
[stream_segment,ssegment @ 0xa837c0] Opening '/tmp/VideoStation/HLS/0e0de6613138984a9e5c17ffd5cd6288_y83oOoOr/slice-00029.ts' for writing
[stream_segment,ssegment @ 0xa837c0] Opening '/tmp/VideoStation/HLS/0e0de6613138984a9e5c17ffd5cd6288_y83oOoOr/slice-00030.ts' for writing
[stream_segment,ssegment @ 0xa837c0] Opening '/tmp/VideoStation/HLS/0e0de6613138984a9e5c17ffd5cd6288_y83oOoOr/slice-00031.ts' for writing
[stream_segment,ssegment @ 0xa837c0] Opening '/tmp/VideoStation/HLS/0e0de6613138984a9e5c17ffd5cd6288_y83oOoOr/slice-00032.ts' for writing

[BUG] HEVC still doesn't play

Before going any further, I should clarify that I'm using DSM 7 in a PC, not an actual Synology NAS - this patches the system to boot as if it was a DS920+ Intel Gemini Lake but actually it's an Intel i5 4590. The only thing I'm not positive on is if by needing AME I also need an actual Synology account and a license or if maybe the issue is hardware-related.

I've followed the first steps:

  • Uninstalled VideoStation
  • Uninstalled Advanced Media Extensions
  • Re-installed VideoStation (did not ask to install AME, installed it manually)
  • Ran the patch

System details

  • Synology model: DS920+ (or so it thinks)
  • DSM version: 7.2-64570 Update 1
  • SynoCommunity FFMPEG Version: 4.4.4-49
  • VideoStation version: 3.1.0-3153
  • Advanced Media Extensions version: 3.1.0-3005

Describe the bug
HEVC videos do not play (tried with AAC, OPUS and EAC3 audio)

ffmpeg.log (containing the ffmpeg-wrapper execution logs)

The playback never starts, so I assume this is the reason for no log file; I had log files there but deleted them to start with a fresh log, but no log file gets produced when attmpting to load HEVC files, although it does generate a log file when playing valid videos like H264 encoded ones.

ffmpeg-xxxx.stderr (containing chunks transcoding operations)

Same as above, no error log file gets produced since no playback occurs.

gstreamer.log (containing the ffmpeg-wrapper execution logs)

No gstreamer log exists inside /tmp

gstlaunch-xxxx.stderr (containing chunks transcoding operations)

Same as above, no error log file gets produced, probably because no playback occurs.

[QA] DSVideo doesn't resume video

Hi

DSVideo is not resuming when I want to start a video at a certain timestamp.
It was working in the past, but since a few weeks it's not anymore.
I normal start from the beginning is working fine.
I have this problem on multiple devices on multiple OS versions, local and remote, so it looks related to the NAS itself.

Not sure if the FFMPEG is the reason it's not working, but with your coding insight, you maybe have a reason why it's not working.

Thanks!

[QA] Extend the patch to the media server (DLNA)

Before all, I really appreciate the script you made, it's usefull and really accurate.

I've applied the patch and everything works on VideoStation but do you know if it's possible to apply the same patch to the DLNA media server because same files don't work on my TV

Best regards

Cannot play any HEVC file, even with supported codec

Everything is updated, done in proper order (multiple times)

System details

  • Synology model: DS416j
  • DSM version: DSM 7.1.1-42962 Update 3
  • SynoCommunity FFMPEG Version: 4.4.3-47
  • VideoStation version: 3.0.5-2503
  • Advanced Media Extensions version: 3.0.1-2004

Describe the bug
I cannot get ANY hevc file to play with VideoStation, even with a supported codec [no DTS, no EAC3, no TrueHD].
I have been trying off and on to get hevc working on my DS416j, I am currently dealing with Synology support, since it might be a bug with my model. Like the other who has a DS218, I do not have a gstreamer binary. There is also no output or error messages on the Synology to help diagnose, all I get is a "The format of this video is not supported" from the VideoStation app on my Iphone or ipad, or when I use Chrome/Firefox/Safari browswer on Win10 or OSX

I have made a bunch of videos with different combinations of A/V codecs to help trouble shoot:
https://github.com/deprekate/VideoStation-FFMPEG-Patcher/tree/main/tests
I can request a pull if you would like to include these files in your repo (they are small and copyright free)
Like, the x265 with mp3 codec should play fine through VideoStation + ffmpeg + AME + Patcher right?

The only thing that the Patcher does it let me play x264 with eac codec, the table for what plays on my DS is:

has mp3 aac ac3 eac dts
VS+ffmpeg+AME x264 Y Y Y N N
VS+ffmpeg+AME x265 N N N N N
VS+ffmpeg+AME+Wrapper x264 Y Y Y Y N
VS+ffmpeg+AME+Wrapper x265 N N N N N

Provide Log files

ffmpeg.log (containing the ffmpeg-wrapper execution logs)

https://gist.github.com/deprekate/ccadeff85a708cf461a4dd3a053991ae

ffmpeg-FFMxxxx.stderr (containing chunks transcoding operations)

there is no .stderr file

Additional context
There is nothing interesting in /var/log/packages/ files:
CodecPack.log ffmpeg.log VideoStation.log

The only suspicious error messages I get are in the /var/log/apparmor.log file:
https://gist.github.com/deprekate/73c1b5b171669ec23b8e781e7cdb01b5
I don't know if these messages means apparmor blocked AME from getting/installing the proper hevbc codecs, or if Apparmor just blocked AME from checking for updates.

Both the green checkmarks are green in AME for HEVC and AAC

I am VERY proficient in linux and other stuff, but I am at a loss here. Any ideas I could try to help figure out whats going on?

[BUG] HEVC + [DTS or EAC3 or TrueHD] not being transcoded once patched (GStreamer)

Refer to the prior list branched to this question
#15 (comment)

I have been patching VideoStation with Vincent compiled ffmpeg 4.x and videos have been playing fine in eac3, dts, truehd. Now, suddenly, they don't play anymore with most recent DSM update. I'm unsure why but did find a few wrinkles where there's additional ffmpeg binaries. Even after linking them to the ffmpeg 4.x community forum binary, eac3 videos still will not play.

Alex suggested running the patcher.sh file. Looking through it, it seems identical to the steps I did except the patcher.sh puts a script inplace of the ffmpeg in /var/packages/VideoStation/target/bin directory which then goes through some logic to call the correct binary. This practice was used in the past prior to Vincent doing a native compile for the ffmpeg binary with supports all the options synology uses. Thus, the script was no longer needed.

It appears that somewhere in the libraries (not modified by the script) there are still some prohibited codecs (e.g. eac3, dts, truehd). The real question is where are these codecs listed?

Here's the mods for ffmpeg4:

sudo -i

these are a soft link to the ffmpeg binary that can be used instead.

mv /var/packages/VideoStation/target/bin/ffmpeg /var/packages/VideoStation/target/bin/ffmpeg.old
ln -sf /var/packages/ffmpeg/target/bin/ffmpeg /var/packages/VideoStation/target/bin/ffmpeg
mv /var/packages/CodecPack/target/bin/ffmpeg41 /var/packages/CodecPack/target/bin/ffmpeg41.old
ln -sf /var/packages/ffmpeg/target/bin/ffmpeg /var/packages/CodecPack/target/bin/ffmpeg41
mv /var/packages/VideoStation/target/bin/ffprobe /var/packages/VideoStation/target/bin/ffprobe.old
ln -sf /var/packages/ffmpeg/target/bin/ffprobe /var/packages/VideoStation/target/bin/ffprobe
mv /var/packages/VideoStation/target/bin/vainfo /var/packages/VideoStation/target/bin/vainfo.old
ln -sf /var/packages/ffmpeg/target/bin/vainfo /var/packages/VideoStation/target/bin/vainfo
cp -p /var/packages/VideoStation/target/lib/libsynovte.so /var/packages/VideoStation/target/lib/libsynovte.so.old
sed -i 's/eac3/BLAH/' /var/packages/VideoStation/target/lib/libsynovte.so
sed -i 's/dts/ZAP/' /var/packages/VideoStation/target/lib/libsynovte.so
sed -i 's/truehd/IGNORE/' /var/packages/VideoStation/target/lib/libsynovte.so

[BUG] Thumbnail generation is not possible in VideoStation.

System details

  • Synology model: DS3622xs+
  • DSM version: DSM 7.1.1-42962 Update 4
  • SynoCommunity FFMPEG Version: 4.4.3-47
  • VideoStation version: 3.0.5-2503

Describe the bug
Thumbnail generation is not possible in VideoStation.

ffmpeg.log (containing the ffmpeg-wrapper execution logs)

[20:16:48] [INFO] ========================================[start ffmpeg 24795]
[20:16:48] [INFO] DEFAULT_ARGS: -timelimit 240 -an -i /volume4/xxxx.mp4 -ss 3 -vframes 1 -vf scale=size=hd480:force_original_aspect_ratio=decrease -f mjpeg -y /volume4/xxxx.mp4/SYNOVIDEO_TEMP.jpg
[20:16:50] [INFO] ========================================[end ffmpeg 24795]

Low FPS after updating to last DSM

System details

  • Synology model: DS220+
  • DSM version: 7.1-42661 Update 2
  • SynoCommunity FFMPEG Version: 4.4.2-44
  • VideoStation version: 3.0.3-2084
  • Advanced Media Extensions version: 2.0.0-1017

Describe the bug
Hi! Great work with this patch. I still don't understand why Synology can make something like this official so we can watch videos without problems.

Anyway, everything worked greatly until yesterday that I updated DSM to the last version. Now when trying to play a video directly from Video Station (through the web) it sounds fine, but the video is laggy, playing at low fps, so it's uncomfortable to watch (for example has happened with the last episodes of both Obi-Wan and Ms. Marvel from today). Also some videos directly don't show image but play sound (e.g. previous episodes of Obi-Wan that worked fine previously to the update). I don't know if it is because of your patch that needs to adpat somehow to the newer versions of VideoStation and AME, or maybe it is because of FFMPEG. Anyway, I though you needed to know about this issue just in case :D

Provide Log files

  • Start the video on VideoStation, wait for the video to play and put the browser in background (keep the video playing)
  • Connect through SSH (help)
  • Switch to root user: sudo -i

ffmpeg.log (containing the ffmpeg-wrapper execution logs)

https://gist.github.com/cptspartano/1df0583c60ea5bba686e77ed81d368ab

ffmpeg-FFMxxxx.stderr (containing chunks transcoding operations)

tail: https://gist.github.com/cptspartano/f3ec38c2a1bd836ad13c203e14a3c3eb
head: https://gist.github.com/cptspartano/d2c82c66c27b6b7040da8f2bbeb2fe53

If you need anything else let me know!

[QA] Stereo only when casting to Chromecast

Hi!
Thanks for great and simple tool that allows to watch movies with eac3 or dts sound.
However I'm not sure it works correct in my case... After applying patch I can watch movies and cast them to Chromecast but sound is recognized as stereo, but should be one of surround modes (I guess).
I'm using DS216j and DS Video Station tool installed on Android tablet and trying to cast to original Chromecast 2 dongle attached to Denon AV receiver. Netflix casts are recognized properly as DD surround. Movies I tried to cast has eac3 and/or its sound tracks.

Is this correct I have only stereo sound?
If so, is there anything I can do to get surround?

Thanks!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.