vapoursynth / bestsource

A super great audio/video source and FFmpeg wrapper
MIT License
76 stars 15 forks source link

Hopefully a parameter "end_number" will be added for the end number of the image sequence. #77

Open lyturn opened 4 weeks ago

lyturn commented 4 weeks ago

Just like avisynth's ImageReader, it can read any number of images.

myrsloik commented 4 weeks ago

Why do you need an end number? The end is automatically detected based on the image files

lyturn commented 4 weeks ago

I want to use it for a slideshow script. But it can only read two pictures.

lyturn commented 4 weeks ago

Here is my script:

from vapoursynth import core import havsfunc as haf

video = core.bs.VideoSource(source=r'E:\002\001\%02d.jpg') video = core.std.AssumeFPS(video,fpsnum=1, fpsden=15) video = haf.ChangeFPS(video, 24000, 1001)

audio = core.bas.Source(r'E:\Audio\xxx.mp3', track=-1)

audio.set_output(1) video.set_output(0)

myrsloik commented 3 weeks ago

It's still automatically detected. This issue makes no sense.

lyturn commented 2 weeks ago

Why it only read part of the pictures, it only read 25 pictures (00.jpg-43.jpg), Some of the pictures in the middle were not read. I am using the latest version.

from vapoursynth import core from havsfunc import ChangeFPS

video = core.bs.VideoSource(source=r'E:\002\001\%02d.jpg', start_number=0) video = core.std.AssumeFPS(video,fpsnum=1, fpsden=6.0) video = ChangeFPS(video, 24000, 1001)

video.set_output()