gst multifilesink of files datestamped on 5 minute intervals [closed]

The name of the pictureThe name of the pictureThe name of the pictureClash 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?







share|improve this question













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
















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?







share|improve this question













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












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?







share|improve this question













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?









share|improve this question












share|improve this question




share|improve this question








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
















  • 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















active

oldest

votes






















active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes

Popular posts from this blog

How to check contact read email or not when send email to Individual?

Bahrain

Postfix configuration issue with fips on centos 7; mailgun relay