I'm trying to add a timecode to a GStreamer pipeline using a timecodestamper
element:
appsrc name=src emit-signals=True format=time
! video/x-raw,format=BGR,width=1920,height=1080,framerate=1/10
--> ! timecodestamper
! videoconvert
! x264enc pass=quant quantizer=0 tune=zerolatency
! h264parse
! mp4mux
! filesink location=output.mp4
However, I get these assertion failures:
gst_video_time_code_add_frames: assertion 'gst_video_time_code_is_valid (tc)' failed
gst_video_time_code_nsec_since_daily_jam: assertion 'gst_video_time_code_is_valid (tc)' failed
As I understand it, without any additional configuration, the timecodestamper
will use an incrementing counter to each frame.