Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v4l2jpegdec not outputting data for some cameras #5142

Open
engnfrc opened this issue Aug 23, 2022 · 9 comments
Open

v4l2jpegdec not outputting data for some cameras #5142

engnfrc opened this issue Aug 23, 2022 · 9 comments

Comments

@engnfrc
Copy link

engnfrc commented Aug 23, 2022

Describe the bug

Using an ELP-USBFHD01M w/ OV2710 camera, v4l2jpegdec isn't sending anything downstream, terminal output stops at "Redistribute latency...". Using an "identity silent=false" before this element I see lots of output, but if I move it to after this element there's silence. If I switch from v4l2jpegdec to jpegdec the pipeline works as expected. Also, using a different camera (ELP-USBFHD06H w/ SONY IMX322/IMX323) the v4l2jpegdec element works as expected. I've tried numerous of the ELP-USBFHD01M cameras all with the same result.

Example pipeline for ELP-USBFHD01M (OVP) where v4l2jpegdec isn't working (identity_pre present at the framerate, identity_post is missing):
GST_DEBUG=*:4 GST_DEBUG_DUMP_DOT_DIR=$PWD/pipelines gst-launch-1.0 -e -vvv v4l2src device=/dev/videoHEL1 ! image/jpeg,width=1280,height=720,framerate=60/1 ! jpegparse ! identity name=identity_pre silent=false ! v4l2jpegdec ! identity name=identity_post silent=false ! filesink location=ELP-USBFHD01M.raw

Example pipeline for ELP-USBFHD01M (OVP) where jpegdec is working:
GST_DEBUG=*:4 GST_DEBUG_DUMP_DOT_DIR=$PWD/pipelines gst-launch-1.0 -e -vvv v4l2src device=/dev/videoHEL1 ! image/jpeg,width=1280,height=720,framerate=60/1 ! jpegparse ! identity name=identity_pre silent=false ! jpegdec ! identity name=identity_post silent=false ! filesink location=ELP-USBFHD01M.raw

Example pipeline for ELP-USBFHD06H (SONY) where v4l2jpegdec is working:
GST_DEBUG=*:4 GST_DEBUG_DUMP_DOT_DIR=$PWD/pipelines gst-launch-1.0 -e -vvv v4l2src device=/dev/videoHEL1-1 ! image/jpeg,width=1280,height=720,framerate=30/1 ! jpegparse ! identity name=identity_pre silent=false ! v4l2jpegdec ! identity name=identity_post silent=false ! filesink location=ELP-USBFHD06H.raw

Here are two attachments, the first grabs a single frame from the camera and attempts to convert it to raw using v4l2jpegdec and the second grabs a single frame from the camera and saves it straight to a file.
Pipeline - Raw.zip
Pipeline - JPEG.zip

Discussion of this issue started on the RPi Forums (https://forums.raspberrypi.com/viewtopic.php?p=2031719) where @6by9 has been helping and I've also shared it on the Gstreamer Devel Listserv gstreamer-devel@lists.freedesktop.org where Nicolas Dufresne (ndufresne) has been assisting.

Steps to reproduce the behaviour

Attach an ELP-USBFHD01M camera to a USB port on an RPi 4B and run an adapted pipeline based on the following original pipeline:
GST_DEBUG=*:4 GST_DEBUG_DUMP_DOT_DIR=$PWD/pipelines gst-launch-1.0 -e -vvv v4l2src device=/dev/videoHEL1 ! image/jpeg,width=1280,height=720,framerate=60/1 ! jpegparse ! identity name=identity_pre silent=false ! v4l2jpegdec ! identity name=identity_post silent=false ! filesink location=ELP-USBFHD01M.raw

Device (s)

Raspberry Pi 4 Mod. B

System

System Information

Raspberry Pi 4 Model B Rev 1.4
PRETTY_NAME="Debian GNU/Linux 11 (bullseye)"
NAME="Debian GNU/Linux"
VERSION_ID="11"
VERSION="11 (bullseye)"

Raspberry Pi reference 2022-04-04
Generated using pi-gen, https://github.com/RPi-Distro/pi-gen, 27a8050c3c06e567c794620394a8c2d74262a516, stage4

Linux hel-microdas 5.15.33-v8 #1 SMP PREEMPT Tue Apr 19 16:29:44 UTC 2022 aarch64 GNU/Linux
Revision : c03114
Serial : 100000007578f78c
Model : Raspberry Pi 4 Model B Rev 1.4
Throttled flag : throttled=0x0
Camera : supported=0 detected=0, libcamera interfaces=0

Videocore information

Mar 24 2022 13:19:26
Copyright (c) 2012 Broadcom
version e5a963efa66a1974127860b42e913d2374139ff5 (clean) (release) (start)

alloc failures: 0
compactions: 0
legacy block fails: 0

Filesystem information

Filesystem 1K-blocks Used Available Use% Mounted on
/dev/root 10255636 5629140 4085824 58% /
devtmpfs 1590472 0 1590472 0% /dev
tmpfs 1723432 0 1723432 0% /dev/shm
tmpfs 689376 17740 671636 3% /run
tmpfs 5120 4 5116 1% /run/lock
/dev/sda1 261868 31620 230248 13% /boot
tmpfs 344684 20 344664 1% /run/user/1000
/dev/sda4 261552 4 261548 1% /media/hel/HEL_TMP
/dev/sda3 949479880 77856 901101344 1% /media/hel/HEL_DATA
tmpfs 344684 16 344668 1% /run/user/1001

Filename Type Size Used Priority

Package version information

raspberrypi-ui-mods:
Installed: 1.20220302
raspberrypi-sys-mods:
Installed: 20220224
openbox:
Installed: 3.6.1-9+rpt1+deb11u1
lxpanel:
Installed: 0.10.1-2+rpt13
pcmanfm:
Installed: 1.3.2-1+rpt7
rpd-plym-splash:
Installed: 0.31

Networking Information

eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet x.x.x.x netmask x.x.x.x broadcast x.x.x.x
inet6 y::y.y.y.y prefixlen 64 scopeid 0x20
ether m.m.m.m txqueuelen 1000 (Ethernet)
RX packets 1633005 bytes 121191039 (115.5 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 677401 bytes 115970757 (110.5 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet x.x.x.x netmask x.x.x.x
inet6 ::1 prefixlen 128 scopeid 0x10
loop txqueuelen 1000 (Local Loopback)
RX packets 655 bytes 88301 (86.2 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 655 bytes 88301 (86.2 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

USB Information

/: Bus 02.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/4p, 5000M
|__ Port 1: Dev 2, If 0, Class=Mass Storage, Driver=uas, 5000M
/: Bus 01.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/1p, 480M
|__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/4p, 480M
|__ Port 2: Dev 8, If 1, Class=Video, Driver=uvcvideo, 480M
|__ Port 2: Dev 8, If 0, Class=Video, Driver=uvcvideo, 480M
|__ Port 3: Dev 9, If 0, Class=Video, Driver=uvcvideo, 480M
|__ Port 3: Dev 9, If 1, Class=Video, Driver=uvcvideo, 480M
|__ Port 4: Dev 7, If 0, Class=Video, Driver=uvcvideo, 480M
|__ Port 4: Dev 7, If 1, Class=Video, Driver=uvcvideo, 480M

config.txt

arm_64bit=1
arm_boost=1
arm_freq=1800
audio_pwm_mode=514
camera_auto_detect=1
config_hdmi_boost=5
core_freq=500
core_freq_min=200
disable_commandline_tags=2
disable_l2cache=1
disable_overscan=1
display_auto_detect=1
display_hdmi_rotate=-1
display_lcd_rotate=-1
dvfs=3
enable_gic=1
force_eeprom_read=1
force_pwm_open=1
framebuffer_ignore_alpha=1
framebuffer_swap=1
gpu_freq=500
gpu_freq_min=250
init_uart_clock=0x2dc6c00
lcd_framerate=60
mask_gpu_interrupt0=3072
mask_gpu_interrupt1=25635
max_framebuffers=2
over_voltage_avs=-30000
pause_burst_frames=1
program_serial_random=1
total_mem=4096
hdmi_force_cec_address:0=65535
hdmi_force_cec_address:1=65535
hdmi_pixel_freq_limit:0=0x11e1a300
hdmi_pixel_freq_limit:1=0x11e1a300
device_tree=-
overlay_prefix=overlays/
hdmi_cvt:0=
hdmi_cvt:1=
hdmi_edid_filename:0=
hdmi_edid_filename:1=
hdmi_timings:0=
hdmi_timings:1=

cmdline.txt

coherent_pool=1M 8250.nr_uarts=0 snd_bcm2835.enable_compat_alsa=0 snd_bcm2835.enable_hdmi=1 smsc95xx.macaddr=E4:5F:01:2C:71:D6 vc_mem.mem_base=0x3eb00000 vc_mem.mem_size=0x3ff00000 console=ttyS0,115200 console=tty1 root=/dev/sda2 rootfstype=ext4 fsck.repair=yes rootwait quiet splash plymouth.ignore-serial-consoles

raspi-gpio settings

BANK0 (GPIO 0 to 27):
GPIO 0: level=1 fsel=0 func=INPUT pull=UP
GPIO 1: level=1 fsel=0 func=INPUT pull=UP
GPIO 2: level=1 fsel=0 func=INPUT pull=UP
GPIO 3: level=1 fsel=0 func=INPUT pull=UP
GPIO 4: level=1 fsel=0 func=INPUT pull=UP
GPIO 5: level=1 fsel=0 func=INPUT pull=UP
GPIO 6: level=1 fsel=0 func=INPUT pull=UP
GPIO 7: level=1 fsel=0 func=INPUT pull=UP
GPIO 8: level=1 fsel=0 func=INPUT pull=UP
GPIO 9: level=0 fsel=0 func=INPUT pull=DOWN
GPIO 10: level=0 fsel=0 func=INPUT pull=DOWN
GPIO 11: level=0 fsel=0 func=INPUT pull=DOWN
GPIO 12: level=0 fsel=0 func=INPUT pull=DOWN
GPIO 13: level=0 fsel=0 func=INPUT pull=DOWN
GPIO 14: level=1 fsel=0 func=INPUT pull=NONE
GPIO 15: level=1 fsel=0 func=INPUT pull=UP
GPIO 16: level=0 fsel=0 func=INPUT pull=DOWN
GPIO 17: level=0 fsel=0 func=INPUT pull=DOWN
GPIO 18: level=0 fsel=0 func=INPUT pull=DOWN
GPIO 19: level=0 fsel=0 func=INPUT pull=DOWN
GPIO 20: level=0 fsel=0 func=INPUT pull=DOWN
GPIO 21: level=0 fsel=0 func=INPUT pull=DOWN
GPIO 22: level=0 fsel=0 func=INPUT pull=DOWN
GPIO 23: level=0 fsel=0 func=INPUT pull=DOWN
GPIO 24: level=0 fsel=0 func=INPUT pull=DOWN
GPIO 25: level=0 fsel=0 func=INPUT pull=DOWN
GPIO 26: level=0 fsel=0 func=INPUT pull=DOWN
GPIO 27: level=0 fsel=0 func=INPUT pull=DOWN
BANK1 (GPIO 28 to 45):
GPIO 28: level=1 fsel=2 alt=5 func=RGMII_MDIO pull=UP
GPIO 29: level=0 fsel=2 alt=5 func=RGMII_MDC pull=DOWN
GPIO 30: level=0 fsel=7 alt=3 func=CTS0 pull=UP
GPIO 31: level=0 fsel=7 alt=3 func=RTS0 pull=NONE
GPIO 32: level=1 fsel=7 alt=3 func=TXD0 pull=NONE
GPIO 33: level=1 fsel=7 alt=3 func=RXD0 pull=UP
GPIO 34: level=1 fsel=7 alt=3 func=SD1_CLK pull=NONE
GPIO 35: level=1 fsel=7 alt=3 func=SD1_CMD pull=UP
GPIO 36: level=1 fsel=7 alt=3 func=SD1_DAT0 pull=UP
GPIO 37: level=1 fsel=7 alt=3 func=SD1_DAT1 pull=UP
GPIO 38: level=1 fsel=7 alt=3 func=SD1_DAT2 pull=UP
GPIO 39: level=1 fsel=7 alt=3 func=SD1_DAT3 pull=UP
GPIO 40: level=0 fsel=4 alt=0 func=PWM1_0 pull=NONE
GPIO 41: level=0 fsel=4 alt=0 func=PWM1_1 pull=NONE
GPIO 42: level=0 fsel=1 func=OUTPUT pull=UP
GPIO 43: level=1 fsel=0 func=INPUT pull=UP
GPIO 44: level=1 fsel=0 func=INPUT pull=UP
GPIO 45: level=1 fsel=0 func=INPUT pull=UP
BANK2 (GPIO 46 to 53):
GPIO 46: level=0 fsel=0 func=INPUT pull=UP
GPIO 47: level=0 fsel=0 func=INPUT pull=UP
GPIO 48: level=0 fsel=0 func=INPUT pull=DOWN
GPIO 49: level=0 fsel=0 func=INPUT pull=DOWN
GPIO 50: level=0 fsel=0 func=INPUT pull=DOWN
GPIO 51: level=0 fsel=0 func=INPUT pull=DOWN
GPIO 52: level=0 fsel=0 func=INPUT pull=DOWN
GPIO 53: level=0 fsel=0 func=INPUT pull=DOWN

vcdbg log messages

sudo: vcdbg: command not found

dmesg log

[ 0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd083]
[ 0.000000] Linux version 5.15.33-v8 (root@helcompile-2) (aarch64-linux-gnu-gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2) #1 SMP PREEMPT Tue Apr 19 16:29:44 UTC 2022
[ 0.000000] random: fast init done
[ 0.000000] Machine model: Raspberry Pi 4 Model B Rev 1.4
[ 0.000000] efi: UEFI not found.
[ 0.000000] Reserved memory: created CMA memory pool at 0x000000000fc00000, size 256 MiB
[ 0.000000] OF: reserved mem: initialized node linux,cma, compatible id shared-dma-pool
[ 0.000000] Zone ranges:
[ 0.000000] DMA [mem 0x0000000000000000-0x000000003fffffff]
[ 0.000000] DMA32 [mem 0x0000000040000000-0x00000000fbffffff]
[ 0.000000] Normal empty
[ 0.000000] Movable zone start for each node
[ 0.000000] Early memory node ranges
[ 0.000000] node 0: [mem 0x0000000000000000-0x000000001fefffff]
[ 0.000000] node 0: [mem 0x0000000040000000-0x00000000fbffffff]
[ 0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x00000000fbffffff]
[ 0.000000] On node 0, zone DMA32: 256 pages in unavailable ranges
[ 0.000000] percpu: Embedded 28 pages/cpu s77144 r8192 d29352 u114688
[ 0.000000] pcpu-alloc: s77144 r8192 d29352 u114688 alloc=28*4096
[ 0.000000] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3
[ 0.000000] Detected PIPT I-cache on CPU0
[ 0.000000] CPU features: detected: Spectre-v2
[ 0.000000] CPU features: detected: Spectre-v4
[ 0.000000] CPU features: detected: Spectre-BHB
[ 0.000000] CPU features: detected: ARM errata 1165522, 1319367, or 1530923
[ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 886788
[ 0.000000] Kernel command line: coherent_pool=1M 8250.nr_uarts=0 snd_bcm2835.enable_compat_alsa=0 snd_bcm2835.enable_hdmi=1 smsc95xx.macaddr=m.m.m.m vc_mem.mem_base=0x3eb00000 vc_mem.mem_size=0x3ff00000 console=ttyS0,115200 console=tty1 root=/dev/sda2 rootfstype=ext4 fsck.repair=yes rootwait quiet splash plymouth.ignore-serial-consoles
[ 0.000000] Unknown kernel command line parameters "splash", will be passed to user space.
[ 0.000000] Dentry cache hash table entries: 524288 (order: 10, 4194304 bytes, linear)
[ 0.000000] Inode-cache hash table entries: 262144 (order: 9, 2097152 bytes, linear)
[ 0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[ 0.000000] software IO TLB: mapped [mem 0x000000000bc00000-0x000000000fc00000] (64MB)
[ 0.000000] Memory: 3180948K/3603456K available (11776K kernel code, 1962K rwdata, 4112K rodata, 3776K init, 964K bss, 160364K reserved, 262144K cma-reserved)
[ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[ 0.000000] ftrace: allocating 36749 entries in 144 pages
[ 0.000000] ftrace: allocated 144 pages with 2 groups
[ 0.000000] trace event string verifier disabled
[ 0.000000] rcu: Preemptible hierarchical RCU implementation.
[ 0.000000] rcu: RCU event tracing is enabled.
[ 0.000000] rcu: RCU restricting CPUs from NR_CPUS=256 to nr_cpu_ids=4.
[ 0.000000] Trampoline variant of Tasks RCU enabled.
[ 0.000000] Rude variant of Tasks RCU enabled.
[ 0.000000] Tracing variant of Tasks RCU enabled.
[ 0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 100 jiffies.
[ 0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=4
[ 0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0
[ 0.000000] Root IRQ handler: gic_handle_irq
[ 0.000000] GIC: Using split EOI/Deactivate mode
[ 0.000000] irq_brcmstb_l2: registered L2 intc (/soc/interrupt-controller@7ef00100, parent irq: 10)
[ 0.000000] random: get_random_bytes called from start_kernel+0x514/0x708 with crng_init=1
[ 0.000000] arch_timer: cp15 timer(s) running at 54.00MHz (phys).
[ 0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0xc743ce346, max_idle_ns: 440795203123 ns
[ 0.000001] sched_clock: 56 bits at 54MHz, resolution 18ns, wraps every 4398046511102ns
[ 0.000250] Console: colour dummy device 80x25
[ 0.000302] printk: console [tty1] enabled
[ 0.000366] Calibrating delay loop (skipped), value calculated using timer frequency.. 108.00 BogoMIPS (lpj=54000)
[ 0.000391] pid_max: default: 32768 minimum: 301
[ 0.000514] LSM: Security Framework initializing
[ 0.000707] Mount-cache hash table entries: 8192 (order: 4, 65536 bytes, linear)
[ 0.000777] Mountpoint-cache hash table entries: 8192 (order: 4, 65536 bytes, linear)
[ 0.002057] cgroup: Disabling memory control group subsystem
[ 0.004474] rcu: Hierarchical SRCU implementation.
[ 0.005572] EFI services will not be available.
[ 0.006144] smp: Bringing up secondary CPUs ...
[ 0.007206] Detected PIPT I-cache on CPU1
[ 0.007282] CPU1: Booted secondary processor 0x0000000001 [0x410fd083]
[ 0.008415] Detected PIPT I-cache on CPU2
[ 0.008463] CPU2: Booted secondary processor 0x0000000002 [0x410fd083]
[ 0.009571] Detected PIPT I-cache on CPU3
[ 0.009621] CPU3: Booted secondary processor 0x0000000003 [0x410fd083]
[ 0.009765] smp: Brought up 1 node, 4 CPUs
[ 0.009785] SMP: Total of 4 processors activated.
[ 0.009796] CPU features: detected: 32-bit EL0 Support
[ 0.009805] CPU features: detected: 32-bit EL1 Support
[ 0.009818] CPU features: detected: CRC32 instructions
[ 0.041979] CPU: All CPU(s) started at EL2
[ 0.042052] alternatives: patching kernel code
[ 0.043751] devtmpfs: initialized
[ 0.054584] Enabled cp15_barrier support
[ 0.054625] Enabled setend support
[ 0.054818] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 1911260446275000 ns
[ 0.054851] futex hash table entries: 1024 (order: 4, 65536 bytes, linear)
[ 0.063799] pinctrl core: initialized pinctrl subsystem
[ 0.064634] DMI not present or invalid.
[ 0.065112] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[ 0.068559] DMA: preallocated 1024 KiB GFP_KERNEL pool for atomic allocations
[ 0.068868] DMA: preallocated 1024 KiB GFP_KERNEL|GFP_DMA pool for atomic allocations
[ 0.069763] DMA: preallocated 1024 KiB GFP_KERNEL|GFP_DMA32 pool for atomic allocations
[ 0.069856] audit: initializing netlink subsys (disabled)
[ 0.070144] audit: type=2000 audit(0.069:1): state=initialized audit_enabled=0 res=1
[ 0.070626] thermal_sys: Registered thermal governor 'step_wise'
[ 0.070869] cpuidle: using governor menu
[ 0.071058] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers.
[ 0.071237] ASID allocator initialised with 65536 entries
[ 0.071397] Serial: AMBA PL011 UART driver
[ 0.083416] bcm2835-mbox fe00b880.mailbox: mailbox enabled
[ 0.104110] raspberrypi-firmware soc:firmware: Attached to firmware from 2022-03-24T13:19:26, variant start
[ 0.105123] raspberrypi-firmware soc:firmware: Firmware hash is e5a963efa66a1974127860b42e913d2374139ff5
[ 0.152201] bcm2835-dma fe007000.dma: DMA legacy API manager, dmachans=0x1
[ 0.156332] vgaarb: loaded
[ 0.156771] SCSI subsystem initialized
[ 0.156965] usbcore: registered new interface driver usbfs
[ 0.157023] usbcore: registered new interface driver hub
[ 0.157085] usbcore: registered new device driver usb
[ 0.157429] usb_phy_generic phy: supply vcc not found, using dummy regulator
[ 0.157915] pps_core: LinuxPPS API ver. 1 registered
[ 0.157928] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti giometti@linux.it
[ 0.157957] PTP clock support registered
[ 0.159292] clocksource: Switched to clocksource arch_sys_counter
[ 0.245814] VFS: Disk quotas dquot_6.6.0
[ 0.245915] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
[ 0.246075] FS-Cache: Loaded
[ 0.246362] CacheFiles: Loaded
[ 0.255118] NET: Registered PF_INET protocol family
[ 0.255682] IP idents hash table entries: 65536 (order: 7, 524288 bytes, linear)
[ 0.258856] tcp_listen_portaddr_hash hash table entries: 2048 (order: 3, 32768 bytes, linear)
[ 0.258927] TCP established hash table entries: 32768 (order: 6, 262144 bytes, linear)
[ 0.259286] TCP bind hash table entries: 32768 (order: 7, 524288 bytes, linear)
[ 0.259804] TCP: Hash tables configured (established 32768 bind 32768)
[ 0.260045] UDP hash table entries: 2048 (order: 4, 65536 bytes, linear)
[ 0.260122] UDP-Lite hash table entries: 2048 (order: 4, 65536 bytes, linear)
[ 0.260426] NET: Registered PF_UNIX/PF_LOCAL protocol family
[ 0.261398] RPC: Registered named UNIX socket transport module.
[ 0.261413] RPC: Registered udp transport module.
[ 0.261423] RPC: Registered tcp transport module.
[ 0.261433] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 0.261452] PCI: CLS 0 bytes, default 64
[ 0.263634] hw perfevents: enabled with armv8_cortex_a72 PMU driver, 7 counters available
[ 0.263969] kvm [1]: IPA Size Limit: 44 bits
[ 0.265291] kvm [1]: vgic interrupt IRQ9
[ 0.265555] kvm [1]: Hyp mode initialized successfully
[ 1.180360] Initialise system trusted keyrings
[ 1.180731] workingset: timestamp_bits=46 max_order=20 bucket_order=0
[ 1.187260] zbud: loaded
[ 1.189070] FS-Cache: Netfs 'nfs' registered for caching
[ 1.189759] NFS: Registering the id_resolver key type
[ 1.189802] Key type id_resolver registered
[ 1.189813] Key type id_legacy registered
[ 1.189914] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[ 1.189927] nfs4flexfilelayout_init: NFSv4 Flexfile Layout Driver Registering...
[ 1.191118] Key type asymmetric registered
[ 1.191133] Asymmetric key parser 'x509' registered
[ 1.191216] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 247)
[ 1.191482] io scheduler mq-deadline registered
[ 1.191495] io scheduler kyber registered
[ 1.199738] brcm-pcie fd500000.pcie: host bridge /scb/pcie@7d500000 ranges:
[ 1.199785] brcm-pcie fd500000.pcie: No bus range found for /scb/pcie@7d500000, using [bus 00-ff]
[ 1.199869] brcm-pcie fd500000.pcie: MEM 0x0600000000..0x063fffffff -> 0x00c0000000
[ 1.199960] brcm-pcie fd500000.pcie: IB MEM 0x0000000000..0x00ffffffff -> 0x0400000000
[ 1.258383] brcm-pcie fd500000.pcie: link up, 5.0 GT/s PCIe x1 (SSC)
[ 1.258739] brcm-pcie fd500000.pcie: PCI host bridge to bus 0000:00
[ 1.258756] pci_bus 0000:00: root bus resource [bus 00-ff]
[ 1.258774] pci_bus 0000:00: root bus resource [mem 0x600000000-0x63fffffff] (bus address [0xc0000000-0xffffffff])
[ 1.258875] pci 0000:00:00.0: [14e4:2711] type 01 class 0x060400
[ 1.259120] pci 0000:00:00.0: PME# supported from D0 D3hot
[ 1.263181] pci 0000:01:00.0: [1106:3483] type 00 class 0x0c0330
[ 1.263351] pci 0000:01:00.0: reg 0x10: [mem 0x00000000-0x00000fff 64bit]
[ 1.263776] pci 0000:01:00.0: PME# supported from D0 D3hot
[ 1.269687] pci 0000:00:00.0: BAR 8: assigned [mem 0x600000000-0x6000fffff]
[ 1.269714] pci 0000:01:00.0: BAR 0: assigned [mem 0x600000000-0x600000fff 64bit]
[ 1.269754] pci 0000:00:00.0: PCI bridge to [bus 01]
[ 1.269776] pci 0000:00:00.0: bridge window [mem 0x600000000-0x6000fffff]
[ 1.278662] iproc-rng200 fe104000.rng: hwrng registered
[ 1.279155] vc-mem: phys_addr:0x00000000 mem_base=0x3eb00000 mem_size:0x3ff00000(1023 MiB)
[ 1.280621] gpiomem-bcm2835 fe200000.gpiomem: Initialised: Registers at 0xfe200000
[ 1.293070] brd: module loaded
[ 1.302678] loop: module loaded
[ 1.303450] Loading iSCSI transport class v2.0-870.
[ 1.308338] bcmgenet fd580000.ethernet: GENET 5.0 EPHY: 0x0000
[ 1.365449] unimac-mdio unimac-mdio.-19: Broadcom UniMAC MDIO bus
[ 1.366563] usbcore: registered new interface driver r8152
[ 1.366639] usbcore: registered new interface driver lan78xx
[ 1.366689] usbcore: registered new interface driver smsc95xx
[ 1.414107] pci 0000:00:00.0: enabling device (0000 -> 0002)
[ 1.414303] xhci_hcd 0000:01:00.0: xHCI Host Controller
[ 1.414347] xhci_hcd 0000:01:00.0: new USB bus registered, assigned bus number 1
[ 1.415088] xhci_hcd 0000:01:00.0: hcc params 0x002841eb hci version 0x100 quirks 0x00003c0000000890
[ 1.416447] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.15
[ 1.416469] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 1.416484] usb usb1: Product: xHCI Host Controller
[ 1.416497] usb usb1: Manufacturer: Linux 5.15.33-v8 xhci-hcd
[ 1.416509] usb usb1: SerialNumber: 0000:01:00.0
[ 1.417214] hub 1-0:1.0: USB hub found
[ 1.417332] hub 1-0:1.0: 1 port detected
[ 1.417965] xhci_hcd 0000:01:00.0: xHCI Host Controller
[ 1.417988] xhci_hcd 0000:01:00.0: new USB bus registered, assigned bus number 2
[ 1.418010] xhci_hcd 0000:01:00.0: Host supports USB 3.0 SuperSpeed
[ 1.418469] usb usb2: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 5.15
[ 1.418489] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 1.418503] usb usb2: Product: xHCI Host Controller
[ 1.418516] usb usb2: Manufacturer: Linux 5.15.33-v8 xhci-hcd
[ 1.418528] usb usb2: SerialNumber: 0000:01:00.0
[ 1.419175] hub 2-0:1.0: USB hub found
[ 1.419238] hub 2-0:1.0: 4 ports detected
[ 1.420856] dwc_otg: version 3.00a 10-AUG-2012 (platform bus)
[ 1.421165] dwc_otg: FIQ enabled
[ 1.421175] dwc_otg: NAK holdoff enabled
[ 1.421185] dwc_otg: FIQ split-transaction FSM enabled
[ 1.421197] Module dwc_common_port init
[ 1.421761] usbcore: registered new interface driver uas
[ 1.421846] usbcore: registered new interface driver usb-storage
[ 1.422069] mousedev: PS/2 mouse device common for all mice
[ 1.427736] sdhci: Secure Digital Host Controller Interface driver
[ 1.427752] sdhci: Copyright(c) Pierre Ossman
[ 1.428398] sdhci-pltfm: SDHCI platform and OF driver helper
[ 1.433300] ledtrig-cpu: registered to indicate activity on CPUs
[ 1.433495] hid: raw HID events driver (C) Jiri Kosina
[ 1.433559] usbcore: registered new interface driver usbhid
[ 1.433563] usbhid: USB HID core driver
[ 1.433730] ashmem: initialized
[ 1.437523] Initializing XFRM netlink socket
[ 1.437546] NET: Registered PF_PACKET protocol family
[ 1.437607] Key type dns_resolver registered
[ 1.438041] registered taskstats version 1
[ 1.438056] Loading compiled-in X.509 certificates
[ 1.438467] Key type ._fscrypt registered
[ 1.438472] Key type .fscrypt registered
[ 1.438476] Key type fscrypt-provisioning registered
[ 1.444379] uart-pl011 fe201000.serial: there is not valid maps for state default
[ 1.444547] uart-pl011 fe201000.serial: cts_event_workaround enabled
[ 1.444633] fe201000.serial: ttyAMA0 at MMIO 0xfe201000 (irq = 19, base_baud = 0) is a PL011 rev2
[ 1.452640] bcm2835-wdt bcm2835-wdt: Broadcom BCM2835 watchdog timer
[ 1.452840] bcm2835-power bcm2835-power: Broadcom BCM2835 power domains driver
[ 1.453366] mmc-bcm2835 fe300000.mmcnr: mmc_debug:0 mmc_debug2:0
[ 1.453374] mmc-bcm2835 fe300000.mmcnr: DMA channel allocated
[ 1.482509] of_cfs_init
[ 1.482674] of_cfs_init: OK
[ 1.520075] mmc0: SDHCI controller on fe340000.mmc [fe340000.mmc] using ADMA
[ 1.520390] Waiting for root device /dev/sda2...
[ 1.574497] mmc1: new high speed SDIO card at address 0001
[ 1.659324] usb 1-1: new high-speed USB device number 2 using xhci_hcd
[ 1.788074] usb 1-1: New USB device found, idVendor=2109, idProduct=3431, bcdDevice= 4.21
[ 1.788098] usb 1-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[ 1.788114] usb 1-1: Product: USB2.0 Hub
[ 1.789803] hub 1-1:1.0: USB hub found
[ 1.790113] hub 1-1:1.0: 4 ports detected
[ 1.900734] usb 2-1: new SuperSpeed USB device number 2 using xhci_hcd
[ 1.913812] usb 2-1: New USB device found, idVendor=14b0, idProduct=0206, bcdDevice= 1.00
[ 1.913833] usb 2-1: New USB device strings: Mfr=2, Product=3, SerialNumber=1
[ 1.913848] usb 2-1: Product: SSD 850 EVO 1TB
[ 1.913860] usb 2-1: Manufacturer: Samsung
[ 1.913872] usb 2-1: SerialNumber: 123456868AB7
[ 1.926100] scsi host0: uas
[ 1.927534] scsi 0:0:0:0: Direct-Access Samsung SSD 850 EVO 1TB 0 PQ: 0 ANSI: 6
[ 1.929240] sd 0:0:0:0: [sda] 1953525168 512-byte logical blocks: (1.00 TB/932 GiB)
[ 1.929399] sd 0:0:0:0: [sda] Write Protect is off
[ 1.929407] sd 0:0:0:0: [sda] Mode Sense: 43 00 00 00
[ 1.929619] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[ 1.930195] sd 0:0:0:0: [sda] Optimal transfer size 33553920 bytes
[ 1.935673] sda: sda1 sda2 sda3 sda4
[ 1.937363] sd 0:0:0:0: [sda] Attached SCSI disk
[ 1.943509] EXT4-fs (sda2): mounted filesystem with ordered data mode. Opts: (null). Quota mode: none.
[ 1.943569] VFS: Mounted root (ext4 filesystem) readonly on device 8:2.
[ 1.944899] devtmpfs: mounted
[ 1.952318] Freeing unused kernel memory: 3776K
[ 1.952486] Run /sbin/init as init process
[ 1.952494] with arguments:
[ 1.952501] /sbin/init
[ 1.952508] splash
[ 1.952515] with environment:
[ 1.952521] HOME=/
[ 1.952527] TERM=linux
[ 2.042796] usb 2-2: new SuperSpeed USB device number 3 using xhci_hcd
[ 2.054011] systemd[1]: System time before build time, advancing clock.
[ 2.060613] usb 2-2: New USB device found, idVendor=32e4, idProduct=3291, bcdDevice=10.24
[ 2.060630] usb 2-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 2.060636] usb 2-2: Product: 3.0 USB Camera
[ 2.060641] usb 2-2: Manufacturer: 3.0 USB Camera
[ 2.060645] usb 2-2: SerialNumber: 00000001
[ 2.081379] NET: Registered PF_INET6 protocol family
[ 2.082198] Segment Routing with IPv6
[ 2.082217] In-situ OAM (IOAM) with IPv6
[ 2.097633] systemd[1]: systemd 247.3-7 running in system mode. (+PAM +AUDIT +SELINUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 +ZSTD +SECCOMP +BLKID +ELFUTILS +KMOD +IDN2 -IDN +PCRE2 default-hierarchy=unified)
[ 2.098007] systemd[1]: Detected architecture arm64.
[ 2.098642] systemd[1]: Set hostname to .
[ 2.120324] usb 1-1.3: new high-speed USB device number 3 using xhci_hcd
[ 2.196501] usb 1-1.3: New USB device found, idVendor=0409, idProduct=005a, bcdDevice= 1.00
[ 2.196519] usb 1-1.3: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[ 2.197528] hub 1-1.3:1.0: USB hub found
[ 2.197581] hub 1-1.3:1.0: 2 ports detected
[ 2.263305] usb 1-1.4: new high-speed USB device number 4 using xhci_hcd
[ 2.311355] systemd[1]: /lib/systemd/system/plymouth-start.service:16: Unit configured to use KillMode=none. This is unsafe, as it disables systemd's process lifecycle management for the service. Please update your service to use a safer KillMode=, such as 'mixed' or 'control-group'. Support for KillMode=none is deprecated and will eventually be removed.
[ 2.363719] systemd[1]: Queued start job for default target Graphical Interface.
[ 2.364473] random: systemd: uninitialized urandom read (16 bytes read)
[ 2.365574] systemd[1]: Created slice system-getty.slice.
[ 2.365753] random: systemd: uninitialized urandom read (16 bytes read)
[ 2.366168] systemd[1]: Created slice system-modprobe.slice.
[ 2.366210] random: systemd: uninitialized urandom read (16 bytes read)
[ 2.366612] systemd[1]: Created slice system-systemd\x2dfsck.slice.
[ 2.366946] systemd[1]: Created slice User and Session Slice.
[ 2.367179] systemd[1]: Started Forward Password Requests to Wall Directory Watch.
[ 2.367797] systemd[1]: Set up automount Arbitrary Executable File Formats File System Automount Point.
[ 2.368011] systemd[1]: Reached target Slices.
[ 2.368080] systemd[1]: Reached target Swap.
[ 2.368535] systemd[1]: Listening on Syslog Socket.
[ 2.368830] systemd[1]: Listening on fsck to fsckd communication Socket.
[ 2.369017] systemd[1]: Listening on initctl Compatibility Named Pipe.
[ 2.369558] systemd[1]: Listening on Journal Audit Socket.
[ 2.369919] systemd[1]: Listening on Journal Socket (/dev/log).
[ 2.370301] systemd[1]: Listening on Journal Socket.
[ 2.370710] systemd[1]: Listening on udev Control Socket.
[ 2.370975] systemd[1]: Listening on udev Kernel Socket.
[ 2.371331] systemd[1]: Condition check resulted in Huge Pages File System being skipped.
[ 2.372965] systemd[1]: Mounting POSIX Message Queue File System...
[ 2.375067] systemd[1]: Mounting RPC Pipe File System...
[ 2.377633] systemd[1]: Mounting Kernel Debug File System...
[ 2.380063] systemd[1]: Mounting Kernel Trace File System...
[ 2.380462] systemd[1]: Condition check resulted in Kernel Module supporting RPCSEC_GSS being skipped.
[ 2.388901] systemd[1]: Starting Restore / save the current clock...
[ 2.393369] systemd[1]: Starting Set the console keyboard layout...
[ 2.396617] systemd[1]: Starting Create list of static device nodes for the current kernel...
[ 2.400059] systemd[1]: Starting Load Kernel Module configfs...
[ 2.403374] systemd[1]: Starting Load Kernel Module drm...
[ 2.406187] systemd[1]: Starting Load Kernel Module fuse...
[ 2.408459] systemd[1]: Condition check resulted in Set Up Additional Binary Formats being skipped.
[ 2.411146] systemd[1]: Starting File System Check on Root Device...
[ 2.415692] systemd[1]: Starting Journal Service...
[ 2.420196] fuse: init (API version 7.34)
[ 2.420412] systemd[1]: Starting Load Kernel Modules...
[ 2.423047] systemd[1]: Starting Coldplug All udev Devices...
[ 2.424297] usb 1-1.4: New USB device found, idVendor=32e4, idProduct=9422, bcdDevice= 1.00
[ 2.424316] usb 1-1.4: New USB device strings: Mfr=2, Product=1, SerialNumber=3
[ 2.424322] usb 1-1.4: Product: H264 USB Camera
[ 2.424327] usb 1-1.4: Manufacturer: H264 USB Camera
[ 2.424332] usb 1-1.4: SerialNumber: 2020032801
[ 2.430470] systemd[1]: Mounted POSIX Message Queue File System.
[ 2.430891] systemd[1]: Mounted RPC Pipe File System.
[ 2.431350] systemd[1]: Mounted Kernel Debug File System.
[ 2.431774] systemd[1]: Mounted Kernel Trace File System.
[ 2.433048] systemd[1]: Finished Restore / save the current clock.
[ 2.434956] systemd[1]: Finished Create list of static device nodes for the current kernel.
[ 2.436494] systemd[1]: modprobe@configfs.service: Succeeded.
[ 2.437207] systemd[1]: Finished Load Kernel Module configfs.
[ 2.438260] systemd[1]: modprobe@fuse.service: Succeeded.
[ 2.439530] systemd[1]: Finished Load Kernel Module fuse.
[ 2.443636] systemd[1]: Mounting FUSE Control File System...
[ 2.447246] systemd[1]: Mounting Kernel Configuration File System...
[ 2.452165] systemd[1]: modprobe@drm.service: Succeeded.
[ 2.452986] systemd[1]: Finished Load Kernel Module drm.
[ 2.461860] systemd[1]: Started File System Check Daemon to report status.
[ 2.466439] systemd[1]: Mounted FUSE Control File System.
[ 2.466818] systemd[1]: Mounted Kernel Configuration File System.
[ 2.471063] i2c_dev: i2c /dev entries driver
[ 2.474337] systemd[1]: Finished Load Kernel Modules.
[ 2.480908] systemd[1]: Starting Apply Kernel Variables...
[ 2.489364] usb 1-1.3.1: new high-speed USB device number 5 using xhci_hcd
[ 2.500525] systemd[1]: Finished File System Check on Root Device.
[ 2.502810] systemd[1]: Starting Remount Root and Kernel File Systems...
[ 2.512917] systemd[1]: Finished Apply Kernel Variables.
[ 2.532832] EXT4-fs (sda2): re-mounted. Opts: (null). Quota mode: none.
[ 2.538240] systemd[1]: Finished Remount Root and Kernel File Systems.
[ 2.539546] systemd[1]: Condition check resulted in Rebuild Hardware Database being skipped.
[ 2.539649] systemd[1]: Condition check resulted in Platform Persistent Storage Archival being skipped.
[ 2.541638] systemd[1]: Starting Load/Save Random Seed...
[ 2.553736] systemd[1]: Starting Create System Users...
[ 2.583580] systemd[1]: Started Journal Service.
[ 2.604514] systemd-journald[140]: Received client request to flush runtime journal.
[ 2.651385] usb 1-1.3.1: New USB device found, idVendor=05a3, idProduct=9230, bcdDevice= 1.00
[ 2.651404] usb 1-1.3.1: New USB device strings: Mfr=2, Product=1, SerialNumber=0
[ 2.651411] usb 1-1.3.1: Product: USB 2.0 Camera
[ 2.651416] usb 1-1.3.1: Manufacturer: HD Camera Manufacturer
[ 2.843257] mc: Linux media interface: v0.10
[ 2.850743] videodev: Linux video capture interface: v2.00
[ 2.892122] usb 2-2: Found UVC 1.00 device 3.0 USB Camera (32e4:3291)
[ 3.027990] input: 3.0 USB Camera: 3.0 USB Camera as /devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb2/2-2/2-2:1.0/input/input0
[ 3.032713] usb 1-1.4: Found UVC 1.00 device H264 USB Camera (32e4:9422)
[ 3.052166] vc_sm_cma: module is from the staging directory, the quality is unknown, you have been warned.
[ 3.053018] bcm2835_vc_sm_cma_probe: Videocore shared memory driver
[ 3.053035] [vc_sm_connected_init]: start
[ 3.053529] [vc_sm_connected_init]: installed successfully
[ 3.060734] bcm2835_mmal_vchiq: module is from the staging directory, the quality is unknown, you have been warned.
[ 3.068834] snd_bcm2835: module is from the staging directory, the quality is unknown, you have been warned.
[ 3.070825] bcm2835_isp: module is from the staging directory, the quality is unknown, you have been warned.
[ 3.073929] brcmstb-i2c fef04500.i2c: @97500hz registered in polling mode
[ 3.083161] brcmstb-i2c fef09500.i2c: @97500hz registered in polling mode
[ 3.086629] input: H264 USB Camera: USB Camera as /devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb1/1-1/1-1.4/1-1.4:1.0/input/input1
[ 3.090978] bcm2835-isp bcm2835-isp: Device node output[0] registered as /dev/video13
[ 3.092715] bcm2835-isp bcm2835-isp: Device node capture[0] registered as /dev/video14
[ 3.093013] bcm2835-isp bcm2835-isp: Device node capture[1] registered as /dev/video15
[ 3.093255] bcm2835-isp bcm2835-isp: Device node stats[2] registered as /dev/video16
[ 3.093306] bcm2835-isp bcm2835-isp: Register output node 0 with media controller
[ 3.093317] bcm2835-isp bcm2835-isp: Register capture node 1 with media controller
[ 3.093323] bcm2835-isp bcm2835-isp: Register capture node 2 with media controller
[ 3.093329] bcm2835-isp bcm2835-isp: Register capture node 3 with media controller
[ 3.093518] bcm2835_audio bcm2835_audio: card created with 8 channels
[ 3.095467] usb 1-1.3.1: Found UVC 1.00 device USB 2.0 Camera (05a3:9230)
[ 3.109110] [drm] Initialized v3d 1.0.0 20180419 for fec00000.v3d on minor 0
[ 3.111667] usb 1-1.4: 4:1: cannot get freq at ep 0x84
[ 3.111989] bcm2835-isp bcm2835-isp: Device node output[0] registered as /dev/video20
[ 3.116521] bcm2835-isp bcm2835-isp: Device node capture[0] registered as /dev/video21
[ 3.124207] bcm2835-isp bcm2835-isp: Device node capture[1] registered as /dev/video22
[ 3.132541] bcm2835-isp bcm2835-isp: Device node stats[2] registered as /dev/video23
[ 3.132566] bcm2835-isp bcm2835-isp: Register output node 0 with media controller
[ 3.132577] bcm2835-isp bcm2835-isp: Register capture node 1 with media controller
[ 3.132583] bcm2835-isp bcm2835-isp: Register capture node 2 with media controller
[ 3.132589] bcm2835-isp bcm2835-isp: Register capture node 3 with media controller
[ 3.136531] bcm2835-isp bcm2835-isp: Loaded V4L2 bcm2835-isp
[ 3.136868] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[ 3.148893] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[ 3.154093] cfg80211: loaded regulatory.db is malformed or signature is missing/invalid
[ 3.154914] bcm2835_codec: module is from the staging directory, the quality is unknown, you have been warned.
[ 3.171628] bcm2835_v4l2: module is from the staging directory, the quality is unknown, you have been warned.
[ 3.178189] input: USB 2.0 Camera: HD USB Camera as /devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb1/1-1/1-1.3/1-1.3.1/1-1.3.1:1.0/input/input2
[ 3.181257] bcm2835-codec bcm2835-codec: Device registered as /dev/video10
[ 3.181320] bcm2835-codec bcm2835-codec: Loaded V4L2 decode
[ 3.185503] brcmfmac: F1 signature read @0x18000000=0x15264345
[ 3.187983] usbcore: registered new interface driver uvcvideo
[ 3.190954] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43455-sdio for chip BCM4345/6
[ 3.191705] usbcore: registered new interface driver brcmfmac
[ 3.192090] brcmfmac mmc1:0001:1: Direct firmware load for brcm/brcmfmac43455-sdio.raspberrypi,4-model-b.bin failed with error -2
[ 3.202925] bcm2835-codec bcm2835-codec: Device registered as /dev/video11
[ 3.202988] bcm2835-codec bcm2835-codec: Loaded V4L2 encode
[ 3.237835] bcm2835-codec bcm2835-codec: Device registered as /dev/video12
[ 3.237865] bcm2835-codec bcm2835-codec: Loaded V4L2 isp
[ 3.243257] bcm2835-codec bcm2835-codec: Device registered as /dev/video18
[ 3.243315] bcm2835-codec bcm2835-codec: Loaded V4L2 image_fx
[ 3.262193] bcm2835-codec bcm2835-codec: Device registered as /dev/video31
[ 3.262227] bcm2835-codec bcm2835-codec: Loaded V4L2 encode_image
[ 3.300198] vc4-drm gpu: bound fe400000.hvs (ops vc4_hvs_ops [vc4])
[ 3.304456] Registered IR keymap rc-cec
[ 3.304633] rc rc0: vc4 as /devices/platform/soc/fef00700.hdmi/rc/rc0
[ 3.304823] input: vc4 as /devices/platform/soc/fef00700.hdmi/rc/rc0/input3
[ 3.311321] usbcore: registered new interface driver snd-usb-audio
[ 3.399539] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43455-sdio for chip BCM4345/6
[ 3.399655] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43455-sdio for chip BCM4345/6
[ 3.403895] brcmfmac: brcmf_c_preinit_dcmds: Firmware: BCM4345/6 wl0: Nov 1 2021 00:37:25 version 7.45.241 (1a2f2fa CY) FWID 01-703fd60
[ 3.406127] vc4-drm gpu: bound fe400000.hvs (ops vc4_hvs_ops [vc4])
[ 3.416595] Registered IR keymap rc-cec
[ 3.416738] rc rc0: vc4 as /devices/platform/soc/fef00700.hdmi/rc/rc0
[ 3.416833] input: vc4 as /devices/platform/soc/fef00700.hdmi/rc/rc0/input4
[ 3.828341] random: crng init done
[ 3.828367] random: 7 urandom warning(s) missed due to ratelimiting
[ 3.933833] sd 0:0:0:0: Attached scsi generic sg0 type 0
[ 4.034400] rpivid-mem feb00000.hevc-decoder: rpivid-hevcmem initialised: Registers at 0xfeb00000 length 0x00010000
[ 4.036564] vc4-drm gpu: bound fe400000.hvs (ops vc4_hvs_ops [vc4])
[ 4.038367] rpivid-mem feb10000.rpivid-local-intc: rpivid-intcmem initialised: Registers at 0xfeb10000 length 0x00001000
[ 4.042500] rpivid-mem feb20000.h264-decoder: rpivid-h264mem initialised: Registers at 0xfeb20000 length 0x00010000
[ 4.046388] rpivid-mem feb30000.vp9-decoder: rpivid-vp9mem initialised: Registers at 0xfeb30000 length 0x00010000
[ 4.054420] Registered IR keymap rc-cec
[ 4.054571] rc rc0: vc4 as /devices/platform/soc/fef00700.hdmi/rc/rc0
[ 4.054674] input: vc4 as /devices/platform/soc/fef00700.hdmi/rc/rc0/input5
[ 4.087264] vc4-drm gpu: bound fe400000.hvs (ops vc4_hvs_ops [vc4])
[ 4.101572] Registered IR keymap rc-cec
[ 4.101766] rc rc0: vc4 as /devices/platform/soc/fef00700.hdmi/rc/rc0
[ 4.101867] input: vc4 as /devices/platform/soc/fef00700.hdmi/rc/rc0/input6
[ 10.114195] 8021q: 802.1Q VLAN Support v1.8
[ 10.150631] uart-pl011 fe201000.serial: no DMA platform data
[ 10.203380] bcmgenet fd580000.ethernet: configuring instance for external RGMII (RX delay)
[ 10.204058] bcmgenet fd580000.ethernet eth0: Link is Down
[ 14.305520] bcmgenet fd580000.ethernet eth0: Link is Up - 1Gbps/Full - flow control rx/tx
[ 14.305584] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[ 17.024891] Bluetooth: Core ver 2.22
[ 17.024990] NET: Registered PF_BLUETOOTH protocol family
[ 17.024996] Bluetooth: HCI device and connection manager initialized
[ 17.025013] Bluetooth: HCI socket layer initialized
[ 17.025020] Bluetooth: L2CAP socket layer initialized
[ 17.025033] Bluetooth: SCO socket layer initialized
[ 17.035303] Bluetooth: HCI UART driver ver 2.3
[ 17.035335] Bluetooth: HCI UART protocol H4 registered
[ 17.035438] Bluetooth: HCI UART protocol Three-wire (H5) registered
[ 17.035621] Bluetooth: HCI UART protocol Broadcom registered
[ 21.951633] vc4-drm gpu: bound fe400000.hvs (ops vc4_hvs_ops [vc4])
[ 21.971646] Registered IR keymap rc-cec
[ 21.971789] rc rc0: vc4 as /devices/platform/soc/fef00700.hdmi/rc/rc0
[ 21.971882] input: vc4 as /devices/platform/soc/fef00700.hdmi/rc/rc0/input7
[ 21.974563] vc4-drm gpu: bound fef00700.hdmi (ops vc4_hdmi_ops [vc4])
[ 21.987189] Registered IR keymap rc-cec
[ 21.987381] rc rc1: vc4 as /devices/platform/soc/fef05700.hdmi/rc/rc1
[ 21.987471] input: vc4 as /devices/platform/soc/fef05700.hdmi/rc/rc1/input8
[ 21.992305] vc4-drm gpu: bound fef05700.hdmi (ops vc4_hdmi_ops [vc4])
[ 21.992558] vc4-drm gpu: bound fe004000.txp (ops vc4_txp_ops [vc4])
[ 21.992692] vc4-drm gpu: bound fe206000.pixelvalve (ops vc4_crtc_ops [vc4])
[ 21.992812] vc4-drm gpu: bound fe207000.pixelvalve (ops vc4_crtc_ops [vc4])
[ 21.992922] vc4-drm gpu: bound fe20a000.pixelvalve (ops vc4_crtc_ops [vc4])
[ 21.993015] vc4-drm gpu: bound fe216000.pixelvalve (ops vc4_crtc_ops [vc4])
[ 21.993146] vc4-drm gpu: bound fec12000.pixelvalve (ops vc4_crtc_ops [vc4])
[ 22.031400] [drm] Initialized vc4 0.0.0 20140616 for gpu on minor 1
[ 22.031556] vc4-drm gpu: [drm] Cannot find any crtc or sizes
[ 23.847745] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[ 23.847781] Bluetooth: BNEP filters: protocol multicast
[ 23.847808] Bluetooth: BNEP socket layer initialized
[ 23.888340] NET: Registered PF_ALG protocol family
[ 24.010334] Bluetooth: RFCOMM TTY layer initialized
[ 24.010379] Bluetooth: RFCOMM socket layer initialized
[ 24.010399] Bluetooth: RFCOMM ver 1.11
[ 27.083785] hdmi-audio-codec hdmi-audio-codec.4.auto: ASoC: error at snd_soc_dai_startup on i2s-hifi: -19
[ 27.083955] MAI: soc_pcm_open() failed (-19)
[ 27.084923] hdmi-audio-codec hdmi-audio-codec.4.auto: ASoC: error at snd_soc_dai_startup on i2s-hifi: -19
[ 27.084982] MAI: soc_pcm_open() failed (-19)
[ 27.085822] hdmi-audio-codec hdmi-audio-codec.4.auto: ASoC: error at snd_soc_dai_startup on i2s-hifi: -19
[ 27.085881] MAI: soc_pcm_open() failed (-19)
[ 27.098217] hdmi-audio-codec hdmi-audio-codec.4.auto: ASoC: error at snd_soc_dai_startup on i2s-hifi: -19
[ 27.098348] MAI: soc_pcm_open() failed (-19)
[ 27.098886] hdmi-audio-codec hdmi-audio-codec.4.auto: ASoC: error at snd_soc_dai_startup on i2s-hifi: -19
[ 27.098944] MAI: soc_pcm_open() failed (-19)
[ 27.099495] hdmi-audio-codec hdmi-audio-codec.4.auto: ASoC: error at snd_soc_dai_startup on i2s-hifi: -19
[ 27.099552] MAI: soc_pcm_open() failed (-19)
[ 27.184649] hdmi-audio-codec hdmi-audio-codec.5.auto: ASoC: error at snd_soc_dai_startup on i2s-hifi: -19
[ 27.187854] MAI: soc_pcm_open() failed (-19)
[ 27.188977] hdmi-audio-codec hdmi-audio-codec.5.auto: ASoC: error at snd_soc_dai_startup on i2s-hifi: -19
[ 27.189105] MAI: soc_pcm_open() failed (-19)
[ 27.190073] hdmi-audio-codec hdmi-audio-codec.5.auto: ASoC: error at snd_soc_dai_startup on i2s-hifi: -19
[ 27.190141] MAI: soc_pcm_open() failed (-19)
[ 27.203244] hdmi-audio-codec hdmi-audio-codec.5.auto: ASoC: error at snd_soc_dai_startup on i2s-hifi: -19
[ 27.203659] MAI: soc_pcm_open() failed (-19)
[ 27.204357] hdmi-audio-codec hdmi-audio-codec.5.auto: ASoC: error at snd_soc_dai_startup on i2s-hifi: -19
[ 27.206578] MAI: soc_pcm_open() failed (-19)
[ 27.207228] hdmi-audio-codec hdmi-audio-codec.5.auto: ASoC: error at snd_soc_dai_startup on i2s-hifi: -19
[ 27.207356] MAI: soc_pcm_open() failed (-19)
[ 29.148144] usb 1-1.4: 4:1: cannot get freq at ep 0x84
[ 29.197968] usb 1-1.4: 4:1: cannot get freq at ep 0x84
[ 30.189453] EXT4-fs (sda3): mounted filesystem with ordered data mode. Opts: errors=remount-ro. Quota mode: none.
[ 31.713329] cam-dummy-reg: disabling
[ 3556.947156] hdmi-audio-codec hdmi-audio-codec.4.auto: ASoC: error at snd_soc_dai_startup on i2s-hifi: -19
[ 3556.947216] MAI: soc_pcm_open() failed (-19)
[ 3556.947949] hdmi-audio-codec hdmi-audio-codec.4.auto: ASoC: error at snd_soc_dai_startup on i2s-hifi: -19
[ 3556.948005] MAI: soc_pcm_open() failed (-19)
[ 3556.948780] hdmi-audio-codec hdmi-audio-codec.4.auto: ASoC: error at snd_soc_dai_startup on i2s-hifi: -19
[ 3556.948829] MAI: soc_pcm_open() failed (-19)
[ 3556.955088] hdmi-audio-codec hdmi-audio-codec.4.auto: ASoC: error at snd_soc_dai_startup on i2s-hifi: -19
[ 3556.955138] MAI: soc_pcm_open() failed (-19)
[ 3556.955426] hdmi-audio-codec hdmi-audio-codec.4.auto: ASoC: error at snd_soc_dai_startup on i2s-hifi: -19
[ 3556.955465] MAI: soc_pcm_open() failed (-19)
[ 3556.955733] hdmi-audio-codec hdmi-audio-codec.4.auto: ASoC: error at snd_soc_dai_startup on i2s-hifi: -19
[ 3556.955767] MAI: soc_pcm_open() failed (-19)
[ 3557.013791] hdmi-audio-codec hdmi-audio-codec.5.auto: ASoC: error at snd_soc_dai_startup on i2s-hifi: -19
[ 3557.013851] MAI: soc_pcm_open() failed (-19)
[ 3557.014381] hdmi-audio-codec hdmi-audio-codec.5.auto: ASoC: error at snd_soc_dai_startup on i2s-hifi: -19
[ 3557.014424] MAI: soc_pcm_open() failed (-19)
[ 3557.015028] hdmi-audio-codec hdmi-audio-codec.5.auto: ASoC: error at snd_soc_dai_startup on i2s-hifi: -19
[ 3557.015075] MAI: soc_pcm_open() failed (-19)
[ 3557.021419] hdmi-audio-codec hdmi-audio-codec.5.auto: ASoC: error at snd_soc_dai_startup on i2s-hifi: -19
[ 3557.021639] MAI: soc_pcm_open() failed (-19)
[ 3557.021865] hdmi-audio-codec hdmi-audio-codec.5.auto: ASoC: error at snd_soc_dai_startup on i2s-hifi: -19
[ 3557.021892] MAI: soc_pcm_open() failed (-19)
[ 3557.022099] hdmi-audio-codec hdmi-audio-codec.5.auto: ASoC: error at snd_soc_dai_startup on i2s-hifi: -19
[ 3557.022124] MAI: soc_pcm_open() failed (-19)
[ 4785.641664] usb 1-1.3: USB disconnect, device number 3
[ 4785.641704] usb 1-1.3.1: USB disconnect, device number 5
[ 4801.958882] usb 2-2: USB disconnect, device number 3
[ 4840.898030] usb 1-1.4: USB disconnect, device number 4
[ 6858.322302] usb 1-1.3: new high-speed USB device number 6 using xhci_hcd
[ 6858.472568] usb 1-1.3: New USB device found, idVendor=05a3, idProduct=9230, bcdDevice= 1.00
[ 6858.472598] usb 1-1.3: New USB device strings: Mfr=2, Product=1, SerialNumber=0
[ 6858.472614] usb 1-1.3: Product: USB 2.0 Camera
[ 6858.472629] usb 1-1.3: Manufacturer: HD Camera Manufacturer
[ 6858.479714] usb 1-1.3: Found UVC 1.00 device USB 2.0 Camera (05a3:9230)
[ 6858.535306] input: USB 2.0 Camera: HD USB Camera as /devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb1/1-1/1-1.3/1-1.3:1.0/input/input9
[ 6951.753312] usb 1-1.4: new high-speed USB device number 7 using xhci_hcd
[ 6951.903723] usb 1-1.4: New USB device found, idVendor=05a3, idProduct=9230, bcdDevice= 1.00
[ 6951.903756] usb 1-1.4: New USB device strings: Mfr=2, Product=1, SerialNumber=0
[ 6951.903773] usb 1-1.4: Product: USB 2.0 Camera
[ 6951.903787] usb 1-1.4: Manufacturer: HD Camera Manufacturer
[ 6951.911519] usb 1-1.4: Found UVC 1.00 device USB 2.0 Camera (05a3:9230)
[ 6951.965151] input: USB 2.0 Camera: HD USB Camera as /devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb1/1-1/1-1.4/1-1.4:1.0/input/input10
[ 6998.265301] usb 1-1.2: new high-speed USB device number 8 using xhci_hcd
[ 6998.415287] usb 1-1.2: New USB device found, idVendor=05a3, idProduct=9230, bcdDevice= 1.00
[ 6998.415316] usb 1-1.2: New USB device strings: Mfr=2, Product=1, SerialNumber=0
[ 6998.415332] usb 1-1.2: Product: USB 2.0 Camera
[ 6998.415346] usb 1-1.2: Manufacturer: HD Camera Manufacturer
[ 6998.422627] usb 1-1.2: Found UVC 1.00 device USB 2.0 Camera (05a3:9230)
[ 6998.478111] input: USB 2.0 Camera: HD USB Camera as /devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb1/1-1/1-1.2/1-1.2:1.0/input/input11
[ 7001.274863] usb 1-1.3: USB disconnect, device number 6
[ 7030.081294] usb 1-1.3: new high-speed USB device number 9 using xhci_hcd
[ 7030.231282] usb 1-1.3: New USB device found, idVendor=05a3, idProduct=9230, bcdDevice= 1.00
[ 7030.231314] usb 1-1.3: New USB device strings: Mfr=2, Product=1, SerialNumber=0
[ 7030.231331] usb 1-1.3: Product: USB 2.0 Camera
[ 7030.231346] usb 1-1.3: Manufacturer: HD Camera Manufacturer
[ 7030.239014] usb 1-1.3: Found UVC 1.00 device USB 2.0 Camera (05a3:9230)
[ 7030.294409] input: USB 2.0 Camera: HD USB Camera as /devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb1/1-1/1-1.3/1-1.3:1.0/input/input12
[20603.115670] hdmi-audio-codec hdmi-audio-codec.4.auto: ASoC: error at snd_soc_dai_startup on i2s-hifi: -19
[20603.115733] MAI: soc_pcm_open() failed (-19)
[20603.116420] hdmi-audio-codec hdmi-audio-codec.4.auto: ASoC: error at snd_soc_dai_startup on i2s-hifi: -19
[20603.116494] MAI: soc_pcm_open() failed (-19)
[20603.117090] hdmi-audio-codec hdmi-audio-codec.4.auto: ASoC: error at snd_soc_dai_startup on i2s-hifi: -19
[20603.117132] MAI: soc_pcm_open() failed (-19)
[20603.123142] hdmi-audio-codec hdmi-audio-codec.4.auto: ASoC: error at snd_soc_dai_startup on i2s-hifi: -19
[20603.123197] MAI: soc_pcm_open() failed (-19)
[20603.123619] hdmi-audio-codec hdmi-audio-codec.4.auto: ASoC: error at snd_soc_dai_startup on i2s-hifi: -19
[20603.123659] MAI: soc_pcm_open() failed (-19)
[20603.123906] hdmi-audio-codec hdmi-audio-codec.4.auto: ASoC: error at snd_soc_dai_startup on i2s-hifi: -19
[20603.123943] MAI: soc_pcm_open() failed (-19)
[20603.177004] hdmi-audio-codec hdmi-audio-codec.5.auto: ASoC: error at snd_soc_dai_startup on i2s-hifi: -19
[20603.177057] MAI: soc_pcm_open() failed (-19)
[20603.177836] hdmi-audio-codec hdmi-audio-codec.5.auto: ASoC: error at snd_soc_dai_startup on i2s-hifi: -19
[20603.177890] MAI: soc_pcm_open() failed (-19)
[20603.178754] hdmi-audio-codec hdmi-audio-codec.5.auto: ASoC: error at snd_soc_dai_startup on i2s-hifi: -19
[20603.178805] MAI: soc_pcm_open() failed (-19)
[20603.185563] hdmi-audio-codec hdmi-audio-codec.5.auto: ASoC: error at snd_soc_dai_startup on i2s-hifi: -19
[20603.185621] MAI: soc_pcm_open() failed (-19)
[20603.185913] hdmi-audio-codec hdmi-audio-codec.5.auto: ASoC: error at snd_soc_dai_startup on i2s-hifi: -19
[20603.185952] MAI: soc_pcm_open() failed (-19)
[20603.187940] hdmi-audio-codec hdmi-audio-codec.5.auto: ASoC: error at snd_soc_dai_startup on i2s-hifi: -19
[20603.187993] MAI: soc_pcm_open() failed (-19)
[347912.815547] uvcvideo 1-1.3:1.1: Failed to resubmit video URB (-1).

Logs

No response

Additional context

No response

@engnfrc
Copy link
Author

engnfrc commented Aug 23, 2022

@6by9 posted this reply on the RPi forums just now, seems like he might be onto something...

[quote=6by9 post_id=2032142 time=1661278452 user_id=92334]
I've had a quick look at the data in camera1.mjpg. The JPEG data isn't fully valid.

I tend to use [url=https://github.com/ImpulseAdventure/JPEGsnoop]JPEGSnoop[/url] to look at JPEG bitstreams, and it complains of bad huffman codes and overreading scan segments.
VLC also complains of No JPEG data found in image.

With camera2.mjpg, both JPEGSnoop and VLC are happy.

MJPEG is a very badly defined format in that there is no official specification for it. Some encoders drop the Huffman tables totally and rely on defaults, whilst MJPEG-B mangles the stream such that it isn't compatible with the JPEG JFIF standard.
It'll take a moderate amount of analysis to work out what camera1 has done to the stream.
[/quote]

@ndufresne
Copy link
Contributor

@6by9 note that instead of just skipping the buffer, the driver should use vb2_buffer_done(vb, VB2_BUF_STATE_ERROR); if it can't handle the frame due to these errors. That being said, this is not always easy to achieve if you have a ring buffer driven decoder.

@6by9
Copy link
Contributor

6by9 commented Aug 24, 2022

I'm aware that it should be returning VB2_BUF_STATE_ERROR, but the JPEG codec code is pretty icky - logging and asserts appear to have offended the original author, so it contains neither.

The codec hardware is throwing an error, but I don't understand the cause at present.

I think the decode error flag is being discarded somewhere in the pipe though. Fixing that should be relatively simple, but of course doesn't solve the problem of it not decoding the data.

Examing the JPEG data in more detail, camera1.mjpg (from the forums) and Pipeline.-.JPEG/ELP-USBFHD01M_1frame.jpg are both YUV4:2:2 images. camera2.mjpg is YUV4:2:0. The hardware should cope with either, but it is a significant difference.

@6by9
Copy link
Contributor

6by9 commented Aug 24, 2022

Firmware fixed to return the decode error flag. It should be in the next rpi-update.

I'm still trying to work out why it doesn't like the JPEG block doesn't like the stream. I'm fairly sure that it's done YUV422 decode to YUV420.
The stream does have restart markers at the end of every line, but again that is standard and should be handled (the encode can be asked to insert restart markers, so easy to test).

@popcornmix
Copy link
Collaborator

rpi-update contains potential fix for this issue.

@engnfrc
Copy link
Author

engnfrc commented Aug 27, 2022

@popcornmix can you elaborate on that? I ran through ‘apt update’, ‘apt upgrade’, ‘rpi-update’, and ‘rpi-eeprom-update’ but the pipeline is still not outputting anything from v4l2jpegdec.

@6by9
Copy link
Contributor

6by9 commented Aug 30, 2022

The fix (only in rpi-update, not apt) is to report the error in decode, not to be able to decode the stream.
There's still something in that JPEG stream that the hardware doesn't like.

@CarlFK
Copy link
Contributor

CarlFK commented Oct 2, 2023

I think I am bumping into the same thing. my real source is a v4l2 video device (hdmi2usb) but I've come up with some tests that use a generated stream: videotestsrc ! jpegenc ! jpegparse ! v4l2jpegdec
here you can see my test, and the script that generates it:

https://gist.github.com/CarlFK/53c82b739f7953a504699dcef116768d

sometimes it runs all 9000 frames,
sometimes it stops and I have to hit ^c
^Chandling interrupt.

pi@pi4opsis1:~ $ ./a2.sh 
++ echo i=0 s=00000
i=0 s=00000
++ gst-launch-1.0 videotestsrc '!' jpegenc '!' jpegparse '!' v4l2jpegdec '!' videoconvert '!' video/x-raw, '!' fakesink num-buffers=9000
Setting pipeline to PAUSED ...
Pipeline is PREROLLING ...
Redistribute latency...
Pipeline is PREROLLED ...
Setting pipeline to PLAYING ...
Redistribute latency...
New clock: GstSystemClock
^Chandling interrupt.
Interrupt: Stopping pipeline ...
Execution ended after 0:00:50.831124797
Setting pipeline to NULL ...
Freeing pipeline ...
++ echo i=1 s=00001
i=1 s=00001
++ gst-launch-1.0 videotestsrc '!' jpegenc '!' jpegparse '!' v4l2jpegdec '!' videoconvert '!' video/x-raw,colorimetry=bt709 '!' fakesink num-buffers=9000
Setting pipeline to PAUSED ...
Pipeline is PREROLLING ...
Redistribute latency...
Pipeline is PREROLLED ...
Setting pipeline to PLAYING ...
Redistribute latency...
New clock: GstSystemClock
Got EOS from element "pipeline0".
Execution ended after 0:00:11.275387442
Setting pipeline to NULL ...
Freeing pipeline ...
++ echo i=2 s=00010
i=2 s=00010
++ gst-launch-1.0 videotestsrc '!' jpegenc '!' jpegparse '!' v4l2jpegdec '!' videoconvert '!' video/x-raw,pixel-aspect-ratio=1/1 '!' fakesink num-buffers=9000
Setting pipeline to PAUSED ...
Pipeline is PREROLLING ...
Redistribute latency...
Pipeline is PREROLLED ...
Setting pipeline to PLAYING ...
Redistribute latency...
New clock: GstSystemClock
Got EOS from element "pipeline0".
Execution ended after 0:00:11.430691314
Setting pipeline to NULL ...
Freeing pipeline ...
++ echo i=3 s=00011
i=3 s=00011
++ gst-launch-1.0 videotestsrc '!' jpegenc '!' jpegparse '!' v4l2jpegdec '!' videoconvert '!' video/x-raw,pixel-aspect-ratio=1/1,colorimetry=bt709 '!' fakesink num-buffers=9000
Setting pipeline to PAUSED ...
Pipeline is PREROLLING ...
Redistribute latency...
Pipeline is PREROLLED ...
Setting pipeline to PLAYING ...
Redistribute latency...
New clock: GstSystemClock
^Chandling interrupt.
Interrupt: Stopping pipeline ...
Execution ended after 0:00:25.804701338
Setting pipeline to NULL ...
Freeing pipeline ...
++ echo i=4 s=00100
i=4 s=00100
++ gst-launch-1.0 videotestsrc '!' jpegenc '!' jpegparse '!' v4l2jpegdec '!' videoconvert '!' video/x-raw,framerate=30/1 '!' fakesink num-buffers=9000
Setting pipeline to PAUSED ...
Pipeline is PREROLLING ...
Redistribute latency...
Pipeline is PREROLLED ...
Setting pipeline to PLAYING ...
Redistribute latency...
New clock: GstSystemClock
^Chandling interrupt.
Interrupt: Stopping pipeline ...
Execution ended after 0:00:11.941029860
Setting pipeline to NULL ...
Freeing pipeline ...
++ echo i=5 s=00101
i=5 s=00101
++ gst-launch-1.0 videotestsrc '!' jpegenc '!' jpegparse '!' v4l2jpegdec '!' videoconvert '!' video/x-raw,framerate=30/1,colorimetry=bt709 '!' fakesink num-buffers=9000
Setting pipeline to PAUSED ...
Pipeline is PREROLLING ...
Redistribute latency...
Pipeline is PREROLLED ...
Setting pipeline to PLAYING ...
Redistribute latency...
New clock: GstSystemClock
^Chandling interrupt.
Interrupt: Stopping pipeline ...
Execution ended after 0:00:02.585810582
Setting pipeline to NULL ...
Freeing pipeline ...
++ echo i=6 s=00110
i=6 s=00110
++ gst-launch-1.0 videotestsrc '!' jpegenc '!' jpegparse '!' v4l2jpegdec '!' videoconvert '!' video/x-raw,framerate=30/1,pixel-aspect-ratio=1/1 '!' fakesink num-buffers=9000
Setting pipeline to PAUSED ...
Pipeline is PREROLLING ...
Redistribute latency...
Pipeline is PREROLLED ...
Setting pipeline to PLAYING ...
Redistribute latency...
New clock: GstSystemClock
Got EOS from element "pipeline0".
Execution ended after 0:00:11.277416064
Setting pipeline to NULL ...
Freeing pipeline ...
++ echo i=7 s=00111
i=7 s=00111
++ gst-launch-1.0 videotestsrc '!' jpegenc '!' jpegparse '!' v4l2jpegdec '!' videoconvert '!' video/x-raw,framerate=30/1,pixel-aspect-ratio=1/1,colorimetry=bt709 '!' fakesink num-buffers=9000
Setting pipeline to PAUSED ...
Pipeline is PREROLLING ...
Redistribute latency...
Pipeline is PREROLLED ...
Setting pipeline to PLAYING ...
Redistribute latency...
New clock: GstSystemClock
Got EOS from element "pipeline0".
Execution ended after 0:00:11.565386590
Setting pipeline to NULL ...
Freeing pipeline ...
++ echo i=8 s=01000
i=8 s=01000
++ gst-launch-1.0 videotestsrc '!' jpegenc '!' jpegparse '!' v4l2jpegdec '!' videoconvert '!' video/x-raw,height=720 '!' fakesink num-buffers=9000
Setting pipeline to PAUSED ...
Pipeline is PREROLLING ...
ERROR: from element /GstPipeline:pipeline0/GstVideoTestSrc:videotestsrc0: Internal data stream error.
Additional debug info:
../libs/gst/base/gstbasesrc.c(3132): gst_base_src_loop (): /GstPipeline:pipeline0/GstVideoTestSrc:videotestsrc0:
streaming stopped, reason not-negotiated (-4)
ERROR: pipeline doesn't want to preroll.
Setting pipeline to NULL ...
Freeing pipeline ...
pi@pi4opsis1:~ $ 

@CarlFK
Copy link
Contributor

CarlFK commented Oct 2, 2023

The above tests might be over complicated. It seems a simple case fails if I let it run long enough:

$ gst-launch-1.0 videotestsrc '!' jpegenc '!' jpegparse '!' v4l2jpegdec '!' fakesink 
Setting pipeline to PAUSED ...
Pipeline is PREROLLING ...
Redistribute latency...
Pipeline is PREROLLED ...
Setting pipeline to PLAYING ...
Redistribute latency...
New clock: GstSystemClock
^Chandling interrupt.
Interrupt: Stopping pipeline ...
Execution ended after 0:01:49.030130857

however: videotestsrc generates some "noise" - if I give it a static red frame, it seems to run forever:

pi@pi4opsis1:~ $ gst-launch-1.0 videotestsrc pattern=red '!' jpegenc '!' jpegparse '!' v4l2jpegdec '!' fakesink 
Setting pipeline to PAUSED ...
Pipeline is PREROLLING ...
Redistribute latency...
Pipeline is PREROLLED ...
Setting pipeline to PLAYING ...
Redistribute latency...
New clock: GstSystemClock
23:11:53. / 99:99:99.

I suspect a clever use of tee and filesink location=red.jpeg can capture the frame that is causing problems. I gave it a shot, but my gst skills aren't up to it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants