Minimal example: transcode from MP3 to WMA:
ffmpeg -i input.mp3 output.wma
You can get the list of supported formats with:
ffmpeg -formats
You can get the list of installed codecs with:
#!/usr/bin/env sh | |
# Remove the extension of a filename, using POSIX's built-in script only. | |
# https://stackoverflow.com/a/63970495/4789973 | |
path=this.path/with.dots/in.path.name/filename.tar.gz | |
# Get the basedir without external command | |
# by stripping out shortest trailing match of / followed by anything | |
dirname=${path%/*} | |
# Get the basename without external command |
. /etc/upstream-release/lsb-release | |
sudo sh -c "echo 'deb https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/xUbuntu_${DISTRIB_RELEASE}/ /' > /etc/apt/sources.list.d/devel:kubic:libcontainers:stable.list" | |
curl -L https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/xUbuntu_${DISTRIB_RELEASE}/Release.key | sudo apt-key add - | |
sudo apt-get update -qq | |
sudo apt-get -qq -y install podman |
LOCAL_PATH:= $(call my-dir) | |
include $(CLEAR_VARS) | |
my_package_name := Demo | |
LOCAL_MODULE_TAGS := optional | |
LOCAL_SRC_FILES := $(call all-java-files-under, app/src/main/java) | |
LOCAL_RESOURCE_DIR := $(LOCAL_PATH)/app/src/main/res | |
LOCAL_RESOURCE_DIR += prebuilts/sdk/current/support/compat/res/ |