scrolly-video icon indicating copy to clipboard operation
scrolly-video copied to clipboard

Why it's laggy when is scroll up

Open gofortiss opened this issue 2 years ago • 5 comments

With the goldengate.mp4 video file it works perfectly, but when i export my own video, it is laggy. My file is only 548Kb.

Do you have an export recommendation ?

gofortiss avatar Feb 11 '23 14:02 gofortiss

In this case, I'd recommend exporting with keyframe distance set to 1, that will solve your upwards scroll issue. The file size will be a bit bigger but it looks like you're starting with a pretty small file.

dkaoster avatar Feb 11 '23 18:02 dkaoster

Thank you for your fast response ! I will check and let you know if it works :)

gofortiss avatar Feb 11 '23 19:02 gofortiss

In my case, it works perfectly! if somebody needs a command to convert I frame only mp4(video with keyframe distance), please refer to the command below. ffmpeg -i original.mp4 -c:v libx264 -x264-params keyint=1 original_I.mp4

ryuken73 avatar Feb 18 '23 11:02 ryuken73

In this case, I'd recommend exporting with keyframe distance set to 1, that will solve your upwards scroll issue. The file size will be a bit bigger but it looks like you're starting with a pretty small file.

Any plans to implement the ability to upload two videos (one forward, one reverse), and switch between them depending on which way the user scrolls?

I have a video with very little motion, which is why I would prefer a video with keyframes over the usual image sequence.

KalebKloppe avatar Feb 21 '23 14:02 KalebKloppe

Any plans to implement the ability to upload two videos (one forward, one reverse), and switch between them depending on which way the user scrolls?

No plans in the immediate future, although I'm happy to help review a pull request if someone is interested in implementing it!

dkaoster avatar Feb 23 '23 19:02 dkaoster