Skip to content

Commit

Permalink
fix:Set the recording timestamp,so can use stream_tags[creation_time] (
Browse files Browse the repository at this point in the history
…#527)

Co-authored-by: shify <[email protected]>
  • Loading branch information
cheermao and shify authored Oct 31, 2023
1 parent c2111fd commit 5af7dd7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/kotlin/org/jitsi/jibri/capture/ffmpeg/Commands.kt
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ fun getFfmpegCommandLinux(ffmpegExecutorParams: FfmpegExecutorParams, sink: Sink
*sink.options, "-pix_fmt", "yuv420p", "-r", ffmpegExecutorParams.framerate.toString(),
"-crf", ffmpegExecutorParams.h264ConstantRateFactor.toString(),
"-g", ffmpegExecutorParams.gopSize.toString(), "-tune", "zerolatency",
"-timestamp", "now",
"-f", sink.format, sink.path
)
}
Expand All @@ -60,6 +61,7 @@ fun getFfmpegCommandMac(ffmpegExecutorParams: FfmpegExecutorParams, sink: Sink):
"-c:v", "libx264", "-preset", ffmpegExecutorParams.videoEncodePreset,
*sink.options, "-pix_fmt", "yuv420p", "-crf", ffmpegExecutorParams.h264ConstantRateFactor.toString(),
"-g", ffmpegExecutorParams.gopSize.toString(), "-tune", "zerolatency",
"-timestamp", "now",
"-f", sink.format, sink.path
)
}

0 comments on commit 5af7dd7

Please sign in to comment.