• Juujian@lemmy.world
    link
    fedilink
    arrow-up
    23
    ·
    11 months ago

    I’m not sure I understand. I’ve already been running ffmpeg from the command line and it’s been using multiple cores but default. What’s the difference, what’s the new behavior?

    • Supercritical@lemmy.world
      link
      fedilink
      arrow-up
      60
      ·
      11 months ago

      Maybe this?

      Every instance of every such component was already running in a separate thread, but now they can actually run in parallel.

    • echo64@lemmy.world
      link
      fedilink
      arrow-up
      31
      ·
      11 months ago

      before you could tell an encoder to run multiple threads, but everything outside of the encoder would run effectively single threaded.

      now you (should) be able to have all the ffmpeg components, decoder, encoder, filters, audio, video, everything all run parallel

    • grue@lemmy.world
      link
      fedilink
      English
      arrow-up
      4
      ·
      11 months ago

      GNU Parallel allows multi-process, which generally tends to be less efficient than multi-threading. I can’t speak to the specifics of your use vs. FFmpeg’s refactoring, though.

  • AutoTL;DR@lemmings.worldB
    link
    fedilink
    English
    arrow-up
    7
    arrow-down
    2
    ·
    11 months ago

    This is the best summary I could come up with:


    The long-in-development work for a fully-functional multi-threaded FFmpeg command line has been merged!

    FFmpeg is widely-used throughout many industries for video transcoding and in today’s many-core world this is a terrific improvement for this key open-source project.

    The patches include adding the thread-aware transcode scheduling infrastructure, moving encoding to a separate thread, and various other low-level changes.

    Change the main loop and every component (demuxers, decoders, filters, encoders, muxers) to use the previously added transcode scheduler.

    There’s a recent presentation on this work by developer Anton Khirnov.

    It’s terrific seeing this merged and will be interesting to see the performance impact in practice.


    The original article contains 226 words, the summary contains 103 words. Saved 54%. I’m a bot and I’m open source!