# How to solve the error when using gstremaer to read h264 file and send it via avtp plugin?

**URL:** <https://discourse.gstreamer.org/t/how-to-solve-the-error-when-using-gstremaer-to-read-h264-file-and-send-it-via-avtp-plugin/4321>\
**Category:** General Discussion\
**Created:** [March 19, 2025, 9:04am UTC](https://discourse.gstreamer.org/t/how-to-solve-the-error-when-using-gstremaer-to-read-h264-file-and-send-it-via-avtp-plugin/4321 "2025-03-19T09:04:45Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![xyy0324](https://discourse.gstreamer.org/user_avatar/discourse.gstreamer.org/xyy0324/32/1220_2.png) [@xyy0324](https://discourse.gstreamer.org/u/xyy0324)\
**Post date:** [March 19, 2025, 9:04am UTC](https://discourse.gstreamer.org/t/how-to-solve-the-error-when-using-gstremaer-to-read-h264-file-and-send-it-via-avtp-plugin/4321/1 "2025-03-19T09:04:46Z")

</div>

run cmd：./gst-launch-1.0 filesrc location=sample\_outdoor\_car\_1080p\_10fps.h264 do-timestamp=true ! h264parse ! avtpcvfpay ! avtpsink ifname=lo

error：  
Setting pipeline to PAUSED …  
Pipeline is PREROLLING …  
\*\*  
ERROR:…/subprojects/gst-plugins-bad/ext/avtp/gstavtpbasepayload.c:234:gst\_avtp\_base\_payload\_calc\_ptime: assertion failed: (GST\_BUFFER\_PTS (buffer) != GST\_CLOCK\_TIME\_NONE)  
Bail out! ERROR:…/subprojects/gst-plugins-bad/ext/avtp/gstavtpbasepayload.c:234:gst\_avtp\_base\_payload\_calc\_ptime: assertion failed: (GST\_BUFFER\_PTS (buffer) != GST\_CLOCK\_TIME\_NONE)  
Aborted (core dumped)

---

<div class="post-metadata">

**Author:** ![edersondisouza](https://discourse.gstreamer.org/user_avatar/discourse.gstreamer.org/edersondisouza/32/1503_2.png) [@edersondisouza](https://discourse.gstreamer.org/u/edersondisouza)\
**Post date:** [October 8, 2025, 10:40pm UTC](https://discourse.gstreamer.org/t/how-to-solve-the-error-when-using-gstremaer-to-read-h264-file-and-send-it-via-avtp-plugin/4321/2 "2025-10-08T22:40:26Z")

</div>

There’s no timing information coming from the source - maybe [h264timestamper](https://gstreamer.freedesktop.org/documentation/codectimestamper/h264timestamper.html?gi-language=c#h264timestamper-page) can help?

---

<div class="post-metadata">

**Author:** ![KilledByBugs](https://discourse.gstreamer.org/user_avatar/discourse.gstreamer.org/killedbybugs/32/1572_2.png) [@KilledByBugs](https://discourse.gstreamer.org/u/KilledByBugs)\
**Post date:** [November 25, 2025, 10:31am UTC](https://discourse.gstreamer.org/t/how-to-solve-the-error-when-using-gstremaer-to-read-h264-file-and-send-it-via-avtp-plugin/4321/3 "2025-11-25T10:31:43Z")

</div>

Hi,

Have you solved this problem? if you have, would you mind sharing the solution?

Thank you in advance

---

<div class="post-metadata">

**Author:** ![KilledByBugs](https://discourse.gstreamer.org/user_avatar/discourse.gstreamer.org/killedbybugs/32/1572_2.png) [@KilledByBugs](https://discourse.gstreamer.org/u/KilledByBugs)\
**Post date:** [November 26, 2025, 8:11am UTC](https://discourse.gstreamer.org/t/how-to-solve-the-error-when-using-gstremaer-to-read-h264-file-and-send-it-via-avtp-plugin/4321/4 "2025-11-26T08:11:18Z")

</div>

Hi [edersondisouza](https://discourse.gstreamer.org/u/edersondisouza),

I have tried:

gst-launch-1.0 -v filesrc location=/data/test.h264 ! queue ! h264parse ! h264timestamper ! avtpcrfpay streamerid=… mtt=2000000 ! avtpsink ifname=eth0 address=…

However, I still got the error:

gstavtpbasepayload.c:234:gst\_avtp\_base\_payload\_calc\_ptime: assertion failed: (GST\_BUFFER\_PTS (buffer) != GST\_CLOCK\_TIME\_NONE)

Do you have other suggestion for solving that error? thank u
