Skip to content

Commit

Permalink
Add timecode generation to video-only remux operations (#32)
Browse files Browse the repository at this point in the history
  • Loading branch information
kris-sum authored May 24, 2023
1 parent c8ba44d commit 82f4d67
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion ffmpegutil/ffmpeg.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,14 @@ func MuxVideoOnly(partition *ubv.UbvPartition, h264File string, mp4File string)
videoTrack.Rate = 1
}

cmd := exec.Command(getFfmpegCommand(), "-i", h264File, "-c", "copy", "-r", strconv.Itoa(videoTrack.Rate), "-y", "-loglevel", "warning", mp4File)
cmd := exec.Command(getFfmpegCommand(),
"-i", h264File,
"-c", "copy",
"-r", strconv.Itoa(videoTrack.Rate),
"-timecode", ubv.GenerateTimecode(videoTrack.StartTimecode, videoTrack.Rate),
"-y",
"-loglevel", "warning",
mp4File)

runFFmpeg(cmd)
}
Expand Down

0 comments on commit 82f4d67

Please sign in to comment.