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:

3028 questions
13
votes
5 answers

Getting individual frames using CV_CAP_PROP_POS_FRAMES in cvSetCaptureProperty

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…
Random
  • 157
  • 1
  • 3
  • 13
12
votes
5 answers

How to save a video using OpenCV VideoWriter to a specific directory -- python

I am trying to save a video in a specific folder. but after running the code no output is saved. Could anyone help? Thanks. cap = cv2.VideoCapture(file_paths[0]) fgbg = cv2.bgsegm.createBackgroundSubtractorMOG() fourcc =…
Saha
  • 339
  • 2
  • 16
12
votes
2 answers

FFMPEG: using video filter with complex filter

I'm using the fluent-ffmpeg Node.js library to perform batch manipulations on video files. The video filter which crops a 16:9 input, adds padding and burns subtitles into the padding. In the next step, I would like to use a complex filter to…
Sebastien
  • 2,607
  • 9
  • 30
  • 40
12
votes
5 answers

Frame from video is upside down after extracting

My problem here is that when I extracting a video into a frame using opencv, sometimes the frame that I get will flip up which happened to me for both my machine(window) and VM(ubuntu) But some of the video I tested, frames are not flip. So, I…
emp
  • 602
  • 3
  • 11
  • 22
12
votes
2 answers

OpenCV-Python: How to get latest frame from the live video stream or skip old ones

I've integrated an IP camera with OpenCV in Python to get the video processing done frame by frame from the live stream. I've configured camera FPS as 1 second so that I can get 1 frame per second in the buffer to process, but my algorithm takes 4…
12
votes
2 answers

Installing FAAC on linux, getting errors

I am trying to install FAAC on linux. I'm getting errors. I use this to install. cd /usr/src wget http://sourceforge.net/projects/faac/files/faac-src/faac-1.28/faac-1.28.tar.bz2/download tar -xvjf faac-1.28.tar.bz2 cd faac-1.28 ./configure make make…
Kyle Monti
  • 704
  • 2
  • 10
  • 21
12
votes
3 answers

Using FFMPEG to join two MTS files together

I have two MTS video files, each one 2 minutes long. I need to be able to join the files together and convert the format to MPEG4. I have a suitable command line for converting MTS to MP4 but don't know how to join the files together in the first…
Reado
  • 1,412
  • 5
  • 21
  • 51
12
votes
1 answer

What is VBV (Video Buffering Verifier) in H.264?

I can't understand what is a VBV (Video Buffering Verifier) and what relations it have with a maxrate. When I use this command: ffmpeg -i input.mp4 -crf 21 -maxrate 750k -bufsize 750k -codec:v:0 libx264 -s 640x360 -r 30 output.mp4 output.mp4 video…
Oleksandr
  • 3,574
  • 8
  • 41
  • 78
12
votes
1 answer

How to add an external audio track to a video file using VLC or FFMPEG command line

I want to add an audio.mp3 soundtrack to a soundless video.mp4 file using a bash script, what is the correct syntax of the "cvlc" "ffmpeg" command line ? I've recorded the video with VLC and --no-audio option so there is no settings such as bit rate…
Jonathan
  • 121
  • 1
  • 1
  • 4
12
votes
2 answers

Extracting frames of a .avi file

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…
talkanat
  • 329
  • 1
  • 3
  • 7
11
votes
2 answers

Libraries / tutorials for manipulating video in java

I need to do some simple video editing within a Java application, but the frameworks I've found (JMF and FMJ) appear to be quite stale, and thus far I haven't found any evidence that either can actually edit video. The type of operations I need…
rcreswick
  • 16,483
  • 15
  • 59
  • 70
11
votes
3 answers

H.264 codec explained

I am making a app which supports video calls and I am looking for a tutorial/doc explaining the structure of the h.264 codec. I want to be able to package the stream, wrap it in datagrams, send and unpack on the receiving side. Any…
gop
  • 2,150
  • 5
  • 26
  • 54
11
votes
1 answer

How to use estimateRigidTransform in OpenCV 3.0 or higher, Is there any other alternative?

I want to use estimateRigidTransform function of OpenCV but it throws up an error. AttributeError Traceback (most recent call last) in 30 31 #Find transformation matrix ---> 32 m =…
user9437069
  • 111
  • 1
  • 1
  • 3
11
votes
3 answers

Opencv VideoCapture always returns false on Heroku

I'm using the following code to open a video stream: import cv2 video = cv2.VideoCapture() video.open("some_m3u8_link") success, image = video.read() However, even if the code works as intended locally, on Heroku success is always false. I'm using…
Dacian Mujdar
  • 585
  • 2
  • 17
11
votes
2 answers

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

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…
Tes3awy
  • 2,166
  • 5
  • 29
  • 51