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
5
votes
1answer
4k views

ffmpeg: can I crop using vf while also using filter_complex at the same time?

I have an ffmpeg command using -vf to square crop a video: ffmpeg -i input.mp4 -vf \ "crop='if(gte(iw,ih),ih,iw):if(gte(ih,iw),iw,ih)', scale=720x720" \ -an -c:v libx264 -profile:v high -level 4.1 \ -...
5
votes
1answer
4k views

ffmpeg drawtext text parameter expressions

I am trying to write text on a video in such a way that the text "writes itself" - letter by letter. To do this I was able to do something like this: -vf "[in]drawtext=text='a':fontfile='/Windows/...
5
votes
1answer
3k views

ffmpeg - resize and crop

I want to know how to use the scale filter to take an image that is 2154x1136 and scale it down exactly 89.04% such that the image sits in a 1920x1080 frame, with full image left and right and black ...
5
votes
3answers
2k views

creating a lossless mp4 screencast

I'm trying to create a screencast for playback on the web. Would like to use h.264, webm, and ogg. The source files are in the Apple Animation codec, and they look perfectly accurate. However when I ...
5
votes
1answer
13k views

green screen to transparent with ffmpeg

ffmpeg does a very good job of getting rid of a green screen, with a command like this: ffmpeg -f lavfi -i color=c=black:s=606x1080 -i input.mp4 -filter_complex "[1:v]...
5
votes
1answer
5k views

How should I encode my 4K video stream?

I'm capturing uncompressed 4K video from my Sony A7R II via a video capture device, and am using ffmpeg to save the video. My problem is I don't know what codec to use. The two options I tried are: ...
5
votes
1answer
14k views

ffmpeg - live stream into a browser video tag (localhost only)

I'm building an application, that is basically a video chat, where a user connects using WebRTC with another users (operator) browser, and should be able to talk to a third person. The WebRTC part is ...
5
votes
1answer
5k views

Does ffmpeg have a configuration file?

Using a lot the ffmpeg program, I want to configure ffmpeg on linux so that it always hides banner (option -hide_banner) to reduce text output. I cannot seem to find anything that would tell me where ...
5
votes
1answer
1k views

Bad quality encodes to Prores4444 with alpha from ffmpeg

EDIT: This bug has been fixed. If you're experiencing the problem below, try updating ffmpeg I need to supply video with alpha as a prores4444 encoded file. I've been trying to use ffmpeg, but for ...
5
votes
1answer
3k views

Merge two transparent webm videos with FFmpeg

I'm trying to merge two transparent webm videos together while keeping their transparency using ffmpeg. Main video: https://s3.amazonaws.com/medlike/logo.webm Overlay video: https://s3.amazonaws....
5
votes
2answers
2k views

Using ffmpeg to add height (as black bars) to video file without quality loss

I have a file of resolution 3840x1632, but my TV stretches the picture vertically to fill up all 2160 pixels of height. Is it possible to use ffmpeg to add blank / black height, while preserving the ...
5
votes
1answer
1k views

Video transitions and filters - how to create custom ones?

I am wondering if there is a possibility to do custom video transitions or filters. Like the video spiraling out, little squares appearing, circling out or something like that. Wiping the video out ...
5
votes
1answer
983 views

Largest input image size when encoding a video?

I got a bunch of really large 16 bit videos, approaching 65535×65535 pixels in size. These are essentially high quality timelapse panoramas. I want to convert them to a 7680×4320 movie (8K UHD, 8 bit)....
5
votes
0answers
2k views

CRF for 'visually lossless' for libx265 [duplicate]

The ffmpeg wiki page for H.264 states that: Consider 18 (CRF) to be visually lossless or nearly so: it should look the same or nearly the same as the input but it isn't technically lossless. ...
5
votes
1answer
767 views

Trying to sync audio in mpeg2 video whose video freezes first 8 seconds in playback

So I have a handful of old mpeg2 (.mpg) files with the following profiles as provided by ffmpeg (the timecodes on each are different): Stream #0:0(eng): Video: mpeg4 (Advanced Simple Profile) (mp4v / ...
4
votes
4answers
3k views

Why isn't ffmpeg used in movie production or broadcasting tool chains?

Is the assumption in the title true? What is preventing the use of ffmpeg when producing a movie or broadcast quality material? Are there any prominent or well known users of ffmpeg? What is used ...
4
votes
3answers
1k views

How do the super resolution filters in FFmpeg work?

I need to incorporate a small amount of 1080p HD shots in a 2160p 4K composition. I'm not impressed by default upscaling techniques like lanczos/bicubic/trilinear; it seems like my television does a ...
4
votes
3answers
1k views

Software for detecting Photosensitive Epilepsy content

As part of various broadcasters requests media provided for broadcasting environment must be PSE (Photosensitive Epilepsy) free. There should be not frames sequences that could trigger that symptoms. ...
4
votes
4answers
4k 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?
4
votes
1answer
7k views

How to show number of available streams using ffmpeg?

I just want to see how many streams are inside my video file. I looked at the official documentation and I cannot see what option I can use. Perhaps another command/terminal app can do something ...
4
votes
2answers
4k 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 -...
4
votes
1answer
5k 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 ...
4
votes
1answer
16k 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 ...
4
votes
3answers
2k 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 ...
4
votes
1answer
16k 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: ...
4
votes
1answer
3k 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....
4
votes
1answer
8k views

FFMPEG output is blocky

I'm attempting to extract the individual frames from a raw AVC video stream. I'm doing this via the following ffmpeg command: ffmpeg -q 1 -i video_test.avc -f image2 frames/frames_%04d.jpg The ...
4
votes
2answers
4k views

ffmpeg “Stream specifier matches no streams”, but it exists

In ffmpeg, I have the following filter_complex: color=c=Chartreuse:s=1920x1080:d=8640.059,setpts=PTS-STARTPTS[t]; [1:v] trim=start=114.149:end=124.149,setpts=PTS-STARTPTS [v0]; [t][v0]overlay=0:0:...
4
votes
1answer
32k 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=...
4
votes
1answer
3k 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 ...
4
votes
2answers
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 ...
4
votes
2answers
4k views

ffmpeg: white padding is light grey but not white

I want to generate 16:9 thumbnails from videos with white padding but the resulting picture has grey padding instead of white. This is the command line (input here is a jpg but the effect is the same ...
4
votes
2answers
4k 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? Example still image - captured with ...
4
votes
1answer
3k 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 ...
4
votes
2answers
9k 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 ...
4
votes
1answer
6k views

ffmpeg hardcoded subtitles from the top, bigger, with thicker stroke, on a dark background

I found this page (I can't comment or answer there so here's a new question): Render srt subtitles to video? with this line which works fine: ffmpeg -i input.mp4 -filter:v subtitles=subtitle.srt -c:...
4
votes
1answer
4k 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) ...
4
votes
2answers
2k views

How match this broadcast standards with Premiere and ffmpeg

I have to export an MXF file for a program that have certain limitations: Conform to SMPTE 274M, “1920 x 1080 Scanning with no visible video impairment such as blocking errors or pixelization ...
4
votes
1answer
881 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 ...
4
votes
1answer
2k 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 ...
4
votes
1answer
4k 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 ...
4
votes
2answers
153 views

Star Trek Continues: ffmeg dvdsub: overlapping subtitles

So I've downloaded the free fan-created Star Trek Continues Blue-Ray ISO for Episodes 1-3 and I'm trying to convert the FHD 1920x1080 to SD 960x540 to be able to watch on my phone: ffmpeg -...
4
votes
1answer
975 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....
4
votes
3answers
2k views

What are some GUI that allow me to cut sections from a video without re-encode?

To illustrate: Say I want to delete the 10-11 minute point of a 20 minute video and create the new video of 19 minutes without re-encode. Same as described in the link below; think: removing ...
4
votes
1answer
8k views

How to decode the PTS timestamps and extract the video frames

I want to extract the video frames and get the PTS timestamp for each one of them. I have an input MPEG-2 TS file and I prefer to use some open source tool like ffmpeg or something similar. The ...
4
votes
1answer
2k 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 ...
4
votes
1answer
2k views

Video metadata: What is “Video delay” used for?

Recently, I'm forced to fiddle with a nasty little problem with videos that have some special metadata attributes, namely "delay" or "delay_relative_to_video". There's a software videoconferencing ...
4
votes
3answers
5k 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 ...
4
votes
1answer
4k 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. ...
4
votes
1answer
1k 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 ...

1 2
3
4 5
34