Tested Hardware:
Software:
dietpi-softwareBoth cams are up and running fine with DietPi Cam.
Can take pictures, timelaps and videos with this cams.
But converting timelaps pictures into a undercranking via web interface, it will not work.
Converting into a video, preview will shown as "Busy" and nothing will happened.

Web interface show Convert using: gst-launch-1.0 -v multifilesrc location=i_%05d.jpg caps=\"image/jpeg,framerate=\(fraction\)30/1\" ! jpegdec ! queue ! videoscale ! video/x-raw ! queue ! omxh264enc target-bitrate=15000000 control-rate=variable ! video/x-h264, profile=high ! h264parse ! mp4mux ! filesink location=
Fiddling around, I noticed, gst-launch-1.0 isn't installed.
root@RPi-Zero-Cam:~# apt-get install gstreamer1.0-tools
But this didn't help. Something more seemingly will be missing.
Notes:
apt-get install gstreamer1.0-tools gstreamer1.0-plugins-good gstreamer1.0-plugins-base gstreamer1.0-omx libav-tools
cd /var/www/dietpicam/media
gst-launch-1.0 -v multifilesrc location=i_%06d.jpg caps=\"image/jpeg,framerate=\(fraction\)30/1\" ! jpegdec ! queue ! videoscale ! video/x-raw ! queue ! omxh264enc target-bitrate=15000000 control-rate=variable ! video/x-h264, profile=high ! h264parse ! mp4mux ! filesink location=
WARNING: erroneous pipeline: no element "multifilesrc"
Looks like multifilesrc is part of good plugin set:
https://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-good-plugins/html/gst-plugins-good-plugins-multifilesrc.html
apt-get install gstreamer1.0-plugins-good
WARNING: erroneous pipeline: no element "omxh264enc"
omxh264enc is part of:
apt-get install gstreamer1.0-omx
WARNING: erroneous pipeline: no element "location"
root@DietPi:/var/www/dietpicam/media# gst-launch-1.0 -v multifilesrc location=i_%05d.jpg caps=\"image/jpeg,framerate=\(fraction\)30/1\" ! jpegdec ! queue ! videoscale ! video/x-raw ! queue ! omxh264enc target-bitrate=15000000 control-rate=variable filesink location=output.avi
Setting pipeline to PAUSED ...
Pipeline is PREROLLING ...
/GstPipeline:pipeline0/GstMultiFileSrc:multifilesrc0.GstPad:src: caps = "image/jpeg\,\ framerate\=\(fraction\)30/1"
/GstPipeline:pipeline0/GstJpegDec:jpegdec0.GstPad:sink: caps = "image/jpeg\,\ framerate\=\(fraction\)30/1"
ERROR: from element /GstPipeline:pipeline0/GstMultiFileSrc:multifilesrc0: Error while reading from file "i_00000.jpg".
Additional debug info:
gstmultifilesrc.c(467): gst_multi_file_src_create (): /GstPipeline:pipeline0/GstMultiFileSrc:multifilesrc0:
Failed to open file 'i_00000.jpg': No such file or directory
ERROR: pipeline doesn't want to preroll.
Setting pipeline to NULL ...
/GstPipeline:pipeline0/GstJpegDec:jpegdec0.GstPad:sink: caps = "NULL"
/GstPipeline:pipeline0/GstMultiFileSrc:multifilesrc0.GstPad:src: caps = "NULL"
Freeing pipeline ...
Fiddle around a little bit with motioneye.
So I noticed, where is a newer precompiled ffmpeg_3.1.1-1_armhf.deb for Raspian.
https://github.com/ccrisan/motioneye/wiki/Install-On-Raspbian
Nice peace of software with a slick web interface.
Focal point are surveillance camera, but it will support Raspberry PI camera module, most USB cameras, IP (network) cameras and direct streams.
Convert to timelapse movies works as well. (tested)
Running on my RPi Zero W, as log as you don't use that much high video resolution and frame rate.
Can be a option or alternative.
@k-plan
Interesting, thanks 馃憤
Seems we already have a request for this aswell:
https://github.com/Fourdee/DietPi/issues/718
Cant get gstreamer to convert images to video, not sure if syntax is correct, but this everytime:
Failed to open file 'i_00000.jpg': No such file or directory
tl_0000_0001_20170405_121012.jpg
Nope:
gst-launch-1.0 -v multifilesrc location=tl_%04d_%04d_%08d_%06d.jpg caps=\"image/jpeg,framerate=\(fraction\)30/1\" ! jpegdec ! queue ! videoscale ! video/x-raw ! queue ! omxh264enc target-bitrate=15000000 control-rate=variable filesink location=output.avi
Failed to open file 'tl_0000_0628_00000000_000000.jpg': No such file or directory
Lets try using FFmpeg and conversion instead:
dietpi-software install 7
cd /var/www/dietpicam/media
ffmpeg -pattern_type glob -i 'tl_*.jpg' -vcodec libx264 output.mp4
rm tl_*.jpg
Works, but runs out of memory after 6 images.
Don't have the time to fiddle with this further at the moment. Motion Eye is now available as an alternative with working timelapse.
Marking this as a known issue for now.
Works, but runs out of memory after 6 images.
Don't have the time to fiddle with this further at the moment. Motion Eye is now available as an alternative with working timelapse.
Marking this as a known issue for now.
Yes, let well alone! 馃憤
Motion Eye? Yes! 馃槂
Because it is now documented ... will closed.