DuctTape
Posts: 3
Joined: Sat Apr 12, 2014 8:56 am

Re: RPi Cam Web Interface

Sat Jul 19, 2014 6:51 am

I'm using the Pi NoIR camera and the motion detection works great in the day. Setting the exposure to night mode I can clearly see in the dark but soon as the camera starts recording the exposure changes and I cant see anything, once the recording stops the night exposure is working again.

Is there anyway to fix this?

6by9
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 5946
Joined: Wed Dec 04, 2013 11:27 am
Location: ZZ9 Plural Z Alpha, aka just outside Cambridge.

Re: RPi Cam Web Interface

Sat Jul 19, 2014 7:37 am

DuctTape wrote:I'm using the Pi NoIR camera and the motion detection works great in the day. Setting the exposure to night mode I can clearly see in the dark but soon as the camera starts recording the exposure changes and I cant see anything, once the recording stops the night exposure is working again.

Is there anyway to fix this?
Does RPi Cam Web set a framerate for recording by any chance? If that is set to 30fps, then the max exposure time possible is 33ms and it will go darker.
Software Engineer at Raspberry Pi Trading. Views expressed are still personal views.
Please don't send PMs asking for support - use the forum.
I'm not interested in doing contracts for bespoke functionality - please don't ask.

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

Re: RPi Cam Web Interface

Sat Jul 19, 2014 7:58 am

DuctTape wrote:
I'm using the Pi NoIR camera and the motion detection works great in the day. Setting the exposure to night mode I can clearly see in the dark but soon as the camera starts recording the exposure changes and I cant see anything, once the recording stops the night exposure is working again.

Is there anyway to fix this
I have had some success with setting it to sports mode with ir lighting. Have yet to try a low frame rate... Say 5fps.
As humans we have been the same for a very very long time, technology changes how we do, not who we are as people.

DuctTape
Posts: 3
Joined: Sat Apr 12, 2014 8:56 am

Re: RPi Cam Web Interface

Sat Jul 19, 2014 10:53 pm

6by9 wrote:
DuctTape wrote:I'm using the Pi NoIR camera and the motion detection works great in the day. Setting the exposure to night mode I can clearly see in the dark but soon as the camera starts recording the exposure changes and I cant see anything, once the recording stops the night exposure is working again.

Is there anyway to fix this?
Does RPi Cam Web set a framerate for recording by any chance? If that is set to 30fps, then the max exposure time possible is 33ms and it will go darker.
Thanks, I tried this out tonight and it seems the lower the fps the better. 1fps produces the same video as the preview and up to 5fps seems to be okay for what I need. Tomorrow I can work out a way of switching the frame rates for day and night, e.g. 25fps for day and 3fps for night.

6by9
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 5946
Joined: Wed Dec 04, 2013 11:27 am
Location: ZZ9 Plural Z Alpha, aka just outside Cambridge.

Re: RPi Cam Web Interface

Sun Jul 20, 2014 8:23 am

DuctTape wrote:Thanks, I tried this out tonight and it seems the lower the fps the better. 1fps produces the same video as the preview and up to 5fps seems to be okay for what
I need. Tomorrow I can work out a way of switching the frame rates for day and night, e.g. 25fps for day and 3fps for night.
Preview sets the fps value to 0, which means allow the exposure time to dictate the framerate. The codec should allow for this with bit rate control, but if you are saving the output then you will need to use the timestamps to avoid a varying framerate on replay.
Software Engineer at Raspberry Pi Trading. Views expressed are still personal views.
Please don't send PMs asking for support - use the forum.
I'm not interested in doing contracts for bespoke functionality - please don't ask.

studiomaxer3d
Posts: 7
Joined: Sat May 10, 2014 1:56 am

Re: RPi Cam Web Interface

Sun Jul 20, 2014 3:53 pm

Is there a way to get the stream out mjpg-streamer style? This seams to just output a jpg that must be refreshed in the browser on a loop.

I can run mjpg-streamer separately and pick the stream up that way, but it really slows things down to have rpicam web interface running and mjpg-streamer on top of that.

Any help would be greatly appreciated. My ultimate goal is to feed this into a mobile Air/Flex Mobile application. I want to read the raw data from a stream right into my application... I don't want to have to keep refreshing a jpg image.

noctividus
Posts: 4
Joined: Fri Jun 06, 2014 7:47 pm

Re: RPi Cam Web Interface

Sun Jul 20, 2014 6:38 pm

If you want to display the stream in an app, here's an option:
  • Load cam_pic.php? into a WebView
  • Override the onPageFinished method
  • call webview.reload(); in that method
This emulates the functionality of the page without all the javascript overhead. Works well for me.
Last edited by noctividus on Sun Jul 20, 2014 11:05 pm, edited 1 time in total.

studiomaxer3d
Posts: 7
Joined: Sat May 10, 2014 1:56 am

Re: RPi Cam Web Interface

Sun Jul 20, 2014 9:48 pm

noctividus wrote:If you want to display the stream in an app, here's an option:

[*]Load cam_pic.php? into a WebView
[*]Override the onPageFinished method
[*]call webview.reload(); in that method

This emulates the functionality of the page without all the javascript overhead. Works well for me.
Thanks, I will give this a try.

scrion
Posts: 2
Joined: Fri Jul 18, 2014 6:16 pm

Re: RPi Cam Web Interface

Mon Jul 21, 2014 12:25 am

Hi, I want to remove this from my Pi and stop the auto stream start each time to Pi restarts

I tried to remove with ./RPi_Cam_Browser_Control_Installer.sh remove but i keep getting this error: zsh: no such file or directory: ./RPi_Cam_Browser_Control_Installer.sh

Any help would be great, thanks!

Jakein
Posts: 7
Joined: Thu Jul 24, 2014 9:36 am

Re: RPi Cam Web Interface

Thu Jul 24, 2014 9:48 am

scrion wrote:Hi, I want to remove this from my Pi and stop the auto stream start each time to Pi restarts

I tried to remove with ./RPi_Cam_Browser_Control_Installer.sh remove but i keep getting this error: zsh: no such file or directory: ./RPi_Cam_Browser_Control_Installer.sh

Any help would be great, thanks!
That error is strange, have you ever seen it before? It doesn't really matter though as looking at the shell file all you need to do is execute these commands in order to remove the installation:

sudo killall raspimjpeg
sudo apt-get remove -y apache2 php5 libapache2-mod-php5 gpac motion
sudo apt-get autoremove -y

sudo rm -r /var/www/*
sudo rm /usr/local/bin/raspimjpeg
sudo rm /etc/raspimjpeg
sudo cp -r etc/rc_local_std/rc.local /etc/
sudo chmod 755 /etc/rc.local


Hope this helps

Jakein
Posts: 7
Joined: Thu Jul 24, 2014 9:36 am

Re: RPi Cam Web Interface

Thu Jul 24, 2014 9:56 am

Any of you guys have any clue how to get this working with a USB cam? I'm not sure if it's even possible but looking at the code it seems it's using OpenMAX indirectly through mmal. I'm not an expert on how these cameras work but if someone could point me in the right direction that would be awesome.

triplemdw
Posts: 12
Joined: Mon Jul 21, 2014 4:03 pm

Re: RPi Cam Web Interface

Thu Jul 24, 2014 10:13 am

Hi, I've tried to get the stream on VLC using the cam.jpg link as so :

Code: Select all

cvlc -vvv http://10.42.0.19:80/cam.jpg
However all I get is one picture and VLC stop after a few seconds, this is what i get on the console:

Code: Select all

[0x6f1118] main libvlc debug: searching plug-in modules
[0x6f1118] main libvlc debug: loading plugins cache file /usr/lib/vlc/plugins/plugins.dat
[0x6f1118] main libvlc debug: recursively browsing `/usr/lib/vlc/plugins'
[0x6f1118] main libvlc debug: saving plugins cache /usr/lib/vlc/plugins/plugins.dat
[0x6f1118] main libvlc debug: plug-ins loaded: 426 modules
[0x6f1118] main libvlc debug: opening config file (/home/mdw/.config/vlc/vlcrc)
[0x6f1118] main libvlc debug: translation test: code is "C"
[0x6f1118] main libvlc debug: CPU has capabilities MMX MMXEXT SSE SSE2 SSE3 SSSE3 SSE4.1 SSE4.2 FPU 
[0x71cd38] main input debug: Creating an input for 'Media Library'
[0x71cd38] main input debug: Input is a meta file: disabling unneeded options
[0x71cd38] main input debug: using timeshift granularity of 50 MiB, in path '/tmp'
[0x71cd38] main input debug: `file/xspf-open:///home/mdw/.local/share/vlc/ml.xspf' gives access `file' demux `xspf-open' path `/home/mdw/.local/share/vlc/ml.xspf'
[0x71cd38] main input debug: creating demux: access='file' demux='xspf-open' location='/home/mdw/.local/share/vlc/ml.xspf' file='/home/mdw/.local/share/vlc/ml.xspf'
[0x70cea8] main demux debug: looking for access_demux module matching "file": 20 candidates
[0x70cea8] main demux debug: no access_demux modules matched
[0x71cd38] main input debug: creating access 'file' location='/home/mdw/.local/share/vlc/ml.xspf', path='/home/mdw/.local/share/vlc/ml.xspf'
[0x9054d8] main access debug: looking for access module matching "file": 25 candidates
[0x9054d8] filesystem access debug: opening file `/home/mdw/.local/share/vlc/ml.xspf'
[0x9054d8] main access debug: using access module "filesystem"
[0x9061e8] main stream debug: Using stream method for AStream*
[0x9061e8] main stream debug: starting pre-buffering
[0x9061e8] main stream debug: received first data after 0 ms
[0x9061e8] main stream debug: pre-buffering done 296 bytes in 0s - 12567 KiB/s
[0x906448] main stream debug: looking for stream_filter module matching "any": 9 candidates
[0x906448] main stream debug: no stream_filter modules matched
[0x906448] main stream debug: looking for stream_filter module matching "record": 9 candidates
[0x906448] main stream debug: using stream_filter module "record"
[0x71cd38] main input debug: creating demux: access='file' demux='xspf-open' location='/home/mdw/.local/share/vlc/ml.xspf' file='/home/mdw/.local/share/vlc/ml.xspf'
[0x7b6c28] main demux debug: looking for demux module matching "xspf-open": 63 candidates
[0x7b6c28] playlist demux debug: using XSPF playlist reader
[0x7b6c28] main demux debug: using demux module "playlist"
[0x7b6f18] main demux meta debug: looking for meta reader module matching "any": 2 candidates
[0x7b6f18] lua demux meta debug: Trying Lua scripts in /home/mdw/.local/share/vlc/lua/meta/reader
[0x7b6f18] lua demux meta debug: Trying Lua scripts in /usr/lib/vlc/lua/meta/reader
[0x7b6f18] lua demux meta debug: Trying Lua playlist script /usr/lib/vlc/lua/meta/reader/filename.luac
[0x7b6f18] lua demux meta debug: Trying Lua scripts in /usr/share/vlc/lua/meta/reader
[0x7b6f18] main demux meta debug: no meta reader modules matched
[0x71cd38] main input debug: `file/xspf-open:///home/mdw/.local/share/vlc/ml.xspf' successfully opened
[0x7bfe98] main xml reader debug: looking for xml reader module matching "any": 1 candidates
[0x7bfe98] main xml reader debug: using xml reader module "xml"
[0x7b6c28] playlist demux debug: parsed 0 tracks successfully
[0x71cd38] main input debug: EOF reached
[0x7b6c28] main demux debug: removing module "playlist"
[0x906448] main stream debug: removing module "record"
[0x9054d8] main access debug: removing module "filesystem"
[0x704cf8] main playlist debug: creating audio output
[0x9061e8] main audio output debug: looking for audio output module matching "any": 6 candidates
[0x9061e8] pulse audio output debug: using library version 4.0.0
[0x9061e8] pulse audio output debug:  (compiled with version 4.0.0, protocol 28)
[0x9061e8] pulse audio output debug: connected locally to unix:/run/user/1000/pulse/native as client #32
[0x9061e8] pulse audio output debug: using protocol 28, server protocol 28
[0x9061e8] main audio output debug: using audio output module "pulse"
[0x9061e8] pulse audio output debug: adding sink 0: alsa_output.pci-0000_00_1b.0.analog-stereo (Built-in Audio Analog Stereo)
[0x704cf8] main playlist debug: keeping audio output
[0x704cf8] main playlist debug: adding item `http://10.42.0.19:80/cam.jpg' ( http://10.42.0.19:80/cam.jpg )
[0x704cf8] main playlist debug: no fetch required for (null) (art currently (null))
[0x901918] main interface debug: looking for interface module matching "hotkeys,none": 19 candidates
[0x901918] main interface debug: using interface module "hotkeys"
[0x9022d8] main interface debug: looking for interface module matching "globalhotkeys,none": 19 candidates
[0x9022d8] main interface debug: using interface module "globalhotkeys"
[0x7c55e8] main interface debug: looking for interface module matching "dbus,none": 19 candidates
[0x7c55e8] dbus interface debug: listening on dbus as: org.mpris.MediaPlayer2.vlc.instance14755
[0x7c55e8] main interface debug: using interface module "dbus"
[0x720c78] main interface debug: looking for interface module matching "dummy": 19 candidates
[0x720c78] dummy interface: using the dummy interface module...
[0x720c78] main interface debug: using interface module "dummy"
[0x704cf8] main playlist debug: processing request item: null, node: Playlist, skip: 0
[0x704cf8] main playlist debug: rebuilding array of current - root Playlist
[0x704cf8] main playlist debug: rebuild done - 1 items, index -1
[0x704cf8] main playlist debug: starting playback of the new playlist item
[0x704cf8] main playlist debug: resyncing on http://10.42.0.19:80/cam.jpg
[0x704cf8] main playlist debug: http://10.42.0.19:80/cam.jpg is at 0
[0x704cf8] main playlist debug: creating new input thread
[0x7fb378000a68] main input debug: Creating an input for 'http://10.42.0.19:80/cam.jpg'
[0x7fb378000a68] main input debug: using timeshift granularity of 50 MiB, in path '/tmp'
[0x7fb378000a68] main input debug: `http://10.42.0.19:80/cam.jpg' gives access `http' demux `' path `10.42.0.19:80/cam.jpg'
[0x7fb378000a68] main input debug: creating demux: access='http' demux='' location='10.42.0.19:80/cam.jpg' file='(null)'
[0x7fb370000e78] main demux debug: looking for access_demux module matching "http": 20 candidates
[0x7fb370000e78] main demux debug: no access_demux modules matched
[0x7fb378000a68] main input debug: creating access 'http' location='10.42.0.19:80/cam.jpg', path='(null)'
[0x7fb370000fe8] main access debug: looking for access module matching "http": 25 candidates
[0x7fb370000fe8] access_http access debug: querying proxy for http://10.42.0.19:80/cam.jpg
[0x7c55e8] dbus interface debug: Getting All properties
[0x7c55e8] dbus interface debug: Getting All properties
[0x7c55e8] dbus interface debug: Getting All properties
[0x7fb370000fe8] access_http access debug: no proxy
[0x7fb370000fe8] access_http access debug: http: server='10.42.0.19' port=80 file='/cam.jpg'
[0x7fb370000fe8] main access debug: net: connecting to 10.42.0.19 port 80
[0x7fb370000fe8] main access debug: connection succeeded (socket = 10)
[0x7fb370000fe8] access_http access debug: protocol 'HTTP' answer code 206
[0x7fb370000fe8] access_http access debug: Server: Apache/2.2.22 (Debian)
[0x7fb370000fe8] access_http access debug: this frame size=79529
[0x7fb370000fe8] access_http access debug: stream size=79529,pos=0,remaining=79529
[0x7fb370000fe8] access_http access debug: Connection: close
[0x7fb370000fe8] access_http access debug: Content-Type: image/jpeg
[0x7fb370000fe8] main access debug: using access module "access_http"
[0x7fb370003968] main stream debug: Using stream method for AStream*
[0x7fb370003968] main stream debug: starting pre-buffering
[0x7fb370003968] main stream debug: received first data after 0 ms
[0x7fb370003968] main stream debug: pre-buffering done 1024 bytes in 0s - 90909 KiB/s
[0x7fb370c03cd8] main stream debug: looking for stream_filter module matching "any": 9 candidates
[0x7fb370c03cd8] main stream debug: no stream_filter modules matched
[0x7fb370c03cd8] main stream debug: looking for stream_filter module matching "record": 9 candidates
[0x7fb370c03cd8] main stream debug: using stream_filter module "record"
[0x7fb378000a68] main input debug: creating demux: access='http' demux='' location='10.42.0.19:80/cam.jpg' file='(null)'
[0x7fb370c03f38] main demux debug: looking for demux module matching "any": 63 candidates
[0x7fb370c03f38] mod demux debug: MOD validation failed (ext=)
[0x7fb370c03f38] ts demux debug: TS module discarded (lost sync)
[0x7fb370c03f38] image demux debug: Detected image: Motion JPEG Video
[0x7fb370c26358] main image decoder debug: looking for decoder module matching "any": 39 candidates
[0x7fb370c26358] avcodec image decoder debug: trying to use direct rendering
[0x7fb370c26358] avcodec image decoder debug: allowing 4 thread(s) for decoding
[0x7fb370c26358] avcodec image decoder debug: avcodec codec (Motion JPEG Video) started
[0x7fb370c26358] main image decoder debug: using decoder module "avcodec"
[0x7fb370c26358] avcodec image decoder debug: using direct rendering
[0x7fb370c26358] main image decoder debug: removing module "avcodec"
[0x7fb370c26358] avcodec image decoder debug: ffmpeg codec (Motion JPEG Video) stopped
[0x7fb378000a68] main input debug: selecting program id=0
[0x7fb370c03f38] main demux debug: using demux module "image"
[0x7fb370c134c8] main decoder debug: looking for decoder module matching "any": 39 candidates
[0x7fb370c134c8] main decoder debug: using decoder module "rawvideo"
[0x7fb370c1bb68] main demux meta debug: looking for meta reader module matching "any": 2 candidates
[0x7fb370c1bb68] lua demux meta debug: Trying Lua scripts in /home/mdw/.local/share/vlc/lua/meta/reader
[0x7fb370c1bb68] lua demux meta debug: Trying Lua scripts in /usr/lib/vlc/lua/meta/reader
[0x7fb370c1bb68] lua demux meta debug: Trying Lua playlist script /usr/lib/vlc/lua/meta/reader/filename.luac
[0x7fb370c1bb68] lua demux meta debug: Trying Lua scripts in /usr/share/vlc/lua/meta/reader
[0x7fb370c1bb68] main demux meta debug: no meta reader modules matched
[0x7fb378000a68] main input debug: `http://10.42.0.19:80/cam.jpg' successfully opened
[0x7fb378000a68] main input debug: Buffering 0%
[0x7fb364001d48] main spu text debug: looking for text renderer module matching "any": 2 candidates
[0x7fb364001d48] freetype spu text debug: Building font databases.
[0x7fb364001d48] freetype spu text debug: Took 0 microseconds
Fontconfig warning: FcPattern object size does not accept value "0"
[0x7fb378000a68] main input debug: Buffering 10%
[0x7fb378000a68] main input debug: Buffering 20%
[0x7fb378000a68] main input debug: Buffering 30%
[0x7fb378000a68] main input debug: Buffering 40%
[0x7fb378000a68] main input debug: Buffering 50%
[0x7fb378000a68] main input debug: Buffering 60%
[0x7fb378000a68] main input debug: Buffering 70%
[0x7fb378000a68] main input debug: Buffering 80%
[0x7fb378000a68] main input debug: Buffering 90%
[0x7fb378000a68] main input debug: Buffering 100%
[0x7fb378000a68] main input debug: Stream buffering done (1100 ms in 6 ms)
Fontconfig warning: FcPattern object size does not accept value "0"
[0x7fb364001d48] freetype spu text debug: Using Serif Bold as font from file /usr/share/fonts/truetype/dejavu/DejaVuSans.ttf
[0x7fb364001d48] freetype spu text debug: using fontsize: 2
[0x7fb364001d48] main spu text debug: using text renderer module "freetype"
[0x7fb364003ea8] main scale debug: looking for video filter2 module matching "any": 55 candidates
[0x7fb364003ea8] swscale scale debug: 32x32 chroma: YUVA -> 16x16 chroma: RGBA with scaling using Bicubic (good quality)
[0x7fb364003ea8] main scale debug: using video filter2 module "swscale"
[0x7fb36405a198] main scale debug: looking for video filter2 module matching "any": 55 candidates
[0x7fb36405a198] yuvp scale debug: YUVP to YUVA converter
[0x7fb36405a198] main scale debug: using video filter2 module "yuvp"
[0x7fb364000958] main video output debug: Deinterlacing available
[0x7fb364000958] main video output debug: deinterlace 0, mode blend, is_needed 0
[0x7fb364000958] main video output debug: Opening vout display wrapper
[0x7fb35c001248] main vout display debug: looking for vout display module matching "any": 12 candidates
[0x7fb35c0040a8] main window debug: looking for vout window xid module matching "any": 4 candidates
[0x7fb35c0040a8] main window debug: using vout window xid module "xcb_window"
[0x7fb35c006ad8] main inhibit debug: looking for inhibit module matching "any": 2 candidates
[0x7fb35c006ad8] dbus_screensaver inhibit debug: found service org.freedesktop.ScreenSaver
[0x7fb35c006ad8] main inhibit debug: using inhibit module "dbus_screensaver"
[0x7fb35c001248] xcb_xv vout display debug: connected to X11.0 server
[0x7fb35c001248] xcb_xv vout display debug:  vendor : The X.Org Foundation
[0x7fb35c001248] xcb_xv vout display debug:  version: 11501000
[0x7fb35c001248] xcb_xv vout display debug: using screen 0x82
[0x7fb35c001248] xcb_xv vout display debug: using XVideo extension v2.2
[0x7fb35c001248] xcb_xv vout display debug: using adaptor Intel(R) Textured Video
[0x7fb35c001248] xcb_xv vout display debug: using port 75
[0x7fb35c001248] xcb_xv vout display debug: using image format 0x30323449
[0x7fb35c001248] xcb_xv vout display debug: using X11 visual ID 0x20 (depth: 24)
[0x7fb35c001248] xcb_xv vout display debug: using X11 window 0x04000000
[0x7fb35c001248] xcb_xv vout display debug: using X11 graphic context 0x04000002
[0x7fb35c001248] main vout display debug: VoutDisplayEvent 'fullscreen' 0
[0x7fb35c001248] main vout display debug: VoutDisplayEvent 'resize' 512x288 window
[0x7fb35c001248] main vout display debug: using vout display module "xcb_xv"
[0x7fb364000958] main video output debug: original format sz 512x288, of (0,0), vsz 512x288, 4cc J420, sar 1:1, msk r0x0 g0x0 b0x0
[0x7fb364001d48] main spu text debug: removing module "freetype"
[0x7fb364001d48] main spu text debug: looking for text renderer module matching "any": 2 candidates
[0x7fb364001d48] freetype spu text debug: Building font databases.
[0x7fb364001d48] freetype spu text debug: Took 0 microseconds
Fontconfig warning: FcPattern object size does not accept value "0"
Fontconfig warning: FcPattern object size does not accept value "0"
[0x7fb364001d48] freetype spu text debug: Using Serif Bold as font from file /usr/share/fonts/truetype/dejavu/DejaVuSans.ttf
[0x7fb364001d48] freetype spu text debug: using fontsize: 2
[0x7fb364001d48] main spu text debug: using text renderer module "freetype"
[0x7fb370c134c8] main decoder debug: End of video preroll
[0x7fb370c134c8] main decoder debug: Received first picture
[0x7fb35c01a6c8] main blend debug: looking for video blending module matching "any": 1 candidates
[0x7fb35c01a6c8] main blend debug: using video blending module "blend"
[0x7fb35c001248] xcb_xv vout display debug: display is visible
[0x7fb35c001248] main vout display error: Failed to resize display
[0x7fb378000a68] main input debug: Decoder buffering done in 196 ms
[0x7fb35c001248] main vout display debug: VoutDisplayEvent 'resize' 512x288 window
[0x7fb35c001248] main vout display debug: auto hiding mouse cursor
[0x7fb378000a68] main input debug: EOF reached
[0x7fb378000a68] main input debug: waiting decoder fifos to empty
[0x7fb378000a68] main input debug: waiting decoder fifos to empty
[0x7fb378000a68] main input debug: waiting decoder fifos to empty
[0x7fb378000a68] main input debug: waiting decoder fifos to empty
[0x7fb378000a68] main input debug: waiting decoder fifos to empty
[0x7fb378000a68] main input debug: waiting decoder fifos to empty
[0x7fb378000a68] main input debug: waiting decoder fifos to empty
[0x7fb378000a68] main input debug: waiting decoder fifos to empty
[0x7fb378000a68] main input debug: waiting decoder fifos to empty
[0x7fb378000a68] main input debug: waiting decoder fifos to empty
[0x704cf8] main playlist debug: finished input
[0x7fb370000fe8] main access debug: object waitpipe triggered
[0x7fb370c134c8] main decoder debug: removing module "rawvideo"
[0x7fb370c134c8] main decoder debug: killing decoder fourcc `J420', 0 PES in FIFO
[0x704cf8] main playlist debug: saving a free vout
[0x704cf8] main playlist debug: reusing provided vout
[0x7fb370c03f38] main demux debug: removing module "image"
[0x7fb370c03cd8] main stream debug: removing module "record"
[0x7fb370000fe8] main access debug: removing module "access_http"
[0x7fb378000a68] main input debug: Program doesn't contain anymore ES
[0x704cf8] main playlist debug: dead input
[0x704cf8] main playlist debug: changing item without a request (current 0/1)
[0x704cf8] main playlist debug: nothing to play
[0x7fb364000958] main video output debug: destroying useless vout
[0x7fb35c01a6c8] main blend debug: removing module "blend"
[0x7fb35c001248] main vout display debug: removing module "xcb_xv"
[0x7fb35c006ad8] dbus_screensaver inhibit debug: got cookie 801185345
[0x7fb35c006ad8] main inhibit debug: removing module "dbus_screensaver"
[0x7fb364001d48] main spu text debug: removing module "freetype"
[0x7fb36405a198] main scale debug: removing module "yuvp"
[0x7fb364003ea8] main scale debug: removing module "swscale"
^C[0x6f1118] main libvlc debug: removing all interfaces
[0x6f1118] main libvlc debug: exiting
[0x720c78] main interface debug: removing module "dummy"
[0x7c55e8] main interface debug: removing module "dbus"
[0x9022d8] main interface debug: removing module "globalhotkeys"
[0x901918] main interface debug: removing module "hotkeys"
[0x704cf8] main playlist debug: destroying
[0x704cf8] main playlist debug: deactivating the playlist
[0x9061e8] main audio output debug: removing module "pulse"
[0x721048] main playlist export debug: saving Media Library to file /home/mdw/.local/share/vlc/ml.xspf
[0x721048] main playlist export debug: looking for playlist export module matching "export-xspf": 4 candidates
[0x721048] main playlist export debug: using playlist export module "export"
[0x721048] main playlist export debug: removing module "export"
[0x6f1118] main libvlc debug: removing stats
Can anyone help me?

User avatar
PeterO
Posts: 4296
Joined: Sun Jul 22, 2012 4:14 pm

Re: RPi Cam Web Interface

Thu Jul 24, 2014 2:53 pm

I've just been reading this thread because I'm suffering from the "freezes" problems , but since my camera is plugged into a new Pi B+ I don't think using old firmware is an option for me as the B+ needs newest firmware for the USB and Ethernet to work at all !

Is anyone working on getting this otherwise great project to work reliably on the B+ ?

PeterO
Discoverer of the PI2 XENON DEATH FLASH!
Interests: C,Python,PIC,Electronics,Ham Radio (G0DZB),Aeromodelling,1960s British Computers.
"The primary requirement (as we've always seen in your examples) is that the code is readable. " Dougie Lawson

mimi123
Posts: 583
Joined: Thu Aug 22, 2013 3:32 pm

Re: RPi Cam Web Interface

Thu Jul 24, 2014 4:33 pm

PeterO wrote:I've just been reading this thread because I'm suffering from the "freezes" problems , but since my camera is plugged into a new Pi B+ I don't think using old firmware is an option for me as the B+ needs newest firmware for the USB and Ethernet to work at all !

Is anyone working on getting this otherwise great project to work reliably on the B+ ?

PeterO
You can set GPCLK0 to 20MHz , after that Ethernet works great. Just a sample C program in /etc/crontab.

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

Re: RPi Cam Web Interface

Thu Jul 24, 2014 5:11 pm

mimi123 wrote:
PeterO wrote: Is anyone working on getting this otherwise great project to work reliably on the B+ ?

PeterO
You can set GPCLK0 to 20MHz , after that Ethernet works great. Just a sample C program in /etc/crontab.
Uh?
As humans we have been the same for a very very long time, technology changes how we do, not who we are as people.

mimi123
Posts: 583
Joined: Thu Aug 22, 2013 3:32 pm

Re: RPi Cam Web Interface

Thu Jul 24, 2014 6:11 pm

Mettauk wrote:
mimi123 wrote:
PeterO wrote: Is anyone working on getting this otherwise great project to work reliably on the B+ ?

PeterO
You can set GPCLK0 to 20MHz , after that Ethernet works great. Just a sample C program in /etc/crontab.
Uh?
I think that WiringPi can manage clocks. Set the clock GPCLK0 to 20MHz. Add that to your /etc/init.d/rcS. After that, older blobs works fine.

User avatar
PeterO
Posts: 4296
Joined: Sun Jul 22, 2012 4:14 pm

Re: RPi Cam Web Interface

Thu Jul 24, 2014 6:21 pm

I do not believe that is the only thing that is changed in the firmware for the B+.
PeterO
Discoverer of the PI2 XENON DEATH FLASH!
Interests: C,Python,PIC,Electronics,Ham Radio (G0DZB),Aeromodelling,1960s British Computers.
"The primary requirement (as we've always seen in your examples) is that the code is readable. " Dougie Lawson

mimi123
Posts: 583
Joined: Thu Aug 22, 2013 3:32 pm

Re: RPi Cam Web Interface

Thu Jul 24, 2014 7:10 pm

PeterO wrote:I do not believe that is the only thing that is changed in the firmware for the B+.
PeterO
It is the only thing. I even disassembled the firmware to verify it.

User avatar
PeterO
Posts: 4296
Joined: Sun Jul 22, 2012 4:14 pm

Re: RPi Cam Web Interface

Thu Jul 24, 2014 7:13 pm

What about the changed gpio assignements and the fixes put in last weekend to fix the spurious power-on problems on B+ ?
PeterO
Discoverer of the PI2 XENON DEATH FLASH!
Interests: C,Python,PIC,Electronics,Ham Radio (G0DZB),Aeromodelling,1960s British Computers.
"The primary requirement (as we've always seen in your examples) is that the code is readable. " Dougie Lawson

Doktoren
Posts: 3
Joined: Tue Aug 14, 2012 2:21 pm

Re: RPi Cam Web Interface

Thu Jul 24, 2014 7:22 pm

Thanks for a great project! I just spend the evening setting up the cam.
I was able to run your commands and install everything (wow so elite) I´m an absolute newbie in Linux. I have only played around with RetroPie and made a XMBC media player before and it didnt take much work in the console.
Im fairly experienced working in windows and dos, but linux is a new adventure for me - so please excuse my lack of knowlegde.

Anyways now that my cam is set up with a password and i have done some portforwarding so i can access it from my vacation if my alarm goes off - my next wish is to enable the motion detection and save the video or maybe a few pics somewhere outside my house. I would prefer OneDrive, Dropbox or something similiar.

Does anyone have a guide for doing that? I have tried searching this topic without luck.

Thanks in advance! And a big thank you to the entire Pi community.

mimi123
Posts: 583
Joined: Thu Aug 22, 2013 3:32 pm

Re: RPi Cam Web Interface

Thu Jul 24, 2014 7:32 pm

PeterO wrote:What about the changed gpio assignements and the fixes put in last weekend to fix the spurious power-on problems on B+ ?
PeterO
The GPIO assignements have any modifications in the blob. It's Linux's job (except for the low-voltage overlay, not availble at the time of my analysis and not needed to boot and work well).
The fixes of last weekend were not availble at the time of my analysis (and they need only modding bootcode.bin and not start.elf).
All the other fixes than the GPCLK0 were developed post the B+ launch.

gsh
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 1347
Joined: Sat Sep 10, 2011 11:43 am

Re: RPi Cam Web Interface

Thu Jul 24, 2014 8:41 pm

No you're wrong, there are many many changes that have been made over the last six months to get the B+ working, just because we released the hardware in the last few days doesn't mean the software updates haven't been available for longer.

Gordon
--
Gordon Hollingworth PhD
Raspberry Pi - Director of Software Engineering

User avatar
PeterO
Posts: 4296
Joined: Sun Jul 22, 2012 4:14 pm

Re: RPi Cam Web Interface

Thu Jul 24, 2014 8:49 pm

Thanks Gordon, I thought that was the case. Do you have any ideas about the problems with the camera freezes that have been discussed in this long thread ?

PeterO
Discoverer of the PI2 XENON DEATH FLASH!
Interests: C,Python,PIC,Electronics,Ham Radio (G0DZB),Aeromodelling,1960s British Computers.
"The primary requirement (as we've always seen in your examples) is that the code is readable. " Dougie Lawson

gsh
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 1347
Joined: Sat Sep 10, 2011 11:43 am

Re: RPi Cam Web Interface

Thu Jul 24, 2014 8:53 pm

Can find anything useful and do not have the time to read through 35 pages...

Is there a more succinct description?

Gordon
--
Gordon Hollingworth PhD
Raspberry Pi - Director of Software Engineering

User avatar
RichShumaker
Posts: 168
Joined: Tue Jul 31, 2012 4:16 pm
Location: Sunny Southern CA near downtown LA
Contact: Website Facebook Google+ Twitter YouTube

Re: RPi Cam Web Interface

Thu Jul 24, 2014 9:16 pm

6by9 wrote:
Mettauk wrote:Just setting the basics of the RPi Cam Interface up on a new B+ board and sadly the freezing problem persists!

So I tried the recomended firmware from the wiki http://elinux.org/RPi-Cam-Web-Interface

Code: Select all

sudo rpi-update 8660fe5152f6353dec61422808835dbcb49fc8b2
Sadly this does not seem to work with the new B+ board :?

Sugestions welcome, nay, desperatly needed...
Help us then!
I have tried reproducing issues following instructions from BoehserWolf on http://www.raspberrypi.org/forums/viewt ... 43&t=80463 and I end up with glibc reporting memory corruption (it may be a hardware issue, but I haven't had any other issues on this board). If I can't get a working system to reproduce the issue on, then I can't take it forward and investigate.

If you have a known working image on 8660fe that then fails on top of tree then please share that with us (and I do mean a copy of the entire image). Image the SD card, zip it up, and stuff it somewhere accessible (preferably not dropbox as our IT department block access to it)

NB I do NOT normally follow this thread as there are too many app install help requests pinging around. I am following the other thread, so please respond there.
PeterO and Gordon - 6X9 discusses that they are trying to track this issue down and have called for a disc image if your system is doing this.
Rich Shumaker
http://www.instructables.com/id/Pi-Zero-W-NoIR-8MP-Camera-Build-Overview-Introduct/

Return to “Camera board”