Add comments to createXxxxCommand functions to clarify about the filepaths arguments being absolute paths
This commit is contained in:
@@ -37,6 +37,7 @@ func (ff *ffmpeg) Start(ctx context.Context, command, path string, maxBitRate in
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Path will always be an absolute path
|
||||||
func createTranscodeCommand(cmd, path string, maxBitRate int, format string) (string, []string) {
|
func createTranscodeCommand(cmd, path string, maxBitRate int, format string) (string, []string) {
|
||||||
split := strings.Split(cmd, " ")
|
split := strings.Split(cmd, " ")
|
||||||
for i, s := range split {
|
for i, s := range split {
|
||||||
|
|||||||
@@ -268,6 +268,7 @@ func (m *Metadata) parseDuration(tagName string) float32 {
|
|||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Inputs will always be absolute paths
|
||||||
func createProbeCommand(inputs []string) (string, []string) {
|
func createProbeCommand(inputs []string) (string, []string) {
|
||||||
cmd := conf.Server.ProbeCommand
|
cmd := conf.Server.ProbeCommand
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user