FFmpeg Hardware Encoding on a Mac

แชร์
ฝัง
  • เผยแพร่เมื่อ 11 พ.ย. 2024

ความคิดเห็น • 11

  • @Rickmakes
    @Rickmakes  4 ปีที่แล้ว +1

    Visit my website for more FFmpeg content! www.rickmakes.com/ffmpeg-notes/

  • @JamesWilson-ti9dc
    @JamesWilson-ti9dc 3 ปีที่แล้ว

    Thanks. Very nice explained.

    • @Rickmakes
      @Rickmakes  3 ปีที่แล้ว

      You are welcome!

  • @eddievalentin6678
    @eddievalentin6678 หลายเดือนก่อน

    Can I use this ffmpeg command on Mac for still image music videos?
    ffmpeg -loop 1 -framerate 2 -i input.png -i audio.m4a -c:v libx264 -preset medium -tune stillimage -crf 18 -c:a copy -shortest -pix_fmt yuv420p output.mkv

  • @silvahawk
    @silvahawk 4 หลายเดือนก่อน

    Is the bitrate different for sw encoding different from videos to videos? I have a lot of .ts videos that I want to convey to .mp4 format, I've already setup batch conversion in a for loop, but looks like if I want to use hw encoding to run through all the videos faster, then I'd need to check their corresponding bitrate one by one to have comparable file size, so batching the process wouldn't work

  • @codewithsub5083
    @codewithsub5083 4 ปีที่แล้ว +1

    Very nice explained.
    1 questions, I have a amazon ec2 Ubuntu 18.0.
    I have installed ffmpeg and when I ran the command using hardware encoder. I got the error, no codec like this.
    How to find hardware encoder in the system.
    Thanks

    • @Rickmakes
      @Rickmakes  4 ปีที่แล้ว

      I'm guessing Amazon is not supporting Intel QuickSync with a typical EC2 instance. You might want to try one of their "metal" instances. When you choose hardware, look for something like "i3.metal". That should be running on bare hardware and give you access to the hardware encoding. I haven't tried this myself but I'm thinking it might work.

    • @codewithsub5083
      @codewithsub5083 4 ปีที่แล้ว

      @@Rickmakes ok thanks for your reply.
      I'll check as you suggested

  • @iwill_online
    @iwill_online 4 ปีที่แล้ว

    nice guide.
    but i have one question. if i want to use ffmpeg on mac to encoding a .m2ts which from Blu-ray, and it has multiple audio stream and mulitple subtitles, how can it select the audio and subtitle by command line?
    thanks

  • @juliovedovatto
    @juliovedovatto 5 หลายเดือนก่อน

    2024 and somehow h264_videotoolbox ignores if I try to set a low bitrate on my Apple M2 mac.
    I tried the same 3rd command ,but just changing -b:v to 1500k and it keeps encoding around 3000k. I ended up using libx264, but with the opencl option enabled to be able to achieve it. It is slightly slower than h264_videotoolbox.
    ffmpeg -i INPUT.MP4 -vf scale=1920:1080 -acodec copy -vcodec libx264 -x264opts opencl -b:v 1500k output.mp4

    • @Rickmakes
      @Rickmakes  5 หลายเดือนก่อน +1

      I'm guessing hardware encoding only supports a certain range of bitrates. If I were more skilled, I'd look through the source code to see what is going on.