Hacker GitHub

← All repos

kkroening/ffmpeg-python

View on GitHub ↗ ★ 11,010 Python

Python bindings for FFmpeg - with complex filtering support

14 mentions on Hacker News by 13 people: 2 stories, 12 comments · first 2018-02-04 · latest 2026-03-20

Mentions per year 14 mentions · busiest year 2020 (3)
20082026
  1. …ffmpeg commands. And if you want something more verbose / easier to read you can use something like https://github.com/kkroening/ffmpeg-python (with LLMs) as well
    comment by jack_pp · 2026-03-20 · in Drawvg Filter for FFmpeg
  2. There's a python module for this: https://pypi.org/project/ffmpeg-python/ https://github.com/kkroening/ffmpeg-python >>> import ffmpeg >>> video_metadata = ffmpeg.probe('test.mp4') >>> print(video_metadata['streams'][0]['codec_name']) h264
    comment by sparklysoup · 2025-12-07 · in Detecting AV1-encoded videos with Python
  3. I agree, I suggest using this instead : https://github.com/kkroening/ffmpeg-python . While not perfect once you figure it out it is far easier to use and you can wrap more complicated workflows and reuse them later.
    comment by jack_pp · 2025-11-04 · in Chaining FFmpeg with a Browser Agent
  4. …method of constructing ffmpeg pipelines. [1] https://github.com/jiaaro/pydub/issues/135 [2] https://github.com/kkroening/ffmpeg-python/tree/master/examp...
    comment by orbisvicis · 2023-02-28 · in FFmpeg 6.0
  5. …) .output('output.mp4', pix_fmt='yuv420p') .run() ) stitching [0], [1], and [2] [0] https://github.com/kkroening/ffmpeg-python#quickstart [1] https://kkroening.github.io/ffmpeg-python/#ffmpeg.zoompan [2]…
  6. …you, and you can write sane python code vs. trying to deal with the crazy default ffmpeg syntax. https://github.com/kkroening/ffmpeg-python
    comment by res0nat0r · 2022-06-01 · in Ffmpeg Buddy
  7. ….drawbox(50, 50, 120, 120, color='red', thickness=5) .output('out.mp4') .run() ) [0] https://github.com/kkroening/ffmpeg-python
    comment by molticrystal · 2021-03-07 · in FFMPEG from Zero to Hero
  8. …Python one[1] is pretty good and it lets you build complex pipelines represented with graphs. [1] https://github.com/kkroening/ffmpeg-python
    comment by heavyset_go · 2020-12-20 · in FFmpeg is 20 years old today
  9. …aren't limited by shell argument parsing. Compare the CLI and python invocation in this example: https://github.com/kkroening/ffmpeg-python#complex-filter-gr... For some subsets of ffmpeg functionality (e.g. creating webm videos from other…
    comment by the8472 · 2020-06-16 · in FFmpeg 4.3
  10. …Python bindings [0] provides wrapper for filter_complex which simplifies its use a lot ! [0]: https://github.com/kkroening/ffmpeg-python
  11. …preview window, and then use GTK to embed the window wherever you wanted it. [0] But not all [1] https://github.com/kkroening/ffmpeg-python/issues/190
  12. …And all FFmpeg filters can be used, it is a thin layer over FFmpeg, just much more readable. [1] https://github.com/kkroening/ffmpeg-python [2] https://github.com/kkroening/ffmpeg-python#complex-filter-gr...
    comment by 153957 · 2018-02-04 · in Video editing with Python