How to debug/fix running error when use rtph264pay?
Psychesnet Hsieh
psychesnet at gmail.com
Sun Aug 2 13:11:00 UTC 2020
Hi Gotsring and Defresne,
I don't add GST_FORMAT_TIME and remove following code at reading callback.
Anything works.
- GST_BUFFER_PTS(buffer) = GST_TIMEVAL_TO_TIME(hdr->fpts);
- GST_BUFFER_DURATION(buffer) = gst_util_uint64_scale_int(1,
GST_SECOND, app->extra_hdr.fps);
Do you know why? Interesting!!! Thanks.
Psychesnet Hsieh <psychesnet at gmail.com> 於 2020年8月2日 週日 下午8:52寫道:
> Hi all,
>
> Please check the attachment. Thanks.
>
> Psychesnet Hsieh <psychesnet at gmail.com> 於 2020年8月1日 週六 上午5:46寫道:
>
>> Hi all,
>>
>> Thanks. And I already test "GST_FORMAT_TIME", anything pause there, even
>> I can not kill the pipeline.
>>
>> Hi Gotsring,
>>
>> The pipeline should like "appsrc name=ringbuf !
>> video/x-h264,stream-format=byte-stream,alignment=au ! rtph264pay ! udpsink
>> host=ip port=1234". I can make sure appsrc can output complete H264 frame
>> at each callback.
>> I will try to grab more log for you. Thanks.
>>
>> gotsring <gotsring at live.com> 於 2020年8月1日 週六 上午1:41寫道:
>>
>>> 1.
>>> If you are putting a complete H.264 byte-stream frame to the pipeline, it
>>> makes sense that your appsrc caps should be
>>> stream-format: byte-stream
>>> alignment: au
>>>
>>> This is something you can easily try to see if it works, and it sounds
>>> like
>>> it is, for the most part.
>>>
>>> 2.
>>> I don't have that much experience with GStreamer, so I don't know what
>>> could
>>> be causing that error. What is the pipeline you're using to test this? Do
>>> you know where the error is happening? I recommend adding a fakesink in
>>> places to find which element is producing the error. Log files would also
>>> help.
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>> --
>>> Sent from: http://gstreamer-devel.966125.n4.nabble.com/
>>> _______________________________________________
>>> gstreamer-devel mailing list
>>> gstreamer-devel at lists.freedesktop.org
>>> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>>>
>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20200802/1920e5e4/attachment.htm>
More information about the gstreamer-devel
mailing list