Add DASH to docs and log messages (#3521)

This commit is contained in:
DingDongSoLong4
2023-03-10 03:19:36 +02:00
committed by GitHub
parent e90b00d3bd
commit 1c8aa46da5
5 changed files with 7 additions and 8 deletions

View File

@@ -44,7 +44,7 @@ type StreamManagerConfig interface {
func NewStreamManager(cacheDir string, encoder *FFMpeg, ffprobe FFProbe, config StreamManagerConfig, lockManager *fsutil.ReadLockManager) *StreamManager { func NewStreamManager(cacheDir string, encoder *FFMpeg, ffprobe FFProbe, config StreamManagerConfig, lockManager *fsutil.ReadLockManager) *StreamManager {
if cacheDir == "" { if cacheDir == "" {
logger.Warn("cache directory is not set. Live HLS transcoding will be disabled") logger.Warn("cache directory is not set. Live HLS/DASH transcoding will be disabled")
} }
ctx, cancel := context.WithCancel(context.Background()) ctx, cancel := context.WithCancel(context.Background())

View File

@@ -1,4 +1,4 @@
##### 💥 Note: The cache directory is now required if using HLS streaming. Please set the cache directory in the System Settings page. ##### 💥 Note: The cache directory is now required if using HLS/DASH streaming. Please set the cache directory in the System Settings page.
### ✨ New Features ### ✨ New Features
* Added hardware acceleration support (for a limited number of encoders) for transcoding. ([#3419](https://github.com/stashapp/stash/pull/3419)) * Added hardware acceleration support (for a limited number of encoders) for transcoding. ([#3419](https://github.com/stashapp/stash/pull/3419))

View File

@@ -81,9 +81,9 @@ Note: If this is set too high it will decrease overall performance and causes fa
Hardware accelerated live transcoding can be enabled by setting the `FFmpeg hardware encoding` setting. Stash outputs the supported hardware encoders to the log file on startup at the Info log level. If a given hardware encoder is not supported, it's error message is logged to the Debug log level for debugging purposes. Hardware accelerated live transcoding can be enabled by setting the `FFmpeg hardware encoding` setting. Stash outputs the supported hardware encoders to the log file on startup at the Info log level. If a given hardware encoder is not supported, it's error message is logged to the Debug log level for debugging purposes.
## HLS Streaming ## HLS/DASH Streaming
If using HLS streaming (such as on Apple devices), the Cache path must be set. This directory is used to store temporary files during the live-transcoding process. The Cache path can be set in the System settings page. To stream using HLS (such as on Apple devices) or DASH, the Cache path must be set. This directory is used to store temporary files during the live-transcoding process. The Cache path can be set in the System settings page.
## ffmpeg arguments ## ffmpeg arguments

View File

@@ -1 +1 @@
The cache directory is now required if using HLS streaming. Please set the cache directory in the System Settings page. The cache directory is now required if using HLS/DASH streaming. Please set the cache directory in the System Settings page.

View File

@@ -256,7 +256,7 @@
"description": "Directory location for SQLite database file backups", "description": "Directory location for SQLite database file backups",
"heading": "Backup Directory Path" "heading": "Backup Directory Path"
}, },
"cache_location": "Directory location of the cache. Required if streaming using HLS (such as on Apple devices).", "cache_location": "Directory location of the cache. Required if streaming using HLS (such as on Apple devices) or DASH.",
"cache_path_head": "Cache Path", "cache_path_head": "Cache Path",
"calculate_md5_and_ohash_desc": "Calculate MD5 checksum in addition to oshash. Enabling will cause initial scans to be slower. File naming hash must be set to oshash to disable MD5 calculation.", "calculate_md5_and_ohash_desc": "Calculate MD5 checksum in addition to oshash. Enabling will cause initial scans to be slower. File naming hash must be set to oshash to disable MD5 calculation.",
"calculate_md5_and_ohash_label": "Calculate MD5 for videos", "calculate_md5_and_ohash_label": "Calculate MD5 for videos",
@@ -551,7 +551,6 @@
"image_lightbox": { "image_lightbox": {
"heading": "Image Lightbox" "heading": "Image Lightbox"
}, },
"image_wall": { "image_wall": {
"direction": "Direction", "direction": "Direction",
"heading": "Image Wall", "heading": "Image Wall",
@@ -1089,7 +1088,7 @@
"set_up_your_paths": "Set up your paths", "set_up_your_paths": "Set up your paths",
"stash_alert": "No library paths have been selected. No media will be able to be scanned into Stash. Are you sure?", "stash_alert": "No library paths have been selected. No media will be able to be scanned into Stash. Are you sure?",
"where_can_stash_store_cache_files": "Where can Stash store cache files?", "where_can_stash_store_cache_files": "Where can Stash store cache files?",
"where_can_stash_store_cache_files_description": "In order for some functionality like HLS live transcoding to function, Stash requires a cache directory for temporary files. By default, Stash will create a <code>cache</code> directory within the directory containing your config file. If you want to change this, please enter an absolute or relative (to the current working directory) path. Stash will create this directory if it does not already exist.", "where_can_stash_store_cache_files_description": "In order for some functionality like HLS/DASH live transcoding to function, Stash requires a cache directory for temporary files. By default, Stash will create a <code>cache</code> directory within the directory containing your config file. If you want to change this, please enter an absolute or relative (to the current working directory) path. Stash will create this directory if it does not already exist.",
"where_can_stash_store_its_database": "Where can Stash store its database?", "where_can_stash_store_its_database": "Where can Stash store its database?",
"where_can_stash_store_its_database_description": "Stash uses an SQLite database to store your porn metadata. By default, this will be created as <code>stash-go.sqlite</code> in the directory containing your config file. If you want to change this, please enter an absolute or relative (to the current working directory) filename.", "where_can_stash_store_its_database_description": "Stash uses an SQLite database to store your porn metadata. By default, this will be created as <code>stash-go.sqlite</code> in the directory containing your config file. If you want to change this, please enter an absolute or relative (to the current working directory) filename.",
"where_can_stash_store_its_database_warning": "WARNING: storing the database on a different system to where Stash is run from (e.g. storing the database on a NAS while running the Stash server on another computer) is <strong>unsupported</strong>! SQLite is not intended for use across a network, and attempting to do so can very easily cause your entire database to become corrupted.", "where_can_stash_store_its_database_warning": "WARNING: storing the database on a different system to where Stash is run from (e.g. storing the database on a NAS while running the Stash server on another computer) is <strong>unsupported</strong>! SQLite is not intended for use across a network, and attempting to do so can very easily cause your entire database to become corrupted.",