video-processing

Perform live video stream processing from CaptureElement & MediaCapture

若如初见. 提交于 2019-11-29 12:27:32
In my Windows 8 Store Application, I tend to perform live video stream processing (Face detection for example). Technique 1 In my previous Windows 7 application, I was able to use the following technique ( Camera Face Detection in C# Using Emgu CV (OpenCV in .NET) and WPF ) to perform live video processing. The technique was, having a fixed period timer callback, to actively query image buffer from camera object . void timer_Tick(object sender, EventArgs e) { Image<Bgr,Byte> currentFrame = capture.QueryFrame(); // Perform image processing based on currentFrame Technique 2 Another technique I

ffmpeg Error: Pattern type 'glob' was selected but globbing is not support ed by this libavformat build

≯℡__Kan透↙ 提交于 2019-11-29 11:25:13
问题 I'm trying to convert group of ".jpg" files acting as individual frames into 1 single mpeg video ".mp4" Example parameters i used: frame duration = 2 secs frame rate = 30 fps encoder = libx264 (mpeg) input pattern = "*.jpg" output pattern = video.mp4 Based on ffmpeg wiki instructions at (https://trac.ffmpeg.org/wiki/Create%20a%20video%20slideshow%20from%20images), I issued this command: ffmpeg -framerate 1/2 -pattern_type glob -i "*.jpg" -c:v libx264 -r 30 -pix_fmt yuv420p video.mp4 But I'm

OpenCV: Reading image series from a folder

一曲冷凌霜 提交于 2019-11-29 08:01:16
I am trying to read a series of images from a folder using OpenCV's VideoCapture function. After some search on the internet, my current code is like this: cv::VideoCapture cap ( "C:\\Users\\Admin\\Documents\\Images\\%02d.jpg"); I was expecting to see that VideoCapture function should read all the images in that folder with names of two serial digits, like 01.jpg, 02.jpg, ..., 30.jpg . Someone told on the internet that the VideoCapture function should be ale to catch all of these images once I give the first image's location and name. So I also tried to do it like this: cv::VideoCapture cap (

Decode video frames on iPhone GPU

时光总嘲笑我的痴心妄想 提交于 2019-11-29 06:30:18
问题 I'm looking for the fastest way to decode a local mpeg-4 video's frames on the iPhone. I'm simply interested in the luminance values of the pixels in every 10th frame. I don't need to render the video anywhere. I've tried ffmpeg, AVAssetReader, ImageAssetGenerator, OpenCV, and MPMoviePlayer but they're all too slow. The fastest speed I can get is ~2x (2 minutes of video scanned in a minute). I'd like something closer to 10x. Assuming my attempts above didn't utilize the GPU, is there any way

ffmpeg splitting RGB and Alpha channels using filter

爷,独闯天下 提交于 2019-11-29 05:21:22
I'm trying to use ffmpeg to split an input file into two separate files: An MP4 with only R,G and B channels An MP4 with the "extracted" A channel (a so-called Key clip, see http://ffmpeg-users.933282.n4.nabble.com/quot-Extracting-quot-Alpha-Channel-td3700227.html ) I've managed to do both, but now I want to combine them into one single command. Here's what I do: ffmpeg -r $FPS -y -i input.flv -vcodec libx264 -vpre ipod640 -acodec libfaac -s 256x256 -r $FPS -filter_complex INSERT_FILTER_HERE rgb.mp4 alpha.mp4 where INSERT_FILTER_HERE is: format=rgba, split [rgb_in][alpha_in]; [rgb_in] fifo,

How to convert uploaded video and get a screenshot from this file?

我与影子孤独终老i 提交于 2019-11-29 03:52:40
问题 I'm building a cms and I want users to be able to upload videos but I'm not familiar with video upload & conversion. Is there an example or has anybody coded a solution like this? I heard about ffmpeg but I don't know how to integrate it with asp.net. As simple solution I can make my clients upload flv files but then I would still need to get a screenshot from that fvl. Thanks 回答1: Answering author's question: Does ffmpeg requires to be installed server side or just exe is enough? ffmpeg.exe

Multiple video sources combined into one

丶灬走出姿态 提交于 2019-11-28 21:37:38
问题 I am looking for an efficient way to do the following: Using several source videos (of approximately the same length), I need to generate an output video that is composed of all of the original sources each running in its own area (like a bunch of PIPs in several different sizes). So, the end result is that all the original are running side-by-side, each in its own area/box. The source and output need to be flv and the platform I am using is Windows (dev on Windows 7 64bit, deployment to

How to split video or audio by silent parts

蓝咒 提交于 2019-11-28 21:15:38
问题 I need to automatically split video of a speech by words, so every word is a separate video file. Do you know any ways to do this? My plan was to detect silent parts and use them as words separators. But i didn't find any tool to do this and looks like ffmpeg is not the right tool for that. 回答1: You could first use ffmpeg to detect intervals of silence, like this ffmpeg -i "input.mov" -af silencedetect=noise=-30dB:d=0.5 -f null - 2> vol.txt This will produce console output with readings that

Get the width / height of the video from H.264 NALU

拥有回忆 提交于 2019-11-28 20:55:34
I have gotten the SPS in NALU ( AVC Decoder Configuration Record ), and trying to parse the video width / height from it. 67 64 00 15 ac c8 60 20 09 6c 04 40 00 00 03 00 40 00 00 07 a3 c5 8b 67 80 This is my code parse the SPS but gets the wrong values. pic_width_in_mbs_minus1 is 5, and pic_height_in_map_units_minus1 is 1. Actually the video is 512 X 288px typedef struct _SequenceParameterSet { private: const unsigned char * m_pStart; unsigned short m_nLength; int m_nCurrentBit; unsigned int ReadBit() { ATLASSERT(m_nCurrentBit <= m_nLength * 8); int nIndex = m_nCurrentBit / 8; int nOffset = m

Create Video File using PHP

邮差的信 提交于 2019-11-28 18:59:47
I have scenario for creating a video files using diff. assets like images, audio file. What I want to do is, Find audio files from the particular folder and set it as background music, and fetch images from particular folder and show those images one by one. So basically I have images and audio files and I want create a video file using those assets using PHP. Can any one please suggest the start up point for this? Have done image capture from video and converting the video using Ffmpeg so I have think of Ffmpeg but, I think it will not allow to create a video. ffmpeg will allow you to create