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

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)

There’s no timing information coming from the source - maybe h264timestamper can help?

Hi,

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

Thank you in advance

Hi 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