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
467
votes
14 answers

Rotating videos with FFmpeg

I have been trying to figure out how to rotate videos with FFmpeg. I am working with iPhone videos taken in portrait mode. I know how to determine the current degrees of rotation using MediaInfo (excellent library, btw) but I'm stuck on FFmpeg…
jocull
  • 17,542
  • 18
  • 95
  • 139
368
votes
13 answers

How can I extract audio from video with ffmpeg?

I tried the following command to extract audio from video: ffmpeg -i Sample.avi -vn -ar 44100 -ac 2 -ab 192k -f mp3 Sample.mp3 but I get the following output libavutil 50.15. 1 / 50.15. 1 libavcodec 52.72. 2 / 52.72. 2 libavformat 52.64. 2…
user1269669
  • 3,697
  • 3
  • 12
  • 5
157
votes
0 answers

Transitions with GStreamer Editing Services freezes, but works OK without transitions

I'm trying to use gstreamer's GStreamer Editing Services to concatenate 2 videos, and to have a transition between the two. This command, which just joins 2 segments of the videos together without a transition, works fine: ges-launch-0.10…
Rory
  • 48,706
  • 67
  • 174
  • 234
140
votes
7 answers

How to train an artificial neural network to play Diablo 2 using visual input?

I'm currently trying to get an ANN to play a video game and and I was hoping to get some help from the wonderful community here. I've settled on Diablo 2. Game play is thus in real-time and from an isometric viewpoint, with the player controlling a…
92
votes
12 answers

Solid FFmpeg wrapper for C#/.NET

I have been searching the web for some time for a solid FFmpeg wrapper for C#/.NET. But I have yet to come up with something useful. I have found the following three projects, but all of them apears to be dead in early alpha…
Jacob Poul Richardt
  • 3,085
  • 1
  • 24
  • 29
75
votes
6 answers

Reducing video size with same format and reducing frame size

This question might be very basic Is there a way to reduce the frame size/rate of Lossy compressed (WMV, MPEG) format, to get a smaller video, of lesser size, with same format. Are there any open source or proprietary apis for this?
Vignesh
  • 1,110
  • 2
  • 12
  • 18
53
votes
8 answers

Maintaining aspect ratio with FFmpeg

I need to convert a bunch of video files using FFmpeg. I run a Bash file that converts all the files nicely, however there is a problem if a file converted is not in 16:9 format. As I am fixing the size of the screen to -s 720x400, if the aspect…
0-alpha
  • 2,421
  • 4
  • 17
  • 12
51
votes
1 answer

Fastest way to extract a specific frame from a video (PHP/ffmpeg/anything)

I have a web page, which (among other things) needs to extract a specific frame from a user-uploaded video. The user seeks to a particular part of a .mp4 in the player, then clicks a button, and an ajax call gets fired off to a php script which…
DanM
  • 6,727
  • 11
  • 48
  • 83
42
votes
2 answers

ffmpeg video to opengl texture

I'm trying to render frames grabbed and converted from a video using ffmpeg to an OpenGL texture to be put on a quad. I've pretty much exhausted google and not found an answer, well I've found answers but none of them seem to have worked. Basically,…
Infiniti Fizz
  • 1,696
  • 3
  • 24
  • 38
41
votes
1 answer

Unable to do low-level decoding of video on Android 4.2 without using media extractor

I wanted to decode video frames without using an extractor. So I just tried a small sample, where I use media extractor but I don't do extractor.readsample() to copy the bitstream data into the input buffer instead I use FFmpeg parser, inside JNI,…
41
votes
3 answers

Vertically or horizontally stack (mosaic) several videos using ffmpeg?

I have two videos of the same exact length, and I would like to use ffmpeg to stack them into one video file. How can I do this?
Joseph Turian
  • 12,162
  • 12
  • 42
  • 61
35
votes
1 answer

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

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…
cyber101
  • 2,672
  • 11
  • 46
  • 81
33
votes
5 answers

Open Source Digital Video Fingerprinting

Are there any Open Source Digital Video Fingerprinting initiatives? ie: Something that could compare two video files of disparate quality but indicate they are of the same event, program etc.
Ande Turner
  • 6,642
  • 18
  • 76
  • 105
31
votes
3 answers

Post processing in ffmpeg to move 'moov atom' in MP4 files (qt-faststart)

Is it possible to run ffmpeg from the command line which will either place the 'moov atom' metadata in the beginning of the MP4 file or run the qt-faststart as a post processing operation in ffmpeg so the generated file is stream-able through the…
siliconpi
  • 7,593
  • 15
  • 64
  • 105
31
votes
8 answers

How to detect if a video file was recorded in portrait orientation, or landscape in iOS

I am using AlAssetsGroup enumerateAssetsAtIndexes to list the assets in the Photos (Camera) app. For a given video asset I want to determine whether it was shot in portrait or landscape mode. In the following code, asset is an AlAsset and I have…
George C.
  • 661
  • 1
  • 6
  • 11
1
2 3
99 100