Open Bug 1488772 Opened 6 years ago Updated 4 years ago

Automatically generate media/ffvpx/config.h from FFmpeg configure script

Categories

(Core :: Audio/Video: Playback, enhancement, P3)

enhancement

Tracking

()

REOPENED

People

(Reporter: jya, Unassigned)

References

Details

We include a cut down copy of ffmpeg in media/ffvpx

We use a manually crafted config_xx.{h,asm} for each platforms we run out.

Generating those config files is very time intensive.

Ideally, we should run the original FFmpeg configure script and generate those at build time...
I don't think we want to add more configure script running to developer builds to regenerate the same information every time...
Obviously, I would expect that configuration to only run if:
- It's never been run
- Some media/ffvpx/TOUCHME (or something) got modified.

not to run it every time you build
With :kmoir's consent, I'm reviewing the backlog for bugs in FFx Build System to see if we can do some things to clean up the backlog.

This bug appears to be an enhancement or feature request. If so, please set the bug's severity to `enhancement` and/or add the `feature` keyword depending on if this is an improvement to an existing thing, or a new feature/tool/system.
Flags: needinfo?(jyavenard)

Per conversation with :kmoir, I'm going through untriaged bugs in her components and marking the ones which look to be enhancements/tasks with the enhancement severity to get them out of the triage queue.

If this incorrect, please remove the tag.

Severity: normal → enhancement
Flags: needinfo?(jyavenard)

As filed this is definitely WONTFIX--we've removed all invocations of configure scripts for vendored third party projects because they're expensive to run and hard to integrate into the build. If maintaining these header files is time-consuming someone could look into running the ffmpeg configure script outside of the build system to generate them when updating the vendored copy of ffmpeg.

I'm going to go ahead and resolve this--we definitely wouldn't do this in the build system. If you want to do something at import time that automatically generates the checked-in files that would be fine. That bug can go in the Audio/Video component.

We have something similar for ICU where we build ICU at import time to generate the data file that we then commit:
https://dxr.mozilla.org/mozilla-central/source/intl/icu_sources_data.py

Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → WONTFIX

we don't have to do this at build time.

right now it takes hours to craft those. so definitely want something automated

Status: RESOLVED → REOPENED
Component: General → Audio/Video: Playback
Product: Firefox Build System → Core
Resolution: WONTFIX → ---
Rank: 20
Priority: -- → P3
Blocks: ffvp9
Severity: normal → N/A
Rank: 20
You need to log in before you can comment on or make changes to this bug.