I've basically installed ffmpeg on a vps with 20.04 ubuntu
I am trying to create a video in /home/ubuntu/video folder - so i am asking script to select all jpeg files in that folder
ffmpeg -f image2 -r 25 -pattern_type glob -i '*.jpg' -qscale 3 -s 1920x1080 -c:v wmv1 video.wmv
which works perfectly and creates a video
so i have now asked cronjobs to do this automatically - every 2 minuted therefore created an sh file and used this script
*/2 * * * * /home/ubuntu/video/makewmv.sh
and this is the .sh file
#!/bin/sh ffmpeg -f image2 -r 25 -pattern_type glob -i '*.jpg' -qscale 3 -s 1920x1080 -c:v wmv1 video.wmv
and when i do grep CRON logs i get this
Dec 29 23:16:01 vps-1fd6f1ab CRON: (ubuntu) CMD (/home/ubuntu/video/makewmv.sh)
But i do not have the video.wmv ..
I can see the cronjobs are doing what it suppose to be doing - however i am doing something wrong
Can someone help please
I really appreciate it.
(I am extremely new to Linux)