Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
alixanderwang
on May 16, 2020
|
parent
|
context
|
favorite
| on:
Serve Videos Instead of GIFs
The ffmpeg command will default produce one that can only be decoded on Chrome. You should specify a codec supported by most browsers (`-c:v libx264`).
forgotmypw17
on May 16, 2020
|
next
[–]
Thank you very much for posting that. I've been trying to figure out how to do that for a while.
jazzyjackson
on May 16, 2020
|
parent
|
next
[–]
I've also learned that -pix_fmt yuv420p is necessary, changes the colorspace from RGB to YUV
The full git gist (not mine):
https://gist.github.com/ingramchen/e2af352bf8b40bb88890fba4f...
bertman
on May 17, 2020
|
prev
[–]
If ffmpeg has been built with libx264 support, than this is the default encoder for mp4 video.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: