GStreamer issueshttps://gitlab.freedesktop.org/groups/gstreamer/-/issues2023-11-24T07:13:54Zhttps://gitlab.freedesktop.org/gstreamer/gstreamer/-/issues/3151Models with multiple dynamic input shapes are not supported2023-11-24T07:13:54ZOrik HModels with multiple dynamic input shapes are not supportedHow to handle models with dynamic input shapes using `gvainference` plugin?How to handle models with dynamic input shapes using `gvainference` plugin?https://gitlab.freedesktop.org/gstreamer/gstreamer/-/issues/3145RTMP2Sink SIGSEGV (segfault) on a Raspberry Pi 3B2023-11-22T00:05:34ZInfiniteCoderRTMP2Sink SIGSEGV (segfault) on a Raspberry Pi 3BAs in https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/issues/755, using the following pipeline:
```
videotestsrc pattern=black ! cairooverlay ! v4l2convert ! video/x-raw, format=I420, width={width}, height={height}, framerat...As in https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/issues/755, using the following pipeline:
```
videotestsrc pattern=black ! cairooverlay ! v4l2convert ! video/x-raw, format=I420, width={width}, height={height}, framerate={}/1 ! x264enc ! h264parse ! flvmux streamable=true name=mux ! rtmp2sink location={youtubeURL} pulsesrc device="alsa_output.platform-bcm2835_audio.analog-stereo.monitor" ! voaacenc bitrate=128000 ! mux.
```
(Source code can be found [here](https://www.github.com/InfiniteCoder01/NewYear2023Event))
I get this error:
```
Finished dev [unoptimized + debuginfo] target(s) in 33.23s
Running `target/debug/new-year-2024`
fish: Job 1, 'cargo run' terminated by signal SIGSEGV (Address boundary error)
```https://gitlab.freedesktop.org/gstreamer/gstreamer/-/issues/3142Fails to decoder AV1 8K multi tiles stream2023-12-14T08:24:30ZHe JunyanFails to decoder AV1 8K multi tiles stream### Describe your issue
pipeline of:
gst-launch-1.0 -vf filesrc location=8k.av1 ! av1parse ! vaav1dec ! glimagesink
fails to play the AV1 8k stream with multi tiles
#### Expected Behavior
Should be OK.
#### Observed Behavior
A reg...### Describe your issue
pipeline of:
gst-launch-1.0 -vf filesrc location=8k.av1 ! av1parse ! vaav1dec ! glimagesink
fails to play the AV1 8k stream with multi tiles
#### Expected Behavior
Should be OK.
#### Observed Behavior
A regression of 1db83d3f745332cbda6adf954b2c53a10caa205e
#### Setup
- **Operating System:**
- **Device:** Computer / Tablet / Mobile / Virtual Machine
- **GStreamer Version:**
- **Command line:**
### Steps to reproduce the bug
1. open terminal
2. type `command`
### How reproducible is the bug?
### Screenshots if relevant
### Solutions you have tried
### Related non-duplicate issues
### Additional Informationhttps://gitlab.freedesktop.org/gstreamer/gstreamer/-/issues/3141vapostproc error flood when using intervideo*: vaGetImage: operation failed2023-12-15T09:22:44ZHugo Meldervapostproc error flood when using intervideo*: vaGetImage: operation failedHey,
Using intervideo* in combination with v4l2src and vapostproc results in a strange flood of errors. The stream itself works flawlessly. I have narrowed it down to the vapostproc element before vah264enc, but I am not familiar enough...Hey,
Using intervideo* in combination with v4l2src and vapostproc results in a strange flood of errors. The stream itself works flawlessly. I have narrowed it down to the vapostproc element before vah264enc, but I am not familiar enough with the va code base to debug this further.
Pipeline configuration causing issues: `GST_DEBUG=1 gst-launch-1.0 v4l2src ! vapostproc ! intervideosink intervideosrc ! queue ! vapostproc ! vah264enc ! h264parse ! avdec_h264 ! fakevideosink`
<details><summary>Output</summary>
```sh
Setting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
Got context from element 'vapostproc0': gst.va.display.handle=context, gst-display=(GstObject)"\(GstVaDisplayDrm\)\ vadisplaydrm3", description=(string)"Mesa\ Gallium\ driver\ 23.0.3\ for\ AMD\ Radeon\ Graphics\ \(renoir\,\ LLVM\ 15.0.7\,\ DRM\ 3.49\,\ 6.1.62\)", path=(string)/dev/dri/renderD128;
Pipeline is PREROLLED ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
Redistribute latency...
Redistribute latency...
Redistribute latency...
Redistribute latency...
0:00:00.306153226 33269 0x7f72f4000e00 ERROR vadisplay vasurfaceimage.c:190:va_get_image: vaGetImage: operation failed
0:00:00.326211152 33269 0x7f72f4000e00 ERROR vadisplay vasurfaceimage.c:190:va_get_image: vaGetImage: operation failed
0:00:00.356445093 33269 0x7f72f4000e00 ERROR vadisplay vasurfaceimage.c:106:va_create_surfaces: vaCreateSurfaces: resource allocation failed
0:00:00.356603004 33269 0x7f72f4000e00 ERROR vadisplay vasurfaceimage.c:190:va_get_image: vaGetImage: operation failed
0:00:00.389916456 33269 0x7f72f4000e00 ERROR vadisplay vasurfaceimage.c:106:va_create_surfaces: vaCreateSurfaces: resource allocation failed
...
```
</details>
[dot-files.zip](/uploads/ee7f1956291eb4a97b322183f06916e6/dot-files.zip)![0.00.02.052722693-gst-launch.PLAYING_PAUSED](/uploads/a613d5b4d08746fb38ea1d9f4a74acb9/0.00.02.052722693-gst-launch.PLAYING_PAUSED.png)
The following pipeline does not cause floods: `GST_DEBUG=1 gst-launch-1.0 v4l2src ! vapostproc ! queue ! vah264enc ! h264parse ! avdec_h264 ! queue ! fakevideosink`
System:
- OS: NixOS 23.05
- Kernel: 6.1.62
- CPU: AMD Ryzen 7 5700G with Radeon Graphics (16) @ 3.800GHz
- GPU: AMD ATI Radeon Vega Series / Radeon Vega Mobile Series
<details><summary>V4L2 Device</summary>
```sh
Driver Info:
Driver name : uvcvideo
Card type : Cam Link 4K: Cam Link 4K
Bus info : usb-0000:05:00.4-1
Driver version : 6.1.62
Capabilities : 0x84a00001
Video Capture
Metadata Capture
Streaming
Extended Pix Format
Device Capabilities
Device Caps : 0x04200001
Video Capture
Streaming
Extended Pix Format
Media Driver Info:
Driver name : uvcvideo
Model : Cam Link 4K: Cam Link 4K
Serial : 00045D6F85000
Bus info : usb-0000:05:00.4-1
Media version : 6.1.62
Hardware revision: 0x00000000 (0)
Driver version : 6.1.62
Interface Info:
ID : 0x03000002
Type : V4L Video
Entity Info:
ID : 0x00000001 (1)
Name : Cam Link 4K: Cam Link 4K
Function : V4L2 I/O
Flags : default
Pad 0x01000007 : 0: Sink
Link 0x0200000d: from remote pad 0x100000a of entity 'Processing 2' (Video Pixel Formatter): Data, Enabled, Immutable
Priority: 2
Video input : 0 (Input 1: ok)
Format Video Capture:
Width/Height : 1920/1080
Pixel Format : 'NV12' (Y/UV 4:2:0)
Field : None
Bytes per Line : 1920
Size Image : 3110400
Colorspace : sRGB
Transfer Function : Rec. 709
YCbCr/HSV Encoding: Rec. 709
Quantization : Default (maps to Limited Range)
Flags :
Crop Capability Video Capture:
Bounds : Left 0, Top 0, Width 1920, Height 1080
Default : Left 0, Top 0, Width 1920, Height 1080
Pixel Aspect: 1/1
Selection Video Capture: crop_default, Left 0, Top 0, Width 1920, Height 1080, Flags:
Selection Video Capture: crop_bounds, Left 0, Top 0, Width 1920, Height 1080, Flags:
Streaming Parameters Video Capture:
Capabilities : timeperframe
Frames per second: 50.000 (50/1)
Read buffers : 0
User Controls
brightness 0x00980900 (int) : min=-128 max=127 step=1 default=0 value=0
contrast 0x00980901 (int) : min=0 max=255 step=1 default=128 value=128
saturation 0x00980902 (int) : min=0 max=255 step=1 default=128 value=128
hue 0x00980903 (int) : min=-128 max=127 step=1 default=0 value=0
```
</details>
All pipeline dot graphs: [dot-files.zip](/uploads/338050f24d200de6c20c701a8da3f5e2/dot-files.zip)https://gitlab.freedesktop.org/gstreamer/gstreamer/-/issues/3140v4l2bufferpool fails with "failed to allocate buffer"2024-01-10T15:50:13ZHauke Mehrtensv4l2bufferpool fails with "failed to allocate buffer"### Describe your issue
gstreamer 1.22.6 fails playing a h264 video with this error message:
````
v4l2bufferpool gstv4l2bufferpool.c:508:gst_v4l2_buffer_pool_alloc_buffer:<video_sink:pool0:sink>�[00m failed to allocate buffer
````
<detai...### Describe your issue
gstreamer 1.22.6 fails playing a h264 video with this error message:
````
v4l2bufferpool gstv4l2bufferpool.c:508:gst_v4l2_buffer_pool_alloc_buffer:<video_sink:pool0:sink>�[00m failed to allocate buffer
````
<details>
````
2023-11-17_09:31:54.42119-0800 0:00:00.722230205 �[33m 2�[00m 0x7f030c000bd0 �[37mDEBUG �[00m �[00m v4l2bufferpool gstv4l2bufferpool.c:1447:gst_v4l2_buffer_pool_acquire_buffer:<video_sink:pool0:sink>�[00m acquire
2023-11-17_09:31:54.42122-0800 0:00:00.722258257 �[33m 2�[00m 0x7f030c000bd0 �[33;01mLOG �[00m �[00m v4l2bufferpool gstv4l2bufferpool.c:1519:gst_v4l2_buffer_pool_acquire_buffer:<video_sink:pool0:sink>�[00m mark buffer 2 outstanding
2023-11-17_09:31:54.42139-0800 0:00:00.722434490 �[33m 2�[00m 0x5614f5b3a820 �[36mINFO �[00m �[00;01;31m GST_STATES gstbin.c:2070:gst_bin_get_state_func:<decoder_bin>�[00m getting state
2023-11-17_09:31:54.42189-0800 0:00:00.722936446 �[33m 2�[00m 0x5614f5b3a820 �[36mINFO �[00m �[00;01;31m GST_STATES gstbin.c:2070:gst_bin_get_state_func:<source_bin>�[00m getting state
2023-11-17_09:31:54.42233-0800 0:00:00.723370835 �[33m 2�[00m 0x7f030c000b70 �[33;01mLOG �[00m �[00m v4l2bufferpool gstv4l2bufferpool.c:1666:gst_v4l2_buffer_pool_release_buffer:<video_sink:pool0:sink>�[00m mark buffer 0 not outstanding
2023-11-17_09:31:54.42236-0800 0:00:00.723389410 �[33m 2�[00m 0x7f030c000b70 �[37mDEBUG �[00m �[00m v4l2bufferpool gstv4l2bufferpool.c:1544:gst_v4l2_buffer_pool_complete_release_buffer:<video_sink:pool0:sink>�[00m complete release buffer 0x7f02a821bd10 (queued = no)
2023-11-17_09:31:54.42238-0800 0:00:00.723396654 �[33m 2�[00m 0x7f030c000b70 �[33;01mLOG �[00m �[00m v4l2bufferpool gstv4l2bufferpool.c:1621:gst_v4l2_buffer_pool_complete_release_buffer:<video_sink:pool0:sink>�[00m buffer 0 not queued, putting on free list
2023-11-17_09:31:54.42239-0800 0:00:00.723409017 �[33m 2�[00m 0x7f030c000b70 �[37mDEBUG �[00m �[00m v4l2bufferpool gstv4l2bufferpool.c:1894:gst_v4l2_buffer_pool_process:<video_sink:pool0:sink>�[00m process buffer 0x7f02a01ab150
2023-11-17_09:31:54.42240-0800 0:00:00.723415179 �[33m 2�[00m 0x7f030c000b70 �[33;01mLOG �[00m �[00m v4l2bufferpool gstv4l2bufferpool.c:2079:gst_v4l2_buffer_pool_process:<video_sink:pool0:sink>�[00m alloc buffer from our pool
2023-11-17_09:31:54.42240-0800 0:00:00.723420659 �[33m 2�[00m 0x7f030c000b70 �[37mDEBUG �[00m �[00m v4l2bufferpool gstv4l2bufferpool.c:1447:gst_v4l2_buffer_pool_acquire_buffer:<video_sink:pool0:sink>�[00m acquire
2023-11-17_09:31:54.42241-0800 0:00:00.723435618 �[33m 2�[00m 0x7f030c000b70 �[33;01mLOG �[00m �[00m v4l2bufferpool gstv4l2bufferpool.c:1519:gst_v4l2_buffer_pool_acquire_buffer:<video_sink:pool0:sink>�[00m mark buffer 1 outstanding
2023-11-17_09:31:54.42243-0800 0:00:00.723440657 �[33m 2�[00m 0x7f030c000b70 �[33;01mLOG �[00m �[00m v4l2bufferpool gstv4l2bufferpool.c:143:gst_v4l2_buffer_pool_copy_buffer:<video_sink:pool0:sink>�[00m copying buffer
2023-11-17_09:31:54.42257-0800 0:00:00.723447109 �[33m 2�[00m 0x7f030c000b70 �[37mDEBUG �[00m �[00m v4l2bufferpool gstv4l2bufferpool.c:149:gst_v4l2_buffer_pool_copy_buffer:<video_sink:pool0:sink>�[00m copy video frame
2023-11-17_09:31:54.42269-0800 0:00:00.723531999 �[33m 2�[00m 0x7f030c000b70 �[33;01mLOG �[00m �[00m v4l2bufferpool gstv4l2bufferpool.c:1157:gst_v4l2_buffer_pool_qbuf:<video_sink:pool0:sink>�[00m queuing buffer 1, previous-state = 1
2023-11-17_09:31:54.42272-0800 0:00:00.723556706 �[33m 2�[00m 0x7f030c000b70 �[33;01mLOG �[00m �[00m v4l2bufferpool gstv4l2bufferpool.c:1666:gst_v4l2_buffer_pool_release_buffer:<video_sink:pool0:sink>�[00m mark buffer 1 not outstanding
2023-11-17_09:31:54.42274-0800 0:00:00.723563298 �[33m 2�[00m 0x7f030c000b70 �[37mDEBUG �[00m �[00m v4l2bufferpool gstv4l2bufferpool.c:1544:gst_v4l2_buffer_pool_complete_release_buffer:<video_sink:pool0:sink>�[00m complete release buffer 0x7f02a821bd10 (queued = yes)
2023-11-17_09:31:54.42276-0800 0:00:00.723568147 �[33m 2�[00m 0x7f030c000b70 �[33;01mLOG �[00m �[00m v4l2bufferpool gstv4l2bufferpool.c:1637:gst_v4l2_buffer_pool_complete_release_buffer:<video_sink:pool0:sink>�[00m buffer 1 is queued
2023-11-17_09:31:54.42279-0800 0:00:00.723577345 �[33m 2�[00m 0x7f030c000b70 �[33;01mLOG �[00m �[00m v4l2bufferpool gstv4l2bufferpool.c:1257:gst_v4l2_buffer_pool_dqbuf:<video_sink:pool0:sink>�[00m dequeueing a buffer
2023-11-17_09:31:54.42282-0800 0:00:00.723593265 �[33m 2�[00m 0x7f030c000b70 �[33;01mLOG �[00m �[00m v4l2bufferpool gstv4l2bufferpool.c:1300:gst_v4l2_buffer_pool_dqbuf:<video_sink:pool0:sink>�[00m dequeued buffer 0x7f02a821bd10 seq:0 (ix=1), mem 0x7f02a80b7570 used 348160, plane=0, flags 00000001, ts 0:00:00.058384000, pool-queued=0, buffer=0x7f02a821bd10, previous-state=2
2023-11-17_09:31:54.42286-0800 0:00:00.723602372 �[33m 2�[00m 0x7f030c000b70 �[37mDEBUG �[00m �[00m v4l2bufferpool gstv4l2bufferpool.c:1544:gst_v4l2_buffer_pool_complete_release_buffer:<video_sink:pool0:sink>�[00m complete release buffer 0x7f02a821bd10 (queued = no)
2023-11-17_09:31:54.42290-0800 0:00:00.723612511 �[33m 2�[00m 0x7f030c000b70 �[33;01mLOG �[00m �[00m v4l2bufferpool gstv4l2bufferpool.c:1621:gst_v4l2_buffer_pool_complete_release_buffer:<video_sink:pool0:sink>�[00m buffer 1 not queued, putting on free list
2023-11-17_09:31:54.42293-0800 0:00:00.723620707 �[33m 2�[00m 0x7f030c000b70 �[33;01mLOG �[00m �[00m v4l2bufferpool gstv4l2bufferpool.c:1248:gst_v4l2_buffer_pool_dqbuf:<video_sink:pool0:sink>�[00m nothing to dequeue
2023-11-17_09:31:54.42564-0800 0:00:00.726665498 �[33m 2�[00m 0x7f030c000bd0 �[37mDEBUG �[00m �[00m v4l2bufferpool gstv4l2bufferpool.c:1447:gst_v4l2_buffer_pool_acquire_buffer:<video_sink:pool0:sink>�[00m acquire
2023-11-17_09:31:54.42575-0800 0:00:00.726704031 �[33m 2�[00m 0x7f030c000bd0 �[33;01mLOG �[00m �[00m v4l2bufferpool gstv4l2bufferpool.c:1519:gst_v4l2_buffer_pool_acquire_buffer:<video_sink:pool0:sink>�[00m mark buffer 0 outstanding
2023-11-17_09:31:54.43582-0800 0:00:00.736847348 �[33m 2�[00m 0x7f030c000bd0 �[37mDEBUG �[00m �[00m v4l2bufferpool gstv4l2bufferpool.c:1447:gst_v4l2_buffer_pool_acquire_buffer:<video_sink:pool0:sink>�[00m acquire
2023-11-17_09:31:54.43585-0800 0:00:00.736885570 �[33m 2�[00m 0x7f030c000bd0 �[33;01mLOG �[00m �[00m v4l2bufferpool gstv4l2bufferpool.c:1519:gst_v4l2_buffer_pool_acquire_buffer:<video_sink:pool0:sink>�[00m mark buffer 1 outstanding
2023-11-17_09:31:54.43783-0800 0:00:00.738845946 �[33m 2�[00m 0x7f030c000bd0 �[37mDEBUG �[00m �[00m v4l2bufferpool gstv4l2bufferpool.c:1447:gst_v4l2_buffer_pool_acquire_buffer:<video_sink:pool0:sink>�[00m acquire
2023-11-17_09:31:54.45347-0800 0:00:00.754498512 �[33m 2�[00m 0x7f030c000b70 �[33;01mLOG �[00m �[00m v4l2bufferpool gstv4l2bufferpool.c:1666:gst_v4l2_buffer_pool_release_buffer:<video_sink:pool0:sink>�[00m mark buffer 2 not outstanding
2023-11-17_09:31:54.45361-0800 0:00:00.754527466 �[33m 2�[00m 0x7f030c000b70 �[37mDEBUG �[00m �[00m v4l2bufferpool gstv4l2bufferpool.c:1544:gst_v4l2_buffer_pool_complete_release_buffer:<video_sink:pool0:sink>�[00m complete release buffer 0x7f02a01ab150 (queued = no)
2023-11-17_09:31:54.45367-0800 0:00:00.754533378 �[33m 2�[00m 0x7f030c000b70 �[33;01mLOG �[00m �[00m v4l2bufferpool gstv4l2bufferpool.c:1621:gst_v4l2_buffer_pool_complete_release_buffer:<video_sink:pool0:sink>�[00m buffer 2 not queued, putting on free list
2023-11-17_09:31:54.45369-0800 0:00:00.754545851 �[33m 2�[00m 0x7f030c000bd0 �[31;01mERROR �[00m �[00m v4l2bufferpool gstv4l2bufferpool.c:508:gst_v4l2_buffer_pool_alloc_buffer:<video_sink:pool0:sink>�[00m failed to allocate buffer
2023-11-17_09:31:54.45373-0800 0:00:00.754557002 �[33m 2�[00m 0x7f030c000b70 �[37mDEBUG �[00m �[00m v4l2bufferpool gstv4l2bufferpool.c:1894:gst_v4l2_buffer_pool_process:<video_sink:pool0:sink>�[00m process buffer 0x7f02a01aaa20
2023-11-17_09:31:54.45374-0800 0:00:00.754563765 �[33m 2�[00m 0x7f030c000b70 �[33;01mLOG �[00m �[00m v4l2bufferpool gstv4l2bufferpool.c:2079:gst_v4l2_buffer_pool_process:<video_sink:pool0:sink>�[00m alloc buffer from our pool
2023-11-17_09:31:54.45374-0800 0:00:00.754565598 �[33m 2�[00m 0x7f030c000bd0 �[33;01mWARN �[00m �[00m bufferpool gstbufferpool.c:318:do_alloc_buffer:<video_sink:pool0:sink>�[00m alloc function failed
2023-11-17_09:31:54.45377-0800 0:00:00.754568674 �[33m 2�[00m 0x7f030c000b70 �[37mDEBUG �[00m �[00m v4l2bufferpool gstv4l2bufferpool.c:1447:gst_v4l2_buffer_pool_acquire_buffer:<video_sink:pool0:sink>�[00m acquire
2023-11-17_09:31:54.45377-0800 0:00:00.754584654 �[33m 2�[00m 0x7f030c000b70 �[33;01mLOG �[00m �[00m v4l2bufferpool gstv4l2bufferpool.c:1519:gst_v4l2_buffer_pool_acquire_buffer:<video_sink:pool0:sink>�[00m mark buffer 2 outstanding
2023-11-17_09:31:54.45379-0800 0:00:00.754589032 �[33m 2�[00m 0x7f030c000b70 �[33;01mLOG �[00m �[00m v4l2bufferpool gstv4l2bufferpool.c:143:gst_v4l2_buffer_pool_copy_buffer:<video_sink:pool0:sink>�[00m copying buffer
2023-11-17_09:31:54.45380-0800 0:00:00.754594012 �[33m 2�[00m 0x7f030c000b70 �[37mDEBUG �[00m �[00m v4l2bufferpool gstv4l2bufferpool.c:149:gst_v4l2_buffer_pool_copy_buffer:<video_sink:pool0:sink>�[00m copy video frame
2023-11-17_09:31:54.45381-0800 0:00:00.754597018 �[33m 2�[00m 0x7f030c000bd0 �[33;01mWARN �[00m �[00m basetransform gstbasetransform.c:2228:default_generate_output:<video_crop>�[00m could not get buffer from pool: error
2023-11-17_09:31:54.45382-0800 0:00:00.754652442 �[33m 2�[00m 0x7f030c000bd0 �[36mINFO �[00m �[00m task gsttask.c:368:gst_task_func:<video_decoder_queue:src>�[00m Task going to paused
2023-11-17_09:31:54.45383-0800 0:00:00.754725480 �[33m 2�[00m 0x7f030c000b70 �[33;01mLOG �[00m �[00m v4l2bufferpool gstv4l2bufferpool.c:1157:gst_v4l2_buffer_pool_qbuf:<video_sink:pool0:sink>�[00m queuing buffer 2, previous-state = 1
2023-11-17_09:31:54.45383-0800 0:00:00.754745487 �[33m 2�[00m 0x7f030c000b70 �[33;01mLOG �[00m �[00m v4l2bufferpool gstv4l2bufferpool.c:1666:gst_v4l2_buffer_pool_release_buffer:<video_sink:pool0:sink>�[00m mark buffer 2 not outstanding
2023-11-17_09:31:54.45384-0800 0:00:00.754751088 �[33m 2�[00m 0x7f030c000b70 �[37mDEBUG �[00m �[00m v4l2bufferpool gstv4l2bufferpool.c:1544:gst_v4l2_buffer_pool_complete_release_buffer:<video_sink:pool0:sink>�[00m complete release buffer 0x7f02a01ab150 (queued = yes)
2023-11-17_09:31:54.45384-0800 0:00:00.754755236 �[33m 2�[00m 0x7f030c000b70 �[33;01mLOG �[00m �[00m v4l2bufferpool gstv4l2bufferpool.c:1637:gst_v4l2_buffer_pool_complete_release_buffer:<video_sink:pool0:sink>�[00m buffer 2 is queued
2023-11-17_09:31:54.45385-0800 0:00:00.754764533 �[33m 2�[00m 0x7f030c000b70 �[33;01mLOG �[00m �[00m v4l2bufferpool gstv4l2bufferpool.c:1257:gst_v4l2_buffer_pool_dqbuf:<video_sink:pool0:sink>�[00m dequeueing a buffer
2023-11-17_09:31:54.45386-0800 0:00:00.754792777 �[33m 2�[00m 0x7f030c000b70 �[33;01mLOG �[00m �[00m v4l2bufferpool gstv4l2bufferpool.c:1300:gst_v4l2_buffer_pool_dqbuf:<video_sink:pool0:sink>�[00m dequeued buffer 0x7f02a01ab150 seq:0 (ix=2), mem 0x7f02a80b76b0 used 348160, plane=0, flags 00000001, ts 0:00:00.094127000, pool-queued=0, buffer=0x7f02a01ab150, previous-state=2
2023-11-17_09:31:54.45388-0800 0:00:00.754798367 �[33m 2�[00m 0x7f030c000b70 �[37mDEBUG �[00m �[00m v4l2bufferpool gstv4l2bufferpool.c:1544:gst_v4l2_buffer_pool_complete_release_buffer:<video_sink:pool0:sink>�[00m complete release buffer 0x7f02a01ab150 (queued = no)
2023-11-17_09:31:54.45390-0800 0:00:00.754802675 �[33m 2�[00m 0x7f030c000b70 �[33;01mLOG �[00m �[00m v4l2bufferpool gstv4l2bufferpool.c:1621:gst_v4l2_buffer_pool_complete_release_buffer:<video_sink:pool0:sink>�[00m buffer 2 not queued, putting on free list
2023-11-17_09:31:54.45392-0800 0:00:00.754810650 �[33m 2�[00m 0x7f030c000b70 �[33;01mLOG �[00m �[00m v4l2bufferpool gstv4l2bufferpool.c:1248:gst_v4l2_buffer_pool_dqbuf:<video_sink:pool0:sink>�[00m nothing to dequeue
2023-11-17_09:31:54.45602-0800 0:00:00.757062837 �[33m 2�[00m 0x7f030c000e20 �[36mINFO �[00m �[00m basesrc gstbasesrc.c:3042:gst_base_src_loop:<video_source>�[00m pausing after gst_pad_push() = error
2023-11-17_09:31:54.45607-0800 0:00:00.757088055 �[33m 2�[00m 0x7f030c000e20 �[33;01mWARN �[00m �[00m basesrc gstbasesrc.c:3132:gst_base_src_loop:<video_source>�[00m error: Internal data stream error.
2023-11-17_09:31:54.45610-0800 0:00:00.757096190 �[33m 2�[00m 0x7f030c000e20 �[33;01mWARN �[00m �[00m basesrc gstbasesrc.c:3132:gst_base_src_loop:<video_source>�[00m error: streaming stopped, reason error (-5)
2023-11-17_09:31:54.45614-0800 0:00:00.757119674 �[33m 2�[00m 0x7f030c000e20 �[36mINFO �[00m �[00;01;31;47m GST_ERROR_SYSTEM gstelement.c:2281:gst_element_message_full_with_details:<video_source>�[00m posting message: Internal data stream error.
2023-11-17_09:31:54.45617-0800 0:00:00.757151454 �[33m 2�[00m 0x7f030c000e20 �[36mINFO �[00m �[00;01;31;47m GST_ERROR_SYSTEM gstelement.c:2308:gst_element_message_full_with_details:<video_source>�[00m posted error message: Internal data stream error.
2023-11-17_09:31:54.45623-0800 0:00:00.757179076 �[33m 2�[00m 0x7f030c000e20 �[33;01mWARN �[00m �[00m queue gstqueue.c:992:gst_queue_handle_sink_event:<video_decoder_queue>�[00m error: Internal data stream error.
2023-11-17_09:31:54.45627-0800 0:00:00.757187522 �[33m 2�[00m 0x7f030c000e20 �[33;01mWARN �[00m �[00m queue gstqueue.c:992:gst_queue_handle_sink_event:<video_decoder_queue>�[00m error: streaming stopped, reason error (-5)
2023-11-17_09:31:54.45632-0800 0:00:00.757200527 �[33m 2�[00m 0x7f030c000e20 �[36mINFO �[00m �[00;01;31;47m GST_ERROR_SYSTEM gstelement.c:2281:gst_element_message_full_with_details:<video_decoder_queue>�[00m posting message: Internal data stream error.
2023-11-17_09:31:54.45634-0800 0:00:00.757217529 �[33m 2�[00m 0x7f030c000e20 �[36mINFO �[00m �[00;01;31;47m GST_ERROR_SYSTEM gstelement.c:2308:gst_element_message_full_with_details:<video_decoder_queue>�[00m posted error message: Internal data stream error.
2023-11-17_09:31:54.45636-0800 videod-virtualcam_driver_small[2]: Error received from element video_source: Internal data stream error.
2023-11-17_09:31:54.45638-0800 0:00:00.757228780 �[33m 2�[00m 0x7f030c000e20 �[36mINFO �[00m �[00m task gsttask.c:368:gst_task_func:<video_source:src>�[00m Task going to paused
````
</details>
We are receiving a H264 stream, handle it with the vaapi plugin and transfer it to a v4l virtual device.
This is working with gstreamer 1.20.4.
When I remove the `low-latency` flag on the vaapi decode it works with some h264 video sources, but not all of them.
When I hack the code to increase the buffer it works for some seconds and then the video stream freezes.
````
--- a/sys/v4l2/gstv4l2object.h
+++ b/sys/v4l2/gstv4l2object.h
@@ -47,7 +47,7 @@ typedef struct _GstV4l2ObjectClassHelper GstV4l2ObjectClassHelper;
((GST_VIDEO_INFO_INTERLACE_MODE (&obj->info) == \
GST_VIDEO_INTERLACE_MODE_ALTERNATE) ? \
/* 2x buffers needed with each field in its own buffer */ \
- 4 : 2)
+ 8 : 4)
/* max frame width/height */
#define GST_V4L2_MAX_SIZE (1<<15) /* 2^15 == 32768 */
````
#### Expected Behavior
This error message is not shown and the video is playing normally.
#### Observed Behavior
It should work like in gstreamer 1.20.4. Video should get forwarded to the v4l device.
#### Setup
- **Operating System: buildroot 2023.05**
- **GStreamer Version: 1.22.4**
- **Linux kernel: 5.4.254, x86**
- **Command line: own application using gstreamer**
### Steps to reproduce the bug
<!-- please fill in exact steps which reproduce the bug on your system, for example: -->
1. open terminal
2. type `command`
### How reproducible is the bug?
It happens in the first second of playing.
Deactivating `low-latency` on the vaapi plugin improves it for some h264 sources, but not for all of them.
### Screenshots if relevant
### Solutions you have tried
### Related non-duplicate issues
We have a patch on gstreamer 1.20.4 to make sure it uses nv12 format for the virtual camera sink, this is not needed for gstreamer 1.22.6 any more.
### Additional Information
With gstreamer 1.22.6 it allocates 3 buffers:
<details>
````
2023-11-17_09:31:54.31285-0800 0:00:00.613896073 �[33m 2�[00m 0x7f030c000e20 �[36mINFO �[00m �[00m vaapipostproc gstvaapipostproc.c:1354:ensure_allowed_sinkpad_caps:<video_scale>�[00m postproc sink allowed caps is video/x-raw(memory:VASurface), format=(string){ BGRA, RGBA, BGRx, RGBx, NV12, P010_10LE }, width=(int)[ 0, 16384 ], height=(int)[ 0, 16384 ], framerate=(fraction)[ 0/1, 2147483647/1 ]; video/x-raw(memory:DMABuf), format=(string){ BGRA, RGBA, BGRx, RGBx, NV12, P010_10LE }, width=(int)[ 0, 16384 ], height=(int)[ 0, 16384 ], framerate=(fraction)[ 0/1, 2147483647/1 ]; video/x-raw, format=(string){ NV12, YV12, I420, YUY2, UYVY, Y444, GRAY8, P010_10LE, RGBA, RGBx, BGRA, BGRx }, width=(int)[ 0, 16384 ], height=(int)[ 0, 16384 ], framerate=(fraction)[ 0/1, 2147483647/1 ]
2023-11-17_09:31:54.31305-0800 0:00:00.614104055 �[33m 2�[00m 0x7f030c000e20 �[36mINFO �[00m �[00;01;34m GST_EVENT gstevent.c:998:gst_event_new_segment:�[00m creating segment event time segment start=0:00:00.000000000, offset=0:00:00.000000000, stop=99:99:99.999999999, rate=1.000000, applied_rate=1.000000, flags=0x00, time=0:00:00.000000000, base=0:00:00.000000000, position 0:00:00.000695191, duration 99:99:99.999999999
2023-11-17_09:31:54.31365-0800 0:00:00.614697594 �[33m 2�[00m 0x7f030c000e20 �[36mINFO �[00m �[00;01;34m GST_EVENT gstevent.c:918:gst_event_new_caps:�[00m creating caps event video/x-h264, stream-format=(string)avc, alignment=(string)au, codec_data=(buffer)0164441effe1001d6764441eac5480a029bff0001000110000030001000003003c0f08846a01000468ce3c80, level=(string)3, profile=(string)high
2023-11-17_09:31:54.31884-0800 0:00:00.619861822 �[33m 2�[00m 0x7f030c000bd0 �[36mINFO �[00m �[00m vaapidecode gstvaapidecode.c:186:gst_vaapidecode_update_sink_caps:<video_decoder>�[00m new sink caps = video/x-h264, stream-format=(string)avc, alignment=(string)au, codec_data=(buffer)0164441effe1001d6764441eac5480a029bff0001000110000030001000003003c0f08846a01000468ce3c80, level=(string)3, profile=(string)high
2023-11-17_09:31:54.31919-0800 0:00:00.620247539 �[33m 2�[00m 0x7f030c000bd0 �[36mINFO �[00m �[00m vaapidecode gstvaapidecode.c:186:gst_vaapidecode_update_sink_caps:<video_decoder>�[00m new sink caps = video/x-h264, stream-format=(string)avc, alignment=(string)au, codec_data=(buffer)0164441effe1001d6764441eac5480a029bff0001000110000030001000003003c0f08846a01000468ce3c80, level=(string)3, profile=(string)high, multiview-mode=(string)mono, multiview-flags=(GstVideoMultiviewFlagsSet)0:ffffffff:/right-view-first/left-flipped/left-flopped/right-flipped/right-flopped/half-aspect/mixed-mono, views=(int)2
2023-11-17_09:31:54.31922-0800 0:00:00.620275151 �[33m 2�[00m 0x7f030c000bd0 �[36mINFO �[00m �[00m vaapidecode gstvaapidecode.c:186:gst_vaapidecode_update_sink_caps:<video_decoder>�[00m new sink caps = video/x-h264, stream-format=(string)avc, alignment=(string)au, codec_data=(buffer)0164441effe1001d6764441eac5480a029bff0001000110000030001000003003c0f08846a01000468ce3c80, level=(string)3, profile=(string)high, multiview-mode=(string)mono, multiview-flags=(GstVideoMultiviewFlagsSet)0:ffffffff:/right-view-first/left-flipped/left-flopped/right-flipped/right-flopped/half-aspect/mixed-mono, views=(int)2, width=(int)640, height=(int)320
2023-11-17_09:31:54.32187-0800 0:00:00.622910721 �[33m 2�[00m 0x7f030c000bd0 �[36mINFO �[00m �[00m vaapidecode gstvaapidecode.c:282:gst_vaapidecode_ensure_allowed_srcpad_caps:<video_decoder>�[00m allowed srcpad caps: video/x-raw(memory:VASurface), format=(string){ NV12 }, width=(int)[ 0, 4096 ], height=(int)[ 0, 4096 ], framerate=(fraction)[ 0/1, 2147483647/1 ]; video/x-raw(meta:GstVideoGLTextureUploadMeta), format=(string){ RGBA, BGRA }, width=(int)[ 1, 2147483647 ], height=(int)[ 1, 2147483647 ], framerate=(fraction)[ 0/1, 2147483647/1 ]; video/x-raw, format=(string){ NV12, YV12, I420 }, width=(int)[ 0, 4096 ], height=(int)[ 0, 4096 ], framerate=(fraction)[ 0/1, 2147483647/1 ]
2023-11-17_09:31:54.33981-0800 0:00:00.640812097 �[33m 2�[00m 0x7f030c000bd0 �[36mINFO �[00m �[00m vaapidecode gstvaapidecode.c:404:gst_vaapidecode_update_src_caps:<video_decoder>�[00m new src caps = video/x-raw(memory:VASurface), format=(string)NV12, width=(int)640, height=(int)320, interlace-mode=(string)progressive, multiview-mode=(string)mono, multiview-flags=(GstVideoMultiviewFlagsSet)0:ffffffff:/right-view-first/left-flipped/left-flopped/right-flipped/right-flopped/half-aspect/mixed-mono, pixel-aspect-ratio=(fraction)1/1, views=(int)2, framerate=(fraction)0/1
2023-11-17_09:31:54.33993-0800 0:00:00.640865408 �[33m 2�[00m 0x7f030c000bd0 �[36mINFO �[00m �[00;01;34m GST_EVENT gstevent.c:918:gst_event_new_caps:�[00m creating caps event video/x-raw(memory:VASurface), format=(string)NV12, width=(int)640, height=(int)320, interlace-mode=(string)progressive, multiview-mode=(string)mono, multiview-flags=(GstVideoMultiviewFlagsSet)0:ffffffff:/right-view-first/left-flipped/left-flopped/right-flipped/right-flopped/half-aspect/mixed-mono, pixel-aspect-ratio=(fraction)1/1, views=(int)2, framerate=(fraction)0/1
2023-11-17_09:31:54.36226-0800 0:00:00.663298459 �[33m 2�[00m 0x7f030c000bd0 �[36mINFO �[00m �[00m vaapipostproc gstvaapipostproc.c:1256:gst_vaapipostproc_update_sink_caps:<video_scale>�[00m new sink caps = video/x-raw(memory:VASurface), format=(string)NV12, width=(int)640, height=(int)320, interlace-mode=(string)progressive, multiview-mode=(string)mono, multiview-flags=(GstVideoMultiviewFlagsSet)0:ffffffff:/right-view-first/left-flipped/left-flopped/right-flipped/right-flopped/half-aspect/mixed-mono, pixel-aspect-ratio=(fraction)1/1, views=(int)2, framerate=(fraction)0/1
2023-11-17_09:31:54.36230-0800 0:00:00.663333535 �[33m 2�[00m 0x7f030c000bd0 �[36mINFO �[00m �[00m vaapipostproc gstvaapipostproc.c:1277:gst_vaapipostproc_update_src_caps:<video_scale>�[00m new src caps = video/x-raw, format=(string)NV12, width=(int)1394, height=(int)873, framerate=(fraction)0/1, interlace-mode=(string)progressive, pixel-aspect-ratio=(fraction)1/1, colorimetry=(string)2:4:7:1, multiview-mode=(string)mono, multiview-flags=(GstVideoMultiviewFlagsSet)0:ffffffff:/right-view-first/left-flipped/left-flopped/right-flipped/right-flopped/half-aspect/mixed-mono, views=(int)2, chroma-site=(string)jpeg
2023-11-17_09:31:54.36236-0800 0:00:00.663413255 �[33m 2�[00m 0x7f030c000bd0 �[36mINFO �[00m �[00m glcontext gstglcontext.c:689:gst_gl_context_finalize:<glcontextglx0>�[00m send quit gl window loop
2023-11-17_09:31:54.36241-0800 0:00:00.663442160 �[33m 2�[00m 0x7f030c000bd0 �[36mINFO �[00m �[00m glwindow gstglwindow.c:616:gst_gl_window_quit:�[00m quit sent to gl window loop
2023-11-17_09:31:54.36245-0800 0:00:00.663450766 �[33m 2�[00m 0x7f030c000bd0 �[36mINFO �[00m �[00m glcontext gstglcontext.c:692:gst_gl_context_finalize:<glcontextglx0>�[00m joining gl thread
2023-11-17_09:31:54.36249-0800 0:00:00.663460505 �[33m 2�[00m 0x5614f5d1e7d0 �[36mINFO �[00m �[00m glcontext gstglcontext.c:1403:gst_gl_context_create_thread:<glcontextglx0>�[00m loop exited
2023-11-17_09:31:54.36332-0800 0:00:00.664356183 �[33m 2�[00m 0x7f030c000bd0 �[36mINFO �[00m �[00m glcontext gstglcontext.c:695:gst_gl_context_finalize:<glcontextglx0>�[00m gl thread joined
2023-11-17_09:31:54.36403-0800 0:00:00.665074748 �[33m 2�[00m 0x7f030c000bd0 �[33;01mWARN �[00m �[00m vaapifilter gstvaapifilter.c:2430:gst_vaapi_filter_set_colorimetry_unlocked:<vaapifilter2>�[00m driver does not support '2:4:7:1' output colorimetry. vpp may fail or produce unexpected results.
2023-11-17_09:31:54.36408-0800 0:00:00.665124212 �[33m 2�[00m 0x7f030c000bd0 �[36mINFO �[00m �[00;01;34m GST_EVENT gstevent.c:918:gst_event_new_caps:�[00m creating caps event video/x-raw, format=(string)NV12, width=(int)1394, height=(int)873, framerate=(fraction)0/1, interlace-mode=(string)progressive, pixel-aspect-ratio=(fraction)1/1, colorimetry=(string)2:4:7:1, multiview-mode=(string)mono, multiview-flags=(GstVideoMultiviewFlagsSet)0:ffffffff:/right-view-first/left-flipped/left-flopped/right-flipped/right-flopped/half-aspect/mixed-mono, views=(int)2, chroma-site=(string)jpeg
2023-11-17_09:31:54.36416-0800 0:00:00.665213630 �[33m 2�[00m 0x7f030c000bd0 �[36mINFO �[00m �[00m basetransform gstbasetransform.c:1326:gst_base_transform_setcaps:<vaapipostproc_sysmem_caps>�[00m reuse caps
2023-11-17_09:31:54.36419-0800 0:00:00.665240792 �[33m 2�[00m 0x7f030c000bd0 �[36mINFO �[00m �[00;01;34m GST_EVENT gstevent.c:918:gst_event_new_caps:�[00m creating caps event video/x-raw, format=(string)NV12, width=(int)1394, height=(int)873, framerate=(fraction)0/1, interlace-mode=(string)progressive, pixel-aspect-ratio=(fraction)1/1, colorimetry=(string)2:4:7:1, multiview-mode=(string)mono, multiview-flags=(GstVideoMultiviewFlagsSet)0:ffffffff:/right-view-first/left-flipped/left-flopped/right-flipped/right-flopped/half-aspect/mixed-mono, views=(int)2, chroma-site=(string)jpeg
2023-11-17_09:31:54.36848-0800 0:00:00.669512386 �[33m 2�[00m 0x7f030c000bd0 �[36mINFO �[00m �[00;01;34m GST_EVENT gstevent.c:918:gst_event_new_caps:�[00m creating caps event video/x-raw, format=(string)NV12, width=(int)640, height=(int)360, framerate=(fraction)0/1, interlace-mode=(string)progressive, pixel-aspect-ratio=(fraction)1/1, colorimetry=(string)2:4:7:1, multiview-mode=(string)mono, multiview-flags=(GstVideoMultiviewFlagsSet)0:ffffffff:/right-view-first/left-flipped/left-flopped/right-flipped/right-flopped/half-aspect/mixed-mono, views=(int)2, chroma-site=(string)jpeg
2023-11-17_09:31:54.37945-0800 0:00:00.680488163 �[33m 2�[00m 0x7f030c000b70 �[36mINFO �[00m �[00;01;34m GST_EVENT gstevent.c:1687:gst_event_new_reconfigure:�[00m creating reconfigure event
2023-11-17_09:31:54.37953-0800 0:00:00.680525944 �[33m 2�[00m 0x7f030c000b70 �[36mINFO �[00m �[00m autoconvert gstautoconvert.c:671:gst_auto_convert_activate_element:<autoconvertchild>�[00m Selected element videoscale0
2023-11-17_09:31:54.37961-0800 0:00:00.680660949 �[33m 2�[00m 0x7f030c000b70 �[36mINFO �[00m �[00m basetransform gstbasetransform.c:1326:gst_base_transform_setcaps:<videoscale0>�[00m reuse caps
2023-11-17_09:31:54.37966-0800 0:00:00.680702617 �[33m 2�[00m 0x7f030c000b70 �[36mINFO �[00m �[00;01;34m GST_EVENT gstevent.c:918:gst_event_new_caps:�[00m creating caps event video/x-raw, format=(string)NV12, width=(int)640, height=(int)360, framerate=(fraction)0/1, interlace-mode=(string)progressive, pixel-aspect-ratio=(fraction)1/1, colorimetry=(string)2:4:7:1, multiview-mode=(string)mono, multiview-flags=(GstVideoMultiviewFlagsSet)0:ffffffff:/right-view-first/left-flipped/left-flopped/right-flipped/right-flopped/half-aspect/mixed-mono, views=(int)2, chroma-site=(string)jpeg
2023-11-17_09:31:54.37983-0800 0:00:00.680878108 �[33m 2�[00m 0x7f030c000b70 �[36mINFO �[00m �[00m v4l2 gstv4l2object.c:3210:gst_v4l2_object_setup_pool:<video_sink:sink>�[00m accessing buffers via mode 2
2023-11-17_09:31:54.37997-0800 0:00:00.681023753 �[33m 2�[00m 0x7f030c000b70 �[33;01mWARN �[00m �[00m structure gststructure.c:2093:priv_gst_structure_append_to_gstring:�[00m No value transform to serialize field 'params' of type 'GstAllocationParams'
2023-11-17_09:31:54.38000-0800 0:00:00.681035736 �[33m 2�[00m 0x7f030c000b70 �[37mDEBUG �[00m �[00m v4l2bufferpool gstv4l2bufferpool.c:538:gst_v4l2_buffer_pool_set_config:<video_sink:pool0:sink>�[00m config GstBufferPoolConfig, caps=(GstCaps)"video/x-raw\,\ format\=\(string\)NV12\,\ width\=\(int\)640\,\ height\=\(int\)360\,\ framerate\=\(fraction\)0/1\,\ interlace-mode\=\(string\)progressive\,\ pixel-aspect-ratio\=\(fraction\)1/1\,\ colorimetry\=\(string\)2:4:7:1\,\ multiview-mode\=\(string\)mono\,\ multiview-flags\=\(GstVideoMultiviewFlagsSet\)0:ffffffff:/right-view-first/left-flipped/left-flopped/right-flipped/right-flopped/half-aspect/mixed-mono\,\ views\=\(int\)2\,\ chroma-site\=\(string\)jpeg", size=(uint)345600, min-buffers=(uint)0, max-buffers=(uint)0, allocator=(GstAllocator)"NULL", params=(GstAllocationParams)NULL;
2023-11-17_09:31:54.38002-0800 0:00:00.681042017 �[33m 2�[00m 0x7f030c000b70 �[36mINFO �[00m �[00m v4l2bufferpool gstv4l2bufferpool.c:586:gst_v4l2_buffer_pool_set_config:<video_sink:pool0:sink>�[00m increasing minimum buffers to 2
2023-11-17_09:31:54.38009-0800 0:00:00.681047508 �[33m 2�[00m 0x7f030c000b70 �[36mINFO �[00m �[00m v4l2bufferpool gstv4l2bufferpool.c:599:gst_v4l2_buffer_pool_set_config:<video_sink:pool0:sink>�[00m reducing maximum buffers to 32
2023-11-17_09:31:54.38010-0800 0:00:00.681052407 �[33m 2�[00m 0x7f030c000b70 �[36mINFO �[00m �[00m v4l2bufferpool gstv4l2bufferpool.c:610:gst_v4l2_buffer_pool_set_config:<video_sink:pool0:sink>�[00m can't allocate, setting maximum to minimum
2023-11-17_09:31:54.38011-0800 0:00:00.681067135 �[33m 2�[00m 0x7f030c000b70 �[36mINFO �[00m �[00m v4l2sink gstv4l2sink.c:525:gst_v4l2sink_set_caps:<video_sink>�[00m outputting buffers via mode 2
2023-11-17_09:31:54.38013-0800 0:00:00.681177854 �[33m 2�[00m 0x7f030c000bd0 �[36mINFO �[00m �[00m videocrop gstvideocrop.c:507:gst_video_crop_decide_allocation:<video_crop>�[00m we are not using passthrough
2023-11-17_09:31:54.38018-0800 0:00:00.681238738 �[33m 2�[00m 0x7f030c000bd0 �[33;01mWARN �[00m �[00m structure gststructure.c:2093:priv_gst_structure_append_to_gstring:�[00m No value transform to serialize field 'params' of type 'GstAllocationParams'
2023-11-17_09:31:54.38019-0800 0:00:00.681247986 �[33m 2�[00m 0x7f030c000bd0 �[37mDEBUG �[00m �[00m v4l2bufferpool gstv4l2bufferpool.c:538:gst_v4l2_buffer_pool_set_config:<video_sink:pool0:sink>�[00m config GstBufferPoolConfig, caps=(GstCaps)"video/x-raw\,\ format\=\(string\)NV12\,\ width\=\(int\)640\,\ height\=\(int\)360\,\ framerate\=\(fraction\)0/1\,\ interlace-mode\=\(string\)progressive\,\ pixel-aspect-ratio\=\(fraction\)1/1\,\ colorimetry\=\(string\)2:4:7:1\,\ multiview-mode\=\(string\)mono\,\ multiview-flags\=\(GstVideoMultiviewFlagsSet\)0:ffffffff:/right-view-first/left-flipped/left-flopped/right-flipped/right-flopped/half-aspect/mixed-mono\,\ views\=\(int\)2\,\ chroma-site\=\(string\)jpeg", size=(uint)345600, min-buffers=(uint)2, max-buffers=(uint)2, allocator=(GstAllocator)"NULL", params=(GstAllocationParams)NULL, options=(string)< GstBufferPoolOptionVideoMeta >;
2023-11-17_09:31:54.38023-0800 0:00:00.681285497 �[33m 2�[00m 0x7f030c000bd0 �[33;01mWARN �[00m �[00m structure gststructure.c:2093:priv_gst_structure_append_to_gstring:�[00m No value transform to serialize field 'params' of type 'GstAllocationParams'
2023-11-17_09:31:54.38024-0800 0:00:00.681293221 �[33m 2�[00m 0x7f030c000bd0 �[37mDEBUG �[00m �[00m v4l2bufferpool gstv4l2bufferpool.c:538:gst_v4l2_buffer_pool_set_config:<video_sink:pool0:sink>�[00m config GstBufferPoolConfig, caps=(GstCaps)"video/x-raw\,\ format\=\(string\)NV12\,\ width\=\(int\)640\,\ height\=\(int\)360\,\ framerate\=\(fraction\)0/1\,\ interlace-mode\=\(string\)progressive\,\ pixel-aspect-ratio\=\(fraction\)1/1\,\ colorimetry\=\(string\)2:4:7:1\,\ multiview-mode\=\(string\)mono\,\ multiview-flags\=\(GstVideoMultiviewFlagsSet\)0:ffffffff:/right-view-first/left-flipped/left-flopped/right-flipped/right-flopped/half-aspect/mixed-mono\,\ views\=\(int\)2\,\ chroma-site\=\(string\)jpeg", size=(uint)345600, min-buffers=(uint)3, max-buffers=(uint)32, allocator=(GstAllocator)"NULL", params=(GstAllocationParams)NULL, options=(string)< GstBufferPoolOptionVideoMeta >;
2023-11-17_09:31:54.38026-0800 0:00:00.681297389 �[33m 2�[00m 0x7f030c000bd0 �[36mINFO �[00m �[00m v4l2bufferpool gstv4l2bufferpool.c:610:gst_v4l2_buffer_pool_set_config:<video_sink:pool0:sink>�[00m can't allocate, setting maximum to minimum
2023-11-17_09:31:54.38027-0800 0:00:00.681328197 �[33m 2�[00m 0x7f030c000bd0 �[36mINFO �[00m �[00;01;34m GST_EVENT gstevent.c:918:gst_event_new_caps:�[00m creating caps event video/x-raw, format=(string)NV12, width=(int)1394, height=(int)873, framerate=(fraction)0/1, interlace-mode=(string)progressive, pixel-aspect-ratio=(fraction)1/1, colorimetry=(string)2:4:7:1, multiview-mode=(string)mono, multiview-flags=(GstVideoMultiviewFlagsSet)0:ffffffff:/right-view-first/left-flipped/left-flopped/right-flipped/right-flopped/half-aspect/mixed-mono, views=(int)2, chroma-site=(string)jpeg
2023-11-17_09:31:54.38032-0800 0:00:00.681372010 �[33m 2�[00m 0x7f030c000bd0 �[36mINFO �[00m �[00m basetransform gstbasetransform.c:1326:gst_base_transform_setcaps:<vaapipostproc_sysmem_caps>�[00m reuse caps
2023-11-17_09:31:54.38043-0800 0:00:00.681491114 �[33m 2�[00m 0x7f030c000bd0 �[36mINFO �[00m �[00m videocrop gstvideocrop.c:507:gst_video_crop_decide_allocation:<video_crop>�[00m we are not using passthrough
2023-11-17_09:31:54.38047-0800 0:00:00.681529917 �[33m 2�[00m 0x7f030c000bd0 �[33;01mWARN �[00m �[00m structure gststructure.c:2093:priv_gst_structure_append_to_gstring:�[00m No value transform to serialize field 'params' of type 'GstAllocationParams'
2023-11-17_09:31:54.38049-0800 0:00:00.681537562 �[33m 2�[00m 0x7f030c000bd0 �[37mDEBUG �[00m �[00m v4l2bufferpool gstv4l2bufferpool.c:538:gst_v4l2_buffer_pool_set_config:<video_sink:pool0:sink>�[00m config GstBufferPoolConfig, caps=(GstCaps)"video/x-raw\,\ format\=\(string\)NV12\,\ width\=\(int\)640\,\ height\=\(int\)360\,\ framerate\=\(fraction\)0/1\,\ interlace-mode\=\(string\)progressive\,\ pixel-aspect-ratio\=\(fraction\)1/1\,\ colorimetry\=\(string\)2:4:7:1\,\ multiview-mode\=\(string\)mono\,\ multiview-flags\=\(GstVideoMultiviewFlagsSet\)0:ffffffff:/right-view-first/left-flipped/left-flopped/right-flipped/right-flopped/half-aspect/mixed-mono\,\ views\=\(int\)2\,\ chroma-site\=\(string\)jpeg", size=(uint)345600, min-buffers=(uint)3, max-buffers=(uint)32, allocator=(GstAllocator)"NULL", params=(GstAllocationParams)NULL, options=(string)< GstBufferPoolOptionVideoMeta >;
2023-11-17_09:31:54.38050-0800 0:00:00.681541810 �[33m 2�[00m 0x7f030c000bd0 �[36mINFO �[00m �[00m v4l2bufferpool gstv4l2bufferpool.c:610:gst_v4l2_buffer_pool_set_config:<video_sink:pool0:sink>�[00m can't allocate, setting maximum to minimum
2023-11-17_09:31:54.38057-0800 0:00:00.681625307 �[33m 2�[00m 0x7f030c000bd0 �[36mINFO �[00m �[00m vaapipostproc gstvaapipluginbase.c:1086:gst_vaapi_plugin_base_decide_allocation:<video_scale>�[00m ignoring non-VAAPI pool: <videobufferpool0>
2023-11-17_09:31:54.40023-0800 0:00:00.701188968 �[33m 2�[00m 0x7f030c000bd0 �[36mINFO �[00m �[00m vaapipostproc gstvaapipluginbase.c:1086:gst_vaapi_plugin_base_decide_allocation:<video_scale>�[00m ignoring non-VAAPI pool: <videobufferpool1>
2023-11-17_09:31:54.40110-0800 0:00:00.702131685 �[33m 2�[00m 0x7f030c000bd0 �[36mINFO �[00m �[00m videodecoder gstvideodecoder.c:3731:gst_video_decoder_clip_and_push_buf:<video_decoder>�[00m First buffer since flush took 0:00:00.137793993 to produce
2023-11-17_09:31:54.41582-0800 0:00:00.716846603 �[33m 2�[00m 0x7f030c000bd0 �[37mDEBUG �[00m �[00m v4l2bufferpool gstv4l2bufferpool.c:784:gst_v4l2_buffer_pool_start:<video_sink:pool0:sink>�[00m activating pool
2023-11-17_09:31:54.41590-0800 0:00:00.716889434 �[33m 2�[00m 0x7f030c000bd0 �[37mDEBUG �[00m �[00m v4l2bufferpool gstv4l2bufferpool.c:831:gst_v4l2_buffer_pool_start:<video_sink:pool0:sink>�[00m requesting 3 MMAP buffers
````
</details>
With working gstreamer 1.20.4 it allocates 2 buffers:
<details>
````
2023-11-15_06:11:33.96702-0800 0:00:00.906768909 �[33m 2�[00m 0x7f45180014d0 �[36mINFO �[00m �[00m vaapidecode gstvaapidecode.c:186:gst_vaapidecode_update_sink_caps:<video_decoder>�[00m new sink caps = video/x-h264, stream-format=(string)avc, alignment=(string)au, codec_data=(buffer)0164441effe1001d6764441eac5480a029bff0001000110000030001000003003c0f08846a01000468ce3c80, level=(string)3, profile=(string)high
2023-11-15_06:11:33.96739-0800 0:00:00.907160273 �[33m 2�[00m 0x7f45180014d0 �[36mINFO �[00m �[00m vaapidecode gstvaapidecode.c:186:gst_vaapidecode_update_sink_caps:<video_decoder>�[00m new sink caps = video/x-h264, stream-format=(string)avc, alignment=(string)au, codec_data=(buffer)0164441effe1001d6764441eac5480a029bff0001000110000030001000003003c0f08846a01000468ce3c80, level=(string)3, profile=(string)high, multiview-mode=(string)mono, multiview-flags=(GstVideoMultiviewFlagsSet)0:ffffffff:/right-view-first/left-flipped/left-flopped/right-flipped/right-flopped/half-aspect/mixed-mono, views=(int)2
2023-11-15_06:11:33.96743-0800 0:00:00.907191561 �[33m 2�[00m 0x7f45180014d0 �[36mINFO �[00m �[00m vaapidecode gstvaapidecode.c:186:gst_vaapidecode_update_sink_caps:<video_decoder>�[00m new sink caps = video/x-h264, stream-format=(string)avc, alignment=(string)au, codec_data=(buffer)0164441effe1001d6764441eac5480a029bff0001000110000030001000003003c0f08846a01000468ce3c80, level=(string)3, profile=(string)high, multiview-mode=(string)mono, multiview-flags=(GstVideoMultiviewFlagsSet)0:ffffffff:/right-view-first/left-flipped/left-flopped/right-flipped/right-flopped/half-aspect/mixed-mono, views=(int)2, width=(int)640, height=(int)320
2023-11-15_06:11:33.97029-0800 0:00:00.910039641 �[33m 2�[00m 0x7f45180014d0 �[36mINFO �[00m �[00m vaapidecode gstvaapidecode.c:282:gst_vaapidecode_ensure_allowed_srcpad_caps:<video_decoder>�[00m allowed srcpad caps: video/x-raw(memory:VASurface), format=(string){ NV12 }, width=(int)[ 0, 4096 ], height=(int)[ 0, 4096 ], framerate=(fraction)[ 0/1, 2147483647/1 ]; video/x-raw(meta:GstVideoGLTextureUploadMeta), format=(string){ RGBA, BGRA }, width=(int)[ 1, 2147483647 ], height=(int)[ 1, 2147483647 ], framerate=(fraction)[ 0/1, 2147483647/1 ]; video/x-raw, format=(string){ NV12, YV12, I420 }, width=(int)[ 0, 4096 ], height=(int)[ 0, 4096 ], framerate=(fraction)[ 0/1, 2147483647/1 ]
2023-11-15_06:11:33.98254-0800 0:00:00.922233694 �[33m 2�[00m 0x7f45180014d0 �[36mINFO �[00m �[00m vaapidecode gstvaapidecode.c:404:gst_vaapidecode_update_src_caps:<video_decoder>�[00m new src caps = video/x-raw(memory:VASurface), format=(string)NV12, width=(int)640, height=(int)320, interlace-mode=(string)progressive, multiview-mode=(string)mono, multiview-flags=(GstVideoMultiviewFlagsSet)0:ffffffff:/right-view-first/left-flipped/left-flopped/right-flipped/right-flopped/half-aspect/mixed-mono, pixel-aspect-ratio=(fraction)1/1, views=(int)2, framerate=(fraction)0/1
2023-11-15_06:11:33.98260-0800 0:00:00.922305198 �[33m 2�[00m 0x7f45180014d0 �[36mINFO �[00m �[00;01;34m GST_EVENT gstevent.c:892:gst_event_new_caps:�[00m creating caps event video/x-raw(memory:VASurface), format=(string)NV12, width=(int)640, height=(int)320, interlace-mode=(string)progressive, multiview-mode=(string)mono, multiview-flags=(GstVideoMultiviewFlagsSet)0:ffffffff:/right-view-first/left-flipped/left-flopped/right-flipped/right-flopped/half-aspect/mixed-mono, pixel-aspect-ratio=(fraction)1/1, views=(int)2, framerate=(fraction)0/1
2023-11-15_06:11:33.99752-0800 0:00:00.937141786 �[33m 2�[00m 0x7f45180014d0 �[36mINFO �[00m �[00m vaapipostproc gstvaapipostproc.c:1252:gst_vaapipostproc_update_sink_caps:<video_scale>�[00m new sink caps = video/x-raw(memory:VASurface), format=(string)NV12, width=(int)640, height=(int)320, interlace-mode=(string)progressive, multiview-mode=(string)mono, multiview-flags=(GstVideoMultiviewFlagsSet)0:ffffffff:/right-view-first/left-flipped/left-flopped/right-flipped/right-flopped/half-aspect/mixed-mono, pixel-aspect-ratio=(fraction)1/1, views=(int)2, framerate=(fraction)0/1
2023-11-15_06:11:33.99758-0800 0:00:00.937195176 �[33m 2�[00m 0x7f45180014d0 �[36mINFO �[00m �[00m vaapipostproc gstvaapipostproc.c:1273:gst_vaapipostproc_update_src_caps:<video_scale>�[00m new src caps = video/x-raw, format=(string)NV12, width=(int)1394, height=(int)873, framerate=(fraction)0/1, interlace-mode=(string)progressive, pixel-aspect-ratio=(fraction)1/1, colorimetry=(string)2:4:7:1, multiview-mode=(string)mono, multiview-flags=(GstVideoMultiviewFlagsSet)0:ffffffff:/right-view-first/left-flipped/left-flopped/right-flipped/right-flopped/half-aspect/mixed-mono, views=(int)2, chroma-site=(string)jpeg
2023-11-15_06:11:33.99760-0800 0:00:00.937247694 �[33m 2�[00m 0x7f45180014d0 �[36mINFO �[00m �[00m glcontext gstglcontext.c:696:gst_gl_context_finalize:<glcontextglx0>�[00m send quit gl window loop
2023-11-15_06:11:33.99762-0800 0:00:00.937270738 �[33m 2�[00m 0x7f45180014d0 �[36mINFO �[00m �[00m glwindow gstglwindow.c:616:gst_gl_window_quit:�[00m quit sent to gl window loop
2023-11-15_06:11:33.99763-0800 0:00:00.937281338 �[33m 2�[00m 0x7f45180014d0 �[36mINFO �[00m �[00m glcontext gstglcontext.c:699:gst_gl_context_finalize:<glcontextglx0>�[00m joining gl thread
2023-11-15_06:11:33.99763-0800 0:00:00.937288451 �[33m 2�[00m 0x55901871ec80 �[36mINFO �[00m �[00m glcontext gstglcontext.c:1394:gst_gl_context_create_thread:<glcontextglx0>�[00m loop exited
2023-11-15_06:11:33.99834-0800 0:00:00.938070397 �[33m 2�[00m 0x7f45180014d0 �[36mINFO �[00m �[00m glcontext gstglcontext.c:702:gst_gl_context_finalize:<glcontextglx0>�[00m gl thread joined
2023-11-15_06:11:33.99901-0800 0:00:00.938761823 �[33m 2�[00m 0x7f45180014d0 �[33;01mWARN �[00m �[00m vaapifilter gstvaapifilter.c:2405:gst_vaapi_filter_set_colorimetry_unlocked:<vaapifilter2>�[00m driver does not support '2:4:7:1' output colorimetry. vpp may fail or produce unexpected results.
2023-11-15_06:11:33.99907-0800 0:00:00.938841513 �[33m 2�[00m 0x7f45180014d0 �[36mINFO �[00m �[00;01;34m GST_EVENT gstevent.c:892:gst_event_new_caps:�[00m creating caps event video/x-raw, format=(string)NV12, width=(int)1394, height=(int)873, framerate=(fraction)0/1, interlace-mode=(string)progressive, pixel-aspect-ratio=(fraction)1/1, colorimetry=(string)2:4:7:1, multiview-mode=(string)mono, multiview-flags=(GstVideoMultiviewFlagsSet)0:ffffffff:/right-view-first/left-flipped/left-flopped/right-flipped/right-flopped/half-aspect/mixed-mono, views=(int)2, chroma-site=(string)jpeg
2023-11-15_06:11:33.99916-0800 0:00:00.938935499 �[33m 2�[00m 0x7f45180014d0 �[36mINFO �[00m �[00m basetransform gstbasetransform.c:1326:gst_base_transform_setcaps:<vaapipostproc_sysmem_caps>�[00m reuse caps
2023-11-15_06:11:33.99919-0800 0:00:00.938963281 �[33m 2�[00m 0x7f45180014d0 �[36mINFO �[00m �[00;01;34m GST_EVENT gstevent.c:892:gst_event_new_caps:�[00m creating caps event video/x-raw, format=(string)NV12, width=(int)1394, height=(int)873, framerate=(fraction)0/1, interlace-mode=(string)progressive, pixel-aspect-ratio=(fraction)1/1, colorimetry=(string)2:4:7:1, multiview-mode=(string)mono, multiview-flags=(GstVideoMultiviewFlagsSet)0:ffffffff:/right-view-first/left-flipped/left-flopped/right-flipped/right-flopped/half-aspect/mixed-mono, views=(int)2, chroma-site=(string)jpeg
2023-11-15_06:11:34.00325-0800 0:00:00.943007624 �[33m 2�[00m 0x7f45180014d0 �[36mINFO �[00m �[00;01;34m GST_EVENT gstevent.c:892:gst_event_new_caps:�[00m creating caps event video/x-raw, format=(string)NV12, width=(int)640, height=(int)360, framerate=(fraction)0/1, interlace-mode=(string)progressive, pixel-aspect-ratio=(fraction)1/1, colorimetry=(string)2:4:7:1, multiview-mode=(string)mono, multiview-flags=(GstVideoMultiviewFlagsSet)0:ffffffff:/right-view-first/left-flipped/left-flopped/right-flipped/right-flopped/half-aspect/mixed-mono, views=(int)2, chroma-site=(string)jpeg
2023-11-15_06:11:34.01700-0800 0:00:00.956749148 �[33m 2�[00m 0x7f4518001890 �[36mINFO �[00m �[00;01;34m GST_EVENT gstevent.c:1660:gst_event_new_reconfigure:�[00m creating reconfigure event
2023-11-15_06:11:34.01703-0800 0:00:00.956805975 �[33m 2�[00m 0x7f4518001890 �[36mINFO �[00m �[00m autoconvert gstautoconvert.c:671:gst_auto_convert_activate_element:<autoconvertchild>�[00m Selected element vaapipostproc0
2023-11-15_06:11:34.01733-0800 0:00:00.957085128 �[33m 2�[00m 0x7f4518001890 �[33;01mWARN �[00m �[00m basetransform gstbasetransform.c:1371:gst_base_transform_setcaps:<vaapipostproc0>�[00m transform could not transform video/x-raw, format=(string)NV12, width=(int)640, height=(int)360, framerate=(fraction)0/1, interlace-mode=(string)progressive, pixel-aspect-ratio=(fraction)1/1, colorimetry=(string)2:4:7:1, multiview-mode=(string)mono, multiview-flags=(GstVideoMultiviewFlagsSet)0:ffffffff:/right-view-first/left-flipped/left-flopped/right-flipped/right-flopped/half-aspect/mixed-mono, views=(int)2, chroma-site=(string)jpeg in anything we support
2023-11-15_06:11:34.01740-0800 0:00:00.957168414 �[33m 2�[00m 0x7f45180014d0 �[36mINFO �[00m �[00m videocrop gstvideocrop.c:488:gst_video_crop_decide_allocation:<video_crop>�[00m we are not using passthrough
2023-11-15_06:11:34.01755-0800 0:00:00.957316823 �[33m 2�[00m 0x7f45180014d0 �[36mINFO �[00m �[00;01;34m GST_EVENT gstevent.c:892:gst_event_new_caps:�[00m creating caps event video/x-raw, format=(string)NV12, width=(int)1394, height=(int)873, framerate=(fraction)0/1, interlace-mode=(string)progressive, pixel-aspect-ratio=(fraction)1/1, colorimetry=(string)2:4:7:1, multiview-mode=(string)mono, multiview-flags=(GstVideoMultiviewFlagsSet)0:ffffffff:/right-view-first/left-flipped/left-flopped/right-flipped/right-flopped/half-aspect/mixed-mono, views=(int)2, chroma-site=(string)jpeg
2023-11-15_06:11:34.01761-0800 0:00:00.957387185 �[33m 2�[00m 0x7f45180014d0 �[36mINFO �[00m �[00m basetransform gstbasetransform.c:1326:gst_base_transform_setcaps:<vaapipostproc_sysmem_caps>�[00m reuse caps
2023-11-15_06:11:34.01773-0800 0:00:00.957508171 �[33m 2�[00m 0x7f45180014d0 �[36mINFO �[00m �[00m videocrop gstvideocrop.c:488:gst_video_crop_decide_allocation:<video_crop>�[00m we are not using passthrough
2023-11-15_06:11:34.01789-0800 0:00:00.957664695 �[33m 2�[00m 0x7f45180014d0 �[36mINFO �[00m �[00m vaapipostproc gstvaapipluginbase.c:1086:gst_vaapi_plugin_base_decide_allocation:<video_scale>�[00m ignoring non-VAAPI pool: <videobufferpool2>
2023-11-15_06:11:34.03765-0800 0:00:00.977375091 �[33m 2�[00m 0x7f45180014d0 �[36mINFO �[00m �[00m vaapipostproc gstvaapipluginbase.c:1086:gst_vaapi_plugin_base_decide_allocation:<video_scale>�[00m ignoring non-VAAPI pool: <videobufferpool3>
2023-11-15_06:11:34.03836-0800 0:00:00.978120168 �[33m 2�[00m 0x7f45180014d0 �[36mINFO �[00m �[00m videodecoder gstvideodecoder.c:3722:gst_video_decoder_clip_and_push_buf:<video_decoder>�[00m First buffer since flush took 0:00:00.304360224 to produce
2023-11-15_06:11:34.03855-0800 0:00:00.978306447 �[33m 2�[00m 0x7f4518001890 �[36mINFO �[00m �[00m basetransform gstbasetransform.c:1326:gst_base_transform_setcaps:<vaapipostproc0>�[00m reuse caps
2023-11-15_06:11:34.03858-0800 0:00:00.978345410 �[33m 2�[00m 0x7f4518001890 �[36mINFO �[00m �[00m vaapipostproc gstvaapipostproc.c:1252:gst_vaapipostproc_update_sink_caps:<vaapipostproc0>�[00m new sink caps = video/x-raw, format=(string)NV12, width=(int)640, height=(int)360, framerate=(fraction)0/1, interlace-mode=(string)progressive, pixel-aspect-ratio=(fraction)1/1, colorimetry=(string)2:4:7:1, multiview-mode=(string)mono, multiview-flags=(GstVideoMultiviewFlagsSet)0:ffffffff:/right-view-first/left-flipped/left-flopped/right-flipped/right-flopped/half-aspect/mixed-mono, views=(int)2, chroma-site=(string)jpeg
2023-11-15_06:11:34.03860-0800 0:00:00.978368794 �[33m 2�[00m 0x7f4518001890 �[36mINFO �[00m �[00m vaapipostproc gstvaapipostproc.c:1273:gst_vaapipostproc_update_src_caps:<vaapipostproc0>�[00m new src caps = video/x-raw, format=(string)NV12, width=(int)640, height=(int)360, framerate=(fraction)0/1, interlace-mode=(string)progressive, pixel-aspect-ratio=(fraction)1/1, colorimetry=(string)2:4:7:1, multiview-mode=(string)mono, multiview-flags=(GstVideoMultiviewFlagsSet)0:ffffffff:/right-view-first/left-flipped/left-flopped/right-flipped/right-flopped/half-aspect/mixed-mono, views=(int)2, chroma-site=(string)jpeg
2023-11-15_06:11:34.05185-0800 0:00:00.991553755 �[33m 2�[00m 0x7f4518001890 �[36mINFO �[00m �[00m vaapipostproc gstvaapipluginbase.c:510:ensure_sinkpad_allocator:<vaapipostproc0>�[00m enabling direct upload in sink allocator
2023-11-15_06:11:34.05541-0800 0:00:00.995152352 �[33m 2�[00m 0x7f4518001890 �[36mINFO �[00m �[00m vaapivideomemory gstvaapivideomemory.c:723:gst_video_info_update_from_surface:�[00m Cannot create a VA derived image from surface 0x7f4514026490
2023-11-15_06:11:34.05886-0800 0:00:00.998598443 �[33m 2�[00m 0x7f4518001890 �[33;01mWARN �[00m �[00m vaapifilter gstvaapifilter.c:2395:gst_vaapi_filter_set_colorimetry_unlocked:<vaapifilter3>�[00m driver does not support '2:4:7:1' input colorimetry. vpp may fail or produce unexpected results.
2023-11-15_06:11:34.05894-0800 0:00:00.998645471 �[33m 2�[00m 0x7f4518001890 �[33;01mWARN �[00m �[00m vaapifilter gstvaapifilter.c:2405:gst_vaapi_filter_set_colorimetry_unlocked:<vaapifilter3>�[00m driver does not support '2:4:7:1' output colorimetry. vpp may fail or produce unexpected results.
2023-11-15_06:11:34.06244-0800 0:00:01.002185789 �[33m 2�[00m 0x7f4518001890 �[36mINFO �[00m �[00;01;34m GST_EVENT gstevent.c:892:gst_event_new_caps:�[00m creating caps event video/x-raw, format=(string)NV12, width=(int)640, height=(int)360, framerate=(fraction)0/1, interlace-mode=(string)progressive, pixel-aspect-ratio=(fraction)1/1, colorimetry=(string)2:4:7:1, multiview-mode=(string)mono, multiview-flags=(GstVideoMultiviewFlagsSet)0:ffffffff:/right-view-first/left-flipped/left-flopped/right-flipped/right-flopped/half-aspect/mixed-mono, views=(int)2, chroma-site=(string)jpeg
2023-11-15_06:11:34.06361-0800 0:00:01.002540213 �[33m 2�[00m 0x7f4518001890 �[36mINFO �[00m �[00m v4l2 gstv4l2object.c:3240:gst_v4l2_object_setup_pool:<video_sink:sink>�[00m accessing buffers via mode 2
2023-11-15_06:11:34.06365-0800 0:00:01.002883387 �[33m 2�[00m 0x7f4518001890 �[33;01mWARN �[00m �[00m structure gststructure.c:2091:priv_gst_structure_append_to_gstring:�[00m No value transform to serialize field 'params' of type 'GstAllocationParams'
2023-11-15_06:11:34.06366-0800 0:00:01.002906260 �[33m 2�[00m 0x7f4518001890 �[37mDEBUG �[00m �[00m v4l2bufferpool gstv4l2bufferpool.c:545:gst_v4l2_buffer_pool_set_config:<video_sink:pool0:sink>�[00m config GstBufferPoolConfig, caps=(GstCaps)"video/x-raw\,\ format\=\(string\)NV12\,\ width\=\(int\)640\,\ height\=\(int\)360\,\ framerate\=\(fraction\)0/1\,\ interlace-mode\=\(string\)progressive\,\ pixel-aspect-ratio\=\(fraction\)1/1\,\ colorimetry\=\(string\)2:4:7:1\,\ multiview-mode\=\(string\)mono\,\ multiview-flags\=\(GstVideoMultiviewFlagsSet\)0:ffffffff:/right-view-first/left-flipped/left-flopped/right-flipped/right-flopped/half-aspect/mixed-mono\,\ views\=\(int\)2\,\ chroma-site\=\(string\)jpeg", size=(uint)345600, min-buffers=(uint)0, max-buffers=(uint)0, allocator=(GstAllocator)"NULL", params=(GstAllocationParams)NULL;
2023-11-15_06:11:34.06370-0800 0:00:01.002913333 �[33m 2�[00m 0x7f4518001890 �[36mINFO �[00m �[00m v4l2bufferpool gstv4l2bufferpool.c:593:gst_v4l2_buffer_pool_set_config:<video_sink:pool0:sink>�[00m increasing minimum buffers to 2
2023-11-15_06:11:34.06370-0800 0:00:01.002918563 �[33m 2�[00m 0x7f4518001890 �[36mINFO �[00m �[00m v4l2bufferpool gstv4l2bufferpool.c:606:gst_v4l2_buffer_pool_set_config:<video_sink:pool0:sink>�[00m reducing maximum buffers to 32
2023-11-15_06:11:34.06371-0800 0:00:01.002922640 �[33m 2�[00m 0x7f4518001890 �[36mINFO �[00m �[00m v4l2bufferpool gstv4l2bufferpool.c:617:gst_v4l2_buffer_pool_set_config:<video_sink:pool0:sink>�[00m can't allocate, setting maximum to minimum
2023-11-15_06:11:34.06371-0800 0:00:01.002943419 �[33m 2�[00m 0x7f4518001890 �[36mINFO �[00m �[00m v4l2sink gstv4l2sink.c:525:gst_v4l2sink_set_caps:<video_sink>�[00m outputting buffers via mode 2
2023-11-15_06:11:34.06372-0800 0:00:01.002977553 �[33m 2�[00m 0x7f4518001890 �[36mINFO �[00m �[00;01;34m GST_EVENT gstevent.c:892:gst_event_new_caps:�[00m creating caps event video/x-raw, format=(string)NV12, width=(int)640, height=(int)360, framerate=(fraction)0/1, interlace-mode=(string)progressive, pixel-aspect-ratio=(fraction)1/1, colorimetry=(string)2:4:7:1, multiview-mode=(string)mono, multiview-flags=(GstVideoMultiviewFlagsSet)0:ffffffff:/right-view-first/left-flipped/left-flopped/right-flipped/right-flopped/half-aspect/mixed-mono, views=(int)2, chroma-site=(string)jpeg
2023-11-15_06:11:34.07304-0800 0:00:01.012759063 �[33m 2�[00m 0x7f4518001890 �[36mINFO �[00m �[00m basetransform gstbasetransform.c:1326:gst_base_transform_setcaps:<vaapipostproc0>�[00m reuse caps
2023-11-15_06:11:34.07334-0800 0:00:01.012990798 �[33m 2�[00m 0x7f4518001890 �[33;01mWARN �[00m �[00m structure gststructure.c:2091:priv_gst_structure_append_to_gstring:�[00m No value transform to serialize field 'params' of type 'GstAllocationParams'
2023-11-15_06:11:34.07337-0800 0:00:01.013015374 �[33m 2�[00m 0x7f4518001890 �[37mDEBUG �[00m �[00m v4l2bufferpool gstv4l2bufferpool.c:545:gst_v4l2_buffer_pool_set_config:<video_sink:pool0:sink>�[00m config GstBufferPoolConfig, caps=(GstCaps)"video/x-raw\,\ format\=\(string\)NV12\,\ width\=\(int\)640\,\ height\=\(int\)360\,\ framerate\=\(fraction\)0/1\,\ interlace-mode\=\(string\)progressive\,\ pixel-aspect-ratio\=\(fraction\)1/1\,\ colorimetry\=\(string\)2:4:7:1\,\ multiview-mode\=\(string\)mono\,\ multiview-flags\=\(GstVideoMultiviewFlagsSet\)0:ffffffff:/right-view-first/left-flipped/left-flopped/right-flipped/right-flopped/half-aspect/mixed-mono\,\ views\=\(int\)2\,\ chroma-site\=\(string\)jpeg", size=(uint)345600, min-buffers=(uint)2, max-buffers=(uint)2, allocator=(GstAllocator)"NULL", params=(GstAllocationParams)NULL, options=(string)< GstBufferPoolOptionVideoMeta >;
2023-11-15_06:11:34.07339-0800 0:00:01.013065177 �[33m 2�[00m 0x7f4518001890 �[37mDEBUG �[00m �[00m v4l2bufferpool gstv4l2bufferpool.c:791:gst_v4l2_buffer_pool_start:<video_sink:pool0:sink>�[00m activating pool
2023-11-15_06:11:34.07340-0800 0:00:01.013090174 �[33m 2�[00m 0x7f4518001890 �[37mDEBUG �[00m �[00m v4l2bufferpool gstv4l2bufferpool.c:838:gst_v4l2_buffer_pool_start:<video_sink:pool0:sink>�[00m requesting 2 MMAP buffers
````
</details>
pipeline with gstreamer 1.20.4: (working):
[0.00.01.221777749-playing-state-graph_clean.svg](/uploads/20f06151558c50ea2d1fc738494d92b4/0.00.01.221777749-playing-state-graph_clean.svg)
pipeline with gstreamer 1.22.6: (broken):
[0.00.00.996988086-playing-state-graph_clean.svg](/uploads/e10189747b3560224acd868731115496/0.00.00.996988086-playing-state-graph_clean.svg)https://gitlab.freedesktop.org/gstreamer/gstreamer/-/issues/3139v4l2 "newly allocated buffer <NUMBER> is not free" flood (1.22.6)2023-12-20T16:50:53ZHugo Melderv4l2 "newly allocated buffer <NUMBER> is not free" flood (1.22.6)Hey,
I am building a broadcasting system with multiple GStreamer pipelines. I am currently using a Camlink 4K as the capture card and access it with v4l2src.
This in connection with a simple intervideo* pipeline results in a flood of w...Hey,
I am building a broadcasting system with multiple GStreamer pipelines. I am currently using a Camlink 4K as the capture card and access it with v4l2src.
This in connection with a simple intervideo* pipeline results in a flood of warnings and occasionally segmentation faults.
Pipeline:
`GST_DEBUG=3 gst-launch-1.0 v4l2src device=/dev/video0 ! queue ! intervideosink intervideosrc ! queue ! fakevideosink`
Output:
```sh
Setting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
0:00:00.145709999 12104 0x7f0f40000f90 FIXME default gstutils.c:4036:gst_pad_create_stream_id_internal:<intervideosrc0:src> Creating random stream-id, consider implementing a deterministic way of creating a stream-id
Pipeline is PREROLLED ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
Redistribute latency...
0:00:00.161686681 12104 0x7f0f40001190 WARN v4l2 gstv4l2object.c:4450:gst_v4l2_object_set_crop:<v4l2src0:src> VIDIOC_S_CROP failed
0:00:00.190617383 12104 0x7f0f40001190 WARN v4l2 gstv4l2object.c:3274:gst_v4l2_object_reset_compose_region:<v4l2src0:src> Failed to get default compose rectangle with VIDIOC_G_SELECTION: Invalid argument
0:00:00.192160526 12104 0x7f0f40001190 WARN v4l2bufferpool gstv4l2bufferpool.c:848:gst_v4l2_buffer_pool_start:<v4l2src0:pool0:src> Uncertain or not enough buffers, enabling copy threshold
0:00:00.234279496 12104 0x7f0f40001190 WARN v4l2bufferpool gstv4l2bufferpool.c:1331:gst_v4l2_buffer_pool_dqbuf:<v4l2src0:pool0:src> Driver should never set v4l2_buffer.field to ANY
0:00:00.234318118 12104 0x7f0f40001190 WARN v4l2src gstv4l2src.c:1281:gst_v4l2src_create:<v4l2src0> Timestamp does not correlate with any clock, ignoring driver timestamps
Redistribute latency...
0:00:00.348729727 12104 0x7f0f40000b90 WARN v4l2bufferpool gstv4l2bufferpool.c:483:gst_v4l2_buffer_pool_alloc_buffer:<v4l2src0:pool0:src> newly allocated buffer 0 is not free
0:00:00.382058474 12104 0x7f0f40000b90 WARN v4l2bufferpool gstv4l2bufferpool.c:483:gst_v4l2_buffer_pool_alloc_buffer:<v4l2src0:pool0:src> newly allocated buffer 5 is not free
0:00:00.415633830 12104 0x7f0f40000b90 WARN v4l2bufferpool gstv4l2bufferpool.c:483:gst_v4l2_buffer_pool_alloc_buffer:<v4l2src0:pool0:src> newly allocated buffer 2 is not free
0:00:00.448723022 12104 0x7f0f40000b90 WARN v4l2bufferpool gstv4l2bufferpool.c:483:gst_v4l2_buffer_pool_alloc_buffer:<v4l2src0:pool0:src> newly allocated buffer 6 is not free
0:00:00.482057426 12104 0x7f0f40000b90 WARN v4l2bufferpool gstv4l2bufferpool.c:483:gst_v4l2_buffer_pool_alloc_buffer:<v4l2src0:pool0:src> newly allocated buffer 3 is not free
0:00:00.515680903 12104 0x7f0f40000b90 WARN v4l2bufferpool gstv4l2bufferpool.c:483:gst_v4l2_buffer_pool_alloc_buffer:<v4l2src0:pool0:src> newly allocated buffer 7 is not free
0:00:00.548965860 12104 0x7f0f40000b90 WARN v4l2bufferpool gstv4l2bufferpool.c:483:gst_v4l2_buffer_pool_alloc_buffer:<v4l2src0:pool0:src> newly allocated buffer 0 is not free
...
```
V4L2 Device:
```sh
Driver Info:
Driver name : uvcvideo
Card type : Cam Link 4K: Cam Link 4K
Bus info : usb-0000:05:00.4-1
Driver version : 6.1.62
Capabilities : 0x84a00001
Video Capture
Metadata Capture
Streaming
Extended Pix Format
Device Capabilities
Device Caps : 0x04200001
Video Capture
Streaming
Extended Pix Format
Media Driver Info:
Driver name : uvcvideo
Model : Cam Link 4K: Cam Link 4K
Serial : 00045D6F85000
Bus info : usb-0000:05:00.4-1
Media version : 6.1.62
Hardware revision: 0x00000000 (0)
Driver version : 6.1.62
Interface Info:
ID : 0x03000002
Type : V4L Video
Entity Info:
ID : 0x00000001 (1)
Name : Cam Link 4K: Cam Link 4K
Function : V4L2 I/O
Flags : default
Pad 0x01000007 : 0: Sink
Link 0x0200000d: from remote pad 0x100000a of entity 'Processing 2' (Video Pixel Formatter): Data, Enabled, Immutable
Priority: 2
Video input : 0 (Input 1: ok)
Format Video Capture:
Width/Height : 1920/1080
Pixel Format : 'YUYV' (YUYV 4:2:2)
Field : None
Bytes per Line : 3840
Size Image : 4147200
Colorspace : sRGB
Transfer Function : Rec. 709
YCbCr/HSV Encoding: Rec. 709
Quantization : Default (maps to Limited Range)
Flags :
Crop Capability Video Capture:
Bounds : Left 0, Top 0, Width 1920, Height 1080
Default : Left 0, Top 0, Width 1920, Height 1080
Pixel Aspect: 1/1
Selection Video Capture: crop_default, Left 0, Top 0, Width 1920, Height 1080, Flags:
Selection Video Capture: crop_bounds, Left 0, Top 0, Width 1920, Height 1080, Flags:
Streaming Parameters Video Capture:
Capabilities : timeperframe
Frames per second: 50.000 (50/1)
Read buffers : 0
User Controls
brightness 0x00980900 (int) : min=-128 max=127 step=1 default=0 value=0
contrast 0x00980901 (int) : min=0 max=255 step=1 default=128 value=128
saturation 0x00980902 (int) : min=0 max=255 step=1 default=128 value=128
hue 0x00980903 (int) : min=-128 max=127 step=1 default=0 value=0
```
Feeding it directly into the sink or with an intermediary like a queue works flawlessly.
System:
- OS: NixOS 23.05
- Kernel: 6.1.62
- CPU: AMD Ryzen 7 5700G with Radeon Graphics (16) @ 3.800GHz
- GPU: AMD ATI Radeon Vega Series / Radeon Vega Mobile Serieshttps://gitlab.freedesktop.org/gstreamer/gstreamer/-/issues/3138gst-discoverer SIGSEGV on H.265 files2023-11-19T11:59:35ZJonas Danielssongst-discoverer SIGSEGV on H.265 files### Describe your issue
Using the Discoverer API or the gst-discoverer tool on mpeg-ts H.265 files result in crash.
#### Expected Behavior
No crash, gets info
#### Observed Behavior
Using the API or the tool on the files I have gene...### Describe your issue
Using the Discoverer API or the gst-discoverer tool on mpeg-ts H.265 files result in crash.
#### Expected Behavior
No crash, gets info
#### Observed Behavior
Using the API or the tool on the files I have generated leads to segfault
#### Setup
- **Operating System: Linux Fedora**
- **Device:** Computer
- **GStreamer Version:** 1.22.5
- **Command line:** gst-discoverer-1 \<uri\>
### Steps to reproduce the bug
1. open terminal
2. $ gst-discoverer-1 \<uri\>
### How reproducible is the bug?
Always.
I have generated mpeg.ts using splitmuxsink from network input from something like this:
```rust
std::thread::spawn(move || {
let pipeline = gst::parse_launch(&format!(
r#"
rtpbin name=rtpbin ntp-time-source=ntp rtcp-sync-send-time=false
videotestsrc name=src is-live=true
! video/x-raw,width=320,height=180,framerate=(fraction)25/1
! videoconvert ! {} key-int-max=5 tune=zerolatency
! {} pt=96 config-interval=1 ! rtpbin.send_rtp_sink_0
rtpbin.send_rtp_src_0 ! udpsink host=127.0.0.1 port={rtp}
rtpbin.send_rtcp_src_0 ! udpsink host=127.0.0.1 port={rtcp} sync=false async=false"#,
match codec {
"h264" => "x264enc",
"h265" => "x265enc",
_ => panic!("unsupported codec")
},
match codec {
"h264" => "rtph264pay",
"h265" => "rtph265pay",
_ => panic!("unsupported codec")
},
))
.unwrap();
```
When checking the files generated by H.264 things are fine and I get duration and output and everything:
```shell
$ gst-discoverer-1.0 test_create_items/item-00000000
Analyzing file:///home/jonasdn/sandbox/spiideo-gstreamer/persist/test_create_items/item-00000000
Done discovering file:///home/jonasdn/sandbox/spiideo-gstreamer/persist/test_create_items/item-00000000
Properties:
Duration: 0:00:05.989468259
Seekable: yes
Live: no
container #0: MPEG-2 Transport Stream
video #1: H.264 (Constrained Baseline Profile)
Stream ID: 846e1036eb1062923a84b3e33e68694bb0f66111d9c72f9a697a5ed354ce804f:1/00000041
Width: 320
Height: 180
Depth: 24
Frame rate: 0/1
Pixel aspect ratio: 1/1
Interlaced: false
Bitrate: 0
Max bitrate: 0
```
When trying to check the files with H.265 I get:
```shell
$ gst-discoverer-1.0 test_create_items/item-00000002
Analyzing file:///home/jonasdn/sandbox/spiideo-gstreamer/persist/test_create_items/item-00000002
Segmentation fault (core dumped)
jonasdn@fedora:~/sandbox/spiideo-gstreamer/persist (persist-render*)$ gdb --args gst-discoverer-1.0 test_create_items/item-00000002
GNU gdb (GDB) Fedora Linux 13.2-3.fc38
Copyright (C) 2023 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-redhat-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from gst-discoverer-1.0...
This GDB supports auto-downloading debuginfo from the following URLs:
<https://debuginfod.fedoraproject.org/>
Enable debuginfod for this session? (y or [n]) y
Debuginfod has been enabled.
To make this setting permanent, add 'set debuginfod enabled on' to .gdbinit.
Downloading separate debug info for /usr/bin/gst-discoverer-1.0
Reading symbols from /home/jonasdn/.cache/debuginfod_client/4e442736675c39bdeba788da92da1596acbc956b/debuginfo...
(gdb) r
Starting program: /usr/bin/gst-discoverer-1.0 test_create_items/item-00000002
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
Analyzing file:///home/jonasdn/sandbox/spiideo-gstreamer/persist/test_create_items/item-00000002
[New Thread 0x7fffe9cff6c0 (LWP 247224)]
[New Thread 0x7fffe94fe6c0 (LWP 247225)]
[New Thread 0x7fffe89936c0 (LWP 247226)]
[New Thread 0x7fffdbfff6c0 (LWP 247227)]
[New Thread 0x7fffdb3ff6c0 (LWP 247228)]
[New Thread 0x7fffdabfe6c0 (LWP 247229)]
[New Thread 0x7fffda3fd6c0 (LWP 247230)]
[New Thread 0x7fffd9bfc6c0 (LWP 247231)]
[New Thread 0x7fffd93fb6c0 (LWP 247232)]
[New Thread 0x7fffd8bfa6c0 (LWP 247233)]
[New Thread 0x7fffd3fff6c0 (LWP 247234)]
[New Thread 0x7fffd37fe6c0 (LWP 247235)]
[New Thread 0x7fffd2ffd6c0 (LWP 247236)]
[New Thread 0x7fffd27fc6c0 (LWP 247237)]
[New Thread 0x7fffd1ffb6c0 (LWP 247238)]
[New Thread 0x7fffd17fa6c0 (LWP 247239)]
[New Thread 0x7fffd0ff96c0 (LWP 247240)]
[New Thread 0x7fffd07f86c0 (LWP 247241)]
[New Thread 0x7fffcfff76c0 (LWP 247242)]
[New Thread 0x7fffcf7f66c0 (LWP 247243)]
[New Thread 0x7fffceff56c0 (LWP 247244)]
[New Thread 0x7fffce7f46c0 (LWP 247245)]
[New Thread 0x7fffcdff36c0 (LWP 247246)]
[New Thread 0x7fffcd7f26c0 (LWP 247247)]
[New Thread 0x7fffccff16c0 (LWP 247248)]
[New Thread 0x7fffcc7f06c0 (LWP 247249)]
[New Thread 0x7fffcbfef6c0 (LWP 247250)]
[New Thread 0x7fffcb7ee6c0 (LWP 247251)]
[New Thread 0x7fffcafed6c0 (LWP 247252)]
[New Thread 0x7fffca7ec6c0 (LWP 247253)]
[New Thread 0x7fffc9feb6c0 (LWP 247254)]
[New Thread 0x7fffc97ea6c0 (LWP 247255)]
[New Thread 0x7fffc8fe96c0 (LWP 247256)]
[New Thread 0x7fffc87e86c0 (LWP 247257)]
[New Thread 0x7fffc7fe76c0 (LWP 247258)]
[New Thread 0x7fffc77e66c0 (LWP 247259)]
[New Thread 0x7fffc6fe56c0 (LWP 247260)]
Thread 5 "multiqueue0:src" received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7fffdbfff6c0 (LWP 247227)]
0x00007ffff7aa70ef in unlink_chunk.isra () from /lib64/libc.so.6
Missing separate debuginfos, use: dnf debuginfo-install glibc-2.37-5.fc38.x86_64 gstreamer1-1.22.5-1.fc38.x86_64 libgcc-13.2.1-1.fc38.x86_64
(gdb) bt
#0 0x00007ffff7aa70ef in unlink_chunk.isra () at /lib64/libc.so.6
#1 0x00007ffff7aaa00d in _int_malloc () at /lib64/libc.so.6
#2 0x00007ffff7aaac74 in malloc () at /lib64/libc.so.6
#3 0x00007ffff7c4e43a in g_malloc (n_bytes=16980) at ../glib/gmem.c:130
#4 0x00007ffff789ae3d in gst_adapter_get_internal () at /lib64/libgstbase-1.0.so.0
#5 0x00007ffff789c7e9 in gst_adapter_get_buffer () at /lib64/libgstbase-1.0.so.0
#6 0x00007ffff78a6e6d in gst_base_parse_chain () at /lib64/libgstbase-1.0.so.0
#7 0x00007ffff7e2ae5c in gst_pad_chain_data_unchecked () at /lib64/libgstreamer-1.0.so.0
#8 0x00007ffff7e2e1fe in gst_pad_push_data () at /lib64/libgstreamer-1.0.so.0
#9 0x00007ffff7e2e834 in gst_pad_push () at /lib64/libgstreamer-1.0.so.0
#10 0x00007fffe9d36184 in gst_single_queue_push_one
(allow_drop=<synthetic pointer>, object=0x7fffe002f470 [None], sq=0x7fffe0007a70, mq=<optimized out>)
at ../plugins/elements/gstmultiqueue.c:2020
#11 gst_multi_queue_loop (pad=<optimized out>) at ../plugins/elements/gstmultiqueue.c:2358
#12 0x00007ffff7e5aec4 in gst_task_func () at /lib64/libgstreamer-1.0.so.0
#13 0x00007ffff7c79112 in g_thread_pool_thread_proxy (data=<optimized out>) at ../glib/gthreadpool.c:350
#14 0x00007ffff7c769f3 in g_thread_proxy (data=0x7fffe4000f20) at ../glib/gthread.c:831
#15 0x00007ffff7a9a947 in start_thread () at /lib64/libc.so.6
#16 0x00007ffff7b20870 in clone3 () at /lib64/libc.so.6
(gdb) l
735 /* run mainloop */
736 g_main_loop_run (ml);
737
738 gst_discoverer_stop (dc);
739 g_free (ps);
740 g_main_loop_unref (ml);
741 }
742 g_object_unref (dc);
743
744 return 0;
(gdb) Quit
```
When I use API directly I get something similar:
```rust
let timeout: gst::ClockTime = gst::ClockTime::from_seconds(15);
let discoverer = gst_pbutils::Discoverer::new(timeout)?;
let uri = format!(
"file:///{}",
std::fs::canonicalize(file.as_ref().unwrap()).unwrap().display()
);
```
```shell
free(): corrupted unsorted chunks
Thread 12 "discoverer-queu" received signal SIGABRT, Aborted.
[Switching to Thread 0x7fffd57ff6c0 (LWP 246205)]
0x00007ffff71cf884 in __pthread_kill_implementation () from /lib64/libc.so.6
Missing separate debuginfos, use: dnf debuginfo-install glibc-2.37-5.fc38.x86_64 gstreamer1-1.22.5-1.fc38.x86_64 libcap-2.48-6.fc38.x86_64 libgcc-13.2.1-1.fc38.x86_64 openssl-libs-3.0.9-2.fc38.x86_64 systemd-libs-253.9-1.fc38.x86_64
(gdb) bt
#0 0x00007ffff71cf884 in __pthread_kill_implementation () at /lib64/libc.so.6
#1 0x00007ffff717eafe in raise () at /lib64/libc.so.6
#2 0x00007ffff716787f in abort () at /lib64/libc.so.6
#3 0x00007ffff716860f in _IO_peekc_locked.cold () at /lib64/libc.so.6
#4 0x00007ffff71d97b5 in () at /lib64/libc.so.6
#5 0x00007ffff71dba0d in _int_free () at /lib64/libc.so.6
#6 0x00007ffff71de20e in free () at /lib64/libc.so.6
#7 0x00007ffff7c009f5 in g_free (mem=0x7fffcc018940) at ../glib/gmem.c:232
#8 0x00007ffff7e0ada1 in __gst_tag_list_free () at /lib64/libgstreamer-1.0.so.0
#9 0x00007ffff7d28978 in g_value_unset (value=0x7fffcc0059b0) at ../gobject/gvalue.c:313
#10 0x00007ffff7e0324e in gst_structure_free () at /lib64/libgstreamer-1.0.so.0
#11 0x00007ffff7dbf97d in _gst_event_free () at /lib64/libgstreamer-1.0.so.0
#12 0x00007ffff7dd5b33 in gst_mini_object_replace () at /lib64/libgstreamer-1.0.so.0
#13 0x00007ffff7ddf9be in store_sticky_event () at /lib64/libgstreamer-1.0.so.0
#14 0x00007ffff7de03ab in gst_pad_send_event_unchecked () at /lib64/libgstreamer-1.0.so.0
#15 0x00007ffff7de0cc3 in gst_pad_push_event_unchecked () at /lib64/libgstreamer-1.0.so.0
#16 0x00007ffff7de1488 in push_sticky () at /lib64/libgstreamer-1.0.so.0
#17 0x00007ffff7dd5c65 in events_foreach.lto_priv () at /lib64/libgstreamer-1.0.so.0
#18 0x00007ffff7de4561 in gst_pad_push_event () at /lib64/libgstreamer-1.0.so.0
#19 0x00007ffff489af50 in gst_queue_push_one (queue=0x7fffcc08a1f0 [GstQueue|discoverer-queue-src_0])
at ../plugins/elements/gstqueue.c:1459
#20 gst_queue_loop (pad=<optimized out>) at ../plugins/elements/gstqueue.c:1541
#21 0x00007ffff7e0eec4 in gst_task_func () at /lib64/libgstreamer-1.0.so.0
#22 0x00007ffff7c2d112 in g_thread_pool_thread_proxy (data=<optimized out>) at ../glib/gthreadpool.c:350
#23 0x00007ffff7c2a9f3 in g_thread_proxy (data=0x7fffe8001350) at ../glib/gthread.c:831
#24 0x00007ffff71cd947 in start_thread () at /lib64/libc.so.6
```https://gitlab.freedesktop.org/gstreamer/gstreamer/-/issues/3137v4l2h264dec: Raspberry Pi4 fails switching to playing state2023-11-25T01:25:26Zzocker-160v4l2h264dec: Raspberry Pi4 fails switching to playing state### Describe your issue
When starting and stopping an RTSP video stream in a loop, video playback stops working after a few loops.
#### Expected Behavior
When replacing `v4l2h264dec` with `avdec_h264` then it keeps going without issues ...### Describe your issue
When starting and stopping an RTSP video stream in a loop, video playback stops working after a few loops.
#### Expected Behavior
When replacing `v4l2h264dec` with `avdec_h264` then it keeps going without issues (tested 1000 loops with no issues).
I would expect `v4l2h264dec` to work the same.
#### Observed Behavior
After 4 - 5 loops `pipeline.set_state(Gst.State.PLAYING)` returns failure. When not exiting the script with `return` statement, then it just shows an empty window:
![Screenshot_20231117_165655](/uploads/705bd0d3cb362c55b9f4017839385783/Screenshot_20231117_165655.png)
#### Setup
- **Operating System:** Raspberry Pi OS 12 (bookworm)
- **Device:** SBC
- **GStreamer Version:** 1.22.0-2
- **Command line:** Script to reproduce this issue:
```python
import time
import subprocess
import gi
gi.require_version("Gst", "1.0")
gi.require_version("GstApp", "1.0")
from gi.repository import Gst, GstApp
# public RTSP stream for testing purposes
URL = "rtsp://31.160.161.51/axis-media/media.amp"
Gst.init(None)
def mainLoop():
loopcount = 0
while True:
loopcount += 1
print("LOOP", loopcount)
pipeline = Gst.parse_launch(
f"rtspsrc location={URL} latency=0"
" ! rtph264depay"
" ! h264parse"
" ! v4l2h264dec"
# using this instead of v4l2h264dec works without issues
#" ! avdec_h264"
" ! videoscale"
" ! videoconvert"
" ! video/x-raw, width=854, height=480"
" ! xvimagesink"
)
assert pipeline, "failed to create pipeline"
print("starting video")
ret = pipeline.set_state(Gst.State.PLAYING)
print("RET:", ret)
if ret == Gst.StateChangeReturn.FAILURE:
print("ERROR: failed to set pipeline to PLAYING")
pipeline = None
return
print("waiting 10 seconds")
time.sleep(10)
print("stopping video")
pipeline.set_state(Gst.State.NULL)
pipeline = None
print("waiting 1 second")
time.sleep(1)
try:
mainLoop()
except Exception as e:
print(e)
```
### Steps to reproduce the bug
1. Pi4 with latest Bookworm Pi OS 12
2. Boot into the GUI interface (X or Wayland does not matter)
3. install python3 and relevant gstreamer packages
4. run the script above (RTSP URL is public, so it should just work without any adjustments)
### How reproducible is the bug?
Always after the 4th or 5th loop using the script above.
### Screenshots if relevant
See above.
### Solutions you have tried
- I have tried updating kernel and firmware to the latest using `rpi-update` with same results.
- As already stated, when replacing `v4l2h264dec` with `avdec_h264` it works as expected, so the problem has to be with that module.
### Related non-duplicate issues
- https://gitlab.freedesktop.org/gstreamer/gstreamer/-/issues/1729
### Additional Information
I am not sure if this here is the right place to report this as this could also be caused by PI kernel or firmware. However `dmesg` does not show anything, so it is not exactly comparable to other similar issues reported.
EDIT: While this example might be a bit weird, my use case currently is a video wall which switches the displayed stream every 15 minutes. This currently stops working after 1 hour, which also indicates the mentioned 4 - 5 loops.https://gitlab.freedesktop.org/gstreamer/gstreamer/-/issues/3133'Could not retrieve application class loader' on Meta Quest 2 (Android)2023-11-17T09:58:57ZNoTuxNoBux'Could not retrieve application class loader' on Meta Quest 2 (Android)I'm trying to use GStreamer 1.22.6 on a Meta Quest 2 (VR device). **GStreamer itself works** in tandem with a Unity application - C#/.NET for application and C++ native plugin to talk to GStreamer - for rendering, and I can successfully ...I'm trying to use GStreamer 1.22.6 on a Meta Quest 2 (VR device). **GStreamer itself works** in tandem with a Unity application - C#/.NET for application and C++ native plugin to talk to GStreamer - for rendering, and I can successfully use elements such as `avdec_h264` to decode streams, but I am having some problems with the `androidmedia` hardware-accelerated elements and am not sure if this is a bug, lacking support on the device, or an error on my end.
From the initial error logs I was able to deduce that I need to copy over the `GStreamer.java` file to my application to pass the appropriate context to GStreamer, which I did, and these errors are now solved. However, when now using hardware-accelerated elements such as `amcviddec-omxqcomvideodecoderavc` or `amcviddec-omxqcomvideodecoderhevc`, **I still see errors (see logs below) about the application class loader not being found**.
There are also some other files such as `GstAmcOnFrameAvailableListener.java` that I'm not sure are necessary, but copied over anyway until I know better what is going on exactly - the tutorials don't seem to mention them, nor `GStreamer.java` (but GStreamer fails hard if the latter is not present).
I'm also still getting OpenGL errors when trying to `gldownload` right now, but those might be red herrings if valid textures aren't actually coming through properly due to the above - I can't be sure at this point. To clarify: I don't need or am not trying to capture the camera at all, just doing incoming streaming, so maybe it's this error that is a red herring and it's not blocking anything else? From the logs it looks like it's blocking all elements.
## Pipeline
(Also tried this with HEVC.)
```plaintext
srtsrc latency=0 uri=srt://{DEFAULT_SERVER_IP_ADDRESS}:7000/
! h264parse
! amcviddec-omxqcomvideodecoderavc
! video/x-raw(memory:GLMemory), format=RGBA
! gldownload
! video/x-raw, format=RGBA
! appsink name=videoSink
```
## Logs
```plaintext
11-15 16:14:25.845 8337 8364 E GStreamer: gst_amc_jni_object_local_unref: assertion 'object != NULL' failed
11-15 16:14:25.845 8337 8364 E GStreamer: gst_amc_jni_object_local_unref: assertion 'object != NULL' failed
11-15 16:14:25.845 8337 8364 E GStreamer: ../sys/androidmedia/gst-android-hardware-camera.c:_init_classes:1784: Failed to initialize android.hardware.Camera classes: Could not retrieve application class loader
11-15 16:14:25.845 8337 8364 E GStreamer: gst_amc_jni_object_local_unref: assertion 'object != NULL' failed
11-15 16:14:25.845 8337 8364 E GStreamer: gst_amc_jni_object_local_unref: assertion 'object != NULL' failed
11-15 16:14:25.845 8337 8364 E GStreamer: ../sys/androidmedia/gst-android-hardware-sensor.c:_init_classes:596: Failed to initialize Android classes: Could not retrieve application class loader
...
11-15 15:52:38.423 7287 7471 E GStreamer: gst_amc_jni_object_local_unref: assertion 'object != NULL' failed
11-15 15:52:38.423 7287 7471 E GStreamer: gst_amc_jni_object_local_unref: assertion 'object != NULL' failed
11-15 15:52:38.423 7287 7471 E GStreamer: ../sys/androidmedia/jni/gstamcsurfacetexture-jni.c:gst_amc_surface_texture_jni_set_on_frame_available_callback:345: Could not create listener: Could not retrieve application class loader
11-15 15:52:38.423 7287 7471 W GStreamer: ../sys/androidmedia/gstamcvideodec.c:gst_amc_video_dec_set_format:2010: error: Could not retrieve application class loader
11-15 15:52:38.423 7287 7471 I GStreamer: ../gst/gstelement.c:gst_element_message_full_with_details:2282: posting message: GStreamer encountered a general supporting library error.
11-15 15:52:38.423 7287 7456 W GStreamer: GstPipelineHandler::HandleMessage(): error in module amcvideodec-omxqcomvideodecoderavc0 reported: GStreamer encountered a general supporting library error. - ../sys/androidmedia/gstamcvideodec.c(2010): gst_amc_video_dec_set_format (): /GstPipeline:pipeline0/GstAmcVideoDec-OmxQcomVideoDecoderAvc:amcvideodec-omxqcomvideodecoderavc0:
11-15 15:52:38.423 7287 7456 W GStreamer: Could not retrieve application class loader
11-15 15:52:38.424 7287 7471 I GStreamer: ../gst/gstelement.c:gst_element_message_full_with_details:2309: posted error message: GStreamer encountered a general supporting library error.
11-15 15:52:38.424 7287 7471 W GStreamer: ../gst-libs/gst/video/gstvideodecoder.c:gst_video_decoder_setcaps:934: Subclass refused caps
```https://gitlab.freedesktop.org/gstreamer/cerbero/-/issues/458bundle-source missing pkg-config patch, breaking bootstrap2023-11-17T13:07:29ZMart Raudseppbundle-source missing pkg-config patch, breaking bootstraphttps://gstreamer.freedesktop.org/data/pkg/src/1.22.7/cerbero-1.22.7.tar.gz fails to bootstrap with:
```
FileNotFoundError: [Errno 2] No such file or directory: '/Users/leio/cerbero-1.22.7/recipes/pkg-config/0001-Automatically-detect-pr...https://gstreamer.freedesktop.org/data/pkg/src/1.22.7/cerbero-1.22.7.tar.gz fails to bootstrap with:
```
FileNotFoundError: [Errno 2] No such file or directory: '/Users/leio/cerbero-1.22.7/recipes/pkg-config/0001-Automatically-detect-prefix-on-macOS-too.patch'
```
recipes/pkg-config.recipe has
```
patches = ['pkg-config/0001-Automatically-detect-prefix-on-macOS-too.patch']
```
but that patch is not included in the tarball.
Feels like a regression from commit d122b0984e9c456 somehow, but didn't revert it to try yet.https://gitlab.freedesktop.org/gstreamer/gstreamer/-/issues/3136videoflip: Automatic rotation does not work for a particular MJPEG stream2023-11-20T16:29:49ZMykola Mokhnachvideoflip: Automatic rotation does not work for a particular MJPEG streamSteps:
- Checkout the project at https://github.com/appium/WebDriverAgent/tree/master
- Open it in Xcode, select WebDriverAgentRunner schema, select any available iPad Simulator device, then Product->Test
- After the local MJPEG server ...Steps:
- Checkout the project at https://github.com/appium/WebDriverAgent/tree/master
- Open it in Xcode, select WebDriverAgentRunner schema, select any available iPad Simulator device, then Product->Test
- After the local MJPEG server is ready and running (it is visible in the logs, could also be checked from a browser by navigating http://127.0.0.1:9100) start the following GStreamer pipeline: `gst-launch-1.0 souphttpsrc -e do-timestamps=true is-live=true timeout=0 location=http://127.0.0.1:9100 ! multipartdemux ! jpegparse ! queue ! jpegdec ! videoflip method=automatic ! videorate ! videoscale ! video/x-raw,width=1920,height=1920,pixel-aspect-ratio=1/1 ! autovideosink`
- While the pipeline is running try to change the Simulator orientation from portrait to landscape and back
Actual result:
The video generated by the above pipeline still keeps the initial orientation, only the content is rotated
Expected result:
I expect video frames to be aligned properly according to the actual jpeg pictures orientation tag supplied by the above mjpeg server, so the visual bottom of the content on the simulator screen is aligned to the bottom of the video frame.
It is important to mention that JPEG pictures generated by the above mjpeg server are all in portrait mode, however they all contain a valid orientation tag in their EXIF metadata.https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/issues/1034videoflip: Automatic rotation does not work for a particular MJPEG stream2023-11-17T16:48:28ZMykola Mokhnachvideoflip: Automatic rotation does not work for a particular MJPEG streamSteps:
- Checkout the project at https://github.com/appium/WebDriverAgent/tree/master
- Open it in Xcode, select WebDriverAgentRunner schema, select any available iPad Simulator device, then Product->Test
- After the local MJPEG server ...Steps:
- Checkout the project at https://github.com/appium/WebDriverAgent/tree/master
- Open it in Xcode, select WebDriverAgentRunner schema, select any available iPad Simulator device, then Product->Test
- After the local MJPEG server is ready and running (it is visible in the logs, could also be checked from a browser by navigating http://127.0.0.1:9100) start the following GStreamer pipeline: `gst-launch-1.0 souphttpsrc -e do-timestamps=true is-live=true timeout=0 location=http://127.0.0.1:9100 ! multipartdemux ! jpegparse ! queue ! jpegdec ! videoflip method=automatic ! videorate ! videoscale ! video/x-raw,width=1920,height=1920,pixel-aspect-ratio=1/1 ! autovideosink`
- While the pipeline is running try to change the Simulator orientation from portrait to landscape and back
Actual result:
The video generated by the above pipeline still keeps the initial orientation, only the content is rotated
Expected result:
I expect video frames to be aligned properly according to the actual jpeg pictures orientation tag supplied by the above mjpeg server, so the visual bottom of the content on the simulator screen is aligned to the bottom of the video frame.
It is important to mention that JPEG pictures generated by the above mjpeg server are all in portrait mode, however they all contain a valid orientation tag in their EXIF metadata.https://gitlab.freedesktop.org/gstreamer/gstreamer/-/issues/3132GstVulkan* with externally created VkInstance and etc2023-11-16T12:29:23ZAndrewKhon98GstVulkan* with externally created VkInstance and etcIs there possibility to create GstVulkan* structs with already existing VkInstance, VPhysicalDevice and VkDevice?
Can I just copy them to structs and fill object field somehow?Is there possibility to create GstVulkan* structs with already existing VkInstance, VPhysicalDevice and VkDevice?
Can I just copy them to structs and fill object field somehow?https://gitlab.freedesktop.org/gstreamer/meson-ports/ffmpeg/-/issues/40STLIBOBJS values are ignored2023-12-02T10:20:09ZFrank RichterSTLIBOBJS values are ignoredThe sources listed as `STLIBOBJS` in (some) Makefiles don't seem to be picked up -
The string `STLIBOBJS` is nowhere to be found in `parse_sources.py`.
However, there's a match against 'SLIBOBJS-.*CONFIG.*\+\=.*', but no `SLIBOBJS-xxxCO...The sources listed as `STLIBOBJS` in (some) Makefiles don't seem to be picked up -
The string `STLIBOBJS` is nowhere to be found in `parse_sources.py`.
However, there's a match against 'SLIBOBJS-.*CONFIG.*\+\=.*', but no `SLIBOBJS-xxxCONFIG` key appears in any Makefile.
Could this be a simple typo?https://gitlab.freedesktop.org/gstreamer/gstreamer/-/issues/3131gst_video_convert_sample: Buffer ownership unclear2023-11-15T16:23:28ZPhilippe Normandgst_video_convert_sample: Buffer ownership unclearOriginally filed in https://bugs.webkit.org/show_bug.cgi?id=264824
Should we do a deep copy of the returned buffer?
IIUC we return a buffer owned by the buffer pool of the converter, that has been disposed before returning from the func...Originally filed in https://bugs.webkit.org/show_bug.cgi?id=264824
Should we do a deep copy of the returned buffer?
IIUC we return a buffer owned by the buffer pool of the converter, that has been disposed before returning from the function.
```
Thread 2 (Thread 0x7f115d3e7f40 (LWP 2)):
#0 0x00007f11655113cb in __GI_sched_yield () at ../sysdeps/unix/syscall-template.S:120
#1 0x00007f11610b1279 in g_thread_yield () at ../glib/gthread-posix.c:1329
#2 0x00007f1161d55ad5 in default_stop (pool=0x7f0e941fcf70 [GstVideoBufferPool|videobufferpool1602]) at ../gst/gstbufferpool.c:415
#3 0x00007f1161d4eb53 in do_stop (pool=pool@entry=0x7f0e941fcf70 [GstVideoBufferPool|videobufferpool1602]) at ../gst/gstbufferpool.c:440
#4 0x00007f1161d56b70 in dec_outstanding (pool=0x7f0e941fcf70 [GstVideoBufferPool|videobufferpool1602]) at ../gst/gstbufferpool.c:1207
#5 dec_outstanding (pool=0x7f0e941fcf70 [GstVideoBufferPool|videobufferpool1602]) at ../gst/gstbufferpool.c:1197
#6 gst_buffer_pool_release_buffer (buffer=0x7f0e941fff80 [GstBuffer], pool=0x7f0e941fcf70 [GstVideoBufferPool|videobufferpool1602]) at ../gst/gstbufferpool.c:1393
#7 gst_buffer_pool_release_buffer (pool=0x7f0e941fcf70 [GstVideoBufferPool|videobufferpool1602], buffer=0x7f0e941fff80 [GstBuffer]) at ../gst/gstbufferpool.c:1372
#8 0x00007f1161d56bb8 in _gst_buffer_dispose (buffer=0x7f0e941fff80 [GstBuffer]) at ../gst/gstbuffer.c:776
#9 0x00007f1161d8c0d4 in gst_mini_object_unref (mini_object=0x7f0e941fff80 [GstBuffer]) at ../gst/gstminiobject.c:669
#10 0x00007f1161dbefca in _gst_sample_free (sample=0x55b845127710 [GstSample]) at ../gst/gstsample.c:87
#11 0x00007f1167d89570 in WTF::GRefPtr<_GstSample>::clear() (this=0x7f109a9f07b8) at WTF/Headers/wtf/glib/GRefPtr.h:90
```https://gitlab.freedesktop.org/gstreamer/gstreamer/-/issues/3128d3d11screencapturesrc: wrong colors with HDR contents.2023-11-17T11:22:14ZDavide Perinid3d11screencapturesrc: wrong colors with HDR contents.As title.
I am using this pipeline to capture the screen on Windows 11.
```d3d11screencapturesrc monitor-handle={0} ! d3d11convert```
```video/x-raw(memory:D3D11Memory),width=INTERNAL_SCALING_X,height=INTERNAL_SCALING_Y,sync=false```
...As title.
I am using this pipeline to capture the screen on Windows 11.
```d3d11screencapturesrc monitor-handle={0} ! d3d11convert```
```video/x-raw(memory:D3D11Memory),width=INTERNAL_SCALING_X,height=INTERNAL_SCALING_Y,sync=false```
Colors are fine when using SDR but are very wrong when activating HDR in Windows.
Is there a way to correctly capture an HDR screen using d3d11screencapturesrc ?
Thankshttps://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/issues/1792Using frei0r plugin in MVSC++ Window App2023-11-14T16:04:54ZThomas MarbacherUsing frei0r plugin in MVSC++ Window AppHow coudl we use the frei0r plugin in a Visual Studio Windows APP?
We could not find the correct lib.How coudl we use the frei0r plugin in a Visual Studio Windows APP?
We could not find the correct lib.https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/issues/460ndisrc: Metadata frames accumulate with audio-only streams2023-11-13T19:02:59ZSebastian Drögendisrc: Metadata frames accumulate with audio-only streamsThe following discussion from !1365 should be addressed:
- [ ] @slomo started a [discussion](https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/1365#note_2133117): (+1 comment)
> The separate metadata frames ...The following discussion from !1365 should be addressed:
- [ ] @slomo started a [discussion](https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/1365#note_2133117): (+1 comment)
> The separate metadata frames would pile up forever if there's only audio, but that was also the case before already CC @fengalinhttps://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/issues/459WebRTC example doesn't show remote test stream2023-11-14T14:24:32ZJulian OesWebRTC example doesn't show remote test stream### Describe your issue
I'm trying out t he webrtc example and I can't seem to get the remote stream to show.
I'm running the signalling server:
```
WEBRTCSINK_SIGNALLING_SERVER_LOG=debug cargo run --bin gst-webrtc-signalling-server
.....### Describe your issue
I'm trying out t he webrtc example and I can't seem to get the remote stream to show.
I'm running the signalling server:
```
WEBRTCSINK_SIGNALLING_SERVER_LOG=debug cargo run --bin gst-webrtc-signalling-server
...
2023-11-13T02:44:55.110603Z INFO ThreadId(01) gst_webrtc_signalling_server: Listening on: 0.0.0.0:8443
2023-11-13T02:45:10.965463Z INFO ThreadId(01) gst_webrtc_signalling_server: Accepting connection from 127.0.0.1:57614
2023-11-13T02:45:10.965536Z DEBUG ThreadId(32) accept_async: gst_plugin_webrtc_signalling::server: new
2023-11-13T02:45:10.967679Z DEBUG ThreadId(04) accept_async: log: Server handshake done.
2023-11-13T02:45:10.967697Z INFO ThreadId(04) accept_async: gst_plugin_webrtc_signalling::server: New WebSocket connection this_id=30ce7f3a-2e4d-4658-ab52-2553fbd4f543
2023-11-13T02:45:10.967712Z DEBUG ThreadId(04) accept_async: gst_plugin_webrtc_signalling::server: close time.busy=110µs time.idle=2.08ms
2023-11-13T02:45:10.997742Z INFO ThreadId(31) gst_plugin_webrtc_signalling::server: Received message Ok(Text("{\"type\":\"setPeerStatus\",\"roles\":[\"listener\"],\"meta\":{\"name\":\"WebClient-1699843486430\"}}"))
2023-11-13T02:45:10.997804Z DEBUG ThreadId(31) set_peer_status{peer_id="30ce7f3a-2e4d-4658-ab52-2553fbd4f543" status=PeerStatus { roles: [Listener], meta: Some(Object {"name": String("WebClient-1699843486430")}), peer_id: None }}: gst_plugin_webrtc_signalling::handlers: new
2023-11-13T02:45:10.997824Z INFO ThreadId(31) set_peer_status{peer_id="30ce7f3a-2e4d-4658-ab52-2553fbd4f543" status=PeerStatus { roles: [Listener], meta: Some(Object {"name": String("WebClient-1699843486430")}), peer_id: None }}: gst_plugin_webrtc_signalling::handlers: registered as a producer peer_id=30ce7f3a-2e4d-4658-ab52-2553fbd4f543
2023-11-13T02:45:10.997834Z DEBUG ThreadId(31) set_peer_status{peer_id="30ce7f3a-2e4d-4658-ab52-2553fbd4f543" status=PeerStatus { roles: [Listener], meta: Some(Object {"name": String("WebClient-1699843486430")}), peer_id: None }}: gst_plugin_webrtc_signalling::handlers: close time.busy=17.2µs time.idle=13.4µs
```
The frontend:
```
npm start
...
<i> [webpack-dev-server] [HPM] Upgrading to WebSocket
<i> [webpack-dev-server] [HPM] Upgrading to WebSocket
<i> [webpack-dev-server] [HPM] Client disconnected
<i> [webpack-dev-server] [HPM] Client disconnected
<i> [webpack-dev-server] [HPM] Client disconnected
<i> [webpack-dev-server] [HPM] Upgrading to WebSocket
```
The test stream:
```
gst-launch-1.0 webrtcsink name=ws meta="meta,name=gst-stream" videotestsrc ! ws. audiotestsrc ! ws.
Setting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
Pipeline is PREROLLED ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
Redistribute latency...
Redistribute latency...
Got context from element 'vaapiencodeh264-0': gst.vaapi.Display=context, gst.vaapi.Display=(GstVaapiDisplay)"\(GstVaapiDisplayGLX\)\ vaapidisplayglx0", gst.vaapi.Display.GObject=(GstObject)"\(GstVaapiDisplayGLX\)\ vaapidisplayglx0";
^Chandling interrupt.
Interrupt: Stopping pipeline ...
Execution ended after 0:00:18.734306492
Setting pipeline to NULL ...
^C
```
#### Expected Behavior
I would assume the live feed should show up?
#### Observed Behavior
I don't see it.
#### Setup
- **Operating System:** Linux Mint (based on Ubuntu 22.04)
- **Device:** Computer
- **gst-plugins-rs Version:** 6c5c09fae9f881485d70b682225916d3b3f77082
- **GStreamer Version:** GStreamer 1.20.3
- **Command line:**
### Steps to reproduce the bug
<!-- please fill in exact steps which reproduce the bug on your system, for example: -->
1. open terminal
2. type `command`
### How reproducible is the bug?
Always for me.
### Screenshots if relevant
![2023-11-13_15-45](/uploads/90c5246336b47e540a5a41affd417bae/2023-11-13_15-45.png)
### Solutions you have tried
Reloading endlessly, staring blankly.
### Related non-duplicate issues
No idea.
### Additional Information
I'm a WebRTC beginner, I'm probably just doing it wrong...https://gitlab.freedesktop.org/gstreamer/meson-ports/ffmpeg/-/issues/39Update ffmpeg port to 6.12023-12-02T01:16:53ZTim-Philipp Müllertim@centricular.comUpdate ffmpeg port to 6.1Was released yesterday.Was released yesterday.amysparkamyspark2023-11-26