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
616
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
  • 6,177
  • 3
  • 14
  • 5
554
votes
16 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
  • 20,008
  • 22
  • 105
  • 149
250
votes
0 answers

GStreamer Editing Services freezes when transitions are added

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 joins 2 segments of the videos together without a transition, works fine: ges-launch-0.10 vshort01.mov 0…
Amandasaurus
  • 58,203
  • 71
  • 188
  • 248
148
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…
95
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,145
  • 1
  • 26
  • 29
78
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
  • 15,430
  • 14
  • 47
  • 62
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,130
  • 2
  • 12
  • 19
72
votes
10 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
  • 3,281
  • 5
  • 20
  • 12
53
votes
2 answers

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
  • 7,037
  • 11
  • 51
  • 86
53
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,…
50
votes
2 answers

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,822
  • 14
  • 50
  • 93
44
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,726
  • 4
  • 24
  • 40
43
votes
4 answers

Change video resolution ffmpeg

I have videos with different resolution. I want that all of them will be in resolution of 480x320. I tried the command: ffmpeg -i %s_ann.mp4 -vf scale=480x320,setsar=1:1 %s_annShrink.mp4' %(dstfile,dstfile) but the output of the videos are files…
liorko
  • 1,435
  • 2
  • 24
  • 41
40
votes
4 answers

Is there a way to use ffmpeg to determine the encoding of a file before transcoding?

I am planning to use ffmpeg to ensure all video files uploaded to my website are encoded as mp4 h264. Rather than automatically processing every file I would like to minimise the processing overhead by only processing those files that are not…
Bill Noble
  • 463
  • 1
  • 5
  • 5
37
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
  • 8,105
  • 18
  • 69
  • 107
1
2 3
99 100