Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6943293
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T13:08:11+00:00 2026-05-27T13:08:11+00:00

I am using opencv and successfully created a video file using number of images.

  • 0

I am using opencv and successfully created a video file using number of images. Now i want to add some effects to the images, Transition effects as we mostly have in slide shows e.g. FadeIn or FadeOut. And a background audio also. Is it possible to do with the opencv??

Also i want to show one image at one second delay? the below code is showing four images in one second. I am new to opencv so please help with that.

import cv

im1 = cv.LoadImage("Sunset.jpg")
im2 = cv.LoadImage("Blue hills.jpg")
im3 = cv.LoadImage("Water lilies.jpg")
im4 = cv.LoadImage("Winter.jpg")

fps = 4.0
frame_size = cv.GetSize(im1)

writer = cv.CreateVideoWriter("out.avi", -1, fps, frame_size, True)

for i in range(4):
    print cv.WriteFrame(writer, eval('im' + str(i+1)))

del writer
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T13:08:12+00:00Added an answer on May 27, 2026 at 1:08 pm

    Yes and No.

    OpenCV is not meant for editing videos. I mean, you can do that, but it’s not the focus of the library. However, OpenCV offers image processing techniques that might help you achieve those cool effects you are looking for, but it’s up to you to write them.

    For pausing between frames, check the sleep function (from python’s Time library).

    OpenCV is aimed at computer vision (audio/video processing), not audio. You might want to take a look at ffmpeg for that. I posted an answer some time ago that shared C code to play audio/video on a SDL window, using a combination of OpenCV to deal with images and FFmpeg to load audio stream from a video file.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to do background subtraction in a video file using OpenCV method. Right
I am using opencv to process very large images (some times even more than
I want to compare two images using OpenCV. Could I filter the nearest matching
I've been using OpenCV for quite some time now and I always ignored more
Using OpenCV, saving a CvMat structure into a YAML file on the disk is
At the moment I am using OpenCV's KNN implementation to classify images. It currently
I'm using OpenCV 2.3.2 library downloaded from OpenCV trunk. I want to use setOpenGlDrawCallback
I am building an application using OpenCV that uses the webcam and runs some
I cannot successfully calculate the distance transformation using OpenCV (2.3) on an ubuntu. The
I have successfully built and installed the opencv lib. Now I am trying to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.