Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • pleroma pleroma
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 578
    • Issues 578
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 93
    • Merge requests 93
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Pleroma
  • pleromapleroma
  • Merge requests
  • !3516

Open
Created Aug 19, 2021 by Igor Rogatty@rogatty1 of 7 tasks completed1/7 tasks
  • Report abuse
Report abuse

Draft: Transcode video upload filter

  • Overview 5
  • Commits 1
  • Changes 2

Users upload videos in various formats and sizes. With this new filter admins can decide to transcode all uploaded videos using ffmpeg and params specified in config.

Ffmpeg is pretty slow and CPU-heavy, so I'm not sure if it's a good idea to run it synchronously on upload. There is no existing foundation to offload it to an async worker though, so maybe it's good enough as a first step. Actually, I'm not sure if it's even possible given the need for compatibility with various clients.

Code is heavily inspired by !3331. It's the first time I touch Elixir so it's highly possible I made some rookie mistakes.

Fixes #1228.

TODO:

  • Plugin skeleton
  • Fix plugin being stuck in a loop
  • Move output extension to config
  • Allow additional args to be set in config
  • Stop polluting logs with ffmpeg progress
  • Add tests
  • Update cheatsheet
Edited Aug 19, 2021 by Igor Rogatty
Assignee
Assign to
Reviewer
Request review from
Time tracking
Source branch: feat/transcode-video-upload-filter