Re: AW: Avimux refuses Video Caps

Nicolas Dufresne via gstreamer-devel <[email protected]>
Newsgroups gmane.comp.video.gstreamer.devel
Message-ID <[email protected]>
Hi,

Le jeudi 21 septembre 2023 à 13:51 +0000, Sternkopf, Felix via gstreamer-devel a
écrit :
> 
> 
> My guess is the framerate. I don’t no why but after the „h264parse“ step the
> framerate is down to 0/1. My source is an encoded video from a rtspsrc and
> when I change the encoder from openh264enc to x264enc on the rtsp server it
> works and the framerate is correctly at 30/1. I have no idea why the framerate
> drops down to 0/1 after the parsing step.
> With--gst-debug=*:3,GST_CAPS:5 I cannot find any problems with the
> colorimetry.

Related avimux code:

  fps = gst_structure_get_value (structure, "framerate"); 
if (fps == NULL || !GST_VALUE_HOLDS_FRACTION (fps)) 
goto refuse_caps; 

avipad->parent.hdr.rate = gst_value_get_fraction_numerator (fps); 
avipad->parent.hdr.scale = gst_value_get_fraction_denominator (fps); 
if (avipad->parent.hdr.rate <= 0 || avipad->parent.hdr.scale <= 0) 
goto refuse_caps;



In short, the template caps and the code disagree. Logically, fixing the
template is needed, as for the code, it really does not support variable rate
(timestamp driven). I don't know if this is due to AVI limitations. I will just
suggest you to use matroska or other modern container here.

>  
> Not working pipeline with openh264enc Encoder on RTSP server side:
> Working pipeline with x264enc Encoder on RTSP server side:
>  
>  
> 
> Best Regards,
> Felix
>  
>  
>  
>  
> 
> 
> Von: Marianna Smidth Buschle <[email protected]>
> Gesendet: Donnerstag, 21. September 2023 14:17
> An: [email protected]
> Cc: Sternkopf, Felix <[email protected]>
> Betreff: Re: Avimux refuses Video Caps
>  
> My first guess is problems with the colorimetry, I had issues with other
> plugins.
>  
> You can try debugging further with: --gst-debug=*:3,GST_CAPS:5
> So you can pin point what parts of the CAPS is going wrong.
>  
> In some situations a 'h264parse' might help.
>  
> Best Regards
> Marianna
> 
> On 21/09/2023 14.00, [email protected] wrote:
> > Hey guys,
> > i developed a pipeline with two parallel streams which are combined in a muxer. There is one audio stream and one video stream. My problem is, that the GstAviMux refuses the following videocaps:
> > video/x-h264,
> >             stream-format=(string)byte-stream,
> >             alignment=(string)au,
> >             width=(int)1280,
> >             height=(int)720,
> >             framerate=(fraction)0/1,
> >             chroma-format=(string)4:2:0,
> >             bit-depth-luma=(uint)8,
> >             bit-depth-chroma=(uint)8,
> >             parsed=(boolean)true,
> >             profile=(string)constrained-baseline,
> >             level=(string)3.1
> >  
> > As i understand the documentation of the GstAviMux element, it should accept this caps. Is there any ideas for this problem?
> >  
> > Kind regards,
> > Felix Sternkopf
> -- 
> Best regards / Med venlig hilsen
> “Marianna Smidth Buschle”
image001.png (image/png, 116.7 KB) - not displayed
image004.png (image/png, 127.9 KB) - not displayed
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.