The first post is done with a subset of the whole video file defined with SelectEvery(). I didn't mentioned this post, because I thought it's not important. But before I went to work, I started the same script without selecting a subset. Now I see the result and it worked fine. Here is the output for both scripts. The only difference is one line, SelectEvery(....).
Quote:
Originally Posted by splinter98
What does the output of the following command say?
Code:
vspipe --info test.script.vpy -
|
Whole video file:
Code:
Width: 694
Height: 572
Frames: 40463
FPS: 25/1 (25.000 fps)
Format Name: YUV420P8
Color Family: YUV
Bits: 8
SubSampling W: 1
SubSampling H: 1
Subset defined with SelectEvery(clip = video, cycle = 8000, offsets = range(250)):
Code:
Width: 694
Height: 572
Frames: 1500
FPS: 25/32 (0.781 fps)
Format Name: YUV420P8
Color Family: YUV
Bits: 8
SubSampling W: 1
SubSampling H: 1
Why is the fps changing from 25/1 to 25/32? I want to encode the subset as a test encode to try different x264 parameters instead of encoding the whole movie each time.
Edit: OK, after reading the documentation for SelectEvery it's clear:
Quote:
The clip’s frame rate is multiplied by the number of offsets and divided by cycle. The frame durations are multiplied by cycle and divided by the number of offsets.
|
It seems I used the wrong function for my purpose...