Page 1 of 1

Number section for animation

Posted: 02 Aug 2018, 15:46
by yogy
Hello !
Why only 12 sections ? is it possible to increase the number in the next versions ?
why not let us choose the number that wants ?

thank you !

Re: Number section for animation

Posted: 11 Aug 2018, 19:56
by admin
Hello,

the main reason was not to exceed 2 minutes of animation lenght.

I can let to use more sections, but with shorter length of sections.
For instance, 30 sections 4 seconds max each.
Or 60 sections 2 seconds max each.

Re: Number section for animation

Posted: 17 Aug 2018, 10:11
by yogy
Ah ok.
you know a command ffmpeg to do that ?
example : cut a video of 1h30 in 100 x 1.5sec

Re: Number section for animation

Posted: 19 Oct 2018, 11:50
by yogy
Hi, i found the solution with ffmpeg !
if someone wants to do the same thing.
to reduce the duration of a video, to make a small clip of a movie for example.

1 - download ffmpeg
2 - in a folder put : ffmpeg.exe, "newfiles" folder, "exec.bat" file
3 - put your .avi videos in the folder (or other and adapt the command)
4 - run the "exec.bat"

modify "exec.bat" with this command:

Code: Select all

for %%a in ("*.avi") do ffmpeg -i "%%a" -vf "select='lt(mod(t,40),3)',setpts=N/FRAME_RATE/TB, scale=466:-1" -c:v libx264 -crf 28 -preset veryslow -an "newfiles\%%~na.mp4"
pause
in this command, ffmpeg only keeps 3 seconds every 40 seconds. For a video of 1H30 the result is approximately 6 minutes.
There are many settings, for example changing "28" to "20" for better quality or "veryslow" for "veryfast" to compress faster.
Remove ", scale = 466: -1" to keep the original resolution.

To keep the audio, delete "-an" and follow this example to adapt the command.

Code: Select all

ffmpeg -i video.avi -vf "select='lt(mod(t,33),30)',setpts=N/FRAME_RATE/TB" -af "aselect='lt(mod(t,33),30)',asetpts=N/SR/TB" video.mp4

Re: Number section for animation

Posted: 01 Nov 2018, 22:52
by admin
Maximum number of animation sections is increased from 12 to 100 in VTM 12.0.0.0.