avi

MATLAB 4D (3d + color) plot with animation

混江龙づ霸主 提交于 2020-01-03 04:50:30
问题 I have 3 sets of 30 data points X,Y,Z. I would like to make the 4th dimension color. However the 4th dimension I want to use is a different length than my X,Y,Z (133 vs 30). This is a problem when using the scatter3 function in MATLAB, as the color dimension must match the size of X,Y,Z. I also want to animate this plot in .avi format, and have the 4th dimension (color) change as the movie progresses. Thanks in advance. 回答1: Create a 2D or 3D matrix to define your colors: 2D if you use colors

Convert .avi to .gif with ffmpeg with good quality AND subtitles

╄→尐↘猪︶ㄣ 提交于 2020-01-02 12:16:22
问题 I want to use ffmpeg to convert .avi to .gif with good quality and subtitles. Now, I use this script to convert from .avi to .gif with good quality : ffmpeg -v warning -ss 10:00 -t 5 -i input.avi -vf "fps=15,scale=420:-1:flags=lanczos,palettegen" -y palette.png ffmpeg -v warning -ss 10:00 -t 5 -i input.avi -i palette.png -lavfi "fps=15,scale=420:-1:flags=lanczos [x]; [x][1:v] paletteuse" -y output.gif I generate a palette and then using it to output the gif. Then I am using this script to add

how to embed an .AVI in html?

流过昼夜 提交于 2019-12-31 00:35:12
问题 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

OpenCV frame capture from AVI

坚强是说给别人听的谎言 提交于 2019-12-30 06:52:11
问题 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;

OpenCV frame capture from AVI

偶尔善良 提交于 2019-12-30 06:51:06
问题 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;

play an avi video file in java swing [closed]

╄→гoц情女王★ 提交于 2019-12-29 07:56:07
问题 It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 6 years ago . 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

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

旧时模样 提交于 2019-12-28 08:12:07
问题 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

Convert simple Bash script to PowerShell?

偶尔善良 提交于 2019-12-25 06:25:29
问题 I have pulled the Bash script from here, which checks the AVI file for bad frames using ffmpeg and cygwin extension. I am able to execute the code in Mingw. I put ffmpeg.exe (ren ffmpeg), cygwin1.dll & cygz.dll in Mingw's bin dir (/c/mingw/bin/). Now, I am looking to port this bash code to PowerShell. Can anyone shed some PowerShell light on this one? Script: (path: /c/mygw/bin/AviConvert) #!/bin/bash FFMPEG="ffmpeg" LIST=`find | grep \.avi$` for i in $LIST; do OUTP="$i.txt" OUTP_OK="$i.txt

avformat_write_header return error code when trying to write PCMU encoded frame into avi/mov file

我的梦境 提交于 2019-12-25 04:35:41
问题 I am trying to write PCMU G.711 enocded data into avi multimedia container using below program which yields Error occurred when opening output file: Operation not permitted and when using mov container, it yields Error occurred when opening output file: Invalid argument . I set AV_CODEC_ID_PCM_U16LE as audio codec of output format and AV_SAMPLE_FMT_S16 as sample format. What's the problem here? Thanks in advance! 回答1: You're writing AV_CODEC_ID_PCM_U16LE, which isn't G711, but raw PCM

ImageJ API: how to change the framerate when writing AVI

∥☆過路亽.° 提交于 2019-12-25 02:55:09
问题 I would like to use the AVI_Writer from the ImageJ API in my java program. However, even though I can automate the movie writing, I haven't found out how to change the framerate when using the method: writeImage(ImagePlus imp, java.lang.String path, int compression, int jpegQuality) Any idea? Thanks. 回答1: If you look at the menu command for saving as AVI, it has an option to set the frame rate, which is taken from a setting hidden in Image > Stacks > Tools > Animation Options... in the menu.