Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to add image using cv::videowriter with CAP_FFMPEG #5

Open
Mephiro opened this issue Oct 23, 2023 · 0 comments
Open

Unable to add image using cv::videowriter with CAP_FFMPEG #5

Mephiro opened this issue Oct 23, 2023 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@Mephiro
Copy link
Owner

Mephiro commented Oct 23, 2023

Test config:

  • OpenCV compiled with FFMPEG.
  • code used to create the VideoWriter object:
cv::VideoWriter video;
int fourcc = cv::VideoWriter::fourcc('a', 'v', 'c', '1');
cv::Size videoSize(xcrop.size(),ycrop.size());
if(canvas.timelapse()){
    video.open("timelapse.mp4",cv::CAP_FFMPEG,fourcc,10,videoSize,true);
}
  • code used to write a cv::Mat image to the video file:
video.write(out_img);

Result:

  • Video file "timelapse.mp4" is created
  • no error neither from FFMPEG or OpenCV
  • cv::VideoWriter do not write the images to the video file
@Mephiro Mephiro self-assigned this Oct 23, 2023
@Mephiro Mephiro added the bug Something isn't working label Oct 23, 2023
@Mephiro Mephiro changed the title Unable to add image to cv::videowriter with CAP_FFMPEG Unable to add image using cv::videowriter with CAP_FFMPEG Oct 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant