video-processing

Python scene change detection

只愿长相守 提交于 2019-11-30 09:47:52
I am wondering if anyone has any experience with Python and video processing. Essentially, I would like to know if there are any libraries that would allow me to do scene detection in a video? If not, are there any that can allow me to split the video up into a series of frames and let me mess about with the pixels? Thanks! OpenCV has Python bindings; I don't think it has any scene boundary algorithms / functions built it, but you can definitely use it to write your own. You can use FFmpeg to do the scene detection and obtain the change frames and their timestamps. The command can be combined

Getting individual frames using CV_CAP_PROP_POS_FRAMES in cvSetCaptureProperty

前提是你 提交于 2019-11-30 09:02:17
I am trying to jump to a specific frame by setting the CV_CAP_PROP_POS_FRAMES property and then reading the frame like this: cvSetCaptureProperty( input_video, CV_CAP_PROP_POS_FRAMES, current_frame ); frame = cvQueryFrame( input_video ); The problem I am facing is that, OpenCV 2.1 returns the same frame for the 12 consecutive values of current_frame whereas I want to read each individual frame, not just the key frames. Can anyone please tell me what's wrong? I did some research and found out that the problem is caused by the decompression algorithm. The MPEG-like algorithms (including HD, et

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

旧时模样 提交于 2019-11-30 08:15:47
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 getting this error: [image2 @ 049ab120] Pattern type 'glob' was selected but globbing is not supported

How to read time from recorded surveillance camera video?

偶尔善良 提交于 2019-11-30 07:11:52
I have a problem where I have to read the time of recording from the video recorded by a surveillance camera. The time shows up on the top-left area of the video. Below is a link to screen grab of the area which shows the time. Also, the digit color(white/black) keeps changing during the duration of the video. http://i55.tinypic.com/2j5gca8.png Please guide me in the direction to approach this problem. I am a Java programmer so would prefer an approach through Java. EDIT: Thanks unhillbilly for the comment. I had looked at the Ron Cemer OCR library and its performance is much below our

Decode video frames on iPhone GPU

跟風遠走 提交于 2019-11-30 06:54:01
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 to accomplish my goal with something that does run on the GPU? OpenGL seems like it's mostly for

Looping a video with gstreamer and gst-launch?

两盒软妹~` 提交于 2019-11-30 05:30:52
问题 I am able to play a video on the command line with gstreamer's gst-launch like this: gst-launch gnlfilesource location=file:///tmp/myfile.mov start=0 duration=2000000000 ! autovideosink This plays the first 2 seconds of the file in /tmp/myfile.mov, afterwards the video playback stops. Is there anyway to get this to loop repeatidly? i.e. turn the 2 second long gnlfilesource into an infinite length video that plays those 2 seconds again and again and again? 回答1: Assuming bash... Wrap it in a

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

寵の児 提交于 2019-11-30 05:26:37
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 Answering author's question: Does ffmpeg requires to be installed server side or just exe is enough? ffmpeg.exe will be enough, no installation is required. The code below gets a screenshot on captureTime on video

Multiple video sources combined into one

五迷三道 提交于 2019-11-30 01:32:36
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 PIP s 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 Windows server 2008). I have looked at avisynth but unfortunately it can't handle flv and non of the

How to split video or audio by silent parts

落爺英雄遲暮 提交于 2019-11-30 00:18:41
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. Gyan 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 look like this: [silencedetect @ 00000000004b02c0] silence_start: -0.0306667 [silencedetect @

convert animated gif to video on linux server while preserving frame rate

久未见 提交于 2019-11-29 22:38:10
问题 how do I convert an animated gif to a video (e.g. h264@mp4) programmatically on a linux server? I need this to process user generated content which should be output as several defined video formats; therefore its possible, that users may want to process animated gif files. I already have a set of working php scripts to transcode videofiles to specific formats (like vpx@webm and h264@mp4, scaled to specific resolutions) using avconv, but herefore I need video input. Usual ways seem to be to