Prototypology/Transcodology-3: Difference between revisions
No edit summary |
(Add MKBHD video) |
||
| (4 intermediate revisions by one other user not shown) | |||
| Line 1: | Line 1: | ||
=How to compress videos?= | =How to compress videos?= | ||
<onlyinclude> | <onlyinclude> | ||
Which compression should be used should be used? | Which compression should be used should be used? | ||
* [https://caniuse.com/?search=h264 h264] | * [https://caniuse.com/?search=h264 h264] is one of the [https://developer.mozilla.org/en-US/docs/Web/Media/Guides/Formats/Video_codecs#choosing_a_video_codec recommended video compression codecs by Mozilla] | ||
== The fancy and hard way == | |||
=== The fancy and hard way === | |||
<pre> | <pre> | ||
ffmpeg -i input.mov -c:v libx264 -c:a aac -movflags +faststart output.mp4 | ffmpeg -i input.mov -c:v libx264 -c:a aac -movflags +faststart output.mp4 | ||
| Line 16: | Line 13: | ||
* the option "-movflags +faststart " is for web optimisation | * the option "-movflags +faststart " is for web optimisation | ||
== The easy way == | === The easy way === | ||
By using a software called [https://handbrake.fr/ HandBrake - The open source video transcoder] | By using a software called [https://handbrake.fr/ HandBrake - The open source video transcoder] | ||
*In HandBrake click on [Open source] and select the file you would like to transcode. | *In HandBrake click on [Open source] and select the file you would like to transcode. | ||
| Line 22: | Line 19: | ||
* For the web dont forget to select [Web optimized] | * For the web dont forget to select [Web optimized] | ||
==Further links== | ===Further links=== | ||
* [[Prototyping_2013-11-05_(Lens_Based_Media)|old wiki page about video compression]] | * [[Prototyping_2013-11-05_(Lens_Based_Media)|old wiki page about video compression]] | ||
* [https://www.ubu.com/sound/lucier.html Reference: I'm sitting in a room by Alvin Lucier] | |||
* {{youtube|icruGcSsPp0}} | |||
* {{youtube|JR4KHfqw-oE}} | |||
</onlyinclude> | </onlyinclude> | ||
Latest revision as of 11:40, 12 May 2026
How to compress videos?
Which compression should be used should be used?
- h264 is one of the recommended video compression codecs by Mozilla
The fancy and hard way
ffmpeg -i input.mov -c:v libx264 -c:a aac -movflags +faststart output.mp4
- the option "-i" is the input file
- the option "-c:v" is the video codec you use. in this case h264
- the otpion "-c:a" is for the audio codec
- the option "-movflags +faststart " is for web optimisation
The easy way
By using a software called HandBrake - The open source video transcoder
- In HandBrake click on [Open source] and select the file you would like to transcode.
- Select the preset.
- For the web dont forget to select [Web optimized]
Further links