Skip to content

Commit

Permalink
remove unnecessary CONSOLE.print
Browse files Browse the repository at this point in the history
  • Loading branch information
machenmusik committed Dec 20, 2022
1 parent c4dade4 commit 07aecd9
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions scripts/render.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,15 +129,12 @@ def _render_trajectory_video(
mp4file.seek(0, os.SEEK_END)
mp4file_size = mp4file.tell()
mp4file.seek(0)
CONSOLE.print("[bold green]MP4 file " + str(output_filename) + " size " + str(mp4file_size))

# find moov container (probably after ftyp, free, mdat)
while True:
pos = mp4file.tell()
size_and_tag = mp4file.read(8)
CONSOLE.print("[bold green]len(size_and_tag) = " + str(len(size_and_tag)))
size, tag = struct.unpack(">I4s", size_and_tag)
CONSOLE.print("[bold green]read " + str(tag) + " size " + str(size) + " at " + str(pos))
if tag == b"moov":
break
mp4file.seek(pos + size)
Expand All @@ -155,7 +152,6 @@ def _render_trajectory_video(
pos = mp4file.tell()
size_and_tag = mp4file.read(8)
size, tag = struct.unpack(">I4s", size_and_tag)
CONSOLE.print("[bold green]read " + str(tag) + " size " + str(size) + " at " + str(pos))
if tag == b"trak":
break
mp4file.seek(pos + size)
Expand Down

0 comments on commit 07aecd9

Please sign in to comment.