Closed leigh-johnson closed 1 year ago
The following pipeline outputs JPEG snapshot files:
interpipesrc name={interpipesrc} listen-to={listen_to} accept-events=true accept-eos-event=false is-live=true allow-renegotiation=false format=3 leaky-type=1 caps=video/x-raw,width={width},height={height},framerate={framerate_n}/{framerate_d},format={format},colorimetry={colorimetry} \ ! videorate ! capsfilter caps=video/x-raw,framerate=2/1 ! v4l2jpegenc ! multifilesink location={filesink_location} max-files=2
We want these files to be named snapshot-0.jpg and snapshot-1.jpg but the buffer count is being used instead of next-file index.
snapshot-0.jpg
snapshot-1.jpg
drwxr-xr-x 2 printnanny printnanny 80 Jan 23 21:01 . drwxr-xr-x 30 root root 880 Jan 23 13:07 .. -rw-r--r-- 1 printnanny printnanny 184K Jan 23 21:01 snapshot-56889.jpg -rw-r--r-- 1 printnanny printnanny 183K Jan 23 21:01 snapshot-56890.jpg office-v0-6:~$ ls -ahl /var/run/printnanny-snapshot/ total 368K drwxr-xr-x 2 printnanny printnanny 80 Jan 23 21:01 . drwxr-xr-x 30 root root 880 Jan 23 13:07 .. -rw-r--r-- 1 printnanny printnanny 184K Jan 23 21:01 snapshot-56894.jpg -rw-r--r-- 1 printnanny printnanny 183K Jan 23 21:01 snapshot-56895.jpg office-v0-6:~$ ls -ahl /var/run/printnanny-snapshot/ total 368K drwxr-xr-x 2 printnanny printnanny 80 Jan 23 21:01 . drwxr-xr-x 30 root root 880 Jan 23 13:07 .. -rw-r--r-- 1 printnanny printnanny 183K Jan 23 21:01 snapshot-56896.jpg -rw-r--r-- 1 printnanny printnanny 183K Jan 23 21:01 snapshot-56897.jpg
----------------------- Build Info: | ----------------------- IMAGE_NAME = printnanny-release-image-raspberrypi4-64-20230123204845 DISTRO_PRETTY = PrintNanny Linux 0.6.0 (Feldspar) VARIANT_NAME = PrintNanny OS Core VARIANT_ID = core DISTRO = printnanny DISTRO_NAME = PrintNanny Linux DISTRO_VERSION = 0.6.0 DISTRO_CODENAME = Feldspar ID_LIKE = BitsyLinux HOME_URL = https://printnanny.ai BUG_REPORT_URL = https://github.com/bitsy-ai/printnanny-os/issues YOCTO_VERSION = 4.0.2 YOCTO_CODENAME = Langdale MACHINE = raspberrypi4-64 TUNE_PKGARCH = cortexa72 ----------------------- Layer Revisions: | ----------------------- meta = langdale:a3e3b740e140d036122f7b11e2ac452bda548444 meta-poky = langdale:a3e3b740e140d036122f7b11e2ac452bda548444 meta-yocto-bsp = langdale:a3e3b740e140d036122f7b11e2ac452bda548444 meta-raspberrypi = libcamera-v0.0.3:104a8b9290ab4da92c8f693e2fdc42a6396975d2 meta-oe = langdale:c5668905a6d8a78fb72c2cbf8b20e91e686ceb86 meta-python = langdale:c5668905a6d8a78fb72c2cbf8b20e91e686ceb86 meta-multimedia = langdale:c5668905a6d8a78fb72c2cbf8b20e91e686ceb86 meta-bitsy = printnanny-api-client-0.124.9:ea970ab8d0b3a6a118de8ed4b9b6c0171c14f9be meta-neural-network = master:fed68f0a659c9b6431985c156141dc28dc4c2275 meta-printnanny = printnanny-api-client-0.124.9:ea970ab8d0b3a6a118de8ed4b9b6c0171c14f9be meta-networking = langdale:c5668905a6d8a78fb72c2cbf8b20e91e686ceb86 meta-filesystems = langdale:c5668905a6d8a78fb72c2cbf8b20e91e686ceb86 meta-initramfs = langdale:c5668905a6d8a78fb72c2cbf8b20e91e686ceb86 meta-webserver = langdale:c5668905a6d8a78fb72c2cbf8b20e91e686ceb86 meta-swupdate = master:5e611f44db1b9333342ed61d77a3c3ed7be69c2b workspace = langdale:a3e3b740e140d036122f7b11e2ac452bda548444 meta-microcontroller = master:9f396e595b2d639be7f2b494f4a61e48d9495058
🎉 I created a service that serves the latest JPEG snapshot at http://<hostname>/printnanny-snapshot/jpeg - this will be release in v0.6.1
http://<hostname>/printnanny-snapshot/jpeg
Describe the bug
The following pipeline outputs JPEG snapshot files:
We want these files to be named
snapshot-0.jpg
andsnapshot-1.jpg
but the buffer count is being used instead of next-file index.Screenshots