Hi Johannes,

On 24-06-20 13:08, Johannes Schauer Marin Rodrigues wrote:
> Hi Andrey–
> 
> Quoting Andrey Skvortsov (2024-06-20 12:14:39)
> > after gstreamer update from 1.22 to 1.23/1.24 clapper stopped playing videos
> > (h264 at least) on PinePhone (ARM aarch64, allwinner a64). The SoC uses v4l2
> > stateless decoder. Librem5 (iMX8) was checked as well on trixie from
> > 19.06.2024 and clapper is not working there either.
> 
> what is the error on the Librem5? I tested this on the MNT Reform 2 which also
> uses the imx8mq just as the librem 5 does and hardware decoding does work 
> there
> with gstreamer 1.24. We used to ship some gstreamer patches for before the 
> 1.24
> release but those were all integrated now.
>

sorry, it took me some time to get hands to L5 again. Both original
PinePhone and Librem 5 fail to play h264 video with the same error:

```
(com.github.rafostar.Clapper:59855): GStreamer-CRITICAL **: 15:30:29.052: 
gst_caps_get_structure: assertion 'index < GST_CAPS_LEN (caps)' failed

(com.github.rafostar.Clapper:59855): GStreamer-CRITICAL **: 15:30:29.052: 
gst_structure_set: assertion 'structure != NULL' failed

(com.github.rafostar.Clapper:59855): GStreamer-Video-CRITICAL **: 15:30:29.052: 
gst_video_info_from_caps: assertion 'gst_caps_is_fixed (caps)' failed
**
GStreamer-GL:ERROR:../gst-libs/gst/gl/gstglcolorconvert.c:830:_gst_gl_color_convert_set_caps_unlocked:
 code should not be reached
Bail out! 
GStreamer-GL:ERROR:../gst-libs/gst/gl/gstglcolorconvert.c:830:_gst_gl_color_convert_set_caps_unlocked:
 code should not be reached
Aborted (core dumped)
```

the problem appeared in 1.24.1 and wasn't on 1.24.0. 1.24.1 introduced
DMA_DRM caps support for v4l2codecs and clapper gstreamer sink doesn't
support it.

I think in 0.6 it's handled by following commit:
https://github.com/Rafostar/clapper/commit/681da9e2f39fd5180317113e7349272586ae645d

> > If I take old clapper build before gstreamer update to 1.24, then
> > videoplayback in clapper works.
> > 
> > I've tried to backport upstream clapper fix for gstreamer 1.24.
> > https://github.com/Rafostar/clapper/commit/a9769f95378d1cf20d6f6105eb90df7a3fe3f8f0
> > But it wasn't enough to get clapper 0.5.2 working on PinePhone.
> > 
> > clapper 0.6 contains several fixes for gstreamer 1.24 compatibility. 
> > I've tried to build clapper 0.6 against gstreamer 1.24 localy and video
> > playback started to work on PinePhone.
> 
> I take it then that this is mainly about the PinePhone and not the Librem 5?
> 
> > Please consider updating clapper to the next released version 0.6.
> 
> Certainly! It is on my TODO list now. Should I fail to come back to this, feel
> free to ping me until I get the work done.
> 
> Thanks!
> 
> cheers, josch

-- 
Best regards,
Andrey Skvortsov

Reply via email to