Commit Graph

23 Commits

Author SHA1 Message Date
Kacper Rączy
1f6ab69805 compressed_vipc: fix issues with VisionIpcServer in ZMQ mode (#30115)
old-commit-hash: 0e5cfa3426
2023-09-30 18:45:45 -07:00
Justin Newberry
c4f322ce2d Linter: remove pylint (#29611)
remove pylint
old-commit-hash: 1ee6ed4b16
2023-08-24 16:30:54 -07:00
Adeeb Shihadeh
16ec56398c add openpilot prefix to imports (#29498)
* add openpilot prefix to imports

* more

* more

* fix docs

* fix linter

* bump submodules

* fix patched tests

* update dynamic imports

* debug

* Revert "debug"

This reverts commit db5e13b9911cc74438bee123bc3430da6c31b24b.

* fix pm test
old-commit-hash: a9626f95b6
2023-08-20 20:49:55 -07:00
Justin Newberry
7b677910df Linter: Fix >160 line length test (#29287)
* test

* fix line length

* fix line length

* fix file size

* revert poetry

* cleanup for PR
old-commit-hash: cf64b27168
2023-08-08 17:13:35 -07:00
Robbe Derks
0100230162 Compressed vipc improvements (#28837)
* debug flag

* make it easier to use
old-commit-hash: 9774fb43e9
2023-07-07 16:04:23 +02:00
Adeeb Shihadeh
4124aa821f compressed vipc: fix client connect
old-commit-hash: 102669a232
2022-11-13 22:28:27 -08:00
Adeeb Shihadeh
da2d4bebd1 compressed_vipc: add main()
old-commit-hash: f18773acbe
2022-09-26 22:27:30 -07:00
Adeeb Shihadeh
35ff65121e pre-commit: add codespell (#25571)
old-commit-hash: 6590fb2b93
2022-08-30 11:20:55 -07:00
Maxime Desroches
4a09ab86ac tools: add support for nv12 in compressed_vipc (#24962)
reshape for nv12
old-commit-hash: 2027d5311d
2022-06-30 15:03:15 -07:00
Adeeb Shihadeh
3e8625e50b visionipc python shim (#24660)
old-commit-hash: 32a9ccfc37
2022-05-25 20:49:56 -07:00
Adeeb Shihadeh
00f7f96308 little tools fix ups (#24629)
old-commit-hash: b8a32bbc46
2022-05-23 16:10:36 -07:00
George Hotz
eea872ae98 compressed_vipc: use correct system timestamps
old-commit-hash: e4b7791044
2022-05-18 13:18:00 -07:00
George Hotz
d811962f7a add to compressed_vipc
old-commit-hash: bb5a050840
2022-05-18 12:58:12 -07:00
George Hotz
46d11a2583 compressed_vipc: print frame latency
old-commit-hash: fe867df102
2022-05-16 20:40:11 -07:00
George Hotz
126014765f compressed_vipc: set NV_LOW_LATENCY flag
old-commit-hash: 2a978e36ac
2022-05-16 15:58:31 -07:00
George Hotz
1f4628bad5 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>
old-commit-hash: 2008db47c2
2022-05-10 15:20:51 -07:00
George Hotz
69558824b7 update compressed vipc to function on packets
old-commit-hash: dded24662f
2022-05-09 13:44:09 -07:00
George Hotz
7119a98414 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>
old-commit-hash: 0baa4c3e2a
2022-04-30 09:22:52 -07:00
George Hotz
d348193169 compressed_vipc: make yuv default
old-commit-hash: 3694f9801c
2022-04-25 21:44:37 -07:00
George Hotz
b872fe92ab 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>
old-commit-hash: 8d24655787
2022-04-20 14:51:24 -07:00
George Hotz
9720bb37b5 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>
old-commit-hash: dab978083b
2022-04-12 12:08:50 -07:00
George Hotz
e6748f0d9d camerastream: update receive.py with some options
old-commit-hash: fa4b434e43
2022-03-14 15:02:42 -07:00
George Hotz
f13d8a6fce add script to receive camerastream supported by camerad
old-commit-hash: 69736877d6
2022-03-11 20:05:59 -08:00