Page 2 of 2

Re: RTSP and RPi Bookworm

Posted: Thu 18 Apr 2024 8:39 pm
by Nottub
Thank you Simon. :D

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

Re: RTSP and RPi Bookworm

Posted: Thu 18 Apr 2024 8:55 pm
by ConligWX
no problem. some of the text values have pixel values. start and end of lines etc depending on the size of your rtsp image too. it will take time to get it correct. but should be able to help with that once we have a image captured.

Re: RTSP and RPi Bookworm

Posted: Fri 19 Apr 2024 8:59 am
by Nottub
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. :o

The error: :?:

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.
Oh and it doesn't seem to like a .jpg extension but works with .jpeg. :?

I'll plod through amending the rest of your code amending to suit my circumstances later.
Also introduce myself to running a CRON job to automate these updates.

Thanks for helping out.

Martyn

Re: RTSP and RPi Bookworm

Posted: Fri 19 Apr 2024 9:57 am
by ConligWX
Nottub wrote: Fri 19 Apr 2024 8:59 am
The error: :?:

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.
Oh and it doesn't seem to like a .jpg extension but works with .jpeg. :?

Thanks for helping out.

Martyn
it maybe a difference in ffmpeg versions I guess or compiled modules perhaps. the command line values maybe slightly different.

Re: RTSP and RPi Bookworm

Posted: Fri 19 Apr 2024 12:19 pm
by Nottub
ConligWX wrote: Fri 19 Apr 2024 9:57 am
Nottub wrote: Fri 19 Apr 2024 8:59 am
The error: :?:

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.
Oh and it doesn't seem to like a .jpg extension but works with .jpeg. :?

Thanks for helping out.

Martyn
it maybe a difference in ffmpeg versions I guess or compiled modules perhaps. the command line values maybe slightly different.
Happy so far Simon :clap:

I'll be looking at a CRON job next.

Thank you ;)

Martyn

Re: RTSP and RPi Bookworm

Posted: Fri 19 Apr 2024 4:23 pm
by Nottub
Simon,
you can also use ffmpeg to create a timelapse video is your want to with another script I have.
If you’re still willing to send the Timelapse code, I’d love to have a go.

Many thanks again.

Martyn

Re: RTSP and RPi Bookworm

Posted: Fri 19 Apr 2024 7:47 pm
by Nossie
I haven't really looked at overlays for a while, but this is really useful - thanks!

Re: RTSP and RPi Bookworm

Posted: Fri 19 Apr 2024 10:44 pm
by ConligWX
Nottub wrote: Fri 19 Apr 2024 4:23 pm Simon,
you can also use ffmpeg to create a timelapse video is your want to with another script I have.
If you’re still willing to send the Timelapse code, I’d love to have a go.

Many thanks again.

Martyn
just rename the timelapse.txt to timelapse.sh

this is an old script I had many years ago. I dont however use it now but it was working.

Re: RTSP and RPi Bookworm

Posted: Sat 20 Apr 2024 7:27 am
by Nottub
ConligWX wrote: Fri 19 Apr 2024 10:44 pm
Nottub wrote: Fri 19 Apr 2024 4:23 pm Simon,
you can also use ffmpeg to create a timelapse video is your want to with another script I have.
If you’re still willing to send the Timelapse code, I’d love to have a go.

Many thanks again.

Martyn
just rename the timelapse.txt to timelapse.sh

this is an old script I had many years ago. I dont however use it now but it was working.
Many thanks Simon, i'll be sure to take a look at this. ;)

BTW I did create a CRONJOB for the webcam capture script you provided and it worked a treat, updating every two minutes. 8-)
https://www.calvertoncam.co.uk/weather/overlay

Many thanks

Martyn

Re: RTSP and RPi Bookworm

Posted: Sat 20 Apr 2024 2:54 pm
by ConligWX
nice you, just gotta add it to the cmx template as a page:)

https://www.conligwx.org/webcam.htm

I dont however use the htm cmx template. I prefer Niel's Reworked default website template as its just more appealing.

https://www.conligwx.org/webcam.html