24
submitted 4 months ago* (last edited 4 months ago) by ulterno@programming.dev to c/programmer_humor@programming.dev

ffmpeg ... -c:a flac -exact_rice_parameters 1 -multi_dim_quant 1 ...

I was encoding wav to flac.

  • With default options, the result was almost instant
    • At > 500x speed
  • Used -compression_level 12, finished in ~ 7 seconds
    • speed = 48.9x
  • Then I used multi_dim_quant
    • After ~ 10 minutes, I checked the speed to be ~ 0.02x. So thought it would take an hour or so. 1.30 seconds worth of audio was encoded
    • It's been over 2 hours now.
      • Shows 1.46 seconds of audio encoded with current speed = 0.00017x

Considering running it in a VM, so I can "pause" it whenever I need to restart my computer.

Update:
size= 123KiB time=00:00:02.82 bitrate= 356.3kbits/s speed=4.68e-05x
It stopped trying to use layman notation.
I'll need to restart soon-ish, but I'll see how far this goes and if the 2.82 seconds of audio is even listenable.

you are viewing a single comment's thread
view the rest of the comments
[-] ulterno@programming.dev 2 points 4 months ago

I realise I wasn't able to make this look funny.

BTW, the resultant bitrate from the same source file with:

  • default options : 706.8 kb/s
  • -compression_level 12 : 698.1 kb/s
  • with -exact_rice_parameters 1 -multi_dim_quant 1 that I am trying right now, it currently shows the bitrate to be 331.4 kb/s
    • but it's only encoded the first 1.88 seconds yet, so no idea if it really will manage such an impressive compression.
[-] solrize@lemmy.ml 2 points 4 months ago

I don't see where the humor is, but I have an idle server so might let it run for a few days to compress a half minute of audio at .00017x. But are you sure it isn't just stuck?

[-] ulterno@programming.dev 0 points 4 months ago

Well, the time value is definitely going forward, so I won't expect that, but then a similar thing happens quite a bit with video stuff, so maybe you're right.
Similar, not same, because in that case, it starts showing speed=N/A

this post was submitted on 23 Sep 2025
24 points (96.2% liked)

Programmer Humor

29565 readers
1123 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 2 years ago
MODERATORS