lionking
Posts: 14
Joined: Sat Aug 18, 2012 7:25 pm

Re: [Tutorial] Making time-lapse video with Raspberry Pi

Mon Sep 05, 2016 8:10 am

Hi,

i successfully created a video with gstreamer.
But since 1920x1080 seems not to be supported by the omxh264 i get a green bar at the bottom of the video.
The problem seems to be becaus 1080 is not a ratio of 16.

Is there a workaround or an other plugin to create the video with h.264?

Thanks.

mzozo95
Posts: 1
Joined: Mon Nov 21, 2016 11:30 pm

Re: [Tutorial] Making time-lapse video with Raspberry Pi

Mon Nov 21, 2016 11:34 pm

Hi!

Did you get the encoding error sometimes in the renderes video? - it seems it's a key frame error.

Can anybody tell me a solution to avoid this encoding error?

Thank you very much!

URE
Posts: 1
Joined: Sat Jun 17, 2017 5:52 pm

Re: [Tutorial] Making time-lapse video with Raspberry Pi

Sat Jun 17, 2017 5:57 pm

Why do you add "http://vontaene.de/raspbian-updates/" to "/etc/apt/sources.list"?

Code: Select all

sudo sh -c 'echo deb http://vontaene.de/raspbian-updates/ . main >> /etc/apt/sources.list'
It results in an error:

Code: Select all

KEYEXPIRED 1489690519

Ratsima
Posts: 68
Joined: Tue Nov 10, 2015 12:13 am
Location: Korat, Thailand
Contact: Website

Re: [Tutorial] Making time-lapse video with Raspberry Pi

Thu Oct 05, 2017 1:57 am

I've been making time lapse videos daily from web cam stills using this tutorial. It seemed to be working fine. However, I recently discovered that the code which I'm using puts the wrong JPEG as the first frame of the video. This wouldn't matter, except that with Apple's new OS releases (High Sierra and iOS), the OS does an integrity check of videos and won't play them if the timestamps are out of sequence. The result is that my videos are now stuck on the first frame if someone with High Sierra or iOS tries to play them with Safari or Chrome or QuickTime Player. They continue to play fine under previous Apple OS versions and with non-Apple players, like VLC.

You can see the video here: http://www.mgnewman.com/kamvideo.mp4

The code I'm using is here:

Code: Select all

gst-launch-1.0 \
	-e multifilesrc location="$mfslocation" \
	! image/jpeg, framerate=10/1 \
	! jpegdec ! queue ! videoscale \
	! video/x-raw, width=640, height=480 \
	! progressreport name=progress \
	! omxh264enc target-bitrate=1200000 control-rate=variable \
	! video/x-h264,profile=high\
	! h264parse \
	! mp4mux \
	! filesink location="$fslocation"
How do I fix this?

johnwh46
Posts: 1
Joined: Mon Oct 12, 2015 10:03 am

Re: [Tutorial] Making time-lapse video with Raspberry Pi

Mon Apr 02, 2018 9:57 am

Worked my way through and got it working last week with my own tweaks studying cloud changes.
I used picamera to collect images and give each .jpeg an annotation of date/time stamp, also still thinking about what video format output I want, .avi or mp4 etc. [during daylight hours it emails me the 1-pic-per-minute as a video file every 3 hours, about 8 meg, great for when I spend days over 100 km from home]. As I have several pi-zeros with cameras I thought I would do another installation,

however when I got down to:-
sudo apt-get update
Hit:1 http://raspbian.raspberrypi.org/raspbian stretch InRelease
Ign:2 http://vontaene.de/raspbian-updates . InRelease
Hit:3 http://archive.raspberrypi.org/debian stretch InRelease
Get:4 http://vontaene.de/raspbian-updates . Release [249 B]
Get:5 http://vontaene.de/raspbian-updates . Release.gpg [198 B]
Ign:5 http://vontaene.de/raspbian-updates . Release.gpg
Hit:6 http://vontaene.de/raspbian-updates ./main armhf Packages
Fetched 447 B in 4s (92 B/s)
Reading package lists... Done
W: GPG error: http://vontaene.de/raspbian-updates . Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY F0DAA5410C667A3E
W: The repository 'http://vontaene.de/raspbian-updates . Release' is not signed.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: No Hash entry in Release file /var/lib/apt/lists/partial/vontaene.de_raspbian-updates_dists_._Release which is considered strong enough for security purposes
W: Invalid 'Date' entry in Release file /var/lib/apt/lists/partial/vontaene.de_raspbian-updates_dists_._Release
etc


So after
gst-launch-1.0 multifilesrc location=timelapse%04d.jpeg index=1 caps="image/jpeg,framerate=10/1" ! jpegdec ! omxh264enc ! avimux ! filesink location=animation.avi

I get
Setting pipeline to PAUSED ...
Pipeline is PREROLLING ...
ERROR: from element /GstPipeline:pipeline0/GstMultiFileSrc:multifilesrc0: Internal data stream error.
Additional debug info:
gstbasesrc.c(2950): gst_base_src_loop (): /GstPipeline:pipeline0/GstMultiFileSrc:multifilesrc0:
streaming stopped, reason not-negotiated (-4)
ERROR: pipeline doesn't want to preroll.
Setting pipeline to NULL ...
Freeing pipeline ...



Hopefully this is only a temporary issue. Maybe copy the installation I have got working to another Sd card.

Another application [if I can repeat it] will be a time-lapsed Dashcam [for that two hour drive]

odintheterrible
Posts: 15
Joined: Thu Dec 05, 2013 11:15 pm
Location: Spain

Re: [Tutorial] Making time-lapse video with Raspberry Pi

Wed Oct 24, 2018 8:12 am

Great Tutorial for someone like me who has limited (very) expeience of programing !! ... and just what I have been looking for.
One question though, would/is it possible to customise this setup to utilise the ONVIF output from a network IPCamera instead of the Pi camera module ???
Thanks
Qui Custodiet Ipsos Custodes ?

Return to “Graphics, sound and multimedia”