Conversation
Notices
-
Jerome (j@shitposter.world)'s status on Wednesday, 05-Feb-2025 18:05:45 JST Jerome
@matrix R8 this encode - matrix07012 :thotpatrol: likes this.
-
matrix07012 :thotpatrol: (matrix@gameliberty.club)'s status on Wednesday, 05-Feb-2025 18:07:32 JST matrix07012 :thotpatrol:
@j that's insanely impressive, what ffmpeg arguments did you use?
-
Alyx Hinata 🇹🇩🚫:unverified: (alyx@gameliberty.club)'s status on Wednesday, 05-Feb-2025 22:16:23 JST Alyx Hinata 🇹🇩🚫:unverified:
@j @matrix
If this were the usual 700MB DVD rip, I'd say very bad. Seeing how this is only 100MB, that's quite impressive. Compressing a movie down to a bad MP3 encode bitrate is something.
Still though, there are a lot of noticeable artifacts. I don't think I'd watch this as it is on anything larger than a 5" phone.matrix07012 :thotpatrol: likes this. -
matrix07012 :thotpatrol: (matrix@gameliberty.club)'s status on Wednesday, 05-Feb-2025 22:31:10 JST matrix07012 :thotpatrol:
@alyx @j Have you seen movies and shows made for the GBA? 4 episodes of SpongeBob in 32MB
-
matrix07012 :thotpatrol: (matrix@gameliberty.club)'s status on Wednesday, 05-Feb-2025 22:37:14 JST matrix07012 :thotpatrol:
-
Jerome (j@shitposter.world)'s status on Thursday, 06-Feb-2025 07:59:19 JST Jerome
@matrix @alyx yeah and it's not a very complex or efficient algorithm matrix07012 :thotpatrol: likes this. -
Jerome (j@shitposter.world)'s status on Thursday, 06-Feb-2025 07:59:29 JST Jerome
@matrix @alyx alright let me download Shrek and give that a try. matrix07012 :thotpatrol: likes this. -
Jerome (j@shitposter.world)'s status on Thursday, 06-Feb-2025 07:59:32 JST Jerome
@matrix ffmpeg -hide_banner -i ~/rtorrent/download/Glengarry.Glen.Ross.1992.BluRay.1080p.DTS-HD.MA.5.1.AVC.HYBRID.REMUX-FraMeSToR/Glengarry.Glen.Ross.1992.BluRay.1080p.DTS-HD.MA.5.1.AVC.HYBRID.REMUX-FraMeSToR.mkv -y -strict experimental -c:a libopus -b:a 40k -ac 2 -c:v libsvtav1 -crf 52 -preset 3 -svtav1-params input-depth=10:tune=0 -g 360 -vf "crop=1920:816:0:132, scale=w=720:h=480" -pix_fmt yuv420p10le -movflags faststart -metadata:s:v handler_name="VideoHandler" -metadata:s:a handler_name="SoundHandler" ~/nvme/glengarry-480-av1-opus-52.mp4
Apparently upping the GOP from 240 to 360 only saved about 1 MB so I'd recommend:
ffmpeg -hide_banner -i ~/rtorrent/download/Glengarry.Glen.Ross.1992.BluRay.1080p.DTS-HD.MA.5.1.AVC.HYBRID.REMUX-FraMeSToR/Glengarry.Glen.Ross.1992.BluRay.1080p.DTS-HD.MA.5.1.AVC.HYBRID.REMUX-FraMeSToR.mkv -y -strict experimental -c:a libopus -b:a 40k -ac 2 -c:v libsvtav1 -crf 52 -preset 3 -svtav1-params input-depth=10:tune=0 -g 240 -vf "crop=1920:816:0:132, scale=w=720:h=480" -pix_fmt yuv420p10le -movflags faststart -metadata:s:v handler_name="VideoHandler" -metadata:s:a handler_name="SoundHandler" ~/nvme/glengarry-480-av1-opus-52.mp4
Here is what that produced:
matrix07012 :thotpatrol: likes this. -
Jerome (j@shitposter.world)'s status on Thursday, 06-Feb-2025 07:59:36 JST Jerome
@matrix @alyx I used to watch rocket League and that Jackie Chan cartoon on my video now player. matrix07012 :thotpatrol: likes this. -
Jerome (j@shitposter.world)'s status on Friday, 07-Feb-2025 07:47:04 JST Jerome
@matrix @alyx @PurpCat @beardalaxy sorry I forgot to post it. I had to lower the resolution to 360p I made 2 versions. One with opus and one with aac_he_v2. aac_he_v2 is less efficient than opus but it supports proper vbr encoding to a target quality instead of just ABR encoding which allows it to place more bits at more complex parts and less bits at less complex parts resulting in slightly better quality because despite being less efficient it can adapt its bitrate much more efficiently.
Here's the encoding settings used:
ffmpeg -hide_banner -i ~/rtorrent/download/Shrek.2001.REPACK.BluRay.1080p.TrueHD.7.1.AVC.REMUX-FraMeSToR/Shrek.2001.REPACK.BluRay.1080p.TrueHD.7.1.AVC.REMUX-FraMeSToR.mkv -y -strict experimental -c:a libopus -b:a 40k -ac 2 -c:v libsvtav1 -crf 54 -preset 2 -svtav1-params input-depth=10:tune=0 -g 240 -vf "scale=w=-2:360" -pix_fmt yuv420p10le -movflags faststart -metadata:s:v handler_name="VideoHandler" -metadata:s:a handler_name="SoundHandler" ~/nvme/shrek-opus.mp4
ffmpeg -hide_banner -i ~/rtorrent/download/Shrek.2001.REPACK.BluRay.1080p.TrueHD.7.1.AVC.REMUX-FraMeSToR/Shrek.2001.REPACK.BluRay.1080p.TrueHD.7.1.AVC.REMUX-FraMeSToR.mkv -y -strict experimental -c:a libfdk_aac -profile:a aac_he_v2 -vbr 2 -ac 2 -c:v libsvtav1 -crf 54 -preset 2 -svtav1-params input-depth=10:tune=0 -g 240 -vf "scale=w=-2:360" -pix_fmt yuv420p10le -movflags faststart -metadata:s:v handler_name="VideoHandler" -metadata:s:a handler_name="Sound handler" ~/nvme/shrek-heaacv2.mp4
matrix07012 :thotpatrol: likes this. -
Alyx Hinata 🇹🇩🚫:unverified: (alyx@gameliberty.club)'s status on Friday, 07-Feb-2025 07:47:40 JST Alyx Hinata 🇹🇩🚫:unverified:
@j @PurpCat @beardalaxy @matrix
It has a few bad spots here and there, but I'd say it compressed better than the previous one. Which is not that shocking. Animations will do that.
Watchable on a phone definitely, maybe even a smaller tablet.I'm curious though, what do you seek to get from these experiments? The smallest file size possible just for the fun of it, or a good sweet spot of size and quality for watching on a small screen, or streaming online?
matrix07012 :thotpatrol: likes this. -
Jerome (j@shitposter.world)'s status on Friday, 07-Feb-2025 07:47:44 JST Jerome
@alyx @PurpCat @beardalaxy @matrix no this compressed way worse. I had to lower the resolution and increase the CRF.
The other one was mostly just static shots and not much camera panning. It wasn't much different than a talking head video.
Shrek has a lot of movement. Also 3D animation isn't much different than film. Then discussing "animation" in the context of a video encoder it's referring to 2D animation.
Also Shrek has a way more complex audio track.matrix07012 :thotpatrol: likes this. -
matrix07012 :thotpatrol: (matrix@gameliberty.club)'s status on Friday, 07-Feb-2025 07:57:44 JST matrix07012 :thotpatrol:
@j @PurpCat @alyx @beardalaxy Looks decent for 100mb. Modern codecs are quite OP. You could probably fit a DVD quality movie onto a CD.
How slow was that transcode though? When I use even preset 4 it only goes at like 0.6x and doesn't even fully utilize the CPU