avi

FFmpeg fourcc Avi codec support list?

断了今生、忘了曾经 提交于 2019-11-30 05:13:35
A couple of similar questions are on stackoverflow, but I haven't been able to figure this exact problem out. I want to get a list of the fourcc s for the avi codecs that FFMpeg can decode. I know how to get all the formats ffmpeg -formats and codecs ffmpeg -codecs but neither list gives me an accessible list of fourccs . Neither does the documentation I can find. I need this list, so that my application can access the fourcc of an avi file and determine whether to use ffmpeg or VfW (or DirectX ) to try decode the file. Is there some ffmpeg command that can give me this list? I don't know if

PHP header attach AVI-file

夙愿已清 提交于 2019-11-29 17:36:17
I'm trying to make a PHP script to download an AVI-file. The file is on my server and I want to send it to the user. I have made the following script but when I run it, I will only get a 0 KB large AVI file. Can anyone tell me what I am doing wrong? $file_path = "downloads/test.avi"; // Get filename $filename = explode("/", $file_path); $filename = $filename[count($filename)-1]; if(file_exists($file_path)) { $file_extension = strtolower(substr(strrchr($file_path, "."), 1)); // This will set the Content-Type to the appropriate setting for the file switch($file_extension) { case "pdf": $ctype =

Getting AVI file duration

只谈情不闲聊 提交于 2019-11-29 17:33:46
I am using VFW unit from JEDI wrapper on WinAPI. The code I am writing is intended to search user drives and detect warez (note: deciding if some file is legal or not is beyond scope of this question). We do MP3, WMA and some graphic file search. Now we want to detect illegal movies. I want to open AVI file, read some details from it and close it. I have the following code: uses WFV; //from JEDI api wrappers procedure TForm1.Button1Click(Sender: TObject); var lInfo : TAVIFILEINFOW; lFile : IAVIFILE; lFileType : string; lLenMinutes : integer; lFPS : integer; begin {init file} AVIFileInit; try

How to write frames to a video file?

余生长醉 提交于 2019-11-29 14:46:25
问题 I am currently writing an application that read frames from camera, modify them, and save them into a video file. I'm planing to do it with ffmpeg. There's rarely a documentation about ffmpeg. I can't find a way. Does any know how to do it? I need it to be done on unix, and in C or C++. Does any can provide some instructions? Thanks. EDIT: Sorry, I haven't write clearly. I want some developer APIs to write frames to a video file. I open up camera stream, I get every single frame, then I save

play an avi video file in java swing [closed]

て烟熏妆下的殇ゞ 提交于 2019-11-29 11:38:29
I need to play an avi video file and add it to a jpanel. All I need to be able to do is to play from beginning to end of the video and then proceed with my program. I don't need any seek functions or anything like that. What is the simplest way of doing this? preferbly without using xuggler if possible It easy to embed the VLC player inside a swing application using VLCJ . Here is a working example: public class PlayerPanel extends JPanel { private File vlcInstallPath = new File("D:/vlc"); private EmbeddedMediaPlayer player; public PlayerPanel() { NativeLibrary.addSearchPath("libvlc",

OpenCV: VideoCapture::get(CV_CAP_PROP_FPS) returns 0 FPS

北城以北 提交于 2019-11-29 06:28:44
I am trying to get the fps from my camera so that I can pass it to the VideoWriter for outputting the video. However, I am getting 0 fps by calling VideoCapture::get(CV_CAP_PROP_FPS) from my camera. If I hardcode it, my video may be too slow or too fast. #include "opencv2/opencv.hpp" #include <stdio.h> #include <stdlib.h> using namespace std; using namespace cv; int main(int argc, char *argv[]) { cv::VideoCapture cap; int key = 0; if(argc > 1){ cap.open(string(argv[1])); } else { cap.open(CV_CAP_ANY); } if(!cap.isOpened()) { printf("Error: could not load a camera or video.\n"); } Mat frame;

FFmpeg fourcc Avi codec support list?

落花浮王杯 提交于 2019-11-29 03:06:26
问题 A couple of similar questions are on stackoverflow, but I haven't been able to figure this exact problem out. I want to get a list of the fourcc s for the avi codecs that FFMpeg can decode. I know how to get all the formats ffmpeg -formats and codecs ffmpeg -codecs but neither list gives me an accessible list of fourccs . Neither does the documentation I can find. I need this list, so that my application can access the fourcc of an avi file and determine whether to use ffmpeg or VfW (or

Getting AVI file duration

浪尽此生 提交于 2019-11-28 12:51:58
问题 I am using VFW unit from JEDI wrapper on WinAPI. The code I am writing is intended to search user drives and detect warez (note: deciding if some file is legal or not is beyond scope of this question). We do MP3, WMA and some graphic file search. Now we want to detect illegal movies. I want to open AVI file, read some details from it and close it. I have the following code: uses WFV; //from JEDI api wrappers procedure TForm1.Button1Click(Sender: TObject); var lInfo : TAVIFILEINFOW; lFile :

Create a Video Stream (AVI) from a Series of Images

和自甴很熟 提交于 2019-11-28 04:12:30
There is an IP web camera that I wrote a .NET class for sometime ago. It's basically a Timer implementation that pings a snapshot CGI script from the camera every five seconds. The camera itself is very rudamentary; it does not have any sort of API for me to work with, the only thing I can do programmatically (remotely) is invoke this script. The script returns a 640x480 JPEG image. Simple. Now what I need to be able to do is take a days worth of these images, and create a "time lapse" AVI video stream out of it that will eventually be embedded into a web page. How can I do this with VB.NET?

OpenCV: VideoCapture::get(CV_CAP_PROP_FPS) returns 0 FPS

╄→гoц情女王★ 提交于 2019-11-27 23:46:50
问题 I am trying to get the fps from my camera so that I can pass it to the VideoWriter for outputting the video. However, I am getting 0 fps by calling VideoCapture::get(CV_CAP_PROP_FPS) from my camera. If I hardcode it, my video may be too slow or too fast. #include "opencv2/opencv.hpp" #include <stdio.h> #include <stdlib.h> using namespace std; using namespace cv; int main(int argc, char *argv[]) { cv::VideoCapture cap; int key = 0; if(argc > 1){ cap.open(string(argv[1])); } else { cap.open(CV