We provide breaking news for the latest GNU/Linux distribution and Open Source app releases, latest kernel releases, Raspberry Pi news, Linux tutorials and reviews, Linux hardware, and more. Help keep 9to5Linux alive! Buy us a ☕️ https://ko-fi.com/9to5linux
Wir sind ein Online-Magazin und ein Podcast rund um Freie Software und Freie Gesellschaft. Bei uns schreibt und spricht die Community für die Community. Unsere Beiträge werden automatisiert gepostet. Wir sind aber immer für euch da, um mit euch zu kommunizieren (kein Bot). Schreibe mit: https://gnulinux.ch/mitschreiben Unterstütze uns: https://gnulinux.ch/unterstuetzen #linux #opensource #foss #technology #nobot #fediverse #society #podcast #gnulinux
Spreading the joy of digital sovereignty! Program manager Public Values @SURF Writing ✍️ in English or Dutch
Hi, nice to meet you! ^ω^ I'm a full-time microcomputer enjoyer and Unix enthusiast. I post about compupers, coding, games, my daily struggles and random retro tech stuff(s) - Damaged yet adorable - Cuddle-addicted - Absolute girlfailure - AuDHD + OCD - HRT: 2024-07-19 ⓘ This user opposes fascism. ⚠ This user opposes genAI.
I don't know who might need this but. You can compress a 2 minute video and kept it looking HD into less than 10MB (for discord or social media in general) with this #ffmpeg command:
ffmpeg -i in.mp4 -threads 8 -preset:v veryfast -c:v hevc -pix_fmt yuv420p -color_range 0 -crf 25 -c:a libopus -ac 1 -b:a 64k -ar 24000 -vf "fps=30,scale=-2:720:flags=lanczos" -map_metadata -1 out.mp4
It shouldn't take more than 1 minute to run the command if you have a decent computer, but this depends on the size and length of the input video. I have my camera set to record at 1280x960 so that it takes less to process.
Also, this command gets rid of metadata like geolocation, author and sh*t like that so that you don't accidentally dox yourself (although most social media do this automatically for you).
Also change the
-threads 8to 4 if you only have 4 cores, increasing it beyond 8 probably achieves nothing even if you have the cores, but that depends on the encoder.
And, of course, you can use the GPU for this with something like
-hwaccel vulkanor just use a specific h265 encoder that runs on your GPU instead for-c:v.
Ad-Free Photo Sharing. iOS: https://apps.apple.com/us/app/pixelfed/id1632519816 Android: https://play.google.com/store/apps/details?id=com.pixelfed F-Droid: https://fdroid.pixelfed.net/fdroid/repo/ Smile 😁 #pixelfed #fedi22 Discord: https://discord.gg/VDhM32hbUK Matrix: https://matrix.to/#/#pixeldev:matrix.org
DevOps Engineer, electronics tinkerer, Linux and Homelab enthusiast. Also a big fan of anime, a good book, and the occasional short circuit...
The Sisyphus client rewrite continues after a bit of a break. The ffmpeg module is mostly finished and should serve as a good template for handbrake, av1an, mkvmerge, and cleanup modules. Logging is progressing pretty well. The config has been expanded slightly and can now pull from TOML files on top of the standard environment variables.
DevOps Engineer, electronics tinkerer, Linux and Homelab enthusiast. Also a big fan of anime, a good book, and the occasional short circuit...
So, got the server in place but discovered that the Docker image that I created that has the Sisyphus client and all of the binaries like ffmpeg, av1an was not very happy. Ffmpeg crashed because it couldn't find the libSvtAvcEnc.so.4 library which was because I had a custom version of it installed (svt-av1-psyex).
Got the Dockerfile fixed by installing svt-av1-psyex and then compiling ffmpeg against those libraries, then installing both svt-av1-psyex and ffmpeg into the final container which makes ffmpeg happy. Also saw an issue where the Vapoursynth lsmash module wasn't being found, but that got tracked down to a stale Docker image (forgot to pull the latest from the repo).
I have two encodes going: one ffmpeg and one av1an which should be the real final test. If they turn out well, attachments where they're supposed to be, etc., etc. then I'll probably start working on documentation and get this out there.
#sisyphus #encoding #av1an #vapoursynth #ffmpeg #svtAv1Psyex
You've seen all posts