4/26/2023 0 Comments Ffmpeg javascript example![]() You are mostly interested in the Individual component options: -disable-everything disable all components listed below -enable-encoder=NAME enable encoder NAME -enable-decoder=NAME enable decoder NAME -enable-muxer=NAME enable muxer NAME -enable-demuxer=NAME enable demuxer NAME -enable-parser=NAME enable parser NAME -enable-filter=NAME enable filter NAME configure -help within the project to get a list of options you can use. configure you can see, the default configuration just enables external libraries but not much else. ![]() By default it looks something like this: #!/bin/bash set -euo pipefail source $(dirname $0)/var.sh FLAGS=( -enable-gpl # required by x264 -enable-nonfree # required by fdk-aac -enable-zlib # enable zlib -enable-libx264 # enable x264 -enable-libx265 # enable x265 -enable-libvpx # enable libvpx / webm -enable-libwavpack # enable libwavpack -enable-libmp3lame # enable libmp3lame -enable-libfdk-aac # enable libfdk-aac -enable-libtheora # enable libtheora -enable-libvorbis # enable libvorbis -enable-libfreetype # enable freetype -enable-libopus # enable opus -enable-libwebp # enable libwebp -enable-libass # enable libass -enable-libfribidi # enable libfribidi # -enable-libaom # enable libaom ) echo emconfigure. In wasm/build-scripts/configure-ffmpeg.sh you find some of the parameters FFmpeg compiles with. But instead of running the build-with-docker.sh script, we are going to modify the project a bit. ![]() The instructions in the readme are actually quiet good. So how can we improve on that? Compile your own ffmpeg.wasm ![]() It is probably not reasonable to download such a binary just to compress e.g. Simulated download of 8.5 mb with simulated ADSL 16000
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |