Questions tagged [ffmpeg]

Media tool with support for multiple codecs, filters, and containers. Include your actual command and the complete console output when asking questions involving FFmpeg tools. An easy way to do this is by adding `-report` to your command and pasting the contents of the logfile generated. For help with CLI use only of ff* binaries - ffmpeg, ffprobe, ffplay. For help with API usage, post on Stack Overflow.

Filter by
Sorted by
Tagged with
13 votes
5 answers
25k views

Rip CD/DVD with ffmpeg

Is this possible with ffmpeg? Do you have any links that explain how to do this? I have searched with Google but had not many results. I just want to be able to convert a CD or DVD to MP3 audio ...
18 votes
2 answers
19k views

Cutting videos at exact frames with ffmpeg select filter

Instead of using -ss and -to seeking parameters, which seem not very accurate, can I cut videos for given frame numbers? For example; ffmpeg -i video.webm -startingframe 80 -endingframe 560 output....
0 votes
0 answers
2 views

Translate Handbrake preset into FFMPEG preset

Is there a good way to translate the following Handbrake preset code into a FFMPEG preset? I've not found any reliable sources for how to configure the preset for FFMPEG. { "PresetList": [ { ...
9 votes
2 answers
14k views

Is it possible to get FFmpeg to use hardware acceleration for HEVC transcoding on macOS?

I have a MacBook Pro with a Kaby Lake processor running macOS High Sierra (10.12). Is it possibe somehow to setup FFmpeg to utilize hardware encoding of HEVC with toolbox, instead of libx265?
0 votes
0 answers
8 views

Frame count mismatch after generating resized proxy file with movflags option

I am using FFMpeg to generate a down-sized proxy video for downstream processing. I am piping the video into FFMpeg as a stream and piping the resulting proxy video directly back to the calling ...
1 vote
0 answers
10 views

Using FFMPEG to find the coordinates of the rightmost filled pixel in a png with transparency

Let's say I want to watermark several photos like this. A sample picture I will have several pictures with different bottom-most-right-most non-transparent pixel. The marked coordinate is what I need ...
0 votes
0 answers
8 views

VLC: network stream over RTSP: can I use more aggressive buffering?

I can watch my RTSP stream with VLC almost perfectly. The stream is live, transcoded from h264 to h265 by ffmpeg. My only concern is that the stream is occasionally (depends on many factors, but at ...
0 votes
0 answers
14 views

Trying to zoom into a video via conf

I am running a docker container that is converting an RTSP stream to MJPG via an ffmpeg. I am just trying to perform a 2x zoom into the video feed that I have. Googling shows that I can run my command ...
0 votes
0 answers
11 views

I've built ffmpeg, but QSV seems broken on Ivy Bridge

I have built ffmpeg from source, based on this tutorial. I had to modify it a bit, due to having an old i7 CPU and ffmpeg couldn't initialize the decoder, and this thread states "Intel-Media-...
0 votes
0 answers
13 views

Transcode with FFMPEG: H264 -> H265 [duplicate]

I need to transcode a live stream (encoded in h264) to h265 with ffmpeg. Unfortunately my hardware is not able to encode H265 by hardware (but can decode H264). Currently I'm using: ffmpeg -re -i &...
114 votes
13 answers
290k views

How to create a video from images using FFmpeg?

Is it possible to use ffmpeg create a video from a set of sequences, where the number does not start from zero? For example, I have some images [test_100.jpg, test_101.jpg, test_102.jpg, ..., ...
74 votes
7 answers
90k views

How do I use ffmpeg to get the video resolution?

I am trying to get resolution of the video with the following command: ffmpeg -i filename.mp4 I get a long output, but I need just the width and height for my bash script. How should I filter out ...
0 votes
1 answer
1k views

ffmpeg "Operation not permitted" error concat files at specific timestamps

I'm using ffmpeg on a MacOs 10.15.7 to concat jpegs together at specific timestamps using a txt file with permissions set at 755 (contents below) file 'Walk1_pupil_00001_00.jpeg' inpoint 00:00:00....
0 votes
0 answers
26 views

ffmpeg -stream_loop -1 not working on hls input

Im running this command to re-stream an hls to my rtmp server. ffmpeg -stream_loop -1 -fflags +igndts -hide_banner -re -i playlist_main2_c.m3u8 -c copy -f flv -flvflags no_duration_filesize rtmp:******...
1 vote
2 answers
60 views

Is there a way to extract subtitles from an MKV while maintaining the original format?

I am trying to extract (first, in case of many) subtitle track from mkv files (via CLI only, no GUIs) using ffmpeg or mkvextract. But there is one downside to this: I have to write the output name ...
0 votes
0 answers
20 views

FFMPEG loop does not exit

When encoding a stream using -filter_complex loop=2:50:0 I expect a video containing the first 50 frames twice. However I end up with a video stream containing 2 loops, followed by the rest of the ...
0 votes
1 answer
27 views

How to copy audio & video streams without re-encoding in GStreamer?

In ffmpeg you can use "-c:a copy -c:v copy" to copy audio & video streams without re-encoding the output file, this is the way if you want to make little details in shorter time, like ...
0 votes
1 answer
26 views

FFMPEG 3 video Concat / Overlay

I have been getting to grips with FFMPEG for the last few days...so please excuse my lack of knowledge. It's very much early days. I need to join 3 video elements together with one of the videos ...
3 votes
2 answers
3k views

FFmpeg - How to achieve a circular video overlay..?

I'm helping my daughter and her friends with their Youtube VLOG channel, and now they want to do screen-casts and put a smaller circular face close-up (e.g. in a the upper right or left corner) where ...
0 votes
0 answers
23 views

Extract only video from file using FFMPEG

I have an mp4 file named "input.mp4" and I need to extract only the video stream into another mp4 file, without re-encoding. How can I do that? I found a way to extract the audio stream but ...
0 votes
1 answer
10 views

FFMPEG Specify Local Address for SDP

I have a network of AES67 devices that use multicast to communicate in a broadcast environment. I'm running FFMPEG on a machine with two NICs, one dedicated to the AES67 network and one facing the ...
1 vote
0 answers
30 views

FFMPEG combining filter_complex and realtime processing

I am having trouble using both options. The goal is to use the loop filter to stream part of a video. This is the test command I've been running. ffmpeg.exe -re -i .\input.mkv -c:v libx264 -preset ...
0 votes
1 answer
3k views

How can I automatically cut all silence (0dB) from mp3 without reencoding?

As I read silenceremove will reencode file. Usually I do it manually creating file like: file 'file.mp3' inpoint 0 outpoint 01:55:00.0 file 'file.mp3' inpoint 02:03:50.0 and executing this command:...
1 vote
0 answers
20 views

ffmpeg subtitles does not copy text, only timestamps when converting ass to srt

I've been trying to convert an mkv to mp4 without loosing subtitles, however nothing has worked so far. I've narrowed it down to some sort of bug (I think). I can extract the subtitles from the mkv to ...
0 votes
0 answers
219 views

HEVC Intel QuickSync not working: Error loading plugins | Could not load the requested plugin

I am able to encode to h264 using Intel QuickSync just fine: ffmpeg -init_hw_device qsv=hw -i IN.MKV -c:a copy -c:v h264_qsv OUT.MP4 I used this command for HEVC: ffmpeg -load_plugin hevc_hw -...
65 votes
13 answers
107k views

Properly downmix 5.1 to stereo using ffmpeg

I have a 5.1 audio track from a film where front left and front right contains music, and center contains dialogue. Playing the 5.1 track in VLC blends everything together nicely. I'm trying to ...
1 vote
0 answers
19 views

FFmpeg freezes the computer halfway through encoding

This is the command I am using: for i in *.mp4; do ffmpeg -i "$i" -map_metadata -1 -c:v libvpx-vp9 -c:a libopus -crf 19 "${i%.*}.webm"; done It was running fine for a while, it got ...
28 votes
4 answers
39k views

Using FFmpeg to locate moov atom

I have a library of videos, all of which should have been adjusted for web-streaming by putting the moov atom ahead of the rest of the video. This allows playback to begin before the client has ...
2 votes
1 answer
3k views

Alternatives to Video4Linux2 for grabbing from webcam (Using FFmpeg)

I'm getting (two alternating) errors following this guide for streaming from a Raspberry Pi. Are there any other grabbers besides V4L2 that I can use with ffmpeg? Or are there any other streaming ...
33 votes
3 answers
41k views

Any downsides to always using the -movflags faststart parameter?

It seems many sites like YouTube suggest moov atom at the front of the file (Fast Start). ffmpeg does not make this a default behavior, but you can specify it with the -movflags faststart option. I'...
-1 votes
1 answer
23 views

Script to Find and Resample Audio via FFMPEG Fails on Files with double quotes

Why does this script explode when file names contain double quotation marks? for i in **/*.flac; do echo "$i"; done | parallel -j+0 --eta --joblog /tmp/parallel.log --progress --bar --...
1 vote
0 answers
64 views

`ffprobe` is 12 times slower than `metaflac`. How to speed up `ffprobe`?

On a small FLAC folder of 1593 files, ffprobe takes over 12 times longer to run than metaflac. How to speed up the single-threaded performance of ffprobe? I tried to tell ffprobe to do the same and ...
2 votes
1 answer
3k views

Why does ffmpeg's "tonemap" tone mapping filter give me different colors depending on the output format?

I have a source video that is a UHD HDR MKV file using the HEVC codec. Specifically, the input video stream as reported by ffprobe is: hevc (Main 10), yuv420p10le(tv, bt2020nc/bt2020/smpte2084), ...
1 vote
1 answer
7k views

FFmpeg Upscaling Video

First I just want to say a bit more about my title, I am not referring to the fact that upscaling doesnt add data(as often asked when upscaling) - but something different. Example I have raw video ...
4 votes
1 answer
4k views

Chromium won't play mp4

I have chromium (version 79) installed on my Red Hat 7.6 system and cannot play any mp4 videos. I attached an image below of what it looks like when I run chromium-browser <mp4 video>. I have ...
-1 votes
0 answers
24 views

Does FFMPEG have an Autobalance filter?

A common issue I'm sure :) . Many movies have dark scenes that are unwatchable unless you turn your TV's brightness WAY up. I'm presently using -vf normalize=blackpt=black:whitept=white:smoothing=...
1 vote
1 answer
332 views

Download m3u8 blob video using ffmpeg

The video is located on this page after clicking on the WATCH TRAILER button https://web3.wb.com/warnermedia/movieverse In the network tab of the browser I found several links to m3u8 playlists among ...
3 votes
1 answer
38 views

On my Intel Core i9-12900K only the efficient cores are executed with FFMPEG

On my Intel Core i9-12900K only the efficient cores are executed with FFMPEG (see picture). What could be the reason for this and how can I change it? Screenshot System Utilization with FFMPEG. Thank ...
4 votes
1 answer
7k views

Black video generated by ffmpeg

When I generate a video starting from a sequence of .png snapshots, the output video is black. Here is a minimal working example: I generate the video from these two frames with the following command ...
0 votes
1 answer
315 views

Is there a way to record full-screen using ffmpeg?

I was attempting to record my desktop using ffmpeg (gdigrab). All went well with the recording until I tried to record a game (Halo2), which was the main goal. FFmpeg wasn't recording any footage of ...
1 vote
1 answer
31 views

Unable to find a suitable output format for 'copy' copy: Invalid argument - ffmpeg Error

I'm trying to get the video and first voice channel with converted AAC. Also trying to add a subtitle. The command I've used is: ffmpeg -i yourmkv.mkv -i yoursubtitles.srt -map 0:v -map 0:a -map 1:s -...
0 votes
1 answer
29 views

FFMPEG and Powershell Script not working (worked in the past)

I had to reinstall windows, now I'm trying to get it working again with no luck. The Script is a .ts to .mp4 batch converter, when I set it up the first time, I included the link at the top for ...
0 votes
0 answers
70 views

Getting av_interleaved_write_frame(): Broken Pipe after a while

I'm getting "av_interleaved_write_frame(): Broken pipe" every time I try to stream WITH audio, no matter the input source. The error does not come up instantly, but rather sporadically. I ...
0 votes
4 answers
3k views

combining 1 image + 1 audio using FFmpeg

I want to combine an audio file and one image file into a video. Output will be in .webm format so I will be using libvpx. The video must have one frame with the best/lossless quality. So far I have ...
0 votes
2 answers
3k views

'ffmpeg' is not recognized as an internal or external command, operal program or batch file

I'm not a Windows guy, I have been using Linux since 1999. I installed FFmpeg on my daughter's Windows 10 laptop. I installed it according to the instructions, set the PATH in the environment ...
0 votes
2 answers
5k views

ffmpeg - Normalize Audio With Varying Audio Volume

I have a .MOV file whose sound I would like to normalize. However, when I run the following command I see that the volume varies (mono to stereo and with varying max_volume levels) throughout the ...
2 votes
1 answer
103 views

ffmpeg mjpeg pixel_format does not work with avfoundation

I'm capturing a video using a webcam that supports streaming its output as mjpeg. So far I've been doing it successfully on linux as follows: ffmpeg -pixel_format mjpeg -i /dev/video4 ... However, I'...
0 votes
0 answers
25 views

How do I get "shadowplay" level compression and quality?

I'm trying to record gameplay, break the video into sections, speed some of them, and concat it back together for upload. The problem is compression/quality. Using Shadowplay, I get good quality and ...
0 votes
0 answers
12 views

Rebuild .m4a file with ffmpeg

I have a couple of corrupt m4a file that I'd like to try to repair by rebuilding the container, so I thought ffmpeg could do that easily. However, when I run this, even on a valid file, I get an error:...
12 votes
2 answers
18k views

How to compile the best version of FFmpeg for Cygwin/Windows

It's generally accepted that, by default, FFmpeg comes packaged with lower-quality encoders - particularly when it comes to the default AAC encoder and the default resampler. According to these ...

1
2 3 4 5
127