Skip to content

Commit 086e33d

Browse files
Revert "minimal ffmpeg build (commaai#36138)"
This reverts commit 347b230.
1 parent 889ce4c commit 086e33d

File tree

147 files changed

+13
-517
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

147 files changed

+13
-517
lines changed

.gitattributes

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ third_party/**/*.a filter=lfs diff=lfs merge=lfs -text
1515
third_party/**/*.so filter=lfs diff=lfs merge=lfs -text
1616
third_party/**/*.so.* filter=lfs diff=lfs merge=lfs -text
1717
third_party/**/*.dylib filter=lfs diff=lfs merge=lfs -text
18-
third_party/ffmpeg/include/**/*.h filter=lfs diff=lfs merge=lfs -text
1918
third_party/acados/*/t_renderer filter=lfs diff=lfs merge=lfs -text
2019
third_party/qt5/larch64/bin/lrelease filter=lfs diff=lfs merge=lfs -text
2120
third_party/qt5/larch64/bin/lupdate filter=lfs diff=lfs merge=lfs -text

SConstruct

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,6 @@ if arch == "larch64":
9191
]
9292

9393
libpath = [
94-
f"#third_party/ffmpeg/{arch}/lib",
9594
"/usr/local/lib",
9695
"/system/vendor/lib64",
9796
f"#third_party/acados/{arch}/lib",
@@ -115,7 +114,6 @@ else:
115114
libpath = [
116115
f"#third_party/libyuv/{arch}/lib",
117116
f"#third_party/acados/{arch}/lib",
118-
f"#third_party/ffmpeg/{arch}/lib",
119117
f"{brew_prefix}/lib",
120118
f"{brew_prefix}/opt/[email protected]/lib",
121119
"/System/Library/Frameworks/OpenGL.framework/Libraries",
@@ -132,7 +130,6 @@ else:
132130
libpath = [
133131
f"#third_party/acados/{arch}/lib",
134132
f"#third_party/libyuv/{arch}/lib",
135-
f"#third_party/ffmpeg/{arch}/lib",
136133
"/usr/lib",
137134
"/usr/local/lib",
138135
]
@@ -180,7 +177,6 @@ env = Environment(
180177
"#third_party/libyuv/include",
181178
"#third_party/json11",
182179
"#third_party/linux/include",
183-
"#third_party/ffmpeg/include",
184180
"#third_party",
185181
"#msgq",
186182
],

system/loggerd/SConscript

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
Import('env', 'arch', 'messaging', 'common', 'visionipc')
22

33
libs = [common, messaging, visionipc,
4-
'yuv', 'OpenCL', 'pthread', 'zstd',
5-
'avformat', 'avcodec', 'avutil', 'x264']
4+
'avformat', 'avcodec', 'avutil',
5+
'yuv', 'OpenCL', 'pthread', 'zstd']
66

77
src = ['logger.cc', 'zstd_writer.cc', 'video_writer.cc', 'encoder/encoder.cc', 'encoder/v4l_encoder.cc', 'encoder/jpeg_encoder.cc']
88
if arch != "larch64":

system/loggerd/tests/test_loggerd.py

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -316,18 +316,8 @@ def test_record_audio(self, record_audio):
316316
self._publish_camera_and_audio_messages()
317317

318318
qcamera_ts_path = os.path.join(self._get_latest_log_dir(), 'qcamera.ts')
319-
320-
# simplest heuristic: look for AAC ADTS syncwords in the TS file
321-
def ts_has_audio_stream(ts_path: str) -> bool:
322-
try:
323-
with open(ts_path, 'rb') as f:
324-
data = f.read()
325-
# ADTS headers typically start with 0xFFF1 or 0xFFF9
326-
return (b"\xFF\xF1" in data) or (b"\xFF\xF9" in data)
327-
except Exception:
328-
return False
329-
330-
has_audio_stream = ts_has_audio_stream(qcamera_ts_path)
319+
ffprobe_cmd = f"ffprobe -i {qcamera_ts_path} -show_streams -select_streams a -loglevel error"
320+
has_audio_stream = subprocess.run(ffprobe_cmd, shell=True, capture_output=True).stdout.strip() != b''
331321
assert has_audio_stream == record_audio
332322

333323
raw_audio_in_rlog = any(m.which() == 'rawAudioData' for m in LogReader(os.path.join(self._get_latest_log_dir(), 'rlog.zst')))

third_party/.gitignore

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1 @@
11
*.pyc
2-
src/
3-
build/

third_party/ffmpeg/Darwin/lib/libavcodec.a

Lines changed: 0 additions & 3 deletions
This file was deleted.

third_party/ffmpeg/Darwin/lib/libavformat.a

Lines changed: 0 additions & 3 deletions
This file was deleted.

third_party/ffmpeg/Darwin/lib/libavutil.a

Lines changed: 0 additions & 3 deletions
This file was deleted.

third_party/ffmpeg/Darwin/lib/libx264.a

Lines changed: 0 additions & 3 deletions
This file was deleted.

third_party/ffmpeg/build.sh

Lines changed: 0 additions & 83 deletions
This file was deleted.

0 commit comments

Comments
 (0)