Number section for animation

All about the program

Number section for animation

Postby yogy » 02 Aug 2018, 12:46

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 !
yogy
 
Posts: 7
Joined: 05 Dec 2016, 08:21

Re: Number section for animation

Postby admin » 11 Aug 2018, 16:56

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.
User avatar
admin
Site Admin
 
Posts: 567
Joined: 03 Jun 2014, 19:14

Re: Number section for animation

Postby yogy » 17 Aug 2018, 07:11

Ah ok.
you know a command ffmpeg to do that ?
example : cut a video of 1h30 in 100 x 1.5sec
yogy
 
Posts: 7
Joined: 05 Dec 2016, 08:21

Re: Number section for animation

Postby yogy » 19 Oct 2018, 08:50

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
yogy
 
Posts: 7
Joined: 05 Dec 2016, 08:21

Re: Number section for animation

Postby admin » 01 Nov 2018, 19:52

Maximum number of animation sections is increased from 12 to 100 in VTM 12.0.0.0.
User avatar
admin
Site Admin
 
Posts: 567
Joined: 03 Jun 2014, 19:14


Return to Video Thumbnails Maker

Who is online

Users browsing this forum: Google [Bot] and 6 guests