Thread #6082077 | Image & Video Expansion | Click to Play
File: Anime Jumping with Great Music Colors.webm (4 MB)
4 MB WEBM
A thread for quality .gif, .webm, and .mp4 files.
No theme.
98 RepliesView Thread
>>
File: Childhood.mp4 (4.3 MB)
4.3 MB MP4
>>
File: Green Rain Mountains Music.mp4 (2.8 MB)
2.8 MB MP4
>>
File: Snow Falling Piano Music (AWESOME).webm (2.6 MB)
2.6 MB WEBM
>>
File: Cat Glass Smash Over and Over.mp4 (1.4 MB)
1.4 MB MP4
>>
File: Its all so tiresome.mp4 (536.5 KB)
536.5 KB MP4
>>
File: Frieren Mute 2.mp4 (5.1 MB)
5.1 MB MP4
>>
File: 68f3921ab1e9f424-h264-hd.mp4 (1.1 MB)
1.1 MB MP4
>>6082077
>>
File: 5f1f9af95dfd3ff2-h264-low_res.mp4 (1.4 MB)
1.4 MB MP4
>>
>>
File: e47042b3dc829196-h264-hd.mp4 (3.7 MB)
3.7 MB MP4
>>
File: ccb6904243aa5d0a.mp4 (979.7 KB)
979.7 KB MP4
>>
File: short story.mp4 (2.3 MB)
2.3 MB MP4
>>
File: 802a94d5e6c8d147.mp4 (3.2 MB)
3.2 MB MP4
>>
File: 1762027698147884.mp4 (35.3 KB)
35.3 KB MP4
>>
File: cbd9246baf6c3814.mp4 (1.8 MB)
1.8 MB MP4
>>
File: d301ddface92e522.mp4 (2.1 MB)
2.1 MB MP4
>>
File: 1753722302515882.webm (5.7 MB)
5.7 MB WEBM
>>
File: dc384fbaf960df76.mp4 (4.2 MB)
4.2 MB MP4
>>
File: ninja zoidberg.webm (286.7 KB)
286.7 KB WEBM
>>
>>
File: 1519122910596.webm (3.7 MB)
3.7 MB WEBM
>>
File: 1530307891267.webm (3.8 MB)
3.8 MB WEBM
>>
File: 1531591211976.webm (3.5 MB)
3.5 MB WEBM
>>
>>
>>
>>
>>
>>
File: AI World Leaders Trump.webm (5.9 MB)
5.9 MB WEBM
>>
File: Josh Neuman - Longboarder.webm (5.8 MB)
5.8 MB WEBM
>>6082640
Any tips on how to encode something this long and complicated into a <= 6MB file?
I know how to use FFMPEG with the command line.. and I've tried various options, but I cant come anywhere close for a video 1/4 as long...
>>
>>
File: Mt Everest Skiing (no oxygen).webm (5.8 MB)
5.8 MB WEBM
OC - First time someone skied down Mt Everest without oxygen
>>
>>
File: Mt Everest Ski 2.webm (5.3 MB)
5.3 MB WEBM
>>6082669
Great shot
>>
>>
>>
>>
>>
File: Anime Jumping Girl - Debbie Gibson Remix.mp4 (5.1 MB)
5.1 MB MP4
>>6082077
OC version
>>
File: Date of Birth - How do you think.mp4 (5.6 MB)
5.6 MB MP4
>>
>>
>>
File: This Is How I Mount And Do it.webm (1017.3 KB)
1017.3 KB WEBM
>>
File: 1768612454961943.webm (3.9 MB)
3.9 MB WEBM
>>
>>
>>
>>
>>
>>
>>
File: Compliments.webm (5.8 MB)
5.8 MB WEBM
>>
File: China Water Slide.webm (5.7 MB)
5.7 MB WEBM
China has been building a lot of interesting architecture projects. But, the riders have to wear a poncho cause the water is dirty heh
>>
>>
>>
>>
>>
>>
>>6082658
You divide 50,000 by your video length im seconds and that's your target average bitrate. For 3min+ that's in the 200k's so you're limited to 240-360p. And you gotta subtract audio bitrate from that too, like 32-64k Opus. But 1min to 2min is like 400-600k and that's good enough for 720p or 1080 if there's not a lot of background motion
Use 2pass VP9 with auto-alt-ref 6 lag-in-frames 25 pix_fmt yuv420p10le frame-parallel 1, no point using row-mt it just makes the quality worse for faster encodes
>>
>>6082658
#!/data/data/com.termux/files/usr/bin/bash
# Configuration
INPUT="$1"
OUTPUT="${2:-output.webm}"
TARGET_SIZE_MB=6
OVERHEAD_RATIO=0.98
if [ -z "$INPUT" ]; then
echo "Usage: ./vp9encode.sh input_file.mp4 [output_name.webm]"
exit 1
fi
# --- Interactive Prompts ---
read -p "Include audio? (y/n): " INCLUDE_AUDIO
read -p "Enter output height (e.g., 720, 480, or 'original'): " RES_HEIGHT
# 1. Get duration
DURATION=$(ffprobe -v error -show_entries format=duration -of default=noprint_wrappers=1:nokey=1 "$INPUT")
# 2. Calculate Bitrate
TARGET_SIZE_KBITS=$(echo "$TARGET_SIZE_MB * 8388.608 * $OVERHEAD_RATIO" | bc)
TOTAL_BITRATE_KBS=$(echo "$TARGET_SIZE_KBITS / $DURATION" | bc)
if [[ "$INCLUDE_AUDIO" == "y" ]]; then
AUDIO_OPTS="-c:a libopus -b:a 128k"
VIDEO_BITRATE=$(echo "$TOTAL_BITRATE_KBS - 128" | bc)
else
AUDIO_OPTS="-an"
VIDEO_BITRATE=$TOTAL_BITRATE_KBS
fi
# 3. Handle Video Filters
FILTER_CHAIN=""
if [[ "$RES_HEIGHT" =~ ^[0-9]+$ ]]; then
if [ -n "$FILTER_CHAIN" ]; then FILTER_CHAIN+=","; fi
FILTER_CHAIN+="scale=-1:$RES_HEIGHT"
fi
# Apply filters if any were defined
if [ -n "$FILTER_CHAIN" ]; then
VF_OPTS="-vf $FILTER_CHAIN"
else
VF_OPTS=""
fi
echo "------------------------------------------------"
echo "Target Size: ${TARGET_SIZE_MB}MB"
echo "Bitrate: ${VIDEO_BITRATE}k | Filters: ${FILTER_CHAIN:-None}"
echo "------------------------------------------------"
# 4. Pass 1
ffmpeg -i "$INPUT" $VF_OPTS -c:v libvpx-vp9 -b:v "${VIDEO_BITRATE}k" \
-pass 1 -speed 4 -tile-columns 6 -frame-parallel 1 \
-auto-alt-ref 6 -lag-in-frames 25 -pix_fmt yuv420p10le \
-an -f webm /dev/null -y
# 5. Pass 2
ffmpeg -i "$INPUT" $VF_OPTS -c:v libvpx-vp9 -b:v "${VIDEO_BITRATE}k" \
-pass 2 -speed 1 -tile-columns 6 -frame-parallel 1 \
-auto-alt-ref 6 -lag-in-frames 25 -pix_fmt yuv420p10le\
$AUDIO_OPTS "$OUTPUT" -y
echo "Done! Final file: $OUTPUT"
>>
>>
>>
File: I implore you to reconsider.webm (903.5 KB)
903.5 KB WEBM
>>6084395
Mr. Nonymous I implore you to instead consider >>6082691 which has more granular automatic resolution calculation as well as a few more tricks in the video encode settings.
>>
>>6084249
auto-alt-ref / lag-in-frames is a vp8 setting and does nothing on vp9
-speed 1 is also a deprecated setting and shouldn't generally be set, default is 0 and setting it to 1 decreases encode quality more substantially than "-row-mt 1"
Instead use "-deadline good" or "-deadline best"
https://trac.ffmpeg.org/wiki/Encode/VP9
-frame-parallel 1 also has a negative impact on encode quality, typically it's used to decrease decode time for high resolution, which doesn't apply to this board.
>>
>>
>>
File: Javi Benitez.webm (2.2 MB)
2.2 MB WEBM
>>
>>6082078
>>6082078
>you could return, but no one would be there
It's really crazy to think just how many man hours went into creating older media. Teams of people spend thousands of hours crafting video games that a handful of people maybe boots up to play every few years now. There are so many digital ruins nowadays. Just makes me sad to think how many games won't survive because no one cared enough to break the drm and share roms. It's not so much a burning of Alexandria, but letting termites eat one book at a time and not allowing anyone to go clean up because the books belong to people who aren't even alive anymore. I really hope people start waking up to how "live service" games they play today simply wont exist in any state in 20 years because of drm. >remember all the fun times you had in the 2020's playing vidya with your friends? You can never experience that again because some company owns a game they dont even make money off of anymore.
>>
File: Rooster Monkies.webm (1.4 MB)
1.4 MB WEBM
>>
>>
File: 1526763642061.webm (3.5 MB)
3.5 MB WEBM
>>
File: 1527385957448.webm (3.9 MB)
3.9 MB WEBM
>>
>>
>>
>>6084656
Yes and no. Motion is the bane of video compression. Videos are represented as keyframes and in-between frames break down only in cases of high motion. Reducing fps just reduces the number of frames in between keyframes but it's not a silver bullet to increase quality.
>>
Same settings at 24fps for comparison
>>
File: good car commercial esprit.mp4 (740.3 KB)
740.3 KB MP4
>>
>>
>>6084662
>I really hope people start waking up to how "live service" games they play today simply wont exist in any state in 20 years because of drm
its also kinda normal.
IRL many places where i liked to eat in my teenage years have shut down. i'll never get to eat there again, the cooks have moved on to other businesses and i could chase them down but they literally make different dishes now. one old guy who used to give free food to me and my friends literally died. such is life.
>>
>>
>>
>>
>>
>>
>>6085004
yeah i agree on that. maybe they think old games would compete with new ones. or they don't even understand the decisions they're making. videogames as a industry is still young compared to music or movies.
>>
>>6085021
I think it's mainly a matter of trend chasing executives not caring about whether older games remain playable, and making a game require online connectivity is an easy way to keep people from cheating to bypass monetization schemes.
>>
>>
>>
>>
File: 1769249601261388.webm (5.6 MB)
5.6 MB WEBM
>>
File: 1503321433390.webm (3.2 MB)
3.2 MB WEBM
>>6084942
>filename
apex kekex
>>
File: output.webm (5.6 MB)
5.6 MB WEBM
Testing 10-bit encoding with BT.2020
>>
File: output.webm (5.6 MB)
5.6 MB WEBM
Profile 2 for better compatibility
>>
>>
>>
>>
File: robot [HPdvvRAdsbQ].webm (354.6 KB)
354.6 KB WEBM
>>6082735
>>