Czechball / discord-video

Simple bash and batch scripts that use ffmpeg to compress videos to fit under 25 MB (Discord free upload limit)
MIT License
52 stars 11 forks source link

Add two-pass encoding #5

Closed RealOfficialTurf closed 2 years ago

RealOfficialTurf commented 2 years ago

I've changed the script to utilize two-pass encoding and changed the encoder from libvpx-vp9 to libx264. The two-pass encoding should make it so that the encoder can optimize parts of videos with varying bitrate while staying within the average bitrate target.

EDIT: Turns out you can also do that in libvpx-vp9. I've reverted the encoder back to libvpx-vp9.

Czechball commented 2 years ago

Hello. Thank you for your contribution and I apologize I wasn't able to answer earlier.. Before your latest changes, I wanted to respond that the main idea of this project is to use VP9 (even tho it's not really mentoined anywhere...), but since you switched to VP9 again, this is no longer an issue. I'll take a look later today or tommorow at the encoding process, but I think it looks good

Czechball commented 2 years ago

All seems fine, sorry again for taking so long to respond.