Strona 1 z 2

Octoprint problem z kamerą PK-335

: 28 cze 2017, 19:44
autor: krys
Witam mam problem z kamera https://www.morele.net/kamera-interneto ... 335-59947/ nie mogę jej wg uruchomić czy ktoś z kolegów moze mi pomóc ponieważ nie mam juz pomysłów

Re: Octoprint problem z kamerą PK-335

: 28 cze 2017, 19:54
autor: kretu
Krys jak ktoś ci ma pomóc to wklej tutaj chociaż błąd który ci zaznaczyłem w logach bo on jest istotny a nie model kamery bo prawdopodobieństwo że ktoś ma taką kamerę jak twoja jest raczej nikłe...

Re: Octoprint problem z kamerą PK-335

: 28 cze 2017, 20:35
autor: krys
już podsyłam :)

Zawartość octopi.txt :

Kod: Zaznacz cały

### 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="usb"

### Additional options to supply to MJPG Streamer for the USB camera
#
# See https://github.com/foosel/OctoPrint/wiki/MJPG-Streamer-configuration
# for available options
#
# Defaults to a resolution of 640x480 px and a framerate of 10 fps
#
camera_usb_options="-r 640x480 -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)
#
# 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 as shown examplatory.
#
# If this fixes your problem, please report it back so we can include the device
# out of the box.
#
#additional_brokenfps_usb_devices=("046d:082b" "aabb:ccdd")

### Additional options to supply to MJPG Streamer for the RasPi Cam
#
# See https://github.com/foosel/OctoPrint/wiki/MJPG-Streamer-configuration
# for available options
#
# Defaults to 10fps
#
#camera_raspi_options="-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-octopi"
#camera_http_options="-n"


Błąd z cawebcamd.log:
Z parametrem -y
logger: Starting USB webcam
Running ./mjpg_streamer -o output_http.so -w ./www-octopi -n -i input_uvc.so -r 640x480 -y -f 10
MJPG Streamer Version.: 2.0
 i: Using V4L2 device.: /dev/video0
 i: Desired Resolution: 640 x 480
 i: Frames Per Second.: 10
 i: Format............: YUYV
 i: JPEG Quality......: 80
 i: TV-Norm...........: DEFAULT
 i: Could not obtain the requested pixelformat: YUYV , driver gave us: JPEG
    ... will try to handle this by checking against supported formats. 
 Init v4L2 failed !! exit fatal 
 i: init_VideoIn failed
 
 Bez parametru -y
 logger: Starting USB webcam
Running ./mjpg_streamer -o output_http.so -w ./www-octopi -n -i input_uvc.so -r 640x480
MJPG Streamer Version.: 2.0
 i: Using V4L2 device.: /dev/video0
 i: Desired Resolution: 640 x 480
 i: Frames Per Second.: -1
 i: Format............: JPEG
 i: TV-Norm...........: DEFAULT
 i: Could not obtain the requested pixelformat: MJPG , driver gave us: JPEG
    ... will try to handle this by checking against supported formats. 
 Init v4L2 failed !! exit fatal 
 i: init_VideoIn failed
 
dodatkowo:

pi@octopi:~ $ v4l2-ctl --list-formats-ext
ioctl: VIDIOC_ENUM_FMT
        Index       : 0
        Type        : Video Capture
        Pixel Format: 'JPEG' (compressed)
        Name        : JFIF JPEG
                Size: Discrete 160x120
                Size: Discrete 320x240
                Size: Discrete 640x480
// Takie długie cosie to lepiej między znaczniki "code" wrzucać. ;)
// FR

Re: Octoprint problem z kamerą PK-335

: 28 cze 2017, 21:53
autor: Marcin1415
Tutaj masz listę kamerek które działają.https://github.com/foosel/OctoPrint/wik ... wn-to-work Zanim kupiłem kamerkę sprawdziłem. Jest jeszcze jedna lista ale musisz poszukać samemu.

Re: Octoprint problem z kamerą PK-335

: 29 cze 2017, 20:56
autor: krys
doradzi ktoś jak zrobic zeby kamerka działała ?

Re: Octoprint problem z kamerą PK-335

: 01 lip 2017, 13:27
autor: McKee
Wyrzuć, kup coś z listy podanej przez Marcina.
Możesz próbować zjechać niżej z parametrami (np.: -r 320x240 -f 5), ale moim zdaniem szkoda zachodu - lepiej kupić coś co ma lepszą rozdzielczość (HD) i jest sprawdzone że działa (nawet używane - obraz będzie na pewno lepszy).

Re: Octoprint problem z kamerą PK-335

: 01 lip 2017, 13:37
autor: Kopytko
Kup oryginalna kamerw.. podlacz i zadziala sama.

Re: Octoprint problem z kamerą PK-335

: 01 lip 2017, 13:38
autor: dragonn
a moim zdaniem wywal parametr -y i tyle, powinno zadziałać.

Re: Octoprint problem z kamerą PK-335

: 01 lip 2017, 15:53
autor: Zepco
A polecenie

Kod: Zaznacz cały

fswebcam image.jpg
tworzy Ci plik ze zrzutem z kamery?

Re: Octoprint problem z kamerą PK-335

: 01 lip 2017, 16:17
autor: kretu
dragoon testowane masz logi bez y również, jak i na niskich parametrach 320x240 -f 1, tez polecam kamerę zmienić zamiast walczyć... Ja swoją podobną ale jednak dającą normalny format na wyjściu ożywiłem ale jakość była tak nędzna że odechciało mi się nawet jej montować przy obudowie.