Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom Build Config for only Decoding VP8 #15

Closed
waldobeest opened this issue Mar 8, 2023 · 2 comments
Closed

Custom Build Config for only Decoding VP8 #15

waldobeest opened this issue Mar 8, 2023 · 2 comments

Comments

@waldobeest
Copy link

Hi Yahweasel,

Once again, super project, thanks!

I have a question on a custom build config to reduce the library size for only needing to decode vp8 in the browser.

Some background on what I am trying to do, the videos I am decoding have no audio, so it needs no flac or ogg support. They are only a few resolutions needed, and I only need the decoding from vp8 webm done in the browser.

My build configs:

deps.txt
tmp-inst/@TARGET/lib/pkgconfig/vpx.pc
ffmpeg-config.txt
--enable-libvpx
--enable-decoder=libvpx_vp8
libs.txt
tmp-inst/@TARGET/lib/libvpx.a
link-flags.txt
-DLIBAVJS_WITH_SWSCALE=1

The builds are successful, and have reduced the size as needed, but in turn have some errors in processing in the browser.
image (98)

I also tried with:

ffmpeg-config.txt
--enable-protocol=data --enable-protocol=file
--enable-filter=aresample
--enable-libvpx
--enable-decoder=libvpx_vp8
--enable-encoder=libvpx_vp8

and getting:

image

Any way that you can see we can achieve this, or is the best way to roll with the config for the webm-flac-opus?

@Yahweasel
Copy link
Owner

It looks like you're using avformat_open_input_js, i.e., you're not just decoding VP8, you're also demuxing WebM. If you want to be able to demux WebM, you need to include the WebM format. You should create the configuration like so:

$ cd configs
$ ./mkconfig.js webm-decode '["webm","vpx","vp8"]'

@Yahweasel
Copy link
Owner

Closing as presumably complete.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants