mirror of
https://github.com/revenz/FileFlowsPlugins.git
synced 2025-12-30 22:50:04 -06:00
FF-268 - video nodes now using -movflags +faststart for mp4
This commit is contained in:
@@ -28,7 +28,7 @@
|
||||
"Subject": "Subject",
|
||||
"Subject-Help": "The subject of the email being set",
|
||||
"Body": "Body",
|
||||
"Body-Help": "The content of the email message being sent. Uses the scriban templating language\nhttps://github.com/scriban/scriban"
|
||||
"Body-Help": "The content of the email message being sent. Uses the [scriban](https://github.com/scriban/scriban) templating language"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
"ServerUrl-Placeholder": "http://localhost:32400/",
|
||||
"ServerUrl-Help": "The URL of the Plex server",
|
||||
"AccessToken": "Access Token",
|
||||
"AccessToken-Help": "The access token used to communicate with the Plex server.\nhttps://github.com/revenz/Fenrus/wiki/Plex-Token",
|
||||
"AccessToken-Help": "The [access token](https://github.com/revenz/Fenrus/wiki/Plex-Token) used to communicate with the Plex server.",
|
||||
"Mapping": "Mapping",
|
||||
"Mapping-Help": "A list of mapping replacement used to paths in FileFlows with the paths that are used in Plex.",
|
||||
"MappingKey": "FileFlows",
|
||||
@@ -28,7 +28,7 @@
|
||||
"ServerUrl-Placeholder": "http://localhost:32400/",
|
||||
"ServerUrl-Help": "The URL of the Plex server. If blank will use the Server defined in the Plugin settings.\nNote: Only set this if you want to override the plugin settings server URL.",
|
||||
"AccessToken": "Access Token",
|
||||
"AccessToken-Help": "The access token used to communicate with the Plex server.\nhttps://github.com/revenz/Fenrus/wiki/Plex-Token\nNote: Only set this if you want to override the plugin settings access token.",
|
||||
"AccessToken-Help": "The [access token](https://github.com/revenz/Fenrus/wiki/Plex-Token) used to communicate with the Plex server.\nNote: Only set this if you want to override the plugin settings access token.",
|
||||
"Mapping": "Mapping",
|
||||
"Mapping-Help": "A list of mapping replacement used to paths in FileFlows with the paths that are used in Plex.\nNote: This will not be used unless the Server URL is also set here, otherwise the plugin settings mappings will be used.",
|
||||
"MappingKey": "FileFlows",
|
||||
@@ -46,7 +46,7 @@
|
||||
"ServerUrl-Placeholder": "http://localhost:32400/",
|
||||
"ServerUrl-Help": "The URL of the Plex server. If blank will use the Server defined in the Plugin settings.\nNote: Only set this if you want to override the plugin settings server URL.",
|
||||
"AccessToken": "Access Token",
|
||||
"AccessToken-Help": "The access token used to communicate with the Plex server.\nhttps://github.com/revenz/Fenrus/wiki/Plex-Token\nNote: Only set this if you want to override the plugin settings access token.",
|
||||
"AccessToken-Help": "The [access token](https://github.com/revenz/Fenrus/wiki/Plex-Token) used to communicate with the Plex server.\nNote: Only set this if you want to override the plugin settings access token.",
|
||||
"Mapping": "Mapping",
|
||||
"Mapping-Help": "A list of mapping replacement used to paths in FileFlows with the paths that are used in Plex.\nNote: This will not be used unless the Server URL is also set here, otherwise the plugin settings mappings will be used.",
|
||||
"MappingKey": "FileFlows",
|
||||
|
||||
@@ -89,7 +89,7 @@
|
||||
"Description": "Allows you to set the language for any audio tracks that have no language set. If the audio track does have a language set, it will be skipped.\n\nOutput 1: Audio Tracks were updated\nOutput 2: No audio tracks were needing to be updated",
|
||||
"Fields": {
|
||||
"Language": "Language",
|
||||
"Language-Help": "The ISO 639-2 language code to use. \nhttps://en.wikipedia.org/wiki/List_of_ISO_639-2_codes"
|
||||
"Language-Help": "The [ISO 639-2](https://en.wikipedia.org/wiki/List_of_ISO_639-2_codes) language code to use."
|
||||
}
|
||||
},
|
||||
"AutoChapters": {
|
||||
@@ -209,7 +209,7 @@
|
||||
"AudioCodec": "Audio Codec",
|
||||
"AudioCodec-Help": "The audio codec to encode the video with.\nIf left empty all original audio tracks will be copied.",
|
||||
"Language": "Language",
|
||||
"Language-Help": "Optional ISO 639-2 language code to use. Will attempt to find an audio track with this language code if not the best audio track will be used.\nhttps://en.wikipedia.org/wiki/List_of_ISO_639-2_codes"
|
||||
"Language-Help": "Optional [ISO 639-2](https://en.wikipedia.org/wiki/List_of_ISO_639-2_codes) language code to use. Will attempt to find an audio track with this language code if not the best audio track will be used."
|
||||
}
|
||||
},
|
||||
"VideoHasStream": {
|
||||
|
||||
@@ -70,7 +70,7 @@ namespace FileFlows.VideoNodes
|
||||
{
|
||||
if (TotalTime.TotalMilliseconds == 0)
|
||||
{
|
||||
Args?.Logger?.DLog("Can't report time progress as total time is 0");
|
||||
//Args?.Logger?.DLog("Can't report time progress as total time is 0");
|
||||
return;
|
||||
}
|
||||
float percent = (float)((time.TotalMilliseconds / TotalTime.TotalMilliseconds) * 100);
|
||||
|
||||
@@ -121,6 +121,10 @@ namespace FileFlows.VideoNodes.FfmpegBuilderNodes
|
||||
startArgs.Add(file);
|
||||
}
|
||||
startArgs.Add("-y");
|
||||
if (extension.ToLower() == "mp4" && ffArgs.IndexOf("-movflags") < 0 && startArgs.IndexOf("-movflgs") < 0)
|
||||
{
|
||||
startArgs.AddRange(new[] { "-movflags", "+faststart" });
|
||||
}
|
||||
ffArgs = startArgs.Concat(ffArgs).ToList();
|
||||
|
||||
|
||||
|
||||
@@ -10,8 +10,8 @@
|
||||
"AudioToVideo": {
|
||||
"Description": "Converts an audio file into a video file and generates a video based on the audio",
|
||||
"Fields": {
|
||||
"Visualisation": "Visualisation",
|
||||
"Visualisation-Help": "The visualation to use in the generated video. See Help for examples",
|
||||
"Visualization": "Visualisation",
|
||||
"Visualization-Help": "The visualation to use in the generated video. See Help for examples",
|
||||
"Container": "Container",
|
||||
"Resolution": "Resolution",
|
||||
"Codec": "Codec",
|
||||
@@ -94,7 +94,7 @@
|
||||
"Codec": "Codec",
|
||||
"Codec-Help": "The codec to use to encode the audio",
|
||||
"Language": "Language",
|
||||
"Language-Help": "Optional ISO 639-2 language code to use. Will attempt to find an audio track with this language code if not the best audio track will be used.\nhttps://en.wikipedia.org/wiki/List_of_ISO_639-2_codes"
|
||||
"Language-Help": "Optional [ISO 639-2](https://en.wikipedia.org/wiki/List_of_ISO_639-2_codes) language code to use. Will attempt to find an audio track with this language code if not the best audio track will be used."
|
||||
}
|
||||
},
|
||||
"FfmpegBuilderAudioAdjustVolume": {
|
||||
@@ -210,7 +210,7 @@
|
||||
"StreamType": "Type",
|
||||
"StreamType-Help": "The type of track to set the language for",
|
||||
"Language": "Language",
|
||||
"Language-Help": "The ISO 639-2 language code to use.\nhttps://en.wikipedia.org/wiki/List_of_ISO_639-2_codes"
|
||||
"Language-Help": "The [ISO 639-2](https://en.wikipedia.org/wiki/List_of_ISO_639-2_codes) language code to use."
|
||||
}
|
||||
},
|
||||
"FfmpegBuilderAutoChapters": {
|
||||
@@ -458,7 +458,7 @@
|
||||
},
|
||||
"Fields": {
|
||||
"Language": "Language",
|
||||
"Language-Help": "The ISO 639-2 language code to use. \nhttps://en.wikipedia.org/wiki/List_of_ISO_639-2_codes",
|
||||
"Language-Help": "The [ISO 639-2](https://en.wikipedia.org/wiki/List_of_ISO_639-2_codes) language code to use.",
|
||||
"OutputFile": "Output File",
|
||||
"OutputFile-Help": "Where to save the the output file to, e.g. \"'{folder.Orig.FullName}\\{file.Orig.FileName}.srt'\" to save it with the original file as a srt output.\nIf left blank an srt subtitle will be created in the same folder as the original input file.",
|
||||
"SetWorkingFile": "Set as Working File",
|
||||
|
||||
@@ -132,6 +132,9 @@ public class AudioToVideo : EncodingNode
|
||||
List<string> ffArgs = new List<string>();
|
||||
var encodingParameters = FfmpegBuilderVideoEncode.GetEncodingParameters(args, this.Codec, 28, HardwareEncoding);
|
||||
|
||||
if (Container.ToLower() == "mp4")
|
||||
ffArgs.AddRange(new[] { "-movflags", "+faststart" });
|
||||
|
||||
switch (Visualization)
|
||||
{
|
||||
case VisualizationStyle.Waves:
|
||||
|
||||
@@ -70,7 +70,7 @@ namespace FileFlows.VideoNodes
|
||||
{
|
||||
if (TotalTime.TotalMilliseconds == 0)
|
||||
{
|
||||
Args?.Logger?.DLog("Can't report time progress as total time is 0");
|
||||
//Args?.Logger?.DLog("Can't report time progress as total time is 0");
|
||||
return;
|
||||
}
|
||||
float percent = (float)((time.TotalMilliseconds / TotalTime.TotalMilliseconds) * 100);
|
||||
|
||||
Reference in New Issue
Block a user