Skip to content

Commit

Permalink
fix: change codec of mp4 to h264 (tier4#1262)
Browse files Browse the repository at this point in the history
Signed-off-by: tomoya.kimura <tomoya.kimura@tier4.jp>
  • Loading branch information
tkimura4 authored and boyali committed Oct 3, 2022
1 parent 7d18bb5 commit af58dff
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ void AutowareScreenCapturePanel::convertPNGImagesToMP4()
if (!capture.isOpened()) {
return;
}
int fourcc = cv::VideoWriter::fourcc('m', 'p', '4', 'v'); // mp4
int fourcc = cv::VideoWriter::fourcc('h', '2', '6', '4'); // mp4
cv::VideoWriter writer;
cv::Size size = cv::Size(width_, height_);
writer.open("capture/" + root_folder_ + ".mp4", fourcc, capture_hz_->value(), size);
Expand Down

0 comments on commit af58dff

Please sign in to comment.