Email or username:

Password:

Forgot your password?
Eugen Rochko

If you could change some ffmpeg settings to make videos on Mastodon look a bit better, what would you change?

Current settings: https://github.com/tootsuite/mastodon/blob/master/app/models/media_attachment.rb#L66-L74

No comments
Sindastra🐧✅:~ # _

@Gargron H.265 but I'm not sure browsers support that yet. 🤷‍♀️

kepstin

@Gargron hmm. maybe this should be a github issue to get longer-form responses?

My quick thoughts:
remove the "-vsync cfr" and limit duration by time (-t) rather than frame count.
Maybe have a max video size (height/width) for the "original" quality (1080p?).
Can probably get away with a higher (lower quality) -cfr value. Would have to encode some samples to test the balance between -crf and the -maxrate/-bufsize settings.

vp9 would be *nice to have*, but it's too slow to encode...

@Gargron hmm. maybe this should be a github issue to get longer-form responses?

My quick thoughts:
remove the "-vsync cfr" and limit duration by time (-t) rather than frame count.
Maybe have a max video size (height/width) for the "original" quality (1080p?).
Can probably get away with a higher (lower quality) -cfr value. Would have to encode some samples to test the balance between -crf and the -maxrate/-bufsize settings.

Nex Light

@Gargron Could be VP9 and opus in webm; it would save a lot of space

Kelly Clowers

@Gargron

Man Kevin could have rocked this. I bet he would have loved to help 😥 Cancer sucks

Go Up