Skip to content

Commit

Permalink
Merge pull request #311 from Xceptance/#305-bug-possible-codec-issue-…
Browse files Browse the repository at this point in the history
…on-mp4-recording

#305: Bug: Possible codec issue on mp4 recording
  • Loading branch information
wurzelkuchen authored Nov 21, 2024
2 parents 2d39aa2 + 66c149e commit 0a1a754
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ protected VideoWriter(RecordingConfigurations recordingConfigurations, String vi
// check if ffmpeg binary is found
p = new ProcessBuilder(((VideoRecordingConfigurations) recordingConfigurations).ffmpegBinaryPath(), "-h").start();

pb = new ProcessBuilder(((VideoRecordingConfigurations) recordingConfigurations).ffmpegBinaryPath(), "-y", "-f", "image2pipe", "-r", " 5/1", "-i", "pipe:0", "-c:v", "libx264", videoFileName);
pb = new ProcessBuilder(((VideoRecordingConfigurations) recordingConfigurations).ffmpegBinaryPath(), "-y", "-f", "image2pipe", "-i", "pipe:0", "-c:v", "libx264", "-strict", "-2", "-preset", "slow", "-pix_fmt", "yuv420p", "-vf", "scale=trunc(iw/2)*2:trunc(ih/2)*2", "-f", "mp4", videoFileName);
pb.redirectErrorStream(true);
pb.redirectOutput(Redirect.appendTo(new File(((VideoRecordingConfigurations) recordingConfigurations).ffmpegLogFile())));
}
Expand Down

0 comments on commit 0a1a754

Please sign in to comment.