Conversation
|
|
||
| if !WASM_PLATFORM | ||
| BUILT_SOURCES += $(DEPS_CACHE)/curl-$(CURL_VERSION)/certbundle/cacert.pem | ||
| BUILT_SOURCES += $(DEPS_PREFIX)/ffmpeg-$(FFMPEG_VERSION).built |
| --enable-demuxer=mp3,aac,ogg,flac,wav,mov,m4a,matroska \ | ||
| --enable-decoder=mp3,aac,vorbis,opus,flac,pcm_s16le,pcm_f32le \ | ||
| --enable-parser=aac,flac,mpegaudio,vorbis,opus \ | ||
| --enable-avutil \ |
There was a problem hiding this comment.
why --disable- earlier then --enable- here
| --enable-avcodec \ | ||
| --enable-avformat \ | ||
| --enable-swresample \ | ||
| $(if $(WIN_PLATFORM),--target-os=mingw32,--target-os=$(if $(filter linux,$(SYSNAME)),linux,)) \ |
| --enable-avformat \ | ||
| --enable-swresample \ | ||
| $(if $(WIN_PLATFORM),--target-os=mingw32,--target-os=$(if $(filter linux,$(SYSNAME)),linux,)) \ | ||
| $(if $(filter x86_64,$(host_cpu)),--arch=x86_64,--arch=$(host_cpu)) && \ |
| $(MKDIR_P) $(DEPS_PREFIX)/ffmpeg/build $(DEPS_PREFIX)/lib/pkgconfig | ||
| $(TAR) xf $(DEPS_CACHE)/ffmpeg-$(FFMPEG_VERSION).tar.xz -C $(DEPS_PREFIX)/ffmpeg --strip-components=1 && \ | ||
| cd $(DEPS_PREFIX)/ffmpeg/build && \ | ||
| CC="$(CC)" CXX="$(CXX)" ../configure \ |
There was a problem hiding this comment.
may want --enable-gpl and --disable-nonfree
| $(MKDIR_P) $(DEPS_PREFIX)/ffmpeg/build $(DEPS_PREFIX)/lib/pkgconfig | ||
| $(TAR) xf $(DEPS_CACHE)/ffmpeg-$(FFMPEG_VERSION).tar.xz -C $(DEPS_PREFIX)/ffmpeg --strip-components=1 && \ | ||
| cd $(DEPS_PREFIX)/ffmpeg/build && \ | ||
| CC="$(CC)" CXX="$(CXX)" ../configure \ |
There was a problem hiding this comment.
also should do RANLIB="$(RANLIB)" AR="$(AR)" CC="$(CC)" CXX="$(CXX)" LD="$(LD)" CFLAGS="$(CFLAGS)" CXXFLAGS="$(CXXFLAGS)" LDFLAGS="$(LDFLAGS)" CPPFLAGS="$(CPPFLAGS)", instead of only CC/CXX, the flags aren't passed otherwise (see zlib build)
| --disable-muxers \ | ||
| --disable-hwaccels \ | ||
| --disable-protocols \ | ||
| --enable-protocol=file \ |
There was a problem hiding this comment.
i don't think we need that?
| --enable-protocol=file \ | ||
| --enable-demuxer=mp3,aac,ogg,flac,wav,mov,m4a,matroska \ | ||
| --enable-decoder=mp3,aac,vorbis,opus,flac,pcm_s16le,pcm_f32le \ | ||
| --enable-parser=aac,flac,mpegaudio,vorbis,opus \ |
There was a problem hiding this comment.
might want to also add mpeg4audio to these
also actually idk maybe they are parsers but not decoders? i just saw this in my logs by chance with the current ffmpeg builds (not from this branch):pcm_ things don't seem to exist (see ffmpeg configure)
[wav @ 0x7fff78053800] parser not found for codec pcm_s16le, packets or times may be invalid.
[wav @ 0x7fff78053800] Estimating duration from bitrate, this may be inaccurate
ffmpeg: seek skipped - already at frame 0
[pcm_s16le @ 0x7fff7802f980] Invalid PCM packet, data has size 2 but at least a size of 4 was expected
ci probably won't work first try, half vibe coded