Octoprint problem z kamerą PK-335

Krańcówki, czujniki, oświetlenie...
krys
Konto z ograniczeniami
Postów w temacie: 3
Posty: 18
Rejestracja: 21 cze 2017, 12:49
Drukarka: Mendel90
x 1

Octoprint problem z kamerą PK-335

Post 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
kretu
Konto z ograniczeniami
Postów w temacie: 2
Posty: 570
Rejestracja: 18 kwie 2017, 20:56
Lokalizacja: Szczecin
Drukarka: Bizer
x 105

Re: Octoprint problem z kamerą PK-335

Post 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...
krys
krys
Konto z ograniczeniami
Postów w temacie: 3
Posty: 18
Rejestracja: 21 cze 2017, 12:49
Drukarka: Mendel90
x 1

Re: Octoprint problem z kamerą PK-335

Post 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
Awatar użytkownika
Marcin1415
Postów w temacie: 1
Posty: 433
Rejestracja: 19 kwie 2016, 18:44
Lokalizacja: Kielce
x 48

Re: Octoprint problem z kamerą PK-335

Post 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.
krys, Zepco
krys
Konto z ograniczeniami
Postów w temacie: 3
Posty: 18
Rejestracja: 21 cze 2017, 12:49
Drukarka: Mendel90
x 1

Re: Octoprint problem z kamerą PK-335

Post autor: krys »

doradzi ktoś jak zrobic zeby kamerka działała ?
Awatar użytkownika
McKee
Zasłużony
Postów w temacie: 1
Posty: 2630
Rejestracja: 20 kwie 2016, 23:00
x 717

Re: Octoprint problem z kamerą PK-335

Post 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).
Motto na dziś: "How may I abuse you?"
Awatar użytkownika
Kopytko
Zasłużony
Postów w temacie: 1
Posty: 3450
Rejestracja: 19 kwie 2016, 11:27
Lokalizacja: Oleśnica
Drukarka: P3Steel v4.00
x 565

Re: Octoprint problem z kamerą PK-335

Post autor: Kopytko »

Kup oryginalna kamerw.. podlacz i zadziala sama.
:arrow: Pozdrawiam Patryk.
Aktualne drukarki :
:idea: Prusa i3 w wersji p3steel v1.00 :idea: Prusa i3 2 wersji p3steel v4.00 long :idea: Replicator 1 by CTC :idea: Delta Kossel :idea:UM2+extended
W budowie : COSIEK 70x70x70 :devil:
Awatar użytkownika
dragonn
Zasłużony
Postów w temacie: 2
Posty: 6383
Rejestracja: 12 gru 2016, 21:50
Lokalizacja: Opole
Drukarka: LUME
x 1455

Re: Octoprint problem z kamerą PK-335

Post autor: dragonn »

a moim zdaniem wywal parametr -y i tyle, powinno zadziałać.
Awatar użytkownika
Zepco
Postów w temacie: 1
Posty: 1555
Rejestracja: 25 kwie 2017, 22:23
Lokalizacja: Kielce
Drukarka: PRUSA i3 MK2S
x 294

Re: Octoprint problem z kamerą PK-335

Post autor: Zepco »

A polecenie

Kod: Zaznacz cały

fswebcam image.jpg
tworzy Ci plik ze zrzutem z kamery?
Prusa i3 MK2S
Anet A8 - rozebrana na części...
3DGence One
kretu
Konto z ograniczeniami
Postów w temacie: 2
Posty: 570
Rejestracja: 18 kwie 2017, 20:56
Lokalizacja: Szczecin
Drukarka: Bizer
x 105

Re: Octoprint problem z kamerą PK-335

Post 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.
ODPOWIEDZ

Wróć do „Pozostałe”