Questions tagged [video-processing]

Video processing deals mostly with filtering video frames. Most common filters are noise removal, contrast and color modifications. For questions related to trimming and modifying videos use [video-editing], and [video-encoding] for questions related to editing videos into any format.

Video processing is a particular case of signal processing, which often employs video filters and where the input and output signals are video files or video streams. Video processing techniques are used in television sets, VCRs, DVDs, video codecs, video players, video scalers and other devices.

Most common filters are noise removal, contrast and color modifications. Relevant questions should include specific filters.

See also:

2611 questions
18
votes
5 answers

Select the camera while using navigate.getUserMedia()

I am using navigate.getUserMedia() method to capture video on my mobile and do further processing on it. But as of now it is capturing the video using the front camera. How do i make it to access the rear facing camera?? Below is some sample code…
Vinay C
  • 307
  • 1
  • 6
  • 16
17
votes
4 answers

How to create videos from images with php?

Let's say I have 10 images and I want to combine those images in a video like a slideshow. For example I want to show each image for 5 seconds and then continue with next image for another 5 seconds. If it's possible, it will be perfect to include…
mirza
  • 4,970
  • 7
  • 39
  • 70
17
votes
8 answers

FFMPEG: Extracting 20 images from a video of variable length

I've browsed the internet for this very intensively, but I didn't find what I needed, only variations of it which are not quite the thing I want to use. I've got several videos in different lengths and I want to extract 20 images out of every video…
Vapire
  • 4,390
  • 3
  • 20
  • 40
17
votes
3 answers

How to Add Font size in subtitles in ffmpeg video filter

I'm using this command to crop,scale, and then add subtitles as overlay ffmpeg -i input.avi -vf "[in]crop=in_w:in_h-20:0:0 [crop]; [crop]scale=320:240 [scale];[scale]subtitles=srt.srt" -aspect 16:9 -vcodec libx264 -crf 23 oq.mp4 how can we set…
khizar ansari
  • 1,307
  • 2
  • 17
  • 28
16
votes
2 answers

How to expose a virtual camera on macOS?

I want to write my own camera filters for videochat, and ideally apply them in any/all of the popular videochat applications (Zoom, Hangouts, Skype, etc.). The way I imagine this working is to write a macOS application that reads the camera feed,…
15
votes
3 answers

Decode video frames on iPhone GPU

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,…
simon.d
  • 2,341
  • 3
  • 30
  • 51
15
votes
1 answer

How to seek in FFmpeg C/C++

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…
DRiFTy
  • 10,945
  • 10
  • 61
  • 75
15
votes
3 answers

ffmpeg in python script

I would like to run the following command in a python script, I also want to make it loop over several videos in a folder. This is the command I want to run. ffmpeg -i mymovie.avi -f image2 -vf fps=fps=1 output%d.png I want to fit it in something…
jawwe
  • 479
  • 1
  • 3
  • 11
15
votes
3 answers

why DCT transform is preferred over other transforms in video/image compression

I went through how DCT (discrete cosine transform) is used in image and video compression standards. But why DCT only is preferred over other transforms like dft or dst?
mrsatish
  • 399
  • 2
  • 6
  • 15
15
votes
3 answers

Android: Alternative to the deprecated Context.MODE_WORLD_READABLE?

From here I know a way to write a file and be accessible to other app and other intent, but now that the Context.MODE_WORLD_READABLE is deprecated how can I safely accomplish this? FileOutputStream out = myActivity.openFileOutput(fileTo,…
Marl
  • 1,410
  • 2
  • 21
  • 33
14
votes
1 answer

OpenCV doesn't report accurate frame rate/count

I have a 33 second video that I'm trying to process with OpenCV. My goal is to determine what instance in time (relative to the start of the video) each frame corresponds to. I'm doing this in order to be able to compare frames from videos of the…
mpenkov
  • 20,356
  • 7
  • 75
  • 121
14
votes
2 answers

Reverse video in android

I have recorded a video from camera in my app and saved in device storage.Now I want to reverse the video such that it plays from backwards.i.e. if video is of 10 seconds then the last frame at 10th second will become first frame and it starts…
Android Developer
  • 7,267
  • 16
  • 62
  • 113
14
votes
1 answer

Why does video resolution change when streaming from Android via WebRTC

I'm trying to stream at 640x480 from Chrome on Android using WebRTC, and the video starts off at that, but then the resolution drops to 320x240. Here are the getUserMedia parameters that are sent: "getUserMedia": [ { "origin":…
Jay P.
  • 4,745
  • 5
  • 44
  • 74
14
votes
6 answers

How to read a frame from YUV file in OpenCV?

How to read a frame from YUV file in OpenCV?
Jason
  • 349
  • 2
  • 3
  • 8
14
votes
5 answers

Concatenate mp4 files in Android using halfninja ffmpeg

I've manage to compile halfninja ffmpeg scripts for Android NDK using NDK version r5c. (Unfortunately any attempt to compile with earlier NDK generated some error), also I'm not very knowledgeable on the whole NDK process, so it's a bit hit-n-miss…
Budius
  • 37,587
  • 15
  • 92
  • 134