Commit Graph
10 Commits
Author SHA1 Message Date
Matt Jankowski f07e84f9de Rescue JSON::ParserError where already converted (#38244) 2026-03-17 08:57:10 +00:00
Matt Jankowski 3832030711 Convert Oj.load -> JSON.parse in most places (#38236) 2026-03-16 16:38:19 +00:00
Damien Mathieu 15da6c3c83 Add rubocop-i18n linter (#34057) 2025-03-04 13:28:33 +00:00
Jeong Arm 9ba4c8ef66 Handle rotation is not present in the video metadata (#33261) 2024-12-11 04:47:42 +00:00
Eugen Rochko 420ed155ba Fix wrong video dimensions for some rotated videos (#33008) 2024-11-21 10:58:04 +00:00
Claire 496c10542b Fix division by zero on some video/GIF files (#30600) 2024-06-07 17:42:43 +00:00
Tim Rogers 1ca6ff8ca5 Fixed crash when supplying FFMPEG_BINARY environment variable (#30022) 2024-04-22 09:00:24 +00:00
Nicolai Søborg 13ffe91c81 Fix frame_rate for videos where ffprobe reports 0/0 (#26500) 2023-08-18 08:32:47 +02:00
Claire 166f6e4b50 Fix some media attachments being converted with too high framerates (#17619)
Video files with variable framerates are converted to constant framerate videos
and the output framerate picked by ffmpeg is based on the original file's
container framerate (which can be different from the average framerate).

This means that an input video with variable framerate with about 30 frames per
second on average, but a maximum of 120 fps will be converted to a constant 120
fps file, which won't be processed by other Mastodon servers.

This commit changes it so that input files with VFR and a maximum framerate
above the framerate threshold are converted to VFR files with the maximum frame
rate enforced.
2022-02-22 17:11:22 +01:00
Eugen Rochko 036556d350 Fix media processing getting stuck on too much stdin/stderr (#16136)
* Fix media processing getting stuck on too much stdin/stderr

See thoughtbot/terrapin#5

* Remove dependency on paperclip-av-transcoder gem

* Remove dependency on streamio-ffmpeg gem

* Disable stdin on ffmpeg process
2021-05-05 19:44:01 +02:00