I’ll be sure to post back on my results.
I am tackling the errors/ issues line by line. So the imagemagick convert will come later.
As ever on this forum thanks for sharing your knowledge.
Martyn
Code: Select all
[image2 @ 0x55bcf67630] The specified filename '/home/pi2/Pictures/scene.jpeg' does not contain an image sequence pattern or a pattern is invalid.
[image2 @ 0x55bcf67630] Use a pattern such as %03d for an image sequence or use the -update option (with -frames:v 1 if needed) to write a single image.it maybe a difference in ffmpeg versions I guess or compiled modules perhaps. the command line values maybe slightly different.Nottub wrote: ↑Fri 19 Apr 2024 8:59 am
The error:
Oh and it doesn't seem to like a .jpg extension but works with .jpeg.Code: Select all
[image2 @ 0x55bcf67630] The specified filename '/home/pi2/Pictures/scene.jpeg' does not contain an image sequence pattern or a pattern is invalid. [image2 @ 0x55bcf67630] Use a pattern such as %03d for an image sequence or use the -update option (with -frames:v 1 if needed) to write a single image.![]()
Thanks for helping out.
Martyn
Happy so far SimonConligWX wrote: ↑Fri 19 Apr 2024 9:57 amit maybe a difference in ffmpeg versions I guess or compiled modules perhaps. the command line values maybe slightly different.Nottub wrote: ↑Fri 19 Apr 2024 8:59 am
The error:
Oh and it doesn't seem to like a .jpg extension but works with .jpeg.Code: Select all
[image2 @ 0x55bcf67630] The specified filename '/home/pi2/Pictures/scene.jpeg' does not contain an image sequence pattern or a pattern is invalid. [image2 @ 0x55bcf67630] Use a pattern such as %03d for an image sequence or use the -update option (with -frames:v 1 if needed) to write a single image.![]()
Thanks for helping out.
Martyn
If you’re still willing to send the Timelapse code, I’d love to have a go.you can also use ffmpeg to create a timelapse video is your want to with another script I have.
just rename the timelapse.txt to timelapse.sh
Many thanks Simon, i'll be sure to take a look at this.
Nottub wrote: ↑Fri 19 Apr 2024 8:59 am Hi,
Partial success. I can run the Bash script to generate a snapshot(with a couple of errors, in addition to the code I haven't amended as yet), and save it to my Pictures folder.
The resultant terminal screen opens with all the ffmpeg details first, then shows all the additional steps taken to follow the script.![]()
The error:
MartynCode: Select all
[image2 @ 0x55bcf67630] The specified filename '/home/pi2/Pictures/scene.jpeg' does not contain an image sequence pattern or a pattern is invalid. [image2 @ 0x55bcf67630] Use a pattern such as %03d for an image sequence or use the -update option (with -frames:v 1 if needed) to write a single image.
Code: Select all
/opt/ffmpeg/ffmpeg -rtsp_transport tcp -i rtsps://192.168.1.22:5678/hYHihPWuoJzS5W0A?enableSrtp -vf scale=2688:1512 -frames:v 1 -update 1 /share/weather/sky1.jpg -y