Commit Graph

19 Commits

Author SHA1 Message Date
Robbe Derks
9774fb43e9 Compressed vipc improvements (#28837)
* debug flag

* make it easier to use
2023-07-07 16:04:23 +02:00
Adeeb Shihadeh
102669a232 compressed vipc: fix client connect 2022-11-13 22:28:27 -08:00
Adeeb Shihadeh
f18773acbe compressed_vipc: add main() 2022-09-26 22:27:30 -07:00
Adeeb Shihadeh
6590fb2b93 pre-commit: add codespell (#25571) 2022-08-30 11:20:55 -07:00
Maxime Desroches
2027d5311d tools: add support for nv12 in compressed_vipc (#24962)
reshape for nv12
2022-06-30 15:03:15 -07:00
Adeeb Shihadeh
32a9ccfc37 visionipc python shim (#24660) 2022-05-25 20:49:56 -07:00
Adeeb Shihadeh
b8a32bbc46 little tools fix ups (#24629) 2022-05-23 16:10:36 -07:00
George Hotz
e4b7791044 compressed_vipc: use correct system timestamps 2022-05-18 13:18:00 -07:00
George Hotz
bb5a050840 add to compressed_vipc 2022-05-18 12:58:12 -07:00
George Hotz
fe867df102 compressed_vipc: print frame latency 2022-05-16 20:40:11 -07:00
George Hotz
2a978e36ac compressed_vipc: set NV_LOW_LATENCY flag 2022-05-16 15:58:31 -07:00
George Hotz
2008db47c2 encoderd: make work on PC (#24483)
* don't use the codec in video_writer

* this produces broken videos for some reason

* bugfix

* refactor on the class

* works on device

* fix codec

* no codec enum

* fix pc

* move into dirs

* these includes also

* rename it ffmpegencoder

* add avcodec_close

Co-authored-by: Comma Device <device@comma.ai>
2022-05-10 15:20:51 -07:00
George Hotz
dded24662f update compressed vipc to function on packets 2022-05-09 13:44:09 -07:00
George Hotz
0baa4c3e2a loggerd: switch to v4l encoder try 2 (#24380)
* start v4l encoder

* v4l encoder starts

* start and stop

* fill in proper controls

* it dequeued a buffer

* getting bytes

* it made a video

* it does make files

* getting close

* ahh, so that's how dequeue works

* qcam works (no remuxing)

* remuxing works

* we just need to make shutdown and rollover graceful

* graceful destruction

* switch to polling

* should work now

* fix pc build

* refactors, stop properly

* touchups, remove a copy

* add v4l encoder to release

* inlcude file

* move writing to it's own thread

* fix minor memory leak

* block instead of dropping frames

* add counter, fix tests maybe

* better debugging and test print

* print file path in assert

* format string in test

* no more oversized qlogs

* match qcam

* touchups, remove omx encoder

* remove omx include files

* checked ioctl, better debugging, open by name

* unused import

* move linux includes to third_party/linux/include

* simple encoderd

* full packet

* encoderd should be complete

* lagging print

* updates

* name dq thread

* subset idx

* video file writing works

* debug

* potential bugfix

* rotation works

* iframe

* keep writing support

* ci should pass

* loggerd, not encoderd

* remote encoder code

* support remote encoder

* cereal to master, add encoderd

* header no longer required

* put that back there

* realtime

* lower decoder latency

* don't use queue for VisionIpcBufExtra, disable realtime again

* assert all written

* hmm simpler

* only push to to_write if we are writing

* assert timestamp is right

* use at and remove assert

* revert to queue

Co-authored-by: Comma Device <device@comma.ai>
2022-04-30 09:22:52 -07:00
George Hotz
3694f9801c compressed_vipc: make yuv default 2022-04-25 21:44:37 -07:00
George Hotz
8d24655787 loggerd: Separate writer from encoder (#24257)
* seperate writer from encoder

* video writer in release

* confirm loggerd on PC works, add YUV option to compressed_vipc

* make raw_logger use video_writer

* put this back to master

* close codec

* put this back

* use unique_ptr

Co-authored-by: Comma Device <device@comma.ai>
2022-04-20 14:51:24 -07:00
George Hotz
dab978083b loggerd: broadcast encoder data (#24177)
* encode data try 1

* fix pc build

* low quality compressed streamer with pyav

* nvidia streamer

* timestamp support

* fix latency measurement

* refactor

* camerastream updates

* fix linter

* compressed to vipc, clean

* remove print

* touchups

Co-authored-by: Comma Device <device@comma.ai>
2022-04-12 12:08:50 -07:00
George Hotz
fa4b434e43 camerastream: update receive.py with some options 2022-03-14 15:02:42 -07:00
George Hotz
69736877d6 add script to receive camerastream supported by camerad 2022-03-11 20:05:59 -08:00