avi

codes to convert from avi to asf

谁说胖子不能爱 提交于 2019-12-08 04:58:58
问题 No matter what library/SDK to use, I want to convert from avi to asf very quickly (I could even sacrifice some quality of video and audio). I am working on Windows platform (Vista and 2008 Server), better .Net SDK/code, C++ code is also fine. :-) I learned from the below link, that there could be a very quick way to convert from avi to asf to support streaming better, as mentioned "could convert the video from AVI to ASF format using a simple copy (i.e. the content is the same, but container

How to convert AVI to 3gp in C#? [closed]

蓝咒 提交于 2019-12-07 14:14:38
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed last year . Is it possible to convert an AVI file to 3gp in C# ? If so how could I do this? Any ideas will be appreciated, thanks in advance. 回答1: It depends what you mean by "convert". Both 3GP and AVI are wrapper formats, so are you merely trying to change the container format, or do you want

Capture video using webcam and save as avi using c# [duplicate]

假装没事ソ 提交于 2019-12-07 07:02:27
问题 This question already has answers here : Closed 7 years ago . Possible Duplicate: Webcam capture and convert to avi Is there any way of capturing video from webcam, encode and save the video as an avi file (as a movie) using c#? 回答1: Use AForge . Well tested, well documented, well maintained. AForge.NET Framework is a C# framework designed for developers and researchers in the fields of Computer Vision and Artificial Intelligence - image processing, neural networks, genetic algorithms,

openCV cvCreateVideoWriter always returns null

南笙酒味 提交于 2019-12-06 16:25:35
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 0. I also have write permissions in the working directory. Here is the relevant code snippet:

Python and OpenCV - Cannot write readable avi video files

限于喜欢 提交于 2019-12-06 02:47:18
问题 I have a code like this: import numpy as np import cv2 cap = cv2.VideoCapture('C:/Users/Hilman/haatsu/drive_recorder/sample/3.mov') # Define the codec and create VideoWriter object fourcc = cv2.VideoWriter_fourcc(*'XVID') out = cv2.VideoWriter('output.avi', fourcc, 20.0, (640,480)) while(cap.isOpened()): ret, frame = cap.read() if ret==True: frame = cv2.flip(frame,0) # write the flipped frame out.write(frame) cv2.imshow('frame',frame) if cv2.waitKey(1) & 0xFF == ord('q'): break else: break #

How to convert AVI to 3gp in C#? [closed]

风格不统一 提交于 2019-12-05 21:17:09
Is it possible to convert an AVI file to 3gp in C# ? If so how could I do this? Any ideas will be appreciated, thanks in advance. It depends what you mean by "convert". Both 3GP and AVI are wrapper formats, so are you merely trying to change the container format, or do you want to re-encode the streams as well? Either way, you should probably take a look at ffmpeg ( Windows info ). For simple cases (i.e. you have the file, want a single output file), you should probably consider it invoking it on the command-line (i.e. System.Diagnostics.Process ), which is much easier (and doesn't involve any

Open and read avi files with OpenCV - Ubuntu

随声附和 提交于 2019-12-05 20:26:32
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. Unfortunately, things aren't that easy for me. Yes, I can read avi files on my video player, however it does not

How to play other video formats in JavaFX

大憨熊 提交于 2019-12-05 03:31:25
问题 I am busy with a movie/video-clip player/library. I want to do this in JavafX. Almost 90% of the video clips is in AVI format. I cannot for several reasons covert the movies/video-clips. I also want the program to mark the video files that were played, from start to complete, so that I will know what have been watched. So the program needs to be able to interact with the video player to know when the video has played to the end. JavafX doesn't allow playback for AVI files. What's the

Getting frames from .avi video using OpenCV

被刻印的时光 ゝ 提交于 2019-12-05 00:34:19
问题 #include "cv.h" #include "highgui.h" int main(int argc, char** argv) { CvCapture* capture=0; IplImage* frame=0; capture = cvCaptureFromAVI("C:\\boy walking back.avi"); // read AVI video if( !capture ) throw "Error when reading steam_avi"; cvNamedWindow( "w", 1); for( ; ; ) { /* int cvGrabFrame (CvCapture* capture); IplImage* cvRetrieveFrame (CvCapture* capture)*/ frame = cvQueryFrame( capture ); if(!frame) break; cvShowImage("w", frame); } cvWaitKey(0); // key press to close window

Python and OpenCV - Cannot write readable avi video files

谁说我不能喝 提交于 2019-12-04 07:29:00
I have a code like this: import numpy as np import cv2 cap = cv2.VideoCapture('C:/Users/Hilman/haatsu/drive_recorder/sample/3.mov') # Define the codec and create VideoWriter object fourcc = cv2.VideoWriter_fourcc(*'XVID') out = cv2.VideoWriter('output.avi', fourcc, 20.0, (640,480)) while(cap.isOpened()): ret, frame = cap.read() if ret==True: frame = cv2.flip(frame,0) # write the flipped frame out.write(frame) cv2.imshow('frame',frame) if cv2.waitKey(1) & 0xFF == ord('q'): break else: break # Release everything if job is finished cap.release() out.release() cv2.destroyAllWindows() But the