[FFmpeg-user] Problem with time-lapse
Jippo12
jippo12 at gmail.com
Wed Sep 9 15:14:23 EEST 2020
Hi Ted!
Thanks for your reply and pointing me in the right direction!
Now i use
os.system('ffmpeg -i ' + workdir2 + '%d.jpg -r 120 -vcodec mpeg4 -qscale 1
-y -filter:v '" setpts=0.23*PTS"' ' + destinationdir + videofile)
thats
ffmpeg -i /mnt/ramdisk3g/workdir/%d.jpg -r 120 -vcodec mpeg4 -qsale 1 -y
-filter:v " setpts=0.23*PTS"'' /mnt/ramdisk/mp4/
And the result is this
https://drive.google.com/file/d/1acRm7vWwJAXz1jEU66nuD7Db9mrtPuz-/view?usp=sharing
In workdir i have multiplied every image 6 times with python counter loop
and total number of files are 1374 when there is only 229
Iam pretty happy to results now. Not sure how that minterpolate works but i
will try use that too.
Still images i use are from Raspberry Pi + Meteotux PI program and they are
120s stacked images. You can check more about that from
https://www.meteotuxpi.com
Thanks again!
Jippo
On Wed, 9 Sep 2020 at 00:14, Edward Park <kumowoon1025 at gmail.com> wrote:
> Hi,
>
> > I'm trying to automate time-lapse video from still images. I have all sky
> > camera that captures around 200 images / night. I've managed to do videos
> > like this
> >
> https://drive.google.com/file/d/1yyihZNypBy0r5y_JJiTHgtvc8N1RAZ3e/view?usp=sharing
>
> Timelapse can be counterintuitive sometimes.
>
> Sometimes you need to slow the framerate down, sometimes you need to raise
> it.
>
> Sometimes you need less frequent captures (or a step in the middle where
> you approve/reject the pictures that are going to be your frames), and
> sometimes, you need to capture at a much higher rate.
>
> > However what i'm looking for is for smoother video. Is it possible with
> > ffmpeg?
>
> I think this case it is a matter of not enough captures to make a good
> timelapse video.
>
> > I've tried to clone every image 30 times etc but still fail to get good
> > results. I've tried to search ffmpeg man pages and the web but no
> success.
> Also, maybe interpolating/duplicating frames is actually counterproductive
> by giving you a less clean starting point? I think the simplest timelapse
> render looks pretty good, from there maybe you can minterpolate but I'm not
> sure if the filters before minterpolate help.
>
> https://media.kumowoon1025.com/videos/simple-timelapse-example.mov
>
> > I use python script to automate the whole process. so below is some
> option
> > ive tried
> >
> > os.system('ffmpeg -i ' + workdir2 + '%d.jpg -vf '
> > '"tblend=average,framestep=1,setpts=0.50*PTS,minterpolate"' + ' -r 30
> -b:v
> > 64K -crf 10 -an ' + destinationdir + videofile)
> > os.system('ffmpeg -r 30 -i ' + workdir2 + '%d.jpg -vcodec mpeg4 -qscale 1
> > -y -filter:v '" setpts=2.0*PTS"' ' + destinationdir + videofile)
>
> This is just a general tip, I can excavate the command from that, but it
> would be immensely helpful if you put it into a line you can feed into a
> shell and also attach the output.
>
>
> Regards,
> Ted Park
>
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-request at ffmpeg.org with subject "unsubscribe".
More information about the ffmpeg-user
mailing list