How can I view or decode an mp4 video? I have the camera recording OK but have not found anything that can open it.
from depthai_sdk import OakCamera, RecordType
from multiprocessing.sharedctypes import Value
import depthai as dai
import contextlib
import math
import time, datetime
from pathlib import Path
import signal
import threading
import csv
out_path = r"E:\Junk\vid"
OUTPUT_DIR = Path(r"F:\CAMERAS")
Output_csv = Path.joinpath(OUTPUT_DIR, "CSV")
print("Output", Output_csv)
Â
def write_times(outime, big_array):
   print("Writing Timestamp CSV.")
   outname = outime.replace(":", "_") + ".csv"
   outfile = Path.joinpath(Output_csv, outname)
   header = ["Device", "Cam", "Timestamp"]
   with open(outfile,"w", newline='') as csvfile:
       spamwriter = csv.writer(csvfile, delimiter=',')
       spamwriter.writerow(header)
       for rowi in big_array:
           spamwriter.writerow(rowi)
       return True
Â
with OakCamera() as oak:
   left = oak.create_camera('left', resolution='800p', fps=20, encode='H265')
   right = oak.create_camera('right', resolution='800p', fps=20, encode='H265')
Â
   # Synchronize & save all (encoded) streams
   oak.record([ left.out.encoded, right.out.encoded], out_path, RecordType.VIDEO)
   # Show left stream
   oak.visualize([left.out.camera], scale=2/3, fps=True)
 Â
Â
   oak.start()
   left.control.set_exposure_iso(1500, 600)
   while oak.running():
  Â
       key = oak.poll()
       if key == ord('i'):
           left.control.exposure_time_down()
       elif key == ord('o'):
           left.control.exposure_time_up()
       elif key == ord('k'):
           left.control.sensitivity_down()
       elif key == ord('l'):
           left.control.sensitivity_up()
Â
       elif key == ord('e'): # Switch to auto exposure
           left.control.send_controls({'exposure': {'auto': True}}
[upl-image-preview url=https://discuss.luxonis.com/assets/files/2023-09-09/1694286258-701158-image.png]