Questions tagged [ffmpeg]

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 program for transcoding multimedia files.

Filter by
Sorted by
Tagged with
4 votes
1 answer
42k views

RTMP server using ffmpeg

I'd like to use a Teradek Cube connected to a broadcast camera to push to a server running ffmpeg with an open RTMP port, and have ffmpeg re-stream that feed to a decoder using RTMP or RTSP. ...
WarmTaunTaun's user avatar
4 votes
2 answers
10k views

Mux mkv and dts file, change default audio stream and language

I want to mux (combine) two files into one mkv file. The first one is an mkv file that contains a video and an audio stream in German. The second one is an English audio stream in dts format.I want ...
MoritzLost's user avatar
  • 5,392
4 votes
1 answer
13k views

ffmpeg encode in all-i mode h264 and h265 streams

Which params I can use to obtain a transcode all-i based? No B and P frames? I know that this is not efficient for compression purposes but this is not my case now. I guess i have to fiddle a bit ...
user3450548's user avatar
  • 1,504
4 votes
4 answers
5k views

ffmpeg: Normalize audio in an avi file

Ι have an avi file that has different levels of audio. Is there a way to decrease and increase appropriately where needed the audio of my file using ffmpeg?
zinon's user avatar
  • 151
4 votes
4 answers
24k views

How do I specify baseline H264 profile using FFmbc?

I am using FFmbc (a FFmpeg derivative) to transcode some video files to H264 (in a mov wrapper). I want to specify baseline profile (to reduce CPU usage) but can't figure out how. There doesn't seem ...
Darren Greaves's user avatar
4 votes
2 answers
13k views

FFMPEG: Loop video to the length of audio

E.g. if video is 1 minute, but audio is 1 hour. Make video loop throughout for 1 hour of the audio track. I use this solution to loop image through the lenght of the audio ffmpeg -y -loop 1 -r 6 -i ...
user3108268's user avatar
4 votes
2 answers
8k 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 applied. ...
tomsv's user avatar
  • 233
4 votes
2 answers
6k views

How do I remove audio from all files in a directory with ffmpeg?

I have a directory full of short video clips in .AVI format, and I want to remove the audio from all of them. I'm using Ubuntu 12.04. I tried this command: find -name '*.avi' -exec ffmpeg -i {} -an -...
Questioner's user avatar
4 votes
1 answer
6k views

Loudness control LUFS level adjustments

Is there a tool that can adjust the loudness level of a video? for example I need to make the loudness to be -23 LUFS with max deviation of 0.5 lu. is there a simple tool/cloud service that doesn't ...
Chen Kinnrot's user avatar
4 votes
1 answer
5k views

Adding blurred background to portrait videos with ffmpeg

I have a lot of videos that are either 720x1280 or 1280x720. I want to convert all of them to 1280x720, but for the ones that are portrait I would like to show the full video with the remaining space ...
Blixt's user avatar
  • 143
4 votes
1 answer
13k views

Changing the input frame rate of a series of images in FFmpeg

I am attempting to animate a series of PNG images at 30 frames per second (and add an audio track) with FFmpeg. On the command line, I specify the input and output frame rates as 30 fps. ffmpeg....
Oddthinking's user avatar
4 votes
2 answers
23k views

FFMPEG convert video with multiple audio streams?

Ok so I have a video made from dxtory. The video is using dxtory video codec and unknown audio codec. When I pop the file into avimux, I can clearly see two audio tracks/sources. I have successfully ...
Kyle's user avatar
  • 153
4 votes
1 answer
14k views

FFmpeg overlaying and blending videos

I am trying to use FFmpeg to overlay one video on top of the other using an additive blend. One video is the actual video I want to transcode, the other is a ~10 second long video I want to put into ...
Manny's user avatar
  • 211
4 votes
1 answer
18k 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: ...
neoX's user avatar
  • 41
4 votes
2 answers
5k views

Producing small H.264 files with Adobe Media Encoder vs ffmpeg/libx264

I am a terrible ignoramus in the subject, but the coronavirus has thrown me in the business of producing videos with my lectures. I care a bit for video quality and a bit more for small size. My ...
Paolo's user avatar
  • 43
4 votes
3 answers
9k views

Configure CQP (CRF) for h264_nvenc

Encoding on CPU can be done via: ffmpeg -i input.mp4 -vcodec h264 -crf 23 -acodec copy h264.mp4 GPU's alternative for the codec is h264_nvenc. How can I pass the same options to it? I googled and ...
Qwertiy's user avatar
  • 183
4 votes
2 answers
25k views

ffmpeg thread_queue_size warning: What does this mean?

*Edit: changing the render to -preset veryfast will no longer display the warning message. I also noticed that the video itself for the versions where the warning displayed had the last few minutes ...
kite's user avatar
  • 493
4 votes
2 answers
4k views

ffmpeg repackaging AVI (h264) into mp4 gives choppy playback in html5 video on chromium

I have file.avi which contains a h264 video: $ ffmpeg -i file.AVI Input #0, avi, from 'file.AVI': Duration: 00:00:20.61, start: 0.000000, bitrate: 1530 kb/s Stream #0:0: Video: h264 (Main) (...
Trees4theForest's user avatar
4 votes
1 answer
6k views

Concatenating split media files using “concat protocol”

I'm using the latest ffmpeg (3.2.4) on 64-bit Windows 10. My devices generally split up the files it saves to the SD cards, either with a 2G or 4G file size limit. Before importing the files into my ...
JDługosz's user avatar
  • 245
4 votes
1 answer
4k views

Using ffmpeg with avfoundation, capture_cursor and capture_mouse_clicks options are ignored

Situation: cash-strapped ivory tower visionary and ffmpeg newbie manacled to a 2nd hand 2010 Macbook Pro concealing a 'Black Screen of Death' NVIDIA GeForce GT 330M graphics chip. With the help of ...
user1019696's user avatar
4 votes
2 answers
2k views

How is possible for YouTube and Vimeo transcode so fast?

For the bit I read YouTube and Vimeo rely on servers powered by some modified libs i guess like libavcodec and tools like ffmpeg in a serious custom build. Let's assume a transcode to h264 but the ...
user3450548's user avatar
  • 1,504
4 votes
3 answers
3k 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 ...
stib's user avatar
  • 13.6k
4 votes
1 answer
4k views

How to concatenate two mxf files with ffmpeg, preserving both audio channels?

I have mxf files which went over the 2G limit, so were split up in the camera to produce two mxf files. They have two audio streams, one from each mic, like this: Duration: 00:10:01.60, start: 0....
fastmultiplication's user avatar
4 votes
1 answer
3k views

.srt subtitles added to mkv with ffmpeg are not displayed

I try to add .srt subtitles to the mkv file and it doesn't work. I use the following very simple command: $ ffmpeg -y -i original.mkv -i sub_original.srt -map 0 -map 1 -c copy ~/temp.mkv ffmpeg ...
Kirill Smirnov's user avatar
4 votes
1 answer
2k views

replace black frames with previous frames

I have problematic footage from diving due to my camera/SD card - every 4th or so frame is just black, and I want to replace all those black frames with either an interpolation between the previous ...
Hug's user avatar
  • 143
4 votes
1 answer
6k views

RTSP to RTMP converting fails after specific time only when IP camera enters night mode

I have bought a cheap IP camera Escam QF002 producing output in RTSP. I'd like to secure it with RTMP or HLS stream served by nginx with nginx-rtmp-module. For this I'd copy the video stream (h264) ...
mjktfw's user avatar
  • 191
4 votes
1 answer
45k views

capture RTSP stream from IP camera ffmpeg

I used the following command to get the frames from RTSP h264 codec. I could not able to get the frames from the ip camera. $ ffmpeg -i rtsp://xxxx:yyy@192.168.1.yy:xx/tcp/av0_0 -f image2 -vf fps=fps=...
kranthi sai's user avatar
4 votes
2 answers
3k views

Add black (or other color) padding when doing vstack (or hstack)

I am using the following filter_complex to put 2 videos of resolution 320 x 240, one right next to the other: -filter_complex "[v1][v2]hstack=inputs=2[videoout]" This works great, but now I was ...
Enrique Moreno Tent's user avatar
4 votes
3 answers
10k views

FFMpeg concat demuxer corrupted output (freezed video on some concatenated parts)

I have big videos with different types of properties and trying to collect some part of these videos by ffmpeg. I use this command to cut specific parts: scale video >> scale png >> pad ...
Eftekhari's user avatar
  • 141
4 votes
2 answers
7k views

Streamable Container for HEVC (H.265)

flv is a container which can be used to stream videos while they are being encoded. flv supports h.264 codec. However, flv doesn't support hevc codec. Is there any container for hevc which is ...
shivams's user avatar
  • 143
4 votes
1 answer
4k 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 ...
Clover Fox's user avatar
4 votes
2 answers
10k 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 ...
takosuke's user avatar
  • 173
4 votes
2 answers
4k views

How to extract each video scene with FFmpeg

I'm trying to detect scenes and save them as individual files with FFmpeg. I found this long command somewhere, but it fails with a good detection. I change the scenecut value, but I don't see any ...
Tina J's user avatar
  • 343
4 votes
2 answers
7k views

Can I add motion blur to make animation less jerky?

I am doing an animation, and if I do things the easy way, fast moving objects end up jerking across the screen, rather than appearing to move smoothly – in other words, I have a temporal aliasing ...
Steve's user avatar
  • 179
4 votes
1 answer
1k views

Extracting video fields Respectively

Extracting individual video fields is my previews question. Based on the Mulvya's answer I can extract the top fields (only) or the bottom fields (only) individual. Now, I need to extract the video ...
Maria's user avatar
  • 223
4 votes
1 answer
3k views

Use ffplay to check how much to brighten video before using ffmpeg?

I have a video which is a bit dark that I'd like to re-encode and brighten up with ffmpeg. As a smarter/faster alternative to running ffmpeg in trial/error mode, is there a way to simply use ffplay ...
Gulbahar's user avatar
  • 153
4 votes
1 answer
2k views

FFmpeg pan filter and clipping

I have a file that has one video stream and one audio stream with 8 channels. I want to create a new file that will only contain the first 2 channels of the audio stream (no video). I can do this ...
charisk's user avatar
  • 183
4 votes
1 answer
553 views

How to filter out overlapping audio? Given a mixed track and one stem track, what's the best way to "subtract" the stem from the mix?

Given two audio streams, I'd like to remove the audio in one stream that also exists in another. In this particular case the 1st stream contains everything mixed, and the 2nd stream contains just the ...
Chris's user avatar
  • 140
4 votes
1 answer
2k views

How to replace background green color

I'm using lenscorrection filter on a video and the result contains green background as canvas! How Can i replace this color with different one or an image? This is the command i used: ffmpeg -i out....
salem's user avatar
  • 43
4 votes
2 answers
634 views

What does the `-context` parameter mean when using FFV1 in ffmpeg

In the docs for FFV1 there's a parameter -context, which can be set to 'small' or 'large'. That's all the documentation I can find. While I'm at it, what are the relative benefits of the different ...
stib's user avatar
  • 13.6k
4 votes
1 answer
7k views

What are the differences between the three bundled ffmpeg prores encoders?

I'm using ffmpeg and while looking through the list of codes with ffmpeg -codecs I realized there are actually three different prores encoders: prores prores_aw prores_ks What are the differences ...
Patrick Kenny's user avatar
4 votes
1 answer
2k views

inserting video clip into another video but keep original audio

I need to replace video in a larger mp4 file with a smaller mp4 clip - but leaving the original (larger clip) audio intact. So for example I might want the first 2 seconds of SmallClip.mp4 to replace ...
WoogieBoogie's user avatar
4 votes
1 answer
3k views

ffmpeg audio to visualisation

I would like to "convert" audio to video visualisation (oscilloscope or waveform) sort of like some media players have. I read this thread on how to do so with ffmpeg: How do I turn audio into video ...
Arete's user avatar
  • 169
4 votes
1 answer
5k views

quickly extract video frames with ffmpeg

I am using ffmpeg to extract frames from videos. I have the following code thus far: ffmpeg -i vid.mp4 -vf fps=1/10 images%05d.png My issue is that it takes awhile! 6 seconds per image on average. ...
CephBirk's user avatar
  • 185
4 votes
2 answers
4k views

ffmpeg: mute first 2 seconds in all audio streams

Looking to edit a blip out of the beginning of a video/audio file: How can I use ffmpeg to only edit the first two seconds of the clip so that there's no longer that blip in the audio? How do I ...
Tony's user avatar
  • 151
4 votes
1 answer
5k views

How to specify CRF quality settings for different encoding software

Is there a way of specifying a quality setting for h.264 that is not software dependant? I'm trying to help a colleague create a specification for outside contractors when they deliver video to us ...
stib's user avatar
  • 13.6k
4 votes
1 answer
8k views

Video Capture using ffmpeg (V4L2 indev) Results in Bad A/V Sync

I actually contributed to a bug report on this issue a year and a half ago ( https://trac.ffmpeg.org/ticket/692#comment:15 ). Basically, the problem is that using ffmpeg to record from a USB video ...
ewhac's user avatar
  • 147
4 votes
1 answer
2k views

Creating stereoscopic video from two video files

I've got two video files, each created with ffmpeg from a series of JPEG images, which I've obtained from rendering with a stereo camera in Maya. I would like to somehow merge together these videos ...
AdamHarries's user avatar
4 votes
2 answers
3k views

Why I can't check the bit rate on some videos?

I've downloaded a video from YouTube, well I've downloaded the video stream and the audio stream of a YouTube video separately. Then with this ffmpeg command ffmpeg -protocol_whitelist "file,http,...
Nicryc's user avatar
  • 141
4 votes
1 answer
3k views

FFmpeg: Cutting 3 seconds at the beginning of a video leaves 5 seconds blank

I have an MKV video, and want to cut the first 3 seconds. I tried with FFmpeg: ffmpeg -i /input.mkv -ss 00:00:3.0 -c copy -t 00:09:58.0 output.mkv But the result (when played in VLC) is that there ...
Ondra Žižka's user avatar

1 2 3
4
5
41