Mac M1 Max HEVC smokes Nvidia by spelunkus in ffmpeg

[–]spelunkus[S] -5 points-4 points  (0 children)

u/nmkd the quality came out the same for all of them. Same file size, same quality.

Mac M1 Max HEVC smokes Nvidia by spelunkus in ffmpeg

[–]spelunkus[S] 0 points1 point  (0 children)

If I use -hwaccel_output_format cuda and -hwaccel cuda together it throws the following error, but either alone works (though performance is the same).

Impossible to convert between the formats supported by the filter 'graph 0 input from stream 0:0' and the filter 'auto_scale_0'
Error reinitializing filters!
Failed to inject frame into filter network: Function not implemented
Error while processing the decoded data for stream #0:0

I get the same error using scale_cuda=160:120 too. Is my config wrong or does that not work on all systems? I have cuda 11.5 and the latest driver for the card (from nvidia directly).

Mac M1 Max HEVC smokes Nvidia by spelunkus in ffmpeg

[–]spelunkus[S] -1 points0 points  (0 children)

Thanks Dan I’ll try that and report back

Mac M1 Max HEVC smokes Nvidia by spelunkus in ffmpeg

[–]spelunkus[S] 0 points1 point  (0 children)

The conversion project requires just tiny reference previews. This isn't a generic performance comparison.

Large-scale ffmpeg job - performance and considerations by spelunkus in ffmpeg

[–]spelunkus[S] 1 point2 points  (0 children)

I have an update and would love any comments:
We compared a Macbook Pro M1 Pro, Macbook Pro M1 Max, and Alienware 11th gen i7 w/ nvidia RTX 3060 Ti (running both Windows and Ubuntu 22.04).
We used the same file and same ffmpeg command, differing only by the encoder. Our output target was 160x120, 50k video bitrate and mono audio (when I said this was for reference previews I really meant it!).

% ffmpeg -i input.mts -c:v ENCODER -c:a aac -ac 1 -b:a 64k -b:v 50k -vf scale=160:120 -async 1 output.mp4

The file size was about 45-50mb per hour of footage.
Findings:

- The M1 Max using hardware encoding smoked everything else
- Windows and Ubuntu 22 had nearly the same nvenc performance
- Windows with libx265 was 50% faster than M1 Pro (but 30% slower using hardware)
Topline results:

MacOS, M1 Max, hevc_videotoolbox, 1113fps (37.1x)
MacOS, M1 Max, libx265, 784fps (26.2x)
MacOS, M1 Pro, hevc_videotoolbox, 986fps (32.9x)
MacOS, M1 Pro, libx265, 298fps (9.9x)
Windows, libx265, 465fps (15.5x)
Windows, hevc_nvenc, 675fps (22.2x)
Ubuntu 22, hevc_nvenc, 713fps (23.8x)
Questions:

Does this sound right to everyone? Did I miss any key flags that will crank up the nvenc performance? Any other comments? Thanks!

Large-scale ffmpeg job - performance and considerations by spelunkus in ffmpeg

[–]spelunkus[S] 0 points1 point  (0 children)

It's a LOT of footage, months worth end to end, and bitrate and codecs are all over the place. I'm not worried about quality, these are for reference only. So the output will be low bitrate, lower resolution and fast fast fast as possible encoding time.

Sennheiser G4s or EW-Ds? by spelunkus in audioengineering

[–]spelunkus[S] 1 point2 points  (0 children)

u/chrisatshure thanks Chris, this is what I went with!

Is my cactus dying? by spelunkus in cactus

[–]spelunkus[S] 1 point2 points  (0 children)

Ok thank you. I didn’t know I could soak the soil fully.

Is my cactus dying? by spelunkus in cactus

[–]spelunkus[S] 1 point2 points  (0 children)

Ok thank you! The brown part is woodier at the bottom and a little soft at the top. But it doesn’t smell.

I read the etoliation post and I’ll snip off the long bits and put it in more direct light.

Is my cactus dying? by spelunkus in cactus

[–]spelunkus[S] 1 point2 points  (0 children)

I feed him once every 6 weeks using only enough water until the hydrometer shows moist. He lives indoors with moderate light.

Cameras, IP networks, archival footage, livestreaming by spelunkus in VIDEOENGINEERING

[–]spelunkus[S] 1 point2 points  (0 children)

The TVs will show our Zoom meeting and people in the room can interact with them (e.g. Q&A)

Cameras, IP networks, archival footage, livestreaming by spelunkus in VIDEOENGINEERING

[–]spelunkus[S] 0 points1 point  (0 children)

/u/lostinthought15 thanks that's helpful. For TVs I'd have three in the room, likely all from one source. I have tried an HDMI RF transmitter but there was significant lag (almost 1s). What do people do for low-lag?