Skip to content

Commit

Permalink
remove debug printline. Demote log level for debug info.
Browse files Browse the repository at this point in the history
  • Loading branch information
mkassner committed May 23, 2017
1 parent 65cb371 commit d996637
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions ndsi/writer.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -53,14 +53,13 @@ cdef class H264Writer(object):
if input_frame.is_iframe:
self.waiting_for_iframe = False
else:
logger.warning('No I-frame found yet -- dropping frame.')
logger.debug('No I-frame found yet -- dropping frame.')
return

cdef unsigned char[:] buffer_ = input_frame.h264_buffer
#we are using indexing pts instead of real pts
# cdef long long pts = <long long>(input_frame.timestamp * 1e6)
cdef long long pts = <long long>int((self.frame_count*1e6/self.fps))
print(pts)
self.proxy.set_input_buffer(0, &buffer_[0], len(buffer_), pts)
self.timestamps.append(input_frame.timestamp)
self.frame_count +=1
Expand Down

0 comments on commit d996637

Please sign in to comment.