User avatar
Mettauk
Posts: 237
Joined: Mon Dec 10, 2012 12:40 pm
Location: Zarg

Re: RPi Cam Web Interface

Mon Sep 19, 2016 6:41 pm

I have a timelapse set of 2500+ images on a Pi with RPi Cam version v6.2.12 which I want to convert into a video but have no idea how to use...

Code: Select all

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=

I also have around 1500 timelapse captured with version v6.1.1 which shows

Code: Select all

avconv -r 5 -i i_%05d.jpg -r 5 -vcodec libx264 -crf 20 -g 5
Neither seems to work and I am bewildered, do i need to edit these or should they work as they stand?
As humans we have been the same for a very very long time, technology changes how we do... not who we are as people.

Pangu
Posts: 78
Joined: Tue Dec 18, 2012 5:30 pm

Re: RPi Cam Web Interface

Wed Sep 21, 2016 2:01 pm

I am on RPi Web Cam Interface version 6.2.17 and I am also still facing issues with timelapse converts. I have configured my RPi cam to use 1296x972 px for images, that's the same resolution as I am using for videos (equals to the template max view 972p).

I am doing various timelapse shots, some with 60seconds, others with 5min difference and so on ... but as soon as I press the "START CONVERT" button nothing happens any more. I see a new created thumbnail with the same index number and the comment "Busy..." but it remains even after days busy. I also tested with a timelapse of only 10 pictures, it didn't work either. The command listed in the box before I push the "Start convert..." button says:

Code: Select all

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=
when I look at "Scheduler" --> "System Log" I see following related lines:
[2016/09/21 16:06:31] start lapse convert:(gst-launch-1.0 -v multifilesrc location=/var/www/media/t0000/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=/var/www/media/tl_0000_0001_20160817_213825.mp4 ; rm -rf /var/www/media/t0000;) >/dev/null 2>&1 &
[2016/09/21 16:06:32] Convert finished
the timelapse immediately finishes, that's abnormal.

I also tried to manually run the command that is executed by the RPi Web Cam Interface. So I did execute on the ssh prompt:

Code: Select all

(gst-launch-1.0 -v multifilesrc location=/var/www/media/t0016/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=/var/www/media/tl_0016_0001_20160921_161255.mp4 ; rm -rf /var/www/media/t0016;)
and the error message was:
"WARNUNG: Fehlerhafte Leitung: Kein Element >>multifilesrc<<" which does mean in english something like "WARNING: defective pipe: no element >>multifilesrc<<"

any clues?
Last edited by Pangu on Wed Sep 21, 2016 2:17 pm, edited 3 times in total.

Pangu
Posts: 78
Joined: Tue Dec 18, 2012 5:30 pm

Re: RPi Cam Web Interface

Wed Sep 21, 2016 2:03 pm

I'd like to update my RPi Web Cam interface and therefore in ssh shell I went into the download directory of my initial RPi Web Cam interface install

Code: Select all

cd ~/downloads/RPi_Cam_Web_Interface
then I run

Code: Select all

./update.sh
the installer says "Commints don't match. We update." but then I get this error:
von https://github.com/silvanmelchior/RPi_Cam_Web_Interface
* branch master -> FETCH_HEAD
Aktualisiere a044405..cfee5f0
error: Your local changes to the following files would be overwritten by merge:
install.sh
Please, commit your changes or stash them before you can merge.
Aborting

***************
*** ABORTED ***
***************

An error occurred. Exiting...
I am confused because I never did modify the mentioned file "install.sh". How should I fix this error? thanks in advance.

Ik0adr
Posts: 50
Joined: Fri Jul 12, 2013 6:32 pm

Re: RPi Cam Web Interface

Sun Sep 25, 2016 2:14 pm

After this error, give the command

git reset --hard FETCH_HEAD

then again

chmod u+x *.sh

and (finally) again

./update.sh

should work.

bazedonia
Posts: 3
Joined: Thu Sep 15, 2016 2:52 pm

Re: RPi Cam Web Interface

Mon Sep 26, 2016 9:51 am

hi there,

has somebody a solution for freezing internet explorer / edge?

regards,
bazedonia

Craigb1
Posts: 1
Joined: Mon Sep 26, 2016 3:42 pm

Re: RPi Cam Web Interface

Mon Sep 26, 2016 3:48 pm

Morning all,

I previously had RPi cam web running perfectly but my sd card died :-(. I did a fresh install on new card and I was getting an error & upon research I read I should do a fresh install but change the install folder name when prompted which I did. The web interface and cam stream loads just fine but I am unable to change cam settings or record video/take picture. I tried changing the ownership of the new install folder I made on install but may not be doing it correctly. Any ideas?

I don't mind not being able to record videos that much but I'd really like to be able to change the cam settings

quavoce
Posts: 109
Joined: Fri Nov 27, 2015 9:11 am

Re: RPi Cam Web Interface

Wed Sep 28, 2016 8:41 pm

Hope Robert (btidey) is ok as I haven't seen him on here since 30th Aug...

He is the lifeblood of this project and has been regularly active on here for over a year so I hope all is ok with him.

btidey
Posts: 1622
Joined: Sun Feb 17, 2013 6:51 pm

Re: RPi Cam Web Interface

Fri Sep 30, 2016 8:56 am

quavoce wrote:Hope Robert (btidey) is ok as I haven't seen him on here since 30th Aug...

He is the lifeblood of this project and has been regularly active on here for over a year so I hope all is ok with him.
I have been on holiday. I'll be checking out posts shortly

btidey
Posts: 1622
Joined: Sun Feb 17, 2013 6:51 pm

Re: RPi Cam Web Interface

Fri Sep 30, 2016 10:48 am

Pangu wrote:I'd like to update my RPi Web Cam interface and therefore in ssh shell I went into the download directory of my initial RPi Web Cam interface install

I am confused because I never did modify the mentioned file "install.sh". How should I fix this error? thanks in advance.
If you get an error during update that commits don't match then that can be triggered by a ny change in a file in the RPi folder.

Just delete the folder and run the git clone again to get fresh copy and then run ./installer.sh. This is pretty much equivalent to what update does.

btidey
Posts: 1622
Joined: Sun Feb 17, 2013 6:51 pm

Re: RPi Cam Web Interface

Fri Sep 30, 2016 10:57 am

Mettauk wrote:I have a timelapse set of 2500+ images on a Pi with RPi Cam version v6.2.12 which I want to convert into a video but have no idea how to use...

Code: Select all

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=

I also have around 1500 timelapse captured with version v6.1.1 which shows

Code: Select all

avconv -r 5 -i i_%05d.jpg -r 5 -vcodec libx264 -crf 20 -g 5
Neither seems to work and I am bewildered, do i need to edit these or should they work as they stand?
6.2.9 introduced the gstreamer method (gst-launch) for converting timelapse which works much better and faster than the avconv method. However, as it uses the GPU for the conversion the images do need to conform to a 'video' aspect ratio / resolution to work. It won't convert 2592 x 1536 for example.

If you want to convert existing images like this then I'd suggest downloading them and converting on a Mac or PC

btidey
Posts: 1622
Joined: Sun Feb 17, 2013 6:51 pm

Re: RPi Cam Web Interface

Fri Sep 30, 2016 11:25 am

Pangu wrote:I am on RPi Web Cam Interface version 6.2.17 and I am also still facing issues with timelapse converts. I have configured my RPi cam to use 1296x972 px for images, that's the same resolution as I am using for videos (equals to the template max view 972p).

I am doing various timelapse shots, some with 60seconds, others with 5min difference and so on ... but as soon as I press the "START CONVERT" button nothing happens any more. I see a new created thumbnail with the same index number and the comment "Busy..." but it remains even after days busy. I also tested with a timelapse of only 10 pictures, it didn't work either. The command listed in the box before I push the "Start convert..." button says:
"WARNUNG: Fehlerhafte Leitung: Kein Element >>multifilesrc<<" which does mean in english something like "WARNING: defective pipe: no element >>multifilesrc<<"

any clues?
I can reproduce this behaviour on one of my camera systems but not on several others. The one that does not convert was a jessie lite system whereas the others were either full wheezy for full jessie. It could be something missing from the lite system.

It will need a bit of digging to find if there is some dependency.

Can you confirm whether your system was full or lite?

btidey
Posts: 1622
Joined: Sun Feb 17, 2013 6:51 pm

Re: RPi Cam Web Interface

Fri Sep 30, 2016 11:32 am

bazedonia wrote:hi there,

has somebody a solution for freezing internet explorer / edge?

regards,
bazedonia
I don't normally use IE or Edge, but just fired up Edge and it seemed OK. Can you explain more about freezing? Also if you do F12 that brings up Developer tools and allows you to see activity. If in default streaming mode you should see the continuous fetch of data to keep live preview working.

btidey
Posts: 1622
Joined: Sun Feb 17, 2013 6:51 pm

Re: RPi Cam Web Interface

Fri Sep 30, 2016 12:09 pm

btidey wrote:
Pangu wrote:I am on RPi Web Cam Interface version 6.2.17 and I am also still facing issues with timelapse converts. I have configured my RPi cam to use 1296x972 px for images, that's the same resolution as I am using for videos (equals to the template max view 972p).

I am doing various timelapse shots, some with 60seconds, others with 5min difference and so on ... but as soon as I press the "START CONVERT" button nothing happens any more. I see a new created thumbnail with the same index number and the comment "Busy..." but it remains even after days busy. I also tested with a timelapse of only 10 pictures, it didn't work either. The command listed in the box before I push the "Start convert..." button says:
"WARNUNG: Fehlerhafte Leitung: Kein Element >>multifilesrc<<" which does mean in english something like "WARNING: defective pipe: no element >>multifilesrc<<"

any clues?
I can reproduce this behaviour on one of my camera systems but not on several others. The one that does not convert was a jessie lite system whereas the others were either full wheezy for full jessie. It could be something missing from the lite system.

It will need a bit of digging to find if there is some dependency.

Can you confirm whether your system was full or lite?
Yes. The installer just puts in gstreamer1.0-tools as it assumed that the main gstreamer1.0 package was already installed. This is the case for normal full Raspbian but seems to be one of the packages left out in lite. One should be able to install the components manually or update the camera installer. I am checking what is needed.

I am trying sudo apt-get install gstreamer1.0 which has a lot of dependencies and adds 600MB of stuff.

Pangu
Posts: 78
Joined: Tue Dec 18, 2012 5:30 pm

Re: RPi Cam Web Interface

Sun Oct 02, 2016 3:24 pm

btidey wrote:
Pangu wrote:I am on RPi Web Cam Interface version 6.2.17 and I am also still facing issues with timelapse converts. I have configured my RPi cam to use 1296x972 px for images, that's the same resolution as I am using for videos (equals to the template max view 972p).

I am doing various timelapse shots, some with 60seconds, others with 5min difference and so on ... but as soon as I press the "START CONVERT" button nothing happens any more. I see a new created thumbnail with the same index number and the comment "Busy..." but it remains even after days busy. I also tested with a timelapse of only 10 pictures, it didn't work either. The command listed in the box before I push the "Start convert..." button says:
"WARNUNG: Fehlerhafte Leitung: Kein Element >>multifilesrc<<" which does mean in english something like "WARNING: defective pipe: no element >>multifilesrc<<"

any clues?
I can reproduce this behaviour on one of my camera systems but not on several others. The one that does not convert was a jessie lite system whereas the others were either full wheezy for full jessie. It could be something missing from the lite system.

It will need a bit of digging to find if there is some dependency.

Can you confirm whether your system was full or lite?
==> CONFIRM <== I used "lite" when installing Raspbian. I suppose you're on the right way. Did you meanwhile find out which packages I need to install? I will check that and report back as soon as I know.

Thanks for your assistance and support.

Pangu

StinkyPants
Posts: 1
Joined: Sun Oct 02, 2016 7:26 pm

Re: RPi Cam Web Interface

Sun Oct 02, 2016 7:30 pm

Hello All new here.

Have any of you had issues using the PTZ controls in IP Cam Viewer? If I go to the feed via a web browser I can control the cam no problem however it doesnt work in the app.

Any thoughts?

btidey
Posts: 1622
Joined: Sun Feb 17, 2013 6:51 pm

Re: RPi Cam Web Interface

Mon Oct 03, 2016 10:21 am

Pangu wrote:
==> CONFIRM <== I used "lite" when installing Raspbian. I suppose you're on the right way. Did you meanwhile find out which packages I need to install? I will check that and report back as soon as I know.

Thanks for your assistance and support.

Pangu
I just did

Code: Select all

sudo apt-get update
sudo apt-get upgrade
sudo apt-get install gstreamer1.0
to Jessie lite and then the convert worked.

The install does add a lot of dependencies and takes a while.

Pangu
Posts: 78
Joined: Tue Dec 18, 2012 5:30 pm

Re: RPi Cam Web Interface

Mon Oct 03, 2016 11:13 am

Hi btidey and thanks for feedback.

I forgot to add: I own some more RPi's and on all of them I installed Raspbian Lite initially. One of my Pi works fine with the convert command so I have a working condition of a RPi which I can compare to.

On my problem RPi when I try to run "apt-get install gstreamer1.0" it will install lots of packages as you already mentioned. They will occupy about 600 MB file space:
adwaita-icon-theme alsa-base aspell aspell-en at-spi2-core autopoint colord colord-data dbus-x11 dconf-gsettings-backend dconf-service debhelper desktop-file-utils dh-python dictionaries-common eject emacsen-common enchant fontconfig fonts-droid freepats fuse gcr gdebi-core gdisk gettext gettext-base gir1.2-atk-1.0 gir1.2-clutter-1.0 gir1.2-clutter-gst-2.0 gir1.2-cogl-1.0 gir1.2-coglpango-1.0 gir1.2-evince-3.0 gir1.2-freedesktop gir1.2-gdkpixbuf-2.0 gir1.2-glib-2.0 gir1.2-gst-plugins-base-1.0 gir1.2-gstreamer-1.0 gir1.2-gtk-3.0 gir1.2-gtkclutter-1.0 gir1.2-gtksource-3.0 gir1.2-javascriptcoregtk-3.0 gir1.2-json-1.0 gir1.2-pango-1.0 gir1.2-soup-2.4 gir1.2-webkit-3.0 glib-networking glib-networking-common glib-networking-services gnome-desktop3-data gnome-icon-theme gnome-icon-theme-symbolic gnome-keyring gnome-packagekit-data gnome-packagekit-session gnome-settings-daemon gnome-sushi gsettings-desktop-schemas streamer1.0-alsa gstreamer1.0-clutter gstreamer1.0-doc gstreamer1.0-fluendo-mp3 gstreamer1.0-gnonlin gstreamer1.0-gnonlin-dbg gstreamer1.0-gnonlin-doc gstreamer1.0-libav gstreamer1.0-libav-dbg gstreamer1.0-nice gstreamer1.0-omx-dbg gstreamer1.0-packagekit gstreamer1.0-plugins-bad gstreamer1.0-plugins-bad-dbg gstreamer1.0-plugins-bad-doc gstreamer1.0-plugins-base-apps gstreamer1.0-plugins-base-dbg gstreamer1.0-plugins-base-doc gstreamer1.0-plugins-good gstreamer1.0-plugins-good-dbg gstreamer1.0-plugins-good-doc gstreamer1.0-plugins-ugly gstreamer1.0-plugins-ugly-dbg gstreamer1.0-plugins-ugly-doc gstreamer1.0-pulseaudio gstreamer1.0-vaapi gstreamer1.0-vaapi-doc gstreamer1.0-x gvfs gvfs-backends gvfs-common gvfs-daemons gvfs-libs hicolor-icon-theme hunspell-en-us hwdata intltool-debian libaa1 libaacs0 libarchive13 libasound2-plugins libaspell15 libasprintf-dev libasprintf0c2 libass5 libatasmart4 libatk-bridge2.0-0 libatk1.0-0 libatk1.0-data libatspi2.0-0 libavahi-client3 libavahi-glib1 libavc1394-0 libbluetooth3 libbluray1 libcairo-gobject2 libcairo2 libcanberra-gtk3-0 libcanberra-gtk3-module libcanberra0 libchromaprint0 libclutter-1.0-0 libclutter-1.0-common libclutter-gst-2.0-0 libclutter-gtk-1.0-0 libcogl-common libcogl-pango20 libcogl-path20 libcogl20 libcolord2 libcolorhug2 libcroco3 libcups2 libcupsfilters1 libcupsimage2 libdatrie1 libdbus-glib-1-2 libdca0 libdconf1 libdjvulibre-text libdjvulibre21 libdv4 libdvdnav4 libdvdread4 libegl1-mesa libelfg0 libenca0 libenchant1c2a libevdocument3-4 libevview3-3 libexempi3 libexif12 libfftw3-double3 libfftw3-single3 libfile-copy-recursive-perl libflite1 libfluidsynth1 libfontenc1 libfribidi0 libfuse2 libgail-3-0 libgbm1 libgck-1-0 libgcr-3-common libgcr-base-3-1 libgcr-ui-3-1 libgdk-pixbuf2.0-0 libgdk-pixbuf2.0-common libgeoclue0 libgeocode-glib0 libgettextpo-dev libgettextpo0 libgirepository-1.0-1 libgjs0e libglib2.0-bin libglib2.0-dev libglib2.0-doc libgme0 libgnome-desktop-3-10 libgoa-1.0-0b libgoa-1.0-common libgphoto2-6 libgphoto2-l10n libgphoto2-port10 libgraphite2-3 libgs9 libgs9-common libgssdp-1.0-3 libgstreamer-plugins-base1.0-dev libgstreamer-vaapi1.0-0 libgstreamer-vaapi1.0-dev libgstreamer1.0-0-dbg libgstreamer1.0-dev libgtk-3-0 libgtk-3-bin libgtk-3-common libgtk2.0-0 libgtk2.0-bin libgtk2.0-common libgtkglext1 libgtksourceview-3.0-1 libgtksourceview-3.0-common libgudev-1.0-0 libgupnp-1.0-4 libgupnp-igd-1.0-4 libgusb2 libgweather-3-6 libgweather-common libgxps2 libharfbuzz-icu0 libharfbuzz0b libhunspell-1.3-0 libiec61883-0 libieee1284-3 libijs-0.35 libilmbase6 libimobiledevice4 libiptcdata0 libjasper1 libjavascriptcoregtk-3.0-0 libjbig2dec0 libjson-glib-1.0-0 libjson-glib-1.0-common libkate1 libkpathsea6 liblcms2-2 libldb1 libltdl7 liblzo2-2 libmail-sendmail-perl libmediaart-1.0-0 libmimic0 libmjpegutils-2.1-0 libmms0 libmodplug1 libmozjs-24-0 libmpdec2 libmpeg2-4 libmpeg2encpp-2.1-0 libmpg123-0 libmplex2-2.1-0 libmtp-common libmtp-runtime libmtp9 libmusicbrainz5-1 libnautilus-extension1a libneon27-gnutls libnice10 libnm-glib4 libnm-util2 libnotify4 libnspr4 libnss3 libntdb1 libofa0 libopenal-data libopenal1 libopencore-amrnb0 libopencore-amrwb0 libopencv-calib3d2.4 libopencv-contrib2.4 libopencv-features2d2.4 libopencv-flann2.4 libopencv-highgui2.4 libopencv-legacy2.4 libopencv-ml2.4 libopencv-objdetect2.4 libopencv-video2.4 libopenexr6 libpackagekit-glib2-18 libpam-gnome-keyring libpam-systemd libpango-1.0-0 libpangocairo-1.0-0 libpangoft2-1.0-0 libpangox-1.0-0 libpangoxft-1.0-0 libpaper-utils libpaper1 libpci3 libpcre3-dev libpcrecpp0 libpixman-1-0 libplist2 libpolkit-agent-1-0 libpolkit-backend-1-0 libpolkit-gobject-1-0 libpoppler-glib8 libpoppler46 libproxy1 libpulse-mainloop-glib0 libpulsedsp libpython3-stdlib libpython3.4-minimal libpython3.4-stdlib librest-0.7-0 librsvg2-2 librsvg2-common libsane libsane-common libsane-extras libsane-extras-common libsbc1 libsecret-1-0 libsecret-common libshout3 libsidplay1 libsmbclient libsoundtouch0 libsoup-gnome2.4-1 libsoup2.4-1 libspandsp2 libspectre1 libspeexdsp1 libsrtp0 libsys-hostname-long-perl libtag1-vanilla libtag1c2a libtdb1 libtevent0 libthai-data libthai0 libtracker-sparql-1.0-0 libtwolame0 libudisks2-0 libunistring0 libupower-glib3 libusbmuxd2 libva-dev libva-drm1 libva-egl1 libva-glx1 libva-tpi1 libva-wayland1 libva-x11-1 libvo-aacenc0 libvo-amrwbenc0 libvorbisfile3 libwacom-common libwacom2 libwavpack1 libwayland-client0 libwayland-cursor0 libwayland-dev libwayland-server0 libwebkitgtk-3.0-0 libwebkitgtk-3.0-common libwebp5 libwebrtc-audio-processing-0 libwildmidi-config libwildmidi1 libxaw7 libxcb-render0 libxcb-shape0 libxcb-shm0 libxcb-xfixes0 libxcomposite1 libxcursor1 libxft2 libxinerama1 libxkbcommon0 libxml2-dev libxmu6 libxrandr2 libxrender1 libxt6 libxxf86dga1 libzbar0 nautilus nautilus-data notification-daemon ntfs-3g p11-kit p11-kit-modules packagekit packagekit-tools pciutils po-debconf policykit-1 policykit-1-gnome poppler-data pulseaudio pulseaudio-module-x11 pulseaudio-utils python-talloc python3 python3-apt python3-chardet python3-debian python3-minimal python3-pkg-resources python3-six python3.4 python3.4-minimal rtkit samba-libs sane-utils udisks2 update-inetd upower usbmuxd x11-utils
I didn't run the command because I'm pretty sure this isn't the "right" way. I believe that this will fix the mentioned issue, but I suppose there is only one or maybe two package of all these that are needed to fix the issue. I did compare some of this packages if they are installed on my "working RPi". They don't exist there. This is a proof that these lots of packages are not needed all.

I will try to figure out which of the packages are really needed and as soon as I get more information I will reply of course. Meanwhile if you find out some more information please let us know.

Cheers
Pangu

btidey
Posts: 1622
Joined: Sun Feb 17, 2013 6:51 pm

Re: RPi Cam Web Interface

Mon Oct 03, 2016 1:09 pm

Pangu wrote:Hi btidey and thanks for feedback.

I forgot to add: I own some more RPi's and on all of them I installed Raspbian Lite initially. One of my Pi works fine with the convert command so I have a working condition of a RPi which I can compare to.

On my problem RPi when I try to run "apt-get install gstreamer1.0" it will install lots of packages as you already mentioned. They will occupy about 600 MB file space:


I didn't run the command because I'm pretty sure this isn't the "right" way. I believe that this will fix the mentioned issue, but I suppose there is only one or maybe two package of all these that are needed to fix the issue. I did compare some of this packages if they are installed on my "working RPi". They don't exist there. This is a proof that these lots of packages are not needed all.

I will try to figure out which of the packages are really needed and as soon as I get more information I will reply of course. Meanwhile if you find out some more information please let us know.

Cheers
Pangu
You are right that not all these packages will be required for just the base gstreamer activity needed by the conversion process. Some are more fairly obviously not required, but its not maybe so obvious with a lot of the lib packages.

I'm not going to put in gstreamer1.0 into the install.sh for the moment.

Edit: I tested runing install gstreamer1.0 on a full jessie and even there it is going to add 80MB worth of stuff. Of interest is the extra packages it was going to put in which should indicate they are not needed.

Code: Select all

  at-spi2-core autopoint debhelper fonts-droid gettext gir1.2-clutter-1.0
  gir1.2-clutter-gst-2.0 gir1.2-cogl-1.0 gir1.2-coglpango-1.0
  gir1.2-evince-3.0 gir1.2-gst-plugins-base-1.0 gir1.2-gstreamer-1.0
  gir1.2-gtkclutter-1.0 gir1.2-gtksource-3.0 gir1.2-javascriptcoregtk-3.0
  gir1.2-json-1.0 gir1.2-soup-2.4 gir1.2-webkit-3.0 gnome-packagekit-data
  gnome-packagekit-session gnome-settings-daemon gnome-sushi
  gstreamer1.0-clutter gstreamer1.0-doc gstreamer1.0-fluendo-mp3
  gstreamer1.0-gnonlin gstreamer1.0-gnonlin-dbg gstreamer1.0-gnonlin-doc
  gstreamer1.0-libav-dbg gstreamer1.0-nice gstreamer1.0-omx-dbg
  gstreamer1.0-packagekit gstreamer1.0-plugins-bad-dbg
  gstreamer1.0-plugins-bad-doc gstreamer1.0-plugins-base-apps
  gstreamer1.0-plugins-base-dbg gstreamer1.0-plugins-base-doc
  gstreamer1.0-plugins-good-dbg gstreamer1.0-plugins-good-doc
  gstreamer1.0-plugins-ugly gstreamer1.0-plugins-ugly-dbg
  gstreamer1.0-plugins-ugly-doc gstreamer1.0-pulseaudio gstreamer1.0-vaapi
  gstreamer1.0-vaapi-doc intltool-debian libasprintf-dev libclutter-1.0-0
  libclutter-1.0-common libclutter-gst-2.0-0 libclutter-gtk-1.0-0
  libcogl-common libcogl-pango20 libcogl-path20 libcogl20 libdjvulibre-text
  libdjvulibre21 libevdocument3-4 libevview3-3 libexempi3 libgail-3-0
  libgeocode-glib0 libgettextpo-dev libgettextpo0 libgjs0e libglib2.0-dev
  libglib2.0-doc libgs9 libgs9-common libgssdp-1.0-3
  libgstreamer-plugins-base1.0-dev libgstreamer-vaapi1.0-0
  libgstreamer-vaapi1.0-dev libgstreamer1.0-0-dbg libgstreamer1.0-dev
  libgtksourceview-3.0-1 libgtksourceview-3.0-common libgupnp-1.0-4
  libgupnp-igd-1.0-4 libgweather-3-6 libgweather-common libgxps2 libijs-0.35
  libiptcdata0 libjbig2dec0 libkpathsea6 libmail-sendmail-perl
  libmediaart-1.0-0 libmozjs-24-0 libmpeg2-4 libmusicbrainz5-1
  libnautilus-extension1a libnice10 libnm-glib4 libnm-util2 libopencore-amrnb0
  libopencore-amrwb0 libpaper-utils libpaper1 libpcre3-dev libpcrecpp0
  libpoppler-glib8 libpulse-mainloop-glib0 libsidplay1 libspectre1
  libsys-hostname-long-perl libtracker-sparql-1.0-0 libtwolame0 libunistring0
  libupower-glib3 libva-dev libva-drm1 libva-egl1 libva-glx1 libva-tpi1
  libva-wayland1 libva-x11-1 libwacom-common libwacom2 libwayland-dev
  libxml2-dev nautilus nautilus-data po-debconf upower

bazedonia
Posts: 3
Joined: Thu Sep 15, 2016 2:52 pm

Re: RPi Cam Web Interface

Mon Oct 03, 2016 1:58 pm

btidey wrote:
bazedonia wrote:hi there,

has somebody a solution for freezing internet explorer / edge?

regards,
bazedonia
I don't normally use IE or Edge, but just fired up Edge and it seemed OK. Can you explain more about freezing? Also if you do F12 that brings up Developer tools and allows you to see activity. If in default streaming mode you should see the continuous fetch of data to keep live preview working.
It freezes after clicking some buttons... With freezing i mean all IE instances freezes and a can't click anything in IE, but preview is still running. i tried the Developer tools and have disabled caching. then its working fine. how can i implement that in webcam interface?

btidey
Posts: 1622
Joined: Sun Feb 17, 2013 6:51 pm

Re: RPi Cam Web Interface

Mon Oct 03, 2016 2:22 pm

bazedonia wrote:
btidey wrote:
bazedonia wrote:hi there,

has somebody a solution for freezing internet explorer / edge?

regards,
bazedonia
I don't normally use IE or Edge, but just fired up Edge and it seemed OK. Can you explain more about freezing? Also if you do F12 that brings up Developer tools and allows you to see activity. If in default streaming mode you should see the continuous fetch of data to keep live preview working.
It freezes after clicking some buttons... With freezing i mean all IE instances freezes and a can't click anything in IE, but preview is still running. i tried the Developer tools and have disabled caching. then its working fine. how can i implement that in webcam interface?
If a return header contains

Code: Select all

header("Cache-Control: no-cache, no-store, must-revalidate");
then the browser should respect that and not cache that material.

I haven't tried this but I would start by trying that in the cam_pic.php, but you may need to add it to the other web pages.

Pangu
Posts: 78
Joined: Tue Dec 18, 2012 5:30 pm

Re: RPi Cam Web Interface

Mon Oct 03, 2016 3:27 pm

btidey wrote: You are right that not all these packages will be required for just the base gstreamer activity needed by the conversion process. Some are more fairly obviously not required, but its not maybe so obvious with a lot of the lib packages.

I'm not going to put in gstreamer1.0 into the install.sh for the moment.

Edit: I tested runing install gstreamer1.0 on a full jessie and even there it is going to add 80MB worth of stuff. Of interest is the extra packages it was going to put in which should indicate they are not needed.
I did install "gstreamer1.0" all packages (600 MB) and it didn't solve my issue on the problem RPi. Even after a reboot. Hmm... ~puzzled~

EDIT:Oh sorry, I forgot to reduce the image size to 1296x972 px. After doing that the CONVERT worked. Ok, so we're back in game and need to find out which packages really are needed. I'll try to make a diff/compare between my two RPi's...

EDIT2: I have isolated the packages needed. I narrowed them down to actually 9 packages needed for the convert to work. I will try to reduce them further and report ...

Pangu
Posts: 78
Joined: Tue Dec 18, 2012 5:30 pm

Re: RPi Cam Web Interface

Mon Oct 03, 2016 6:20 pm

Well, I think I'm finished with analyzing. Here are the results:

First of all I did compare the packages installed on "Good RPi" and "Problem RPi" by:

Code: Select all

$ dpkg --get-selections | grep '\binstall$' | cut -f 1 > working-rpi.txt
$ dpkg --get-selections | grep '\binstall$' | cut -f 1 > problem-rpi.txt
then either move one logfile to the other pi and do the compare there, or as I did on my workstation...

Code: Select all

$ comm -12 <(sort working-rpi.txt) <(sort problem-rpi.txt) > packages-on-both-rpis.txt
$ comm -23 <(sort working-rpi.txt) <(sort problem-rpi.txt) > packages-only-on-working-rpi.txt
$ comm -13 <(sort working-rpi.txt) <(sort problem-rpi.txt) > packages-only-on-problem-pri.txt
I tested a lot and narrowed the needed components to a possible minimum. The result is:

Code: Select all

# dpkg -l |grep -E 'gir1|gst' |grep 'ii' |awk '{print $2}'
gstreamer1.0-omx
gstreamer1.0-plugins-bad:armhf
gstreamer1.0-plugins-base:armhf
gstreamer1.0-plugins-good:armhf
gstreamer1.0-tools
gstreamer1.0-x:armhf
libgstreamer-plugins-bad1.0-0:armhf
libgstreamer-plugins-base1.0-0:armhf
libgstreamer1.0-0:armhf
Would be nice if someone who faced the same issue could test it and report back. HTH

Cheers
Pangu

Witska
Posts: 5
Joined: Tue Oct 04, 2016 6:37 pm

Re: RPi Cam Web Interface

Tue Oct 04, 2016 6:47 pm

Timelapse does not work in Raspbian Jessie with PIXEL and Raspbian Jessie Lite. After conversion file 4194304 Kb 10s after downloading 0 B.

btidey
Posts: 1622
Joined: Sun Feb 17, 2013 6:51 pm

Re: RPi Cam Web Interface

Tue Oct 04, 2016 8:44 pm

Witska wrote:Timelapse does not work in Raspbian Jessie with PIXEL and Raspbian Jessie Lite. After conversion file 4194304 Kb 10s after downloading 0 B.
See the posts just above this.

Convert uses gstreamer1.0 which is standard on full Raspbian but is not present in Jessie Lite. I did a gstreamer1.0 install but that is a very heavy install. Pangu has done some research and has narrowed down the minimum extra packages to be added to Lite, and asked for verification.

If this is OK then I could add these to the install script.

btidey
Posts: 1622
Joined: Sun Feb 17, 2013 6:51 pm

Re: RPi Cam Web Interface

Tue Oct 04, 2016 8:46 pm

Pi Zero security camera build

I have put some construction notes on how I build security cameras based on a Pi Zero. This is referenced in the wiki.

http://www.instructables.com/id/Zero-Security-Camera/

Return to “Camera board”