h264parse don't handle pps_id more than 255

Nicolas Dufresne nicolas at ndufresne.ca
Sat Nov 10 18:35:09 UTC 2018

Le vendredi 09 novembre 2018 à 04:11 -0600, Igor a écrit :
> I play h264 file with such pipeline: 
> appsrc ! h264parse ! mp4mux ! appsink .      Everything worked OK for a long
> time, but once i got h264 file with pps_id > 255. 
> Gstreamer don't play such file, outputs error: 
> *WARN; 0;  /MP4Pipeline/App/GStreamer: codecparsers_h264
> gsth264parser.c:1892:gst_h264_parse_pps:(NULL) value greater than max.
> value: 509, max 255*
> How can i fix that? May be there's alternative to h264parse. 

Your encoder is producing something invalid, or some memory corruption
is happening. What 264parse does is perfectly correct. Here's what the
spec says:
   Picture parameter set RBSP semantics
   pic_parameter_set_id identifies the picture parameter set that is
   referred to in the slice header. The value of
   pic_parameter_set_id shall be in the range of 0 to 255, inclusive.


More information about the gstreamer-devel mailing list