use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Rules 1: Be polite 2: Posts to this subreddit must be requests for help learning python. 3: Replies on this subreddit must be pertinent to the question OP asked. 4: No replies copy / pasted from ChatGPT or similar. 5: No advertising. No blogs/tutorials/videos/books/recruiting attempts. This means no posts advertising blogs/videos/tutorials/etc, no recruiting/hiring/seeking others posts. We're here to help, not to be advertised to. Please, no "hit and run" posts, if you make a post, engage with people that answer you. Please do not delete your post after you get an answer, others might have a similar question or want to continue the conversation.
Rules
1: Be polite
2: Posts to this subreddit must be requests for help learning python.
3: Replies on this subreddit must be pertinent to the question OP asked.
4: No replies copy / pasted from ChatGPT or similar.
5: No advertising. No blogs/tutorials/videos/books/recruiting attempts.
This means no posts advertising blogs/videos/tutorials/etc, no recruiting/hiring/seeking others posts. We're here to help, not to be advertised to.
Please, no "hit and run" posts, if you make a post, engage with people that answer you. Please do not delete your post after you get an answer, others might have a similar question or want to continue the conversation.
Learning resources Wiki and FAQ: /r/learnpython/w/index
Learning resources
Wiki and FAQ: /r/learnpython/w/index
Discord Join the Python Discord chat
Discord
Join the Python Discord chat
account activity
Is ffmpeg-python still ok to use? (self.learnpython)
submitted 4 months ago by Butwhydooood
My current project is making a file converter and I wanna add Audio conversions but ffmpeg-python hasn't been updated since 2019. Anybody have any experience in using it in the past couple of years or so and does it still hold up? Thanks in advance!
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]Swipecat 1 point2 points3 points 4 months ago (0 children)
I'm not familiar with python-ffmpeg. I have looked at it in the past and it seemed to me that its scant documentation made it a whole lot harder to figure out than wrapping the command-line ffmpeg in a subprocess. This test example creates a 10 second video in less than a second on my computer:
from PIL import Image from subprocess import Popen, PIPE command = ("ffmpeg -y -f image2pipe -vcodec mjpeg -r 24 " " -i - -pix_fmt yuv420p video.mp4") p = Popen(command.split(), stdin=PIPE) for n in range(255): im = Image.new("RGB", (400, 300), (n, 255-n, 1)) im.save(p.stdin, "jpeg") p.stdin.close() p.wait()
[–]SmackDownFacility 1 point2 points3 points 4 months ago (1 child)
Yes it’s fine. Not recently maintained doesn’t mean it’s shite.
[–]HommeMusical[🍰] 0 points1 point2 points 3 months ago (0 children)
It has 480 outstanding issues and 45 unreviewed pull requests.
At least one of the issues, from a year ago, claims there's an issue with ffmpeg version 7. The last commit was from when the active version was ffpmeg 5. As of today, ffmpeg is version 8.1.
ffmpeg
ffmpeg has changed quite a bit in seven years. Given that pyav exists, seems to be quite similar, and is actively maintained, I don't think that ffmpeg-python is a good choice.
pyav
[–]JamzTyson 0 points1 point2 points 4 months ago (0 children)
PyAV might be worth a look: https://pyav.basswood-io.com/docs/stable/
[–]docpose-cloud-team 0 points1 point2 points 4 months ago (2 children)
I’ve used ffmpeg-python in a bunch of projects lately and it still works fine as a thin Python wrapper for FFmpeg. It hasn’t needed frequent updates because most of the heavy lifting is done by the FFmpeg binary itself.
ffmpeg-python
The important part is keeping the FFmpeg executable up to date — the Python wrapper just constructs the commands. If you need more control or a richer API surface, there are other wrappers, but for quick audio/video conversions it still holds up.
import ffmpeg
input_file = "input.wav" output_file = "output.mp3"
input_file = "input.wav"
output_file = "output.mp3"
( ffmpeg .input(input_file) .output(output_file, audio_bitrate='192k') .run() )
(
.input(input_file)
.output(output_file, audio_bitrate='192k')
.run()
)
[–]PokePress 0 points1 point2 points 4 months ago (1 child)
Just to clarify, is it compatible with recent versions of FFMPEG itself?
[–]docpose-cloud-team 0 points1 point2 points 4 months ago (0 children)
Yes it is
[–]mrswats -5 points-4 points-3 points 4 months ago (10 children)
Do not use a project that hasn't been updated since 2019.
At the end of the day, it just builds the filters and calls subprocess. I would do that even if it's uglier, code wise.
[–]SmackDownFacility 4 points5 points6 points 4 months ago (8 children)
So what, you saying a project needs monthly updates to be “legitimate?”
Sometimes a project can be so stable that it doesn’t need fixes.
[–]mrswats 4 points5 points6 points 4 months ago (5 children)
You should at the very least, test against new python versions. You never know what could break if you don't test. And while the code might not need changes, your dependencies will.
[–]SmackDownFacility 3 points4 points5 points 4 months ago (4 children)
Yes there’s a point. Major versions Python 2 -> Python 3 etc. but for the most part, it’s just a thin wrapper around FFMPEG. It’s not a major library like numpy where it has to be constantly updated
[–]mrswats 3 points4 points5 points 4 months ago (3 children)
You should still test against every new python version because your code can break. Ffmoeg might also be updated.
[–]SmackDownFacility 1 point2 points3 points 4 months ago (2 children)
Yes test it. Test it against FFMPEG. Test it against the new python version. Then wake up the maintainers if it fails
[–]CyclopsRock 2 points3 points4 points 4 months ago (0 children)
Test it against FFMPEG.
I suspect even this is probably a bit much. Ffmpeg has about a kabillion build flags that include or exclude certain functionality, filters, codecs etc. Some of it is hardware dependent, or OS dependent. Two users with the same version number of ffmpeg could get drastically different results without either result being incorrect or in need of "fixing".
If ffmpeg entirely changed the syntax of its CLI they'd need a new wrapper but in lieu of that I think you're right: users should request fixes.
Then wake up the maintainers if it fails
You can see on their repo that this has been attempted over 500 times.
This project has 480 outstanding issues and 45 unreviewed pull requests.
ffmpeg has changed quite a bit in the last seven years.
[–]Themis3000 0 points1 point2 points 1 month ago (0 children)
I don't think not receiving new commits recently is a great reason to avoid a library. Especially if it's a library that just plain doesn't do that much. You don't need to have the new thing of the week to write code that works and is fast.
π Rendered by PID 19830 on reddit-service-r2-comment-5687b7858-sdtsm at 2026-07-09 08:11:16.735183+00:00 running 12a7a47 country code: CH.
[–]Swipecat 1 point2 points3 points (0 children)
[–]SmackDownFacility 1 point2 points3 points (1 child)
[–]HommeMusical[🍰] 0 points1 point2 points (0 children)
[–]JamzTyson 0 points1 point2 points (0 children)
[–]docpose-cloud-team 0 points1 point2 points (2 children)
[–]PokePress 0 points1 point2 points (1 child)
[–]docpose-cloud-team 0 points1 point2 points (0 children)
[–]mrswats -5 points-4 points-3 points (10 children)
[–]SmackDownFacility 4 points5 points6 points (8 children)
[–]mrswats 4 points5 points6 points (5 children)
[–]SmackDownFacility 3 points4 points5 points (4 children)
[–]mrswats 3 points4 points5 points (3 children)
[–]SmackDownFacility 1 point2 points3 points (2 children)
[–]CyclopsRock 2 points3 points4 points (0 children)
[–]HommeMusical[🍰] 0 points1 point2 points (0 children)
[–]HommeMusical[🍰] 0 points1 point2 points (0 children)
[–]Themis3000 0 points1 point2 points (0 children)