avi

How to play other video formats in JavaFX

ぃ、小莉子 提交于 2019-12-03 17:12:55
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 alternative to be able to use this with? And how will I know if the video has fully played from beginning to

Batch File Loop Skip File if name contains

坚强是说给别人听的谎言 提交于 2019-12-03 15:50:46
I am creating this batch file, that works with handbrakecli, to batch convert avi to mp4. However I am stuck in how to continue the loop and skip the current file inside a loop. FOR /R "%somepath%" %%G in (*.avi) DO ( rem skip if filename contains word trailer rem skip if file name contains word sample rem do conversion ) This currently doesn't work in skipping the files that contain trailer or sample I have tried using find or findstr and both fail to skip. echo "%%G" | c:\windows\system32\findstr /i "trailer" > NUL If %ERRORLEVEL% EQU 1 set skip Yes Here is for sample. echo "%%G" | c:

Getting frames from .avi video using OpenCV

这一生的挚爱 提交于 2019-12-03 15:27:49
#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 cvDestroyWindow("w"); cvReleaseImage(&frame); } I am using openCV with VS2008. I have read in a video file and

Compressing frames inside an AVI video

拜拜、爱过 提交于 2019-12-02 07:26:03
I've built a Windows Phone class to convert some WriteableBitmap into a AVI Full Frame (Uncompressed). Videos are really huge. Is there a simple codec implementation existing, like a codec that just zip images, or something that is making a next/previous XOR then zip it in jpeg? Windows Phone doesn't allow any unsafe code and most DLL cannot be wrapped into a C# WP library. So that's why I'm coding something from scratch. Note that I'm more efficient at coding from scratch than in studying C++ existing sources (I'm not a C++ coder), so what I'm searching is infos about a compressed AVI format

how to embed an .AVI in html?

本秂侑毒 提交于 2019-12-01 19:49:51
I've found some examples of .AVI in html on the web. But my page http://pianocheater.com/VIDEO.html is problematic. It's fine with chrome on my pc. In IE, you get that dang bar at the top and then the videos are blank after that. It works on my pc, but not others' so I figured it'd be codecs or something?? Here's the existing html... (sorry, note sure how to get pretty html in here) <object width=288 height=512 id ="MediaPlayer" type ="application/x-oleobject" standby ="Loading Windows Media Player components..." classid ="CLSID:22D6f312-B0F6-11D0-94AB-0080C74C7E95" codebase="http://activex

Writing AVI files in OpenCV

偶尔善良 提交于 2019-12-01 03:11:31
There example on the net and code given in Learn OpenCv,Orielly. After many attempts the out.avi file is written with 0 bytes. I wonder where i went wrong. The following are the code i used... int main(int argc, char* argv[]) { CvCapture* input = cvCaptureFromFile(argv[1]); IplImage* image = cvRetrieveFrame(input); if (!image) { printf("Unable to read input"); return 0; } CvSize imgSize; imgSize.width = image->width; imgSize.height = image->height; double fps = cvGetCaptureProperty( input, CV_CAP_PROP_FPS ); CvVideoWriter *writer = cvCreateVideoWriter( "out.avi", CV_FOURCC('M', 'J', 'P', 'G'),

How can I convert an AVI file to FLV format with PHP?

杀马特。学长 韩版系。学妹 提交于 2019-12-01 01:14:35
Is it possible to convert an AVI file to FLV format with PHP? If so, how? I don't need a complete solution, just a hint on how to do it. ffmpeg is a great library for this sort of thing. Here's a walkthrough of the process: http://vexxhost.com/blog/2007/05/20/how-to-convertencode-files-to-flv-using-ffmpeg-php/ It would be simpler to convert the video into Flash video and just use one of the many Flash video players out there. There is also an ffmpeg api for PHP, this would be a good place to start. Assuming you have ffmpeg installed, you can do this: <?php define('FFMPEG_LIBRARY', '/usr/local

Writing AVI files in OpenCV

大憨熊 提交于 2019-11-30 23:06:45
问题 There example on the net and code given in Learn OpenCv,Orielly. After many attempts the out.avi file is written with 0 bytes. I wonder where i went wrong. The following are the code i used... int main(int argc, char* argv[]) { CvCapture* input = cvCaptureFromFile(argv[1]); IplImage* image = cvRetrieveFrame(input); if (!image) { printf("Unable to read input"); return 0; } CvSize imgSize; imgSize.width = image->width; imgSize.height = image->height; double fps = cvGetCaptureProperty( input, CV

OpenCV frame capture from AVI

百般思念 提交于 2019-11-30 21:44:52
I am working on a project with openCV 2.2. I need to do processing on each frame of an AVI file but when I run my code it only grabs the first frame of the file. The CV_CAP_PROP_POS_FRAMES does not seem to be working. Any ideas why not? CvCapture* capture = cvCaptureFromAVI("test1.avi"); IplImage *img = 0; if (!cvGrabFrame(capture)) { printf("Error: Couldn't open the image file.\n"); return 1; } int numFrames = (int) cvGetCaptureProperty(capture, CV_CAP_PROP_FRAME_COUNT); int posFrame = 1; for(int i =0; i <= numFrames; i++){ cvSetCaptureProperty(capture, CV_CAP_PROP_POS_FRAMES, i); posFrame =

How can I convert an AVI file to FLV format with PHP?

笑着哭i 提交于 2019-11-30 20:19:51
问题 Is it possible to convert an AVI file to FLV format with PHP? If so, how? I don't need a complete solution, just a hint on how to do it. 回答1: ffmpeg is a great library for this sort of thing. Here's a walkthrough of the process: http://vexxhost.com/blog/2007/05/20/how-to-convertencode-files-to-flv-using-ffmpeg-php/ 回答2: It would be simpler to convert the video into Flash video and just use one of the many Flash video players out there. There is also an ffmpeg api for PHP, this would be a good