How Fast is H.265/HEVC Software Encoding on ARM CPUs (iPhone/Android) With FFmpeg?

Поділитися
Вставка
  • Опубліковано 24 тра 2020
  • I recently had a crazy idea of using my idle mobile devices as a video render cluster. I have used the following FFmpeg command to compress a 4K H.264 footage to H.265 footage with a CRF (Constant Rate Factor) of 22, both on my Android phone and on my Mac:
    * ffmpeg -i vid.mp4 -c:v libx265 -crf 22 -c:a copy vid-265-crf22.mp4
    The command uses pure software encoding and is multi-threaded by default. Both on my phone and my computer, all the CPU cores were utilized above 95% during encoding. I have used Homebrew on my Mac to install the FFmpeg package, whereas on my Android, I have used Termux.
    The speed difference between desktop and mobile encoding was astounding! In the video, you will discover why there is such a difference along with what the future holds for H.265 software encoding on mobile devices.
    Discussion on Doom9 Forum about x265 encoding speed on ARM processors:
    * forum.doom9.org/showthread.ph...
    x265 Source Code:
    * github.com/videolan/x265
    Nvidia NVENC hardware encoder quality test for H.264:
    * • Nvidia's RTX NvEnc is ...
    If you want to read or contribute, you can find this guide on:
    * quanticdev.com/articles/h265-...
    "Hardware & Software" Playlist:
    * • Hardware & Software
    - - - - - - - - - - -
    / quanticdev
    / quantic_dev
    quanticdev.com
  • Наука та технологія

КОМЕНТАРІ • 14

  • @QuanticDev
    @QuanticDev  4 роки тому +3

    If the full ARM NEON optimizations were in place, it could have been a different story. The following article is for AV1 & decoding, but speedup with NEON optimizations is amazing 80% nevertheless: medium.com/@ewoutterhoeven/how-arms-neon-enables-efficient-av1-decoding-on-mobile-5fcb3a4f6e7f

    • @cosystudio5822
      @cosystudio5822 3 роки тому

      How do I convert 1080p 10 bit HVAC .Mkv video to 720p 8 bit .mp4 Anime with editing scripts or better yet ffMpeg .... please show us i have been struggling with this for months now....
      And also explain simply because I'm not a tech person ....💔😭

    • @QuanticDev
      @QuanticDev  3 роки тому

      @@cosystudio5822 You can probably do it with ffmpeg commands directly. I don't know ffmpeg too much so you'll have to Google around until you get it right. Good luck.

  • @arayramadhan8340
    @arayramadhan8340 3 роки тому +2

    glad I found this video cause it make me realize what my phone can do. My phone got snapdragon 860 and i use it to transcode my Anime from 480h264 to 480p h265 , I got around 20fps and 50% size reduction. This thing make me realize that my laptop is supper crappy lol

  • @bluetran1
    @bluetran1 Рік тому

    very interesting video!

  • @DanCroitor
    @DanCroitor 3 роки тому +2

    Apparently it's pretty fast on the latest iPad PRO .. at least according to Max Yurev's testing (using Canon R5 RAW 8k footage); having some big hopes Apple will release something (finally) capable to deal with h265 tomorrow :)

    • @QuanticDev
      @QuanticDev  3 роки тому +1

      I will try it the moment I get my hands on an Apple M1 laptop.

    • @DanCroitor
      @DanCroitor 3 роки тому

      @@QuanticDev 🤞

  • @Tatar_Piano
    @Tatar_Piano 8 місяців тому

    Ffmpeg now supports hardware encoding in termux

  • @az09letters92
    @az09letters92 4 роки тому +2

    So you were using Samsung Galaxy A8 2018 or something similar? Exynos 7885 is a pretty weak ARM core. How about using Samsung S20+ and iPhone 11 to do the software encode test, I think they could do quite a bit better. Even if NEON optimizations are still lacking.

    • @QuanticDev
      @QuanticDev  4 роки тому +2

      Not sure of the model but a Samsung mid ranger from 2 years ago. The i7 processor that I'm comparing it to is 7 years old so it's kinda fair. I'm sure Ryzen 7 vs iPhone 11 gap would still be considerable.

    • @QuanticDev
      @QuanticDev  3 роки тому

      I couldn't find an ffmpeg package for iphone when I looked. There might be other apps for vid conversion though.

  • @aytunch
    @aytunch 3 роки тому +1

    What is this neon thing exactly? How can we use it in mobile phones? There are ffmpeg libraries widely used for ios andorid. But what about neon? I really would like to use x265 encoding/decoding in my iphone6-7

    • @QuanticDev
      @QuanticDev  3 роки тому

      There is an FFmpeg package with x265 in Termux app on Android but it's not available on iOS. But there are some free x265 apps for iOS, which does roughly the same thing. However since they don't utilize NEON (memory access optimizations in ARM CPUs found in android/iphones), it's very slow as you saw in the video and not worth it imo. Go ahead and try with a free video converter app and see if they work faster now.