video-processing

Running ffmpeg.exe through windows service fails to complete while dealing with large files

夙愿已清 提交于 2019-12-08 16:45:37
I am using ffmpeg.exe to convert video files to flv format . For that purpose i use a windows service to run the conversion process in background . While trying to convert large files (i experienced it when the file size is >14MB) through windows service it gets stuck at the line which starts the process (ie, process.start(); ). But when i tried to execute ffmpeg.exe directly from command prompt it worked with out any problems. My code in windows service is as follows: private Thread WorkerThread; protected override void OnStart(string[] args) { WorkerThread = new Thread(new ThreadStart

Detect current Keyframe interval in AVAsset

筅森魡賤 提交于 2019-12-08 08:41:24
问题 I am working on an application that plays back video and allows the user to scrub forwards and backwards in the video. The scrubbing has to happen smoothly, so we always re-write the video with SDAVAssetExportSession with the video compression property AVVideoMaxKeyFrameIntervalKey:@1 so that each frame will be a keyframe and allow smooth reverse scrubbing. This works great and provides smooth playback. The application uses video from a variety of sources and can be recorded on android or iOS

Running ffmpeg.exe through windows service fails to complete while dealing with large files

别等时光非礼了梦想. 提交于 2019-12-08 07:28:58
问题 I am using ffmpeg.exe to convert video files to flv format . For that purpose i use a windows service to run the conversion process in background . While trying to convert large files (i experienced it when the file size is >14MB) through windows service it gets stuck at the line which starts the process (ie, process.start(); ). But when i tried to execute ffmpeg.exe directly from command prompt it worked with out any problems. My code in windows service is as follows: private Thread

Use PHP or Flash to extract a frame from a video

余生长醉 提交于 2019-12-08 07:18:47
问题 The quick question: is there a pure PHP library that can extract a frame from the video to use as the thumbnail? I guess the answer is "no" but let me know if I am wrong :-) ffmpeg wrappers will not go, since I want this feature to work on most hostings without special PHP modules or binaries to launch. There might also be some tool to do this on the client side with flash for example... This also acceptable. I'll just have to upload the flash-generated content to the server. 回答1: This script

Android MP4Parser cannot play video

孤人 提交于 2019-12-08 05:23:38
问题 I'm attempting to append a simple, 3 second outro video to an existing video using MP4Parser, but for some reason I cannot play the video after the merge happens. I'm getting the infamous "Sorry, this video cannot be played" error when trying to play the video from my gallery. Anyone have similar experience doing this? I'm testing on an HTC One running 4.4 KitKat Here's my method to merge to .mp4 clips into a single one, taken from the AppendExample from MP4Parser itself. private void

mjpeg @ 0x27ee9e0 buffer smaller than minimum size: How to create a video file with size less than the minimum buffer size?

梦想与她 提交于 2019-12-08 04:18:38
问题 I am new to opencv and I am trying to create a video file with frame size 56x72 using opencv-python. I am using 'MJPG' to encode the video with a frame rate of 20. I get an error which says - [mjpeg @ 0x27ee9e0] buffer smaller than minimum size. I checked the avcodec.h file and it says that the FF_MIN_BUFFER_SIZE = 16384 and it verifies if the buf_size is at least FF_MIN_BUFFER_SIZE and i think the buf_size is width*height*4 (i am not really sure of this). So does it mean that I can't create

Sum of Absolute differences between images in Matlab

时间秒杀一切 提交于 2019-12-08 03:23:58
问题 I want to implement sum of absolute difference in Matlab to establish a similarity metric between between one video frame and 5 frames either side of this frame (i.e. past and future frames). I only need the SAD value for the co-located pixel in each frame, rather than a full search routine, such as full search. Obviously I could implement this as nested loops such as: bs = 2; % block size for (z_i = -bs:1:bs) for (z_j = -bs:1:bs) I1(1+bs:end-bs,1+bs:end-bs) = F1(1+bs+z_i:end-bs+z_i, 1+bs+z_j

FFMPEG Motion Compensation and Search

主宰稳场 提交于 2019-12-08 02:59:28
I'm trying to modify the motion detection part of FFMPEG. What I want to do is to extend the search space, so that whenever the macroblock hit the right most edge of the frame, I need it to still move the block towards the left-most as if they are connected (in my example videos, the right edge is actually a continue of the left edge). Can someone help me to point where exactly I can modify it within FFMPEG source code or x265, or x264? I took H265 as an example from here . It has a motion.cpp file which nicely specifies the possible block sizes as below. But I can't find the specific loop

How to input video (frames) into a GLSL shader

故事扮演 提交于 2019-12-07 23:33:21
问题 I'm trying to do video processing using GLSL. I'm using OpenCV to open a video file up and take each frame as a single image an then I want to use each frame in a GLSL shader What is the best/ideal/smart solution to using video with GLSL? Reading From Video VideoCapture cap("movie.MOV"); Mat image; bool success = cap.read(image); if(!success) { printf("Could not grab a frame\n\7"); exit(0); } Image to Texture GLuint tex; glGenTextures(1, tex); glActiveTexture(GL_TEXTURE0); glBindTexture(GL

How to capture and process live activity from another application in Python?

一世执手 提交于 2019-12-07 17:51:59
问题 I'm a computer science student, and as a personal project, I'm interested in building software that can watch and produce useful information about Super Nintendo games being run on a local emulator. This might be things like current health, current score, etc., (anything legible on the screen). The emulator runs in windowed form (I'm using SNES9x) and so I wouldn't need to capture every pixel on the screen, and I'd only have to capture about 30fps. I've looked into some libraries like FFMPEG