Raspberry Pi Camera V2 Settings?

nooooooooooooooooo lol
i must have the nice fancy smooth ones :slight_smile:

i will erase and reinstall the octolapse plugin

see if that does anything for me :slight_smile:

thanks

dave

The Octolapse plugin author is active both in these forums and on [github].(https://formerlurker.github.io/Octolapse/)
Open an issue there and I'm sure some solution can be found.

1 Like

It's not changing Z!??? ouch... Can you create an issue here? I've never heard of this before, so I'm very interested in figuring it out.

Please be sure to export your settings (gear icon on the octolapse tab->export settings), and supply a sample gcode file. I'll run it through the debugger and will let you know what I find.

ok will try this again now for you mate
i disabled the plugin and was ok
so now i will install and setup the plugin and try again
im correct in the verbose settings is all i need to enable when i slice my models yes in prusa slicer

thanks

dave

EDIT
ok so i uninstalled octolapse
cleared all settings in doing so
rebooted
and reinstalled and updated all profiles
set it all up again
but still i get no Z adjust after it takes the pic (pics taking fine now) :slight_smile:

will get the data over to you, not sure how i add the gcode file also
will try

dave

EDIT2
github is not allowing me to attach the 2 files
1 being json file for the backed up settings
and second my sample gcode file

ive uploaded it to my MEGA
https://mega.nz/#!5kN3HY4Z!ONQNwetHM-e1muFECyYApF3CSVa8hxIJbGAQGlk36PU

hope that works

thanks

dave

any news guys, its driving me crazy lol
just cannot get it to z adjust after a shot :frowning:

thanks

dave


could these have anything to do with it ?
cant seem to get them to change to green ticks !

Hello everyone, I've been trying for days with both a PICam V2 and a PiCam V1.

Every time I set the frame rate higher than 10, the Firefox 74.0 (64-bit) tab almost freezes. It takes up loads of CPU and RAM until I close Firefox. The Octopi page only shows "webcam stream loading".

The stream itself runs wonderfully via the VLC when I connect to ... / webcam /? Action = stream.

Internet Explorer 11 shows me "Webcam stream not loaded
It might not be configured correctly or require authentication. You can change the URL of the stream under "Settings"> "Webcam & Timelapse"> "Webcam"> "Stream URL". If you don't have a webcam you can also just disable webcam support there. "

The Chrome on the cell phone shows the stream, but jerky.

But since I mostly work with Firefox on the Windows PC, does anyone have any idea how I can get the stream embedded in the Octoprint page with a high frame rate?

Thanks for tips.

I tested opera portable. This works perfect, even with 40 fps.

I had previously considered embedding the VLC on the octoprint website, but after testing the Opera this is no longer necessary.
In the future I will only use Opera on Windows to access the website. Firefox for Windows does not appear to be suitable for higher frame rates / data rates.

Firefox bombs when i have my camera set to 30fps. It is definitely a bug. Chrome and edge are fine.

I'm sorry, but this is 100% incorrect. The little blue/green sticker with the tab that comes on the lens is ONLY cheap plastic lens protector film for protection during shipping and has zero photographic value. This film should 100% be removed from the lens, as the only thing it can do is interfere with image quality. You can see the same thing also comes on the regular camera..

The blue square that is included is an IR filter and actually blocks some visible and UV light, allowing IR light through to reach the lens. It's use is for IR specific photography (you may have seen the popular white leaves on trees photos as one example), as described a bit here:

Neither the greenish circular protector sticker, nor the square blue IR filter are a proper fix for the pink/purple tint. You do not want to use the blue filter when doing normal daylight photography. The issue is likely due to auto white balance issues in software, which thankfully, it looks like the next version of Octolapse will have settings to correct.

I recently installed v.17 after having v.13 installed for several years and also ran into this issue. The only change I made was swapping microSD cards with different versions of OctoPi.

Well, here we are in times of the lockdown. The cheapest on eBay right now is $125.

Yeah, it is incredible isn't it? My dad got a knockoff of the 920 that he claims is equivalent for way less. I will see if I can get hold of one for testing.

1 Like

I found the same thing. Today I am "upgrading" from C920 to a raspberry camera.
It seems that if you set the resolution values to be a 16:9 set, you get the zoom issue.
If you set it to a 4:3 set, it's fine. Just that simple from what I can tell.

Is the raspi cam a 4:3 camera?
Also, how did you get to the settings pages in the screenshots above, where you can set the camera controls, I have looked everywhere in octoprint, and the webcam settings page is basic, and I can't find that page anywhere else.

Thanks for all the great information!

Dave

Hi All,
having the same issue that the one who created this post, I have tinkered a bit and have some beginning of a solution.

reading this : https://www.raspberrypi.org/documentation/raspbian/applications/camera.md it say :
image

SO .. I give a try to this weird resolution going in /boot/octopi.txt this way :

### Windows users: To edit this file use Notepad++, VSCode, Atom or SublimeText.
### Do not use Notepad or WordPad.

### MacOSX users: If you use Textedit to edit this file make sure to use
### "plain text format" and "disable smart quotes" in "Textedit > Preferences"

### Configure which camera to use
#
# Available options are:
# - auto: tries first usb webcam, if that's not available tries raspi cam
# - usb: only tries usb webcam
# - raspi: only tries raspi cam
#
# Defaults to auto
#
camera="raspi"

### Additional options to supply to MJPG Streamer for the USB camera
#
# See https://faq.octoprint.org/mjpg-streamer-config for available options
#
# Defaults to a resolution of 640x480 px and a framerate of 10 fps
#
camera_usb_options="-r 1640x1232 -f 10"

### Additional webcam devices known to cause problems with -f
#
# Apparently there a some devices out there that with the current
# mjpg_streamer release do not support the -f parameter (for specifying
# the capturing framerate) and will just refuse to output an image if it
# is supplied.
#
# The webcam daemon will detect those devices by their USB Vendor and Product
# ID and remove the -f parameter from the options provided to mjpg_streamer.
#
# By default, this is done for the following devices:
#   Logitech C170 (046d:082b)
#   GEMBIRD (1908:2310)
#   Genius F100 (0458:708c)
#   Cubeternet GL-UPC822 UVC WebCam (1e4e:0102)
#
# Using the following option it is possible to add additional devices. If
# your webcam happens to show above symptoms, try determining your cam's
# vendor and product id via lsusb, activating the line below by removing # and
# adding it, e.g. for two broken cameras "aabb:ccdd" and "aabb:eeff"
#
#   additional_brokenfps_usb_devices=("aabb:ccdd" "aabb:eeff")
#
# If this fixes your problem, please report it back so we can include the device
# out of the box: https://github.com/guysoft/OctoPi/issues
#
#additional_brokenfps_usb_devices=()

### Additional options to supply to MJPG Streamer for the RasPi Cam
#
# See https://faq.octoprint.org/mjpg-streamer-config for available options
#
# Defaults to 10fps
#
camera_raspi_options="-x 1640 -y 1232 -fps 10"

### Configuration of camera HTTP output
#
# Usually you should NOT need to change this at all! Only touch if you
# know what you are doing and what the parameters mean.
#
# Below settings are used in the mjpg-streamer call like this:
#
#   -o "output_http.so -w $camera_http_webroot $camera_http_options"
#
# Current working directory is the mjpg-streamer base directory.
#
camera_http_webroot="./www"
camera_http_options=""

AND going /boot/config.txt this one way :

# For more options and information see
# http://rpf.io/configtxt
# Some settings may impact device functionality. See link above for details

# uncomment if you get no picture on HDMI for a default "safe" mode
#hdmi_safe=1

# uncomment this if your display has a black border of unused pixels visible
# and your display can output without overscan
#disable_overscan=1

# uncomment the following to adjust overscan. Use positive numbers if console
# goes off screen, and negative if there is too much border
#overscan_left=16
#overscan_right=16
#overscan_top=16
#overscan_bottom=16

# uncomment to force a console size. By default it will be display's size minus
# overscan.
#framebuffer_width=1280
#framebuffer_height=720

# uncomment if hdmi display is not detected and composite is being output
hdmi_force_hotplug=1

# uncomment to force a specific HDMI mode (this will force VGA)
hdmi_group=2
hdmi_mode=82

# uncomment to force a HDMI mode rather than DVI. This can make audio work in
# DMT (computer monitor) modes
#hdmi_drive=2

# uncomment to increase signal to HDMI, if you have interference, blanking, or
# no display
#config_hdmi_boost=4

# uncomment for composite PAL
#sdtv_mode=2

#uncomment to overclock the arm. 700 MHz is the default.
#arm_freq=800

# Uncomment some or all of these to enable the optional hardware interfaces
dtparam=i2c_arm=off
#dtparam=i2s=on
dtparam=spi=off

# Uncomment this to enable infrared communication.
#dtoverlay=gpio-ir,gpio_pin=17
#dtoverlay=gpio-ir-tx,gpio_pin=18

# Additional overlays and parameters are documented /boot/overlays/README

# Enable audio (loads snd_bcm2835)
dtparam=audio=on

[pi4]
# Enable DRM VC4 V3D driver on top of the dispmanx display stack
#dtoverlay=vc4-fkms-v3d
max_framebuffers=2

[all]
#dtoverlay=vc4-fkms-v3d
enable raspicam
start_x=1
gpu_mem=256
enable_uart=1
[all]
dtoverlay=vc4-kms-v3d

AND it works !

Quickly, mods are :
/boot/octopi.txt

# Defaults to auto
#
camera="raspi"

### Additional options to supply to MJPG Streamer for the USB camera

camera_usb_options="-r 1640x1232 -f 10"

### Additional options to supply to MJPG Streamer for the RasPi Cam

camera_raspi_options="-x 1640 -y 1232 -fps 10"

### Configuration of camera HTTP output

camera_http_webroot="./www"
camera_http_options=""

(according to FormerLurker Octolapse tutorial video)
and in

/boot/config.txt

[all]
(…)
enable raspicam
gpu_mem=256

Sorry for I'm so bad at BBcode and presenting things.

Hope this will help one's

I'm a bit sorry that it wont work with octolapse as it says :

It's camera full wide with a better resolution but something is wrong somewhere.

I guess I now have to inquire about mjp-streamer parameter and octolapse ones.

Any help welcome.

I think FormerLurker recommends making it this (counter-intuitive)

camera="usb"

Yep, absolutely, but, in fact this refuse to work for me at other resolution than "standard" (720P or 1080P).
and has @epiic reason to start this post, I want full camera FOV. assuming they are only in mode 2,3,4 or 5 in raspicam V2 that are verry uncommon resolution.

in my case, I'm studying to pass setting of the camera thru added mjpg-stream raspicam option in octopi.txt, looks promising.

So have done many many many too much tests today.

with raspi, with usb, various fps etc.

my conclusion is : you cannot use raspicam v2 specific resolution under USB driver wich is using

input_uvc.so

as resolutions here seems to be pre-defined and none correpond to full raspicam FOV mode.

while using USB mode in octolapse you can have access to dynamically modify settings of the cam.
that you cannont in raspi mode.

in fact raspi mode is the only one that can use the full raspicam FOV, even at its max resolution, next come the ffmpeg encoding troubles, but it works at binned resolution.

I'm guessing that "truth is out there" somewhere in the old mjpg-streamer development and in mmal library of raspi.

I say, that raspi uses 3 video pipeline, every one of each should be used in it's own purpose, preview for streaming, still for timelapse and video for recording, but mjpg-stremer won't go so far.

Not understanding why you can't get the full FOV to work. I just did a test at 1640x1232, and it works fine:

isn't the problem really that at full FOV the native raspicam aspect ratio is 1:1.33? if you want full FOV 16:9, you need a camera that does that natively.

So, with "raspi" ful FOV works at 3280x2464 and 1640x1232, but despite I strictly follow your magnificent tutorial on setting as raspicam as "usb", streaming never end loading when using these resolution AND "usb" settings.

Raspi works full res and binned res but can't get parameter (control.htm) relayed by Octolapse neither mjpg-streamer.

then raspi as "usb" works really fine at 1280x720 (>40 fps) or 1920x1080 res and with octolapse parametre working but, with ugly and too narrow cropped FOV (that is due to the rascpicam hardware).

just don't understand why either ... one exclude the other. "usb"=crop + param <=> "raspi"=full.FOV-param !

I'll go on a better camera hardware.