r/ffmpeg • • Oct 25 '25

ffmpeg needs to change

Thumbnail
youtube.com
13 Upvotes

r/ffmpeg • • Nov 17 '24

AI powered FFMPEG prototype.

0 Upvotes

After fighting with ffmpeg commands and testing the output, I finally got around today to prototyping an idea I've had.

I hooked up an AI (Anthropic) to the program so you can just describe what you want ffmpeg to do and it creates the command. Just press play to see the output.

You can also add partial commands that will be completed or just get any ffmpeg info without reading the documentation, the AI will do that for you and give you a summary and the command to run.

I just put it together today but I've tested trimming, slow motion, joining folders of videos, joining individually selected videos, image with use selected audio, captions, watermarks and video filters.

If anyone is interested I could use some testers in 3-4 days, no charge or anything, just need feedback and feature ideas.

When I'm done the UI will be much nicer, I just started today so was glad to get it working.

Let me know and I'll send you a link after get everything together. Thanks


r/ffmpeg • • Aug 24 '24

Video frames messed up after converting its like this.

0 Upvotes

r/ffmpeg • • Mar 02 '26

Why do so many post houses still lean on ffmpeg when tools like AME and HandBrake exist?

11 Upvotes

I've been seeing ffmpeg come up in workflows lately, even in environments that already use AME, Resolve, HandBrake, etc.

I'm trying to understand where it makes more sense than a UI tool in real world post work.

If you're delivering H.264/HEVC for clients (or broadcast spec deliverables), what's the practical advantage of ffmpeg day to day?


r/ffmpeg • • Dec 02 '25

Autonomously Finding 7 FFmpeg Vulnerabilities With AI

Thumbnail
zeropath.com
4 Upvotes

r/ffmpeg • • Aug 31 '25

Built a cloud SaaS around FFmpeg (video transcoding API) – looking for feedback

1 Upvotes

Hey people of reddit

I’ve been working on a side project for a while and thought this community might appreciate it. Basically, it’s a SaaS built on top of FFmpeg that handles video transcoding in the cloud. The idea is to make things simpler than dealing with AWS/GCP pricing.

I originally built this for a client project where I needed reliable video transcoding. After setting it up, I realized it might be useful for others too, so I structured it as a small SaaS.
https://videotranscode.cloud/

So here are some of my questions for the community

  • What features or options would you expect in an API like this?

  • Is it more valuable to expose advanced FFmpeg flags, or keep it super simple?

  • From your experience, what’s the biggest pain point when scaling FFmpeg?

Not here to sell anything just sharing something I built out of necessity and hoping to get some real feedback from people who actually live and breathe FFmpeg.
Open to all kinds of feedback, even if it’s harsh.


r/ffmpeg • • Nov 04 '22

Could you please me bitrate like I'm 5?

0 Upvotes

So, I've been using FFMPEG for quite sometime but didn't yet understand what's bitrate? How does it impact the video?

I do know higher bitrate increases the video size!

For example, I know that frames is the number of total images/frame in the video. FPS is the number of frames linked together within a second.

Is the bitrate related to each frame?

Edit: Thank you so much everyone for your responses. It's clear to me now.

Edit 1: I can get the size of frames by iterating over all the frames & then check the size in any image editor or python libraries like opencv & pillow. Can I get the numbers of bits in a frame in similar manner like without the involvement of ffmpeg and/or ffprobe?


r/ffmpeg • • Mar 19 '23

why would a higher bitrate produce a MUCH lower quality visual? (wasn't expecting it to go higher, just stay the same.)

Post image
0 Upvotes

r/ffmpeg • • Jan 19 '26

Trying to compress 18:20 1080p Video to under 100MB without quality loss.

0 Upvotes

Hey guys, I understand this probably won't come off as simple. I actually have a PC I can run at home while I'm at work, and have been trying to compress a 1080p Video that is 18:20 runtime that has very high quality detail in its shots. I wish to compress this file to under 100MB to allow me to post it to image board websites.

This is my current code that I have been tweaking to get just that. It takes over 24, some times 30 hours to render, but it looks really good so far, I was curious if I am perhaps doing anything wrong? Currently I have it down to 120mb and it looks amazing. I think the obvious thing to do here is lower the bit rates, but would like some opinions on this topic.

I do get this error currently, and I assume its referring to the speed aspect in the code. The code below uses the 2-pass method, and I am using Windows 11 currently.

ffmpeg -i INPUT.mp4 -vf "w3fdif, fps=60" -c:v libvpx-vp9 -b:v 900k -minrate 550k -maxrate 1700k -tile-columns 4 -tile-rows 2 -g 240 -threads 16 -quality best -crf 51 -pass 1 -speed 0 -an -f null NUL && ^

ffmpeg -i INPUT.mp4 -vf "w3fdif, fps=60" -c:v libvpx-vp9 -b:v 900k -minrate 550k -maxrate 1700k -tile-columns 4 -tile-rows 2 -g 240 -threads 16 -quality best -crf 51 -pass 2 -speed 0 -y -preset placebo -c:a libopus -b:a 48k -movflags +faststart OUTPUT.webm

I think I get better and crisper results using the Bwdif video filter, but curious on how you guys would tackle this issue? The information I gathered was from articles and reddit posts as well as the official FFMpeg documentation website, but I would like some opinions and discussion from those who have used it longer than I have.

Thank you!


r/ffmpeg • • 26d ago

I created a application to help with new files and re-encodes of libraries to h.265 to save space on storage.

0 Upvotes

I not sure if this is OK to post, but I think this program I have been working on, mostly for myself that was really vibe coded with AI, so took many hours to fixing bugs and adding changes to things to follow the way the work flow was being done files I had on my server and also any new video files.

It uses handbrakecli and ffprobe to process a queue of files. You give it a default directory, drag files, or browse to any directory local or on a NAS and it will scan it and let you sort them all by size, it fills in media info per each file and flags files it thinks looks like they could save space by being re-encoded. it then goes through each file and samples them 3 time at different locations in that file and if it determines it wont gain more than a 10% (you can change that in settings) of saving from the re-encode it skips it. You can tell it to force files to be encoded, or have them reanalyzed more times. After each file is encoded, it created a backup, you can restore if needed, it can also auto clean the files (You have to have MKVToolNix installed on system) or you can pick what files to be cleaned, this just removes all tags that are not needed from the files, gets rid of ugly tags. There is a also a rename tab you can send the files to and it will help you rename selected files or all files in a same directory using quick ways that are helpful to common video files.

The program basically streamlines the process I usually did manually. I find that I have really used it a lot. I made it because I had a need. Not sure if something like existed already, but I needed this and worked to make it do what I needed.

Feel free to check it out if you think it would help, I would love to hear if anyone else used it or found it helpful.

https://github.com/jsdeprey/MKVEncoderQ


r/ffmpeg • • Feb 17 '26

HELP

Post image
0 Upvotes

can anyone help me fix this error?

Error opening input: Invalid data found when processing input

Error opening input file "link"

Error opening input files: Invalid data found when processing input


r/ffmpeg • • Jun 23 '25

How to get ffmpeg normalized audio louder? AI made this script for me but it always is quieter than when I normalize the same audio in GarageBand. And AI can't seem to get it to be louder. What can I do differently? This is a lecture using a 32-bit float recorder.

Thumbnail
gallery
4 Upvotes

r/ffmpeg • • Apr 10 '26

I've created a GUI for ffmpeg and yt-dlp using Tauri!

Thumbnail
gallery
0 Upvotes

I’ve been using yt-dlp and ffmpeg for a long time, but I always felt like I needed a dedicated interface that combines downloading, converting, and compressing in one place without sending files to external servers.
After experimenting with a C++ and Python, I decided to create the final version using Tauri for a better interface while keeping the lightweight backend.
Key features:

  • Fast downloading using yt-dlp

  • Easy to use compression and format conversion (I even added those that are very rarely used xD)

  • Everything happens locally on your machine

  • Works on Windows, Linux and macOS

I’m sharing this because want to get some feedback from people who actually know ffmpeg better than me and maybe suggest more efficient arguments for some functions or report bugs and suggest new features.

Repo: https://github.com/FuzjaJadrowa/Pulsar


r/ffmpeg • • Oct 29 '22

An alien came to earth and created ffmpeg, they are tthe only one that understands it, prove me wrong.

0 Upvotes

Trying to find a complex encoding option script, different from the basic scripts which can be found on the Internet, it's like trying to download text from the lost world of Atlantis. Or constructing the complicated algebra of a physics PhD student.

It seems to me that levels of complexity of ffmpeg are similar to that of learning to fly a commercial airline. To make matters worse the Internet is riddled with non-functioning scripts and people endlessly trying to figure out why they don't work. If anyone knows them please pass this on to the said alien and ask about releasing some better instructions. Thank you


r/ffmpeg • • Jan 12 '23

Any way to remove these odd "borders" (between the actual video and the black borders) preferably without re-encoding?

Post image
0 Upvotes

r/ffmpeg • • May 16 '23

How does Netflix encode their Videos?

0 Upvotes

I am just wondering how Netflix encode their Videos. So i heard that they use the Av1 codec, but when play a Video on my Pc, the decode is to slow. So a Film has a size of 580MB! HOW?! And of wich version on the codec they encode? (Like AV1 aomenc)

I learned, that - more compressed - more power of decode.


r/ffmpeg • • Nov 17 '24

I want to submit feedback to FFMPEG, but don't know where to do it or how

0 Upvotes

EDIT: Would it really be too much to actually help me understand how to submit feedback rather than just downvoting me...?
Like... I want to learn. Why would you discourage that??

I'm not a developer, but I want to contribute. I would like to suggest a progress bar using something akin to the following algorithm:

(Video File's Length - Current Length of Processed Video) * Speed = Estimate of Time Remaining

A quick websearch indicates that there's like forks or plugins or something that do this. But I would like to suggest this to be in the base FFMPEG


r/ffmpeg • • Jul 11 '19

IF ffmpeg is so widely used and famous, why I can't find a simple example of a slideshow with text, image and audio with some effects ? Am I asking too much ?

0 Upvotes

IF ffmpeg is so widely used and famous, why I can't find a simple example of a slideshow with text, image and audio with some effects ? Am I asking too much ?

I am searching on and off for a few months now...

I have img1.png, audio1.wav and another image with some text as png too... all i want to do is to do following,

- Join Audio + Picture = Video [DONE...]

- Add zoom filter [SOMEWHAT DONE... but I want zoom to be dynamic and happens till the video lasts...]

- Add text overlay [Original Image continue zooming... and I want to add this static overlay...]

This is what I have tried so far,

ffmpeg -i 1.jpg -i 1.wav -vf zoompan=z='min(zoom+0.0015,1.5)':d=700:x='iw/2-(iw/zoom/2)':y='ih/2-(ih/zoom/2)' 1.mp4

Any ffmpeg guru ?

I want to make it work for one, then want to make it work for 100 file(s).


r/ffmpeg • • Nov 06 '25

Hey! Anybody knows how to use ffmpeg to change .mov files to .mp3 in Mac using its GPU instead of CPU? In M Series.

0 Upvotes

r/ffmpeg • • May 20 '25

does anyone know what test_hardware_encoder is for?

Post image
1 Upvotes

Apologies in advance if this isn't the right sub to ask this. I was looking at my Videos folder on my PC and saw this weird file I haven't seen before. I tried opening it but it wouldn't. I couldn't look up anything about it online either so I kinda left it alone thinking it's something important to run Windows or something. Checking it again though the file size increased from 4 GB yesterday to 10 GB. Is this some kind of virus??? I tried deleting it but then it shows it's being used by ffmpeg.

NGL I have no idea what ffmpeg is and only downloaded it cause some video player needed it for its codecs and stuff so I thought ffmpeg was only for codecs. I'm completely lost help


r/ffmpeg • • May 18 '23

H.264 to H.265 without loosing quality? (nvenc)

1 Upvotes

There is a bluray rip (15-20 mbps) that i need to convert from h264 to h265 to reduce size and upload to my jellyfin server but i want the two files to be identical in video quality

the problem is i have tried many different options but either the quality is not good enough or the new file is larger than the original (currently trying on a smaller file (3-4 mbps) to test all the options)

here's my current command

 ffmpeg -hwaccel cuda -hwaccel_output_format cuda -i inut.mkv -b_ref_mode 0 -c:v hevc_nvenc -cq 1 -preset p7 -tune hq -c:a copy outputp.mkv

the lossless preset and tune make it larger than the original file

i have tried -rc vbr, -cq 0) and manually setting bit-rate with -b:v 3 but the wiki says its not recommended

questions:

  • should I use multipass? if yes then how? it it different from libx265?

  • what -rc should i use if any

  • -cq or -qp or something else?

  • more suggestions

i know software encoding is better but-

my server is an android tv box running linux and it's no powerful enough for any kind of encoding

my laptops cooling system is a joke so it will take at least 4 hours to encode the 2 hour video and my laptop will be unusable for 4 hours and i have nothing better to do in life (my phone is also broken 😢)

solution: see https://github.com/HandBrake/HandBrake/issues/2231

tldr: use qmin and qmax and adjust them according to your quality and size needs. -qp seems to be better than qmin qnd qmax

tip: disable hardware decoding because it doesn't affect speed but affects quality. also use 10 bit encoding even if the source is 8 bit https://yukisubs.files.wordpress.com/2016/10/why_does_10bit_save_bandwidth_-_ateme.pdf

result: 8 gig reduction in size with very little loss in quality. it hardly noticeable unless to compare the input and output side by side and pixel peep

thanks to everyone who replied


r/ffmpeg • • Sep 17 '25

AV1 worse compression than H265?

3 Upvotes

I'm surprised that transcoding an H.264 stream to AV1 and H.265 using default settings produces 14% smaller H.265 stream than AV1. I guess AV1 should be paired with Opus audio encode but I'm only interested in video stream compression for now.

Strangely setting CRF made significantly bigger files than default-parameter AV1 encode. Low CRF, I could understand slightly larger file, but why SIX TIMES the size? And for high CRF, almost 2x the size.

Ultimately, I had to transcode using Average Bitrate to get smaller file sizes than H.265.

# ffmpeg -version

ffmpeg version 8.0 Copyright (c) 2000-2025 the FFmpeg developers

built with Apple clang version 17.0.0 (clang-1700.0.13.3)

# ffmpeg -i orig.mp4 -c:v libx265 -tag:v hvc1 h265.mp4

# ffmpeg -i orig.mp4 -c:v libsvtav1 -preset 2 av1-aac-p2.mp4

# ffmpeg -i orig.mp4 -c:v libsvtav1 -preset 2 -crf 20 av1-aac-p2-crf20.mp4

# ffmpeg -i orig.mp4 -c:v libsvtav1 -preset 2 -crf 30 av1-aac-p2-crf30.mp4

# ffmpeg -i orig.mp4 -c:v libsvtav1 -preset 2 -b:v 400k  av1-aac-p2-abr400.mp4

# ls -lrt *.mp4

11072092 Sep 17 09:46 orig.mp4

499215 Sep 17 10:54 h265.mp4

576282 Sep 17 10:36 av1-aac-p2.mp4

3621468 Sep 17 10:39 av1-aac-p2-crf20.mp4

1071670 Sep 17 10:40 av1-aac-p2-crf30.mp4

306209 Sep 17 10:52 av1-aac-p2-abr400.mp4

H.265 compressed video below:


r/ffmpeg • • Jun 15 '25

why native aac is considered worse than aac_at and libfdk_aac?

0 Upvotes

Hi, I wanted to ask if the information on https://trac.ffmpeg.org/wiki/Encode/AAC#fdk_aac is actually up to date? Because after my own testing, at the same filesize native aac is better than fdk and apple.

It is more like: aac > aac_at > libfdk_aac

Thank you :)

update 1: after some listening test at 100kbps (target 2,5MB) it looks like this:

apple (sounds "good") > aac (sounds okay) > fdk (sounds broken)

where fdk sounds really bad/broken. The audio starts pulsating, and you loose all clarity and high frequency. It sounds like a different recording, from vinyl or something

update 2: I wanted to compare apple and native aac a bit more so I lowered the bitrate to 80kbps (both 1,90MB) and it's interesting to see how they behave.

Native AAC has much more high frequencies but it distorts/artifacts more and is overall less appealing to listen.

Apple on the other hand looses most high frequencies, so it sounds very muted, a bit like "vinyl" but overall it keeps the soundstructure better, it doesn't distort. You can still listen to the track, the "core" stays intact. So they both have different strategies what their priority is.


r/ffmpeg • • Mar 25 '23

How could I convert all images in this folder to jpg format. Thanks

0 Upvotes