Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
lwc:multimedia_and_graphics [2022/10/23 21:57] – John Harrison | lwc:multimedia_and_graphics [2023/08/18 08:22] (current) – John Harrison | ||
---|---|---|---|
Line 1: | Line 1: | ||
* [[http:// | * [[http:// | ||
- | * crossfade example with ffmpeg (audio and video): | + | |
+ | ==== Crossfade with ffmpeg ==== | ||
+ | === crossfade example with ffmpeg (audio and video) | ||
< | < | ||
/ | / | ||
Line 29: | Line 31: | ||
[over1][va1]overlay=format=yuv420[outv]" | [over1][va1]overlay=format=yuv420[outv]" | ||
-vcodec libx264 -preset ultrafast -qp 0 -aspect 1.778 -map [outv] -map [outa] -acodec libvorbis -qscale:a 10 -ss 00:00:02 -t 5 out.mp4 | -vcodec libx264 -preset ultrafast -qp 0 -aspect 1.778 -map [outv] -map [outa] -acodec libvorbis -qscale:a 10 -ss 00:00:02 -t 5 out.mp4 | ||
+ | </ | ||
+ | === crossfade using ffmpeg and xfade === | ||
+ | < | ||
+ | ffmpeg -i first.mp4 -i second.mp4 -filter_complex " | ||
+ | < | ||
+ | // from https:// | ||
</ | </ | ||
* compress video with ffmpeg: | * compress video with ffmpeg: | ||
Line 35: | Line 43: | ||
* convert video to a sequence of pngs: '' | * convert video to a sequence of pngs: '' | ||
* [[https:// | * [[https:// | ||
+ | * slow down video but keep smoothness by using optical flow (sometimes called motion interpolation): | ||
+ | * change speed video is played (fps) without changing anything else. No frames are harmed with this cmd: '' |