AW: Dump h264/h265 stream
Thornton, Keith
keith.thornton at zeiss.com
Fri Jun 19 04:25:18 UTC 2020
Hi,
I solve a similar problem by putting a pad probe on the appsrc and dropping all the frames with the GST_BUFFER_FLAG_DELTA_UNIT flag set. When the first frame arrives without this flag set I remove the pad probe and let the frames flow normally
Grüße
Von: gstreamer-devel <gstreamer-devel-bounces at lists.freedesktop.org> Im Auftrag von Anton Pryima
Gesendet: Donnerstag, 18. Juni 2020 20:56
An: Discussion of the development of and with GStreamer <gstreamer-devel at lists.freedesktop.org>
Betreff: Dump h264/h265 stream
Hello all.
I have rtsp camera which streams h264 to the appsink. Then, sometimes, I need to grab it by appsrc and write it to the file.
I was able to make it with the following pipelines:
rtspsrc->rtph264depay->appsink
appsrc->h264parse->matroskamux->filesink.
Everything works as expected. But, as in h264 stream, I-frames can be transmitted once per 20 - 30 seconds, sometimes I've got 10 seconds of corrupted video before the fist I-frame and good video starts.
Is there are any way, to ignore everything before first I-frame or start file form first i-frame? I've tried with splitmuxsink and tried to google, but with no success.
Any suggestions?
Thank you in advance,
Best regards,
Anton.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20200619/f1e7ac40/attachment-0001.htm>
More information about the gstreamer-devel
mailing list