Closed Aquenon closed 2 years ago
ARM is a lot slower compared to x86 due to the missing AVX instructions. So lower speeds are expected. I don't know how slow, but I tested it on a M1 Pro and I also got like 1-3 FPS.
Thanks! I just wanted to make sure I didn't have anything set up wrong. It's not a big deal as I only let it act as a node when I'm not going to be on it.
Yeah pretty common issue with M1: https://www.reddit.com/r/handbrake/comments/rbc0pc/speeds_pretty_slow_on_m1_macbook_pro_13in/
You can try using the hardware encoder (videotoolbox) which is 3 times faster or so: https://trac.ffmpeg.org/wiki/HWAccelIntro
VideoToolbox
[VideoToolbox](https://developer.apple.com/documentation/videotoolbox), only supported on macOS. H.264 decoding is available in FFmpeg/libavcodec.
To use hardware encoding in macOS, just use the encoder -c:v h264_videotoolbox or -c:v hevc_videotoolbox for H.264 or HEVC respectively. Check ffmpeg -h encoder=... to see encoder options. It's worth noting that VideoToolbox does not support constant quality (CRF) encoding. Bit rate, -b:v ..., is your main lever to balance size vs quality.
Yeah pretty common issue with M1: https://www.reddit.com/r/handbrake/comments/rbc0pc/speeds_pretty_slow_on_m1_macbook_pro_13in/
You can try using the hardware encoder (videotoolbox) which is 3 times faster or so: https://trac.ffmpeg.org/wiki/HWAccelIntro
VideoToolbox [VideoToolbox](https://developer.apple.com/documentation/videotoolbox), only supported on macOS. H.264 decoding is available in FFmpeg/libavcodec. To use hardware encoding in macOS, just use the encoder -c:v h264_videotoolbox or -c:v hevc_videotoolbox for H.264 or HEVC respectively. Check ffmpeg -h encoder=... to see encoder options. It's worth noting that VideoToolbox does not support constant quality (CRF) encoding. Bit rate, -b:v ..., is your main lever to balance size vs quality.
but not exists harware decoding right?
@johnnynunez according to here it does: https://trac.ffmpeg.org/wiki/HWAccelIntro#VideoToolbox
Not 100% sure on the command but think it's like this: https://trac.ffmpeg.org/ticket/7545
ffmpeg -hwaccel videotoolbox -i /Volumes/AkemiData/Downloads/sSKl.mp4 -f null -
Hi, I don't know if the app isn't working right, if I made a mistake, or if this is just something the M1 isn't good at. I have an M1 Max 32GB Mac Studio that I let act as a node when I'm not using it. But it is painfully slow at 2 fps on one transcode. Slower than my server's own node (6700K CPU machine that was built in 2016), and even slower than a 2008 Mac Pro (which is still running at 2 fps but it does have 3 transcodes running).
I've verified I'm using the ARM version of Tdarr Node, as well as the ARM versions of HandbrakeCLI, FFmpeg, and MKVPropEdit.
Am I doing something wrong? Is this something the M1s don't perform well on? It runs great on everything else. I'll include my node's config file.
Thanks, Scott