FFmpeg is a free software project that produces libraries and programs for handling multimedia data. The most notable parts of FFmpeg are libavcodec, an audio/video codec library used by several other projects, libavformat, an audio/video container mux and demux library, and the ffmpeg command line ...

learn more… | top users | synonyms

0
votes
0answers
5 views

Correct lens distortion with ffmpeg

It seems to be possible to correct lens distortion with ffmpeg. According to the manual you can adjust K1 and K2 values. What this means? How to use it correctly?
2
votes
1answer
26 views

How to do mpeg/mpg to mov lossless convertion?

Does anyone know how to do lossless conversion from *.mpeg/mpg to mov? I was asked to extract video from DVDs and do editings in FCPX, however FCPX cannot edit *.mpeg/mpg file natively, therefore I ...
3
votes
2answers
41 views

What is the difference between ffmpeg and ffmbc now?

Two years ago I've used ffmbc to encode videos to prores, but nowadays ffmpeg also supports prores and avchd. What is the difference between ffmpeg and ffmbc now?
2
votes
1answer
15 views

How to compile FFmpeg with libfdkaac into a single static binary?

My target is to build a single static FFmpeg binary with libfdkaac and x264 support for OSX and Linux. First, I tried to build one on OSX, I follow the instruction on FFmpeg web: ...
2
votes
1answer
37 views

ffmpeg Color conversion - 709 to 601

I am downscaling an HD movie from 1920x1080 to 720x576 and want to make sure the color conversion is done correctly, which with my current settings I am sure it is not. I am coming from an HD Prores ...
2
votes
1answer
152 views

Lossy output with FFMPEG JPEG 2000

I'm trying to achieve a lossy JPEG 2000 output with FFMPEG, but no success so far. Using this command line: ffmpeg -i input.dpx -pix_fmt yuv420p -vcodec libopenjpeg output.jp2 As a result I get ...
7
votes
4answers
10k views

How to losslessly encode a jpg image sequence to a video in ffmpeg?

I have a large set of jpgs that I want to convert to a video losslessly (or, at the very least, very close to losslessly as long as the encoding time isn't much higher than otherwise). Naively, I ...
1
vote
0answers
20 views

What is the ffmpeg filter equivalent of “Automatic levels” for colors?

Looking at the documentation about filters there seems to be a curve filter to manipulate color with the following presets: color_negative cross_process darker increase_contrast lighter ...
2
votes
2answers
276 views

encoding 4:2:2 in 10-bit with libx264

I believe that libx264 is now capable of doing 10-bit 4:2:2 encodings, but I can't seem to get it to work. I'm using ffmpeg (info below), and I've also tried the x264 encoder directly. I've tried ...
7
votes
4answers
3k views

How to get FFMPEG to join non-sequential image files? (skip by 3s)

I have a bunch of images, that follow this pattern. 0001.png 0004.png 0007.png 0010.png 0013.png 0016.png 0019.png ... They're in the correct order, but FFMPEG ignores anything after the first ...
0
votes
3answers
147 views

Good Intermediate Format for Combining Videos

I have a bunch of PNG files in separate directories that I'll turn into videos with FFMPEG. Say each clip will be a minute long. I then want to stitch those together into a final video. The final ...
1
vote
2answers
326 views

Lossless conversion of yuv420p10le to yuv420p

I have an mp4 movie, containing an h264 video stream (pixel format yuv420p10le), and an AAC audio stream. My favorite player cannot read the yuv420p10le pixel format. I was wondering if it is ...
1
vote
0answers
425 views

Lossless Editing by Combining Clips with FFmpeg x264

My new Canon Vixia HF G30 video camera has an option to encode directly to 35 Mbit/sec Mp4 at 1080p60 and it does a nice job. I primarily use it to record my daughter's high school basketball games. ...
19
votes
1answer
26k views

How can I crop a video with ffmpeg?

I have an MP4 file of a screen recording that I need to crop down. How can I accomplish this without using expensive tools like Adobe Premier or Final Cut? I prefer ffmpeg because I have used it ...
2
votes
0answers
39 views

How to display static image if the input stream ends using ffmpeg?

I am receiving a stream over the network with the following ffmpeg command: ffmpeg -i rtmp://server:port/input.stream -f flv rtmp://server2:port/output.stream When the input stream stalls, I want ...
3
votes
2answers
65 views

Add image under the video with ffmepg

I want to extend basic usage of watermark and put it under the video. That means. I have input video 720x480 and image 720x20. On output i want to have video 720x500 where video aspect is preserved ...
1
vote
0answers
22 views

Any m2ts optimizer under Linux?

My goal is to optimize m2ts generated by ffmpeg for HLS because the generated m2ts has lots of structural overhead. The below is an example of the result analyzed by Apple Media Stream Validator: ...
2
votes
1answer
100 views

Unable to concatenate videos due to identical MOOV atoms

I am cutting out segments from a long mp4 file and then rejoining parts of them. However, since FFMPEG apparently keeps the same MOOV atom for the trimmed files as the original, it looks to FFMPEG ...
1
vote
0answers
11 views

Is there a way? multiple images to looping video via ffmpeg?

I want to use ffmpeg to create a 15 second looping video from images for posting to instagram. For instance: Camera takes 3 pictures Each image plays for 2 frames (3 images = 6 frames) After 6 ...
0
votes
1answer
40 views

Calculating loss when converting from MTS to AVI using FFMPEG

I am using the following script to convert my MTS video to an AVI video: for %%a in ("*.mts") do ffmpeg.exe -i "%%a" -vcodec libxvid -s 848x480 -maxrate 4800k -b 4000k -qmin 3 -qmax 5 -bufsize ...
1
vote
3answers
81 views

Using ffmpeg to cut out a scene by original timestamp

I have a recording (a simple, unprocessed TS from my satellite receiver, not encrypted) that has uneccessary stuff at the beginning and the ending. I want to cut out the main feature now with ffmpeg. ...
1
vote
0answers
43 views

FFMPEG Sync Audio & Video From Pi Camera & USB Microphone

Posted this in the Raspberry Pi community, but it got closed for being off topic. Reposting in the hopes that it is now in the right place. I am trying to stream low-quality audio & video from my ...
2
votes
1answer
47 views

ffmpeg adds unneeded zero samples at beginning of resulting m4a file

Input file original.wav ffmpeg -i original.wav ... Duration: 00:03:36.93, bitrate: 1411 kb/s Convert wav to m4a with fdk-aac encoder: ffmpeg -i original.wav -c:a libfdk_aac -vbr 5 ffmpeg.m4a ...
0
votes
1answer
24 views

How to lower the volume of the second audio channel with FFMPEG

It's easy to mute one of the audio channels of a video, but I have to lower the second one with some dB. I have searched in documentation about mapping the channels but I am still confised how to ...
1
vote
0answers
65 views

ffmpeg filter_complex problem

I'm trying to achieve complex effect with ffmpeg, but I seem to be failing the syntax of -filter_complex somewhere. The goal is to capture part of the screen (with UScreenCapture direct show device) ...
2
votes
1answer
136 views

FFMpeg and HLS, videos need to load in their entirety before they start playing

I am using ffmpeg to generate a segmented list of files in order to stream them to an iOS app. The list of files is generated fine but when it comes time to play them, the video needs to be downloaded ...
1
vote
0answers
139 views

The ffmpeg`s filter_complex blend respecting overlay`s alpha channel

I need to blend an video with an semitransparent png like this: [1:0][0:0]blend=all_mode=average Seems like the transparency of png is ignored. What I missed? How to make the ffmpeg to respect ...
3
votes
1answer
151 views

Similar to “levels adjustment” brightness improvement with ffmpeg

I'm composing a video from set of 16bit tiff pictures. The pictures are very dark, and needs to be brightened. Currently I'm applying -vf "mp=eq2=1.0:1.0:0.3:1.0:1.0:1.0:1.0:1.0" filter to make ...
3
votes
2answers
95 views

How to encode a video at 30 FPS from images taken at 7 FPS

I have no knowledge whatsoever about video encoding, I have an application written in OpenGL and I am saving the frames it generated into png images. The frames from my app are at 7 FPS and I am ...
1
vote
0answers
38 views

How to get ffmpeg/x264 to use same parameters as input?

I'm trying to accomplish a smart rendering workflow using ffmpeg/x264. In short, get ffmpeg to segment the input file. Locate the segment(s) with changes to be made. Re-encode altered segments with ...
3
votes
1answer
43 views

ffmpeg input from images stream out video

I am using ffmpeg to capture a video recording device and would like to add an overlay to it . I have images being rendered on the fly and I would like to use them as the overlay . How can I take a ...
5
votes
1answer
1k views

Repeat/loop Input Video with ffmpeg?

I just want to loop a mp4 video with ffmpeg and keep the current settings and codec. For example if input.mp4 is 0:10 long, and I would want to loop it 4 times so output.mp4 is 0:40 long, how could I ...
0
votes
0answers
79 views

Switching between H.264 video streams on the fly?

I have several H.264 encoded MP4 files, as well as still images. From these I want to generate a single video stream that I can broadcast. The stream will be composed of alternating still images and ...
3
votes
1answer
434 views

Combine multiple videos as separate streams in one mkv file

So I have multiple videos of the same scenery from different angles. These are stored as separate files. Can I combine these as multiple video streams within one file? For example I know this is ...
4
votes
2answers
5k views

How can I convert .MTS file (AVCHD) to .mp4 by ffmpeg without re-encoding H264 video stream?

Note: I posted same question to stackoverflow a short time before, when I have not found this comunity yet. I repost this since the question is more suitable to this community. 1. What I tried I ...
1
vote
1answer
101 views

How to work with R3D and RMD files? FFMPEG?

I am getting collections of files of the types A0123-random-name.RMD A0123-random-name.R3D Googling tells me R3D is a raw RED file and RMD is Red Meta Data - data about the processing to be ...
0
votes
1answer
97 views

Split video into equal duration segments

I am currently using ffmpeg to split videos into 10 seconds segments. I have taken two approaches but neither seems to yield the desired results. Approach number one is using basic cutting with the -t ...
2
votes
3answers
298 views

FFmpeg MP4 to FLV too slow

I am converting .mp4 files to .flv using ffmpeg in centos. But the conversion time is extremely too slow! It takes about 1.5 hours to convert 500MB .mp4 file into .flv. I am using a linux vps with 2 ...
1
vote
1answer
275 views

Crop video in ffmpeg without re-encoding

I have videos I want to split across multiple screens, so the solution I've found so far is to just crop the input video 4 times with ffmpeg (is this optimal? Is there some other way so I only need to ...
1
vote
1answer
107 views

using a 265 encoded video with a container

Let me start by saying im not a video production guy. I am a programmer so im in over my head in certain areas. Ive been trying to use ffmpeg to mess around with HEVC encoded video. I was told it ...
1
vote
2answers
357 views

YouTube 3gp encoding settings

I'm building a new media site and I'm taking cues from YouTube for which video file formats I should offer for widespread usability among mobile and desktop clients. I'm doing all transcoding using ...
1
vote
1answer
53 views

What parameters should I select to get a high quality voice .wav file?

I'm trying to generate a high quality .wav voice-over using Microsoft Speech API. What should be the values of following parameters (they are part of this constructor): int samplesPerSecond, int ...
2
votes
2answers
2k views

How to do a video live stream through a VPS?

I've been looking at a million resources and I can't find a definitive answer to this. I'm looking to do a small scale (max 50 viewers possibly), low quality live video stream, with nothing but my ...
0
votes
0answers
307 views

Stream a dynamic playlist to a RTMP server

My goal is to stream a dynamic playlist of video to Twitch. The problem is while I stream a file, I don't know which will be the next until the end of the current one. My playlist is a very simple ...
1
vote
2answers
167 views

ffmpeg re-encode libx264 without quailty loss?

According to the documentation for libx264 (h264) encoding, we can use a preset of veryfast, faster, fast, medium, slow, etc. https://trac.ffmpeg.org/wiki/Encode/H.264 ...for constant quality ...
0
votes
2answers
92 views

gource and ffmpeg reduce video size

I try to create video with gource. I succeed with the following command line: gource $LOG_FILE --log-format custom --stop-at-end --caption-file ${FILENAME}_captions.log --caption-duration 3 --title ...
2
votes
3answers
247 views

h264 settings for large flat areas of slowly changing colour

I'm doing an animation for a projection mapping that simulates the sun casting shadows on a structure as it moves through the sky. Basically it's just big flat areas of colour that change over about ...
2
votes
1answer
793 views

restart encoding with ffmpeg when bad source

I have an ffmpeg process which saves a stream from wowza server, but when the stream in wowza is interrupted for a second or so sometimes ffmpeg cycles in: [segment @ 0x671a10] st:0 PTS: 9600015 DTS: ...
0
votes
0answers
102 views

HEVC binary to MPEG 2TS

I'm trying to convert a HEVC bit stream to MPEG-2 TS using ffmpeg. However I can't seem to perform the task without a wrapper such as mp4. Here is the command I was trying. ffmpeg -i ...
0
votes
1answer
256 views

How to keep audio and video in sync?

I have a few videos I have to convert for a website. They are PowerPoint slides with a narration track over top. The originals I have to work with are in m4v format. I have converted them to mp4 and ...