Video Webcam Stream

Rund um die Hardware des Revolution Pi
cjaeck
Posts: 8
Joined: 24 Oct 2022, 13:31
Answers: 0

Re: Video Webcam Stream

Post by cjaeck »

Hallo,

ich habe mich nach ein Pause dem Thema wieder angenommen. Es hat sich herausgestellt, dass der Pi leider doch ein 4er ist. Daher hab ich nicht die Möglichkeit die Treiber nachzuschauen.
In einem Forum habe ich gelesen, dass USB2.0 wohl kein fullHD unterstützt und man wohl manuell die Auflösung mit folgendem Befehl hochschrauben kann:

Code: Select all

v4l2-ctl --set-fmt-video=width=1920,height=1080,pixelformat=YUYV
Quelle: https://elinux.org/Thread:Talk:Jetson/C ... n%3F/reply

Das hat wenigstens schonmal bewirkt, dass

Code: Select all

v4l2-ctl --all
nun auch FullHD anzeigt:
FullHD.png
FullHD.png (9.04 KiB) Viewed 3224 times

Leider funktioniert der Stream trotzdem nicht. Es ist anfangs ein Bild zu sehen, welches eine fps von geschätzt 0,5 hat und nach einer kurzen Zeit gibt es wieder einen Fehler und der Stream bricht ab.

Ich habe nun folgende Einstellungen in

Code: Select all

sudo nano /boot/config.txt
getätigt:

Code: Select all

# 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=1
#hdmi_mode=1

# 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=on
#dtparam=i2s=on
#dtparam=spi=on

# 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

# Enable DRM VC4 V3D driver
dtoverlay=vc4-kms-v3d
max_framebuffers=2

# Enable host mode on the 2711 built-in XHCI USB controller.
# This line should be removed if the legacy DWC2 controller is required
# (e.g. for USB device mode) or if USB support is not required.
#otg_mode=1

[pi4]
[cm4s]
[all]
dtoverlay=dwc_otg,dr_mode=host

[all]
dtoverlay=revpi-core
dtparam=eth0_mac_hi=0xc83ea702
dtparam=eth0_mac_lo=0x193a

Vielleicht fällt noch jemand etwas dazu ein. Ich kann mir einfach nicht vorstellen, dass der RevPi nicht mindestens einen Stream in 720p hinbekommt.

Danke für die Hilfe
Christian
User avatar
nicolaiB
KUNBUS
Posts: 869
Joined: 21 Jun 2018, 10:33
Answers: 7
Location: Berlin
Contact:

Re: Video Webcam Stream

Post by nicolaiB »

Schau mal ob es etwas bringt, wenn du die All Sektion mit dem dwc_otg hinter das revpi-core Overlay tust. Wenn ich mich recht erinnere geht er von oben nach unten und überschreibt dir in deinem Fall den dwc_otg mit dem dwc2 aus dem revpi-
core overlay.

Gruß Nicolai
cjaeck
Posts: 8
Joined: 24 Oct 2022, 13:31
Answers: 0

Re: Video Webcam Stream

Post by cjaeck »

Leider auch ohne Erfolg. Jetzt bricht der Stream sogar direkt nach dem Start ab. v4l2-ctl --all liefert auch wieder nur die Auflösung 640/480.
Gibt es noch weitere Ideen?
User avatar
nicolaiB
KUNBUS
Posts: 869
Joined: 21 Jun 2018, 10:33
Answers: 7
Location: Berlin
Contact:

Re: Video Webcam Stream

Post by nicolaiB »

Ich bin aktuell unterwegs in Cambridge und habe nur eingeschränkten Zugriff auf Geräte. Kannst du mir deinen genauen Aufbau noch mal zusammenschreiben und am besten auch wie ich es reproduzieren kann? Dann würde ich wenn ich Ende der Woche wieder zurück bin mal schauen ob ich noch etwas finde.

Gruß Nicolai
cjaeck
Posts: 8
Joined: 24 Oct 2022, 13:31
Answers: 0

Re: Video Webcam Stream

Post by cjaeck »

Hallo Niklas,

sehr gerne!
Hardware: RevPi Core 3+ Module, Logitech C920s
Software: https://github.com/jacksonliam/mjpg-streamer

Viel mehr ist es eigentlich nicht. Was ich schon alles versucht habe, siehst du ja im Chatverlauf. Bin gespannt, ob du es hinbekommst. :)

Danke und viel Spaß in Cambridge!

Christian
cjaeck
Posts: 8
Joined: 24 Oct 2022, 13:31
Answers: 0

Re: Video Webcam Stream

Post by cjaeck »

Hi Niklas,

hast du etwas herausfinden können? Gibt es irgendwelche news?
Merci!

Grüße
Christian
Post Reply