This may be helpful:
from depthai_sdk import OakCamera, RecordType
with OakCamera() as oak:
color = oak.create_camera('color', resolution='1080P', fps=20, encode='H265')
# Synchronize & save all (encoded) streams
oak.record([color.out.encoded], './', RecordType.VIDEO)
# Show color stream
oak.visualize([color.out.camera], scale=2/3, fps=True)
oak.start(blocking=True)
ffmpeg started on 2023-07-03 at 14:45:19
Report written to "ffmpeg-20230703-144519.log"
Log level: 48
Command line:
"C:\\Users\\User\\anaconda3\\envs\\depthai\\Library\\bin\\ffmpeg.exe" -i color.mp4 -report
ffmpeg version 6.0 Copyright (c) 2000-2023 the FFmpeg developers
built with clang version 16.0.6
configuration: --prefix=/d/bld/ffmpeg_1687155081971/_h_env/Library --cc=clang.exe --cxx=clang++.exe --nm=llvm-nm --ar=llvm-ar --disable-doc --disable-openssl --enable-demuxer=dash --enable-hardcoded-tables --enable-libfreetype --enable-libfontconfig --enable-libopenh264 --enable-libdav1d --ld=lld-link --target-os=win64 --enable-cross-compile --toolchain=msvc --host-cc=clang.exe --extra-libs=ucrt.lib --extra-libs=vcruntime.lib --extra-libs=oldnames.lib --strip=llvm-strip --disable-stripping --host-extralibs= --enable-gpl --enable-libx264 --enable-libx265 --enable-libaom --enable-libsvtav1 --enable-libxml2 --enable-pic --enable-shared --disable-static --enable-version3 --enable-zlib --enable-libopus --pkg-config=/d/bld/ffmpeg_1687155081971/_build_env/Library/bin/pkg-config
libavutil 58. 2.100 / 58. 2.100
libavcodec 60. 3.100 / 60. 3.100
libavformat 60. 3.100 / 60. 3.100
libavdevice 60. 1.100 / 60. 1.100
libavfilter 9. 3.100 / 9. 3.100
libswscale 7. 1.100 / 7. 1.100
libswresample 4. 10.100 / 4. 10.100
libpostproc 57. 1.100 / 57. 1.100
Splitting the commandline.
Reading option '-i' ... matched as input url with argument 'color.mp4'.
Reading option '-report' ... matched as option 'report' (generate a report) with argument '1'.
Finished splitting the commandline.
Parsing a group of options: global .
Applying option report (generate a report) with argument 1.
Successfully parsed a group of options.
Parsing a group of options: input url color.mp4.
Successfully parsed a group of options.
Opening an input file: color.mp4.
[NULL @ 00000168E36FDCC0] Opening 'color.mp4' for reading
[file @ 00000168E36CF780] Setting default whitelist 'file,crypto,data'
[mov,mp4,m4a,3gp,3g2,mj2 @ 00000168E36FDCC0] Format mov,mp4,m4a,3gp,3g2,mj2 probed with size=2048 and score=100
[mov,mp4,m4a,3gp,3g2,mj2 @ 00000168E36FDCC0] ISO: File Type Major Brand: isom
[mov,mp4,m4a,3gp,3g2,mj2 @ 00000168E36FDCC0] Unknown dref type 0x206c7275 size 12
[mov,mp4,m4a,3gp,3g2,mj2 @ 00000168E36FDCC0] Processing st: 0, edit list 0 - media time: 0, duration: 8714000
[mov,mp4,m4a,3gp,3g2,mj2 @ 00000168E36FDCC0] rfps: 19.916667 0.005299
[mov,mp4,m4a,3gp,3g2,mj2 @ 00000168E36FDCC0] rfps: 19.916667 0.005299
[mov,mp4,m4a,3gp,3g2,mj2 @ 00000168E36FDCC0] rfps: 20.000000 0.002049
[mov,mp4,m4a,3gp,3g2,mj2 @ 00000168E36FDCC0] rfps: 20.000000 0.002049
[mov,mp4,m4a,3gp,3g2,mj2 @ 00000168E36FDCC0] rfps: 40.000000 0.008195
[mov,mp4,m4a,3gp,3g2,mj2 @ 00000168E36FDCC0] rfps: 40.000000 0.008195
[mov,mp4,m4a,3gp,3g2,mj2 @ 00000168E36FDCC0] rfps: 60.000000 0.018439
[mov,mp4,m4a,3gp,3g2,mj2 @ 00000168E36FDCC0] rfps: 60.000000 0.018439
[mov,mp4,m4a,3gp,3g2,mj2 @ 00000168E36FDCC0] rfps: 59.940060 0.002588
[mov,mp4,m4a,3gp,3g2,mj2 @ 00000168E36FDCC0] rfps: 59.940060 0.002588
[mov,mp4,m4a,3gp,3g2,mj2 @ 00000168E36FDCC0] Before avformat_find_stream_info() pos: 6167768 bytes read:37523 seeks:1 nb_streams:1
[hevc @ 00000168E370FA80] nal_unit_type: 32(VPS), nuh_layer_id: 0, temporal_id: 0
[hevc @ 00000168E370FA80] Decoding VPS
[hevc @ 00000168E370FA80] Main profile bitstream
[hevc @ 00000168E370FA80] nal_unit_type: 33(SPS), nuh_layer_id: 0, temporal_id: 0
[hevc @ 00000168E370FA80] Decoding SPS
[hevc @ 00000168E370FA80] Main profile bitstream
[hevc @ 00000168E370FA80] Decoding VUI
[hevc @ 00000168E370FA80] nal_unit_type: 34(PPS), nuh_layer_id: 0, temporal_id: 0
[hevc @ 00000168E370FA80] Decoding PPS
[hevc @ 00000168E370FA80] nal_unit_type: 39(SEI_PREFIX), nuh_layer_id: 0, temporal_id: 0
[hevc @ 00000168E370FA80] Decoding SEI
[mov,mp4,m4a,3gp,3g2,mj2 @ 00000168E36FDCC0] All info found
[mov,mp4,m4a,3gp,3g2,mj2 @ 00000168E36FDCC0] After avformat_find_stream_info() pos: 9854 bytes read:70291 seeks:2 frames:1
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'color.mp4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2mp41
encoder : Lavf60.3.100
Duration: 00:00:08.71, start: 0.000000, bitrate: 5662 kb/s
Stream #0:0[0x1](und), 1, 1/1000000: Video: hevc (Main) (hev1 / 0x31766568), yuv420p(tv), 640x480, 5658 kb/s, 19.97 fps, 20 tbr, 1000k tbn (default)
Metadata:
handler_name : VideoHandler
vendor_id : [0][0][0][0]
Successfully opened the file.
At least one output file must be specified
[AVIOContext @ 00000168E36BF440] Statistics: 70291 bytes read, 2 seeks