Commit Graph

20 Commits

Author SHA1 Message Date
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: cf64b27168614f851087adab2d7f766425922f64
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: 9774fb43e9c9804955e357c725d326ba342f0e3c
2023-07-07 16:04:23 +02:00
Adeeb Shihadeh
4124aa821f compressed vipc: fix client connect
old-commit-hash: 102669a232824c309dae269cfbdf763af5214da8
2022-11-13 22:28:27 -08:00
Adeeb Shihadeh
da2d4bebd1 compressed_vipc: add main()
old-commit-hash: f18773acbea2c54a2edc70d74c35a8dea6cfdf82
2022-09-26 22:27:30 -07:00
Adeeb Shihadeh
35ff65121e pre-commit: add codespell (#25571)
old-commit-hash: 6590fb2b93baedb2e1c5267b4f191f8e20fcd1d2
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: 2027d5311d419addfb67ad94d45a198592b2e459
2022-06-30 15:03:15 -07:00
Adeeb Shihadeh
3e8625e50b visionipc python shim (#24660)
old-commit-hash: 32a9ccfc37d97e6692435153ac9f0fe72feb1e9f
2022-05-25 20:49:56 -07:00
Adeeb Shihadeh
00f7f96308 little tools fix ups (#24629)
old-commit-hash: b8a32bbc461fea1f15ef7db8021f1aa8f85f7df7
2022-05-23 16:10:36 -07:00
George Hotz
eea872ae98 compressed_vipc: use correct system timestamps
old-commit-hash: e4b7791044003663d354c1734d1744dbe69f36e6
2022-05-18 13:18:00 -07:00
George Hotz
d811962f7a add to compressed_vipc
old-commit-hash: bb5a05084063ddf5ab2a353c1ca48c3cc8566d74
2022-05-18 12:58:12 -07:00
George Hotz
46d11a2583 compressed_vipc: print frame latency
old-commit-hash: fe867df102a393a7a73de07b61d434cec19b3a3c
2022-05-16 20:40:11 -07:00
George Hotz
126014765f compressed_vipc: set NV_LOW_LATENCY flag
old-commit-hash: 2a978e36ac0159fa78861e9075f2685fca5b63fe
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: 2008db47c208f6f0fd661cc45f215bb80aef38d0
2022-05-10 15:20:51 -07:00
George Hotz
69558824b7 update compressed vipc to function on packets
old-commit-hash: dded24662f9f5ca0634033f63fa4ed9fa842bd97
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: 0baa4c3e2ad9ee6f8daba8267db44c2cd44caa62
2022-04-30 09:22:52 -07:00
George Hotz
d348193169 compressed_vipc: make yuv default
old-commit-hash: 3694f9801c280cdba5654a8ad90ef4b5827795d0
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: 8d2465578707022ca4a54defe171103955026a65
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: dab978083b7014faa2aef2f43830e87323188578
2022-04-12 12:08:50 -07:00
George Hotz
e6748f0d9d camerastream: update receive.py with some options
old-commit-hash: fa4b434e432f68dfc8944592c63f3594a9fad0b3
2022-03-14 15:02:42 -07:00
George Hotz
f13d8a6fce add script to receive camerastream supported by camerad
old-commit-hash: 69736877d6cfe7f2a13112e08ea0dc6d0943a469
2022-03-11 20:05:59 -08:00