Tee causing invalid h264 file

Peter Allen peter.allenm at gmail.com
Tue Jan 2 13:34:20 UTC 2024


Hi all,

I'm using
gst-launch-1.0 version 1.18.4
GStreamer 1.18.4

on an allwinner s3, with a custom camera capture/h264 encode plugin that
produces h264 720p/60

When I run with this pipeline:
gst-launch-1.0 -ve sunxisrc keyint=12 bitrate=5000 !
 video/x-h264,width=1280,height=720,framerate=60/1 ! h264parse ! tee name=t
\
     t. ! queue !  filesink location=TeeTestNoOtherTee.h264
I get a valid file.

When I run with
gst-launch-1.0 -ve sunxisrc keyint=12 bitrate=5000 !
 video/x-h264,width=1280,height=720,framerate=60/1 ! h264parse ! tee name=t
\
     t. ! queue !  filesink location=TeeTestWithOtherTee.h264 \
     t. ! queue ! rtph264pay mtu=1024 !  rtph264depay ! h264parse
config-interval=1 ! fakesink

I get an h264 file that fails to play with ffplay:
[h264 @ 0x7f7c54000c80] Format h264 detected only with low score of 1,
misdetection possible!
[h264 @ 0x7f7c54002140] non-existing PPS 0 referenced
[extract_extradata @ 0x7f7c540028c0] Invalid NAL unit 0, skipping.
[h264 @ 0x7f7c54002140] Invalid NAL unit 0, skipping.
[h264 @ 0x7f7c54002140] slice type 24 too large at 1
[h264 @ 0x7f7c54002140] decode_slice_header error
[h264 @ 0x7f7c54002140] no frame!
[h264 @ 0x7f7c54000c80] Could not find codec parameters for stream 0
(Video: h264, none): unspecified size
I've uploaded both files:
good:
https://www.dropbox.com/scl/fi/bs8kxijlriuja1di57x9s/TeeTestNoOtherTee.h264?rlkey=frfcp58cqrgl5993ov6gamy3s&dl=1

With tee :
https://www.dropbox.com/scl/fi/y9novw88i47kfamde801z/TeeTestWithOtherTee.h264?rlkey=oqayswyqr17bleqanj86xthcd&dl=1

Any thoughts about what is going on?

Thank you
Pete
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20240102/b48e8b43/attachment.htm>


More information about the gstreamer-devel mailing list