gst multifilesink of files datestamped on 5 minute intervals [closed]
Clash Royale CLAN TAG#URR8PPP
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty margin-bottom:0;
up vote
0
down vote
favorite
I've searched and found some relevant threads but I'm just a bit too new to Bash to comprehend so I figured I post my explicit problem.
I've got a Raspberry Pi with a camera taking a picture every 5 minutes. It names the file $DATE.jpg
where DATE=$(date +"%m-%d-%Y_%H%M")
. So at 1:35PM the filename would be 07-28-2018_1335.jpg
. After each day I'm wanting to make a gst
script to combine them all for the day into an AVI and then flush out the directory.
So far I have:
DATE=$(date +"%m-%d-%Y")
TAIL=%04d
NAME=$(echo $DATE_$TAIL)
gst-launch-1.0 multifilesrc location=/home/pi/usbdrive/archive/$NAME.jpg
index=0 caps="image/jpeg,framerate=5/1" ! jpegdec ! omxh264enc !
avimux ! filesink location=/home/pi/usbdrive/video-archive/$DATE.avi
If I have it set to take a picture every minute, it seems to work for 60 frames as last 2 digits resets to 00 on a new hour, but I can't figure out how to tell it to take every file based on every 5 digits while also resetting after 55 or every digit while resetting at 59?
bash raspberry-pi gstreamer
closed as off-topic by slm⦠Jul 29 at 5:20
This question appears to be off-topic. The users who voted to close gave this specific reason:
- "This question has been posted on multiple sites. Cross-posting is strongly discouraged; see the help center and community FAQ for more information." â slm
add a comment |Â
up vote
0
down vote
favorite
I've searched and found some relevant threads but I'm just a bit too new to Bash to comprehend so I figured I post my explicit problem.
I've got a Raspberry Pi with a camera taking a picture every 5 minutes. It names the file $DATE.jpg
where DATE=$(date +"%m-%d-%Y_%H%M")
. So at 1:35PM the filename would be 07-28-2018_1335.jpg
. After each day I'm wanting to make a gst
script to combine them all for the day into an AVI and then flush out the directory.
So far I have:
DATE=$(date +"%m-%d-%Y")
TAIL=%04d
NAME=$(echo $DATE_$TAIL)
gst-launch-1.0 multifilesrc location=/home/pi/usbdrive/archive/$NAME.jpg
index=0 caps="image/jpeg,framerate=5/1" ! jpegdec ! omxh264enc !
avimux ! filesink location=/home/pi/usbdrive/video-archive/$DATE.avi
If I have it set to take a picture every minute, it seems to work for 60 frames as last 2 digits resets to 00 on a new hour, but I can't figure out how to tell it to take every file based on every 5 digits while also resetting after 55 or every digit while resetting at 59?
bash raspberry-pi gstreamer
closed as off-topic by slm⦠Jul 29 at 5:20
This question appears to be off-topic. The users who voted to close gave this specific reason:
- "This question has been posted on multiple sites. Cross-posting is strongly discouraged; see the help center and community FAQ for more information." â slm
it doesn't reset at 59 it just counts... 60 61 etc..
â Jasen
Jul 29 at 5:11
Cross post - stackoverflow.com/questions/51575104/â¦
â slmâ¦
Jul 29 at 5:20
yeah, but that one is off-tpoic
â Jasen
Jul 29 at 5:24
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I've searched and found some relevant threads but I'm just a bit too new to Bash to comprehend so I figured I post my explicit problem.
I've got a Raspberry Pi with a camera taking a picture every 5 minutes. It names the file $DATE.jpg
where DATE=$(date +"%m-%d-%Y_%H%M")
. So at 1:35PM the filename would be 07-28-2018_1335.jpg
. After each day I'm wanting to make a gst
script to combine them all for the day into an AVI and then flush out the directory.
So far I have:
DATE=$(date +"%m-%d-%Y")
TAIL=%04d
NAME=$(echo $DATE_$TAIL)
gst-launch-1.0 multifilesrc location=/home/pi/usbdrive/archive/$NAME.jpg
index=0 caps="image/jpeg,framerate=5/1" ! jpegdec ! omxh264enc !
avimux ! filesink location=/home/pi/usbdrive/video-archive/$DATE.avi
If I have it set to take a picture every minute, it seems to work for 60 frames as last 2 digits resets to 00 on a new hour, but I can't figure out how to tell it to take every file based on every 5 digits while also resetting after 55 or every digit while resetting at 59?
bash raspberry-pi gstreamer
I've searched and found some relevant threads but I'm just a bit too new to Bash to comprehend so I figured I post my explicit problem.
I've got a Raspberry Pi with a camera taking a picture every 5 minutes. It names the file $DATE.jpg
where DATE=$(date +"%m-%d-%Y_%H%M")
. So at 1:35PM the filename would be 07-28-2018_1335.jpg
. After each day I'm wanting to make a gst
script to combine them all for the day into an AVI and then flush out the directory.
So far I have:
DATE=$(date +"%m-%d-%Y")
TAIL=%04d
NAME=$(echo $DATE_$TAIL)
gst-launch-1.0 multifilesrc location=/home/pi/usbdrive/archive/$NAME.jpg
index=0 caps="image/jpeg,framerate=5/1" ! jpegdec ! omxh264enc !
avimux ! filesink location=/home/pi/usbdrive/video-archive/$DATE.avi
If I have it set to take a picture every minute, it seems to work for 60 frames as last 2 digits resets to 00 on a new hour, but I can't figure out how to tell it to take every file based on every 5 digits while also resetting after 55 or every digit while resetting at 59?
bash raspberry-pi gstreamer
edited Jul 29 at 3:21
slmâ¦
232k65479649
232k65479649
asked Jul 29 at 2:15
Blake Russell
12
12
closed as off-topic by slm⦠Jul 29 at 5:20
This question appears to be off-topic. The users who voted to close gave this specific reason:
- "This question has been posted on multiple sites. Cross-posting is strongly discouraged; see the help center and community FAQ for more information." â slm
closed as off-topic by slm⦠Jul 29 at 5:20
This question appears to be off-topic. The users who voted to close gave this specific reason:
- "This question has been posted on multiple sites. Cross-posting is strongly discouraged; see the help center and community FAQ for more information." â slm
it doesn't reset at 59 it just counts... 60 61 etc..
â Jasen
Jul 29 at 5:11
Cross post - stackoverflow.com/questions/51575104/â¦
â slmâ¦
Jul 29 at 5:20
yeah, but that one is off-tpoic
â Jasen
Jul 29 at 5:24
add a comment |Â
it doesn't reset at 59 it just counts... 60 61 etc..
â Jasen
Jul 29 at 5:11
Cross post - stackoverflow.com/questions/51575104/â¦
â slmâ¦
Jul 29 at 5:20
yeah, but that one is off-tpoic
â Jasen
Jul 29 at 5:24
it doesn't reset at 59 it just counts... 60 61 etc..
â Jasen
Jul 29 at 5:11
it doesn't reset at 59 it just counts... 60 61 etc..
â Jasen
Jul 29 at 5:11
Cross post - stackoverflow.com/questions/51575104/â¦
â slmâ¦
Jul 29 at 5:20
Cross post - stackoverflow.com/questions/51575104/â¦
â slmâ¦
Jul 29 at 5:20
yeah, but that one is off-tpoic
â Jasen
Jul 29 at 5:24
yeah, but that one is off-tpoic
â Jasen
Jul 29 at 5:24
add a comment |Â
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
it doesn't reset at 59 it just counts... 60 61 etc..
â Jasen
Jul 29 at 5:11
Cross post - stackoverflow.com/questions/51575104/â¦
â slmâ¦
Jul 29 at 5:20
yeah, but that one is off-tpoic
â Jasen
Jul 29 at 5:24