avi

Why an avi file can not be opened in OpenCV-Python

南楼画角 提交于 2019-12-11 08:00:07
问题 I installed OpenCV vers. 2.4.7.2 on a Windows Vista (32-bit) platform, with no reported errors. Then the following file: C:\opencv\build\python\2.7\x86\cv2.pyd was moved to: C:\python27\Lib\site-packages\ I have been testing openCV with both images and video (*.avi) files. I have no problems (yet) when working with images. However, I have found a problem when trying to open avieo files. First, an example that works fine: import cv2 path = 'D:/Videos/' video = 'julius.avi' # a test avi

OpenCV write frame to file python

…衆ロ難τιáo~ 提交于 2019-12-11 05:05:14
问题 Hey so im starting to play around with OpenCV and I cant get my webcam output saved to a file. Here is what I have. This runs fine, launches the webcam and creates "output.avi" The issue is output.avi is tiny(414 bytes) and the same exact bytes each time I run the program. Im guessing the issue is with the fourcc encoding but I havent been able to find what works in my case. I am running on Mac OS X. Let me know if you need anymore information. import numpy as np import cv2 path = ('/full

Matplotlib animation: setting fps=90 creates a movie file properly, but setting fps=120 does not?

醉酒当歌 提交于 2019-12-11 03:15:56
问题 Could you help me understand why this might be the case? This is what my command looks like: ani.save("animation.avi", codec="libx264", fps=120) The movie file size with the above command is very small in the order of hundreds of kilobytes. Playing the movie just shows a static picture (the very first frame). ani.save("animation.avi", codec="libx264", fps=90) This on the other hand, creates a movie file with a reasonable size in the order of megabytes, and plays as an animation as well. At

Directshow capture to file, nothing happens

时光毁灭记忆、已成空白 提交于 2019-12-10 22:19:48
问题 I am trying to follow through the DirectShow examples on the windows dev center to make my own application that can capture screen and audio to video: Capturing Video to an AVI File All code goes ok but nothing happens, the avi file is not appearing. The web cam is connected I can see stream with AMCap. In code cam is appearing with correct filename. The windows SDK is installed, my platform is win7 x64. My code: #include "stdafx.h" #include <iostream> #include <windows.h> #include <dshow.h>

Saving scatterplot animations with matplotlib

偶尔善良 提交于 2019-12-10 14:54:57
问题 I've been trying to save an animated scatterplot with matplotlib, and I would prefer that it didn't require totally different code for viewing as an animated figure and for saving a copy. The figure shows all the datapoints perfectly after the save completes. This code is a modified version of Giggi's on Animating 3d scatterplot in matplotlib, with a fix for the colors from Yann's answer on Matplotlib 3D scatter color lost after redraw (because colors will be important on my video, so I want

Create an .avi file from a list of bitmap images

久未见 提交于 2019-12-10 14:43:07
问题 I am currently trying to make a screen recorder. I made list of bitmap images and want to put them in an .avi file. Is there anyway to do that in C#? note: i'm a novice, so keep things simple 回答1: Try this site which has downloadable examples as well: A Simple C# Wrapper for the AviFile Library. 回答2: Try SharpAvi library. Its sources include a sample screen recording application. 来源: https://stackoverflow.com/questions/11802778/create-an-avi-file-from-a-list-of-bitmap-images

openCV cvCreateVideoWriter always returns null

↘锁芯ラ 提交于 2019-12-10 11:40:09
问题 I am trying to save a video file with openCV under Mandriva Linux 2009.1. Unfortunately cvCreateVideoWriter always returns null although I could see and modify both and mpeg fiels, in other words cvCaptureFromCam, cvCaptureFromAvi, cvRetrieveFrame is working. I tried all the possible codecs from this tutorial and this codec page. I also tried 0 for uncompressed avi and -1 for a selection box in the fourcc parameter, but no choice has popped up and nothing happened. I also modified isColor to

Open and read avi files with OpenCV - Ubuntu

若如初见. 提交于 2019-12-10 10:19:18
问题 I have just read this in the book OpenCV 2 Computer Vision Application Programming Cookbook by R. Laganiere : It is important to note that in order to open the specified video file, your computer must have the corresponding codec installed, otherwise cv::VideoCapture will not be able to understand the input file. Normally, if you are able to open your video file with a video player on your machine (such as the Windows Media Player), then OpenCV should also be able to read this file.

What type of .avi video jmf plays?

主宰稳场 提交于 2019-12-08 12:42:23
After struggling through exceptions in using jmf, on How do I remove nullpointerexception . I am able to now play my video, but only the .mov file here at this website . But I am creating my video file using ffmpeg using images and .wav audio files. I can create it in any format, .avi , .mov , .mp4 , but what is important is I should be able to play it in my player, which I built using JMF. Currently, I am getting this error, Unable to handle format: FMP4, 1366x768, FrameRate=30.0, Length=3147264 0 extra bytes java.lang.NullPointerException at java.awt.Container.addImpl(Unknown Source) at java

What type of .avi video jmf plays?

此生再无相见时 提交于 2019-12-08 07:51:07
问题 After struggling through exceptions in using jmf, on How do I remove nullpointerexception. I am able to now play my video, but only the .mov file here at this website. But I am creating my video file using ffmpeg using images and .wav audio files. I can create it in any format, .avi , .mov , .mp4 , but what is important is I should be able to play it in my player, which I built using JMF. Currently, I am getting this error, Unable to handle format: FMP4, 1366x768, FrameRate=30.0, Length