Skip to content

Commit

Permalink
Add warning regarding 1 frame -> 1 packet assumption
Browse files Browse the repository at this point in the history
  • Loading branch information
papr committed Nov 4, 2019
1 parent 8259067 commit ac27514
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pupil_src/shared_modules/av_writer.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,10 @@ def write_video_frame(self, input_frame):
video_packed_encoded = False
for packet in self.encode_frame(input_frame, pts):
if packet.stream is self.video_stream:
if video_packed_encoded:
# NOTE: Assumption: Each frame is encoded into a single packet!
# This is required for the frame.pts == packet.pts assumption below.
logger.warning("Single frame yielded more than one packet")
video_packed_encoded = True
self.container.mux(packet)

Expand Down

0 comments on commit ac27514

Please sign in to comment.