video-processing

Extracting frames of a .avi file [closed]

99封情书 提交于 2019-11-28 18:55:34
I am trying to write a c# code to extract each frame of a .avi file and save it into a provided directory. Do you know any suitable library to use for such purpose? Note: The final release must work on all systems regardless of installed codec, or system architecture. It must not require the presence of another program (like MATLAB) on the machine. Thanks in advance. Tunc This is not possible, unless you add some restrictions to your input avi files or have control over encoder used to create them. To get an image you will have to decode it first, and for that you will need an appropriate

How to do motion tracking of an object using video? [closed]

梦想的初衷 提交于 2019-11-28 18:28:41
Could someone direct me to a tutorial or guide me how to track motion of an object moving with 6 DOF. I am planing to use a video stream of a moving toy car. I want to calculate displacement and rotation angle of the toy car. I came across some research papers but couldn't find any libraries to the job. Is there a way to do this using OpenCV or Matlab or some other freely available software? Thank you user815423426 Tracking is a classical computer vision problem to which research is still devoted in computer science; you can quickly get a sense of the state-of-the-art in this field by checking

Video Capturing + Uploading + Processing + Streaming back - .NET & C#

扶醉桌前 提交于 2019-11-28 17:39:34
We are trying to find out any technologies/libraries available in .NET stack (even wrappers on top of 3rd party dlls) that'll help us to build an app that can 1 - Capture an image from a user's video device 2 - Upload it realtime to a server 3 - Process the video (in the server) - eg: Adding a watermark to the video 4 - Stream it back to the user/other users Preferably, the time delay/latency between step2 and 4 should be minimal The first requirement (capturing) seems pretty straight forward. The challenge is identifying a suitable way to do the upload, do the processing, and stream it back.

How to seek in FFmpeg C/C++

亡梦爱人 提交于 2019-11-28 16:52:41
问题 Does anyone know how to implement seeking by seconds (or milliseconds) in FFmpeg. I currently have a loop running through the frames of a video using av_read_frame() and I want to determine what time this frame should be at in seconds. If it gets to a certain point then I want to seek to a later point in the video. By the way it is not a video player, just processing the frames. Ive heard I should be able to get the dts or pts from the packet but its always returning 0. 回答1: NOTE: This is out

FFmpeg - Overlay one video onto another video?

旧城冷巷雨未停 提交于 2019-11-28 13:29:48
I understand that this is a very open ended question. I have done some initial reading into FFmpeg , but now require some guidance. Problem I have a video input.mov . I would like to overlay another video on top of overlay.wov . The result should be a single video ( output.mov ). Notes Done some initial reading into FFmpeg and read this question . Thanks - C. Edits Backend is Go/Ruby. Open to using a new language. The audio from the first video should be kept. Setting the interval at which the overlay starts would be great. Current Solution ffmpeg -i input.mov -i overlay.mov -filter_complex "

ffmpeg fix watermark size or percentage

痴心易碎 提交于 2019-11-28 12:44:18
问题 i have some videos and i want to add watermark to them but problem is coz in every video "watermark size" is different (in some videos watermark is smaller and in some is bigger - i think because of video input size coz its different) here is my ffmpeg command (just link is different) ffmpeg -i "http://VIDEO-LINK" -i "/var/www/logo/logo.png" -filter_complex 'overlay=17:17' -vcodec h264 -crf 25 -preset veryfast -maxrate 600k -bufsize 600k -aspect '640:360' -s '640:360' -acodec libfdk_aac -hls

How to grab video frames in Qt?

时光怂恿深爱的人放手 提交于 2019-11-28 12:12:05
I am new to Qt, I only know the basics: create interfaces and connect slots. In a few words, my knowledge is not deep at all. I need to open a video file and capture all of its frames to get the R, G, B channels and, later on, process optical flow (this is already done) frame to frame to finally represent it on a window. Is it possible to get the video frames with Qt? I have researched a lot but not found anything conclusive. You can use QMediaPlayer to achieve this. Instantiate the QMediaPlayer . Subclass the QAbstractVideoSurface . Set your implementation as the output for the media player

Can not Read or Play a Video in OpenCV+Python using VideoCapture

泄露秘密 提交于 2019-11-28 11:16:30
import cv2 import numpy as np cap = cv2.VideoCapture('traffic.avi') retval, frame = cap.read() print retval ================ RESTART: J:\Python For DIP\traffic_video.py ================ False >>> The Value of retval is always False, which means the video is not read by the command. It must be True to read frames. I don't know what to do. However when I use my default webcam it turns to be True. I tried many videos and the same problem appears. Note: I have installed the ffmpeg correctly. Note: This is not the full code, in this step I am only validating cap.read() either True or False This

Video processing and filtering libraries

本秂侑毒 提交于 2019-11-28 08:40:14
I'm trying to decide which library to choose in order to create app that can filters a video, for example beautify or clarity. During my search I came across 2 candidates: OpenCv and FFmpeg, and I found a complete framework only for FFmpeg(so +1 for this). I couldn't found a complete comparision between the two so if someone has tried them and can post the answer it would be really helpful. Edit: Another candidate is Marvin framework(Java project) for Android - https://code.google.com/p/android-image-filtering/ karlphillip OpenCV is a framework for Computer Vision and it's very limited for

Reading a video with openCV

落花浮王杯 提交于 2019-11-28 07:41:39
问题 I have a video engine2.avi that I want to read and show with openCV. Here's my code: #include <opencv2/core/core.hpp> #include <opencv2/highgui/highgui.hpp> #include <iostream> using namespace cv; int main(int argc, char** argv) { string filename = "D:\\BMDvideos\\engine2.avi"; VideoCapture capture(filename); Mat frame; if( !capture.isOpened() ) throw "Error when reading steam_avi"; namedWindow("w", 1); for( ; ; ) { capture >> frame; //if(!frame) // break; imshow("w", frame); waitKey(20); //