Skip to content

Commit

Permalink
Fix generic_recordVideo not saving in corresponding path
Browse files Browse the repository at this point in the history
  • Loading branch information
Miguel-Dorta committed Aug 8, 2020
1 parent 676f391 commit d408f1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/generic_recordVideo/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ func start() error {
}

ctx, _ := context.WithTimeout(context.Background(), recordingDuration+endingTimeout)
execCmd := exec.CommandContext(ctx, ffmpegPath, "-rtsp_transport", "tcp", "-i", url, "-acodec", "copy", "-vcodec", "copy", filename)
execCmd := exec.CommandContext(ctx, ffmpegPath, "-rtsp_transport", "tcp", "-i", url, "-acodec", "copy", "-vcodec", "copy", filepath.Join(dir, filename))
if verbose {
execCmd.Stderr = os.Stderr
execCmd.Stdout = os.Stdout
Expand Down

0 comments on commit d408f1b

Please sign in to comment.