How to split a video using FFMPEG so that each chunk starts with a key frame?

The latest builds of FFMPEG include a new option “segment” which does exactly what I think you need. ffmpeg -i INPUT.mp4 -acodec copy -f segment -vcodec copy -reset_timestamps 1 -map 0 OUTPUT%d.mp4 This produces a series of numbered output files which are split into segments based on Key Frames. In my own testing, it’s worked … Read more

Passing parameters to css animation

Use CSS variables and you can easily do this: document.querySelector(‘.p2’).style.setProperty(‘–m’,’100%’); document.querySelector(‘.p2’).style.setProperty(‘–w’,’300%’); .p1,.p2 { animation-duration: 3s; animation-name: slidein; } @keyframes slidein { from { margin-left: var(–m, 0%); width: var(–w, 100%); } to { margin-left: 0%; width: 100%; } } <p class=”p1″> This will not animate as the animation will use the default value set to the … Read more