MCPcopy Create free account
hub / github.com/CVCUDA/CV-CUDA / write_frame

Method write_frame

bench/python/nvcodec_utils.py:443–450  ·  view source on GitHub ↗
(self, encoded_frame, pts_time, fps, stream, container)

Source from the content-addressed store, hash-verified

441
442 # docs_tag: begin_writeframe_nvvideoencoder
443 def write_frame(self, encoded_frame, pts_time, fps, stream, container):
444 encoded_bytes = bytearray(encoded_frame)
445 pkt = av.packet.Packet(encoded_bytes)
446 pkt.pts = pts_time
447 pkt.dts = pts_time
448 pkt.stream = stream
449 pkt.time_base = 1 / Fraction(fps)
450 container.mux(pkt)
451
452 # docs_tag: end_writeframe_nvvideoencoder
453

Callers 2

encode_from_tensorMethod · 0.95
flushMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected