The previous behavior using `eof_action=endall` and `shortest=1` would
end the video stream if one of the input stream (video, subtitle) ends.
In some cases the duration of the overlayed subtitles is shorter than the
video stream, causing the output to end when the subtitles end and dropping
the remaining video stream.
This commit changes this behavior so `eof_action=pass` is used instead,
which continues passing the video stream through even if the subtitles end
earlier [1]. `shortest=1` is also removed, as this option implies
`eof_action=endall`.
If the subtitle stream has a higher duration than the video stream, the output
will also end with the video stream without `shortest=1`, as the video stream
is the primary input to the `overlay` filter.
Fix#10698
[1] https://ffmpeg.org/ffmpeg-filters.html#Options-for-filters-with-several-inputs-_0028framesync_0029
Fix performance loss of QSV HDR tone-mapping on Windows
Original-merge: 757f88b1a2
Merged-by: Bond-009 <bond.009@outlook.com>
Backported-by: Bond_009 <bond.009@outlook.com>
EncodingOptions.TranscodingTempPath can be empty (and is by default),
the correct way to get the trancode path is
EncodingConfigurationExtensions.GetTranscodePath which falls back to $CACHEPATH/transcodes
when EncodingOptions.TranscodingTempPath is null or empty.
ROCm OpenCL runtime is not needed anymore when using HDR tone-mapping on Polaris/gfx8.
This change requires jellyfin-ffmpeg5 5.1.3-4 or jellyfin-ffmpeg6 6.0-5
or newer versions.
Signed-off-by: nyanmisaka <nst799610810@gmail.com>
Fix the canvas size for DVBSUB and DVDSUB subtitles
Original-merge: eba95cc7f0
Merged-by: Joshua M. Boniface <joshua@boniface.me>
Backported-by: Bond_009 <bond.009@outlook.com>
Fix the brightness of VPP tonemap and add the tonemap mode
Original-merge: d5a8419bc5
Merged-by: Cody Robibero <cody@robibe.ro>
Backported-by: Bond_009 <bond.009@outlook.com>