Skip to content

Commit

Permalink
config: mp3 support
Browse files Browse the repository at this point in the history
  • Loading branch information
biezhihua committed Feb 8, 2019
1 parent 3ec8363 commit f0e2593
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 2 deletions.
2 changes: 1 addition & 1 deletion config/module-default.sh
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export COMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --disable-avresample"
# libavformat/udp.c:295:29: error: member reference base type '__be32' (aka 'unsigned int') is not a structure or union
# mreqs.imr_sourceaddr.s_addr = ((struct sockaddr_in *)&sources[i])->sin_addr.s_addr;
# ~~~~~~~~~~~~~~~~~~~~^~~~~~~
export COMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --disable-network"
export COMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --enable-network"

# Hardware accelerators:
export COMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --disable-dxva2"
Expand Down
1 change: 1 addition & 0 deletions config/module-min.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ export COMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --enable-avutil"
export COMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --enable-swresample"
export COMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --enable-swscale"
export COMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --enable-avfilter"
export COMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --enable-network"

export COMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --enable-decoder=aac"
export COMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --enable-decoder=h264"
Expand Down
25 changes: 25 additions & 0 deletions config/module-mp3.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
#! /usr/bin/env bash

#--------------------
# Standard options:
export COMMON_FF_CFG_FLAGS=

export COMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --disable-all"

export COMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --enable-avcodec"
export COMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --enable-avformat"
export COMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --enable-avutil"
export COMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --enable-swresample"
export COMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --enable-swscale"
export COMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --enable-avfilter"
export COMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --enable-network"

export COMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --enable-decoder=mp3"
export COMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --enable-parser=aac"
export COMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --enable-muxer=mp3"
export COMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --enable-demuxer=mp3"
export COMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --enable-protocol=http"
export COMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --enable-protocol=https"



7 changes: 6 additions & 1 deletion init-config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ fi

echo_usage() {
echo "Usage:"
echo " init-config.sh default|lite|min|litehevc"
echo " init-config.sh default|lite|min|litehevc|mp3"
echo " init-config.sh clean"
exit 1
}
Expand All @@ -35,6 +35,11 @@ case "$FF_TARGET" in
cat config/module.sh
echo "config complete"
;;
mp3)
cp config/module-mp3.sh config/module.sh
cat config/module.sh
echo "config complete"
;;
default)
cp config/module-default.sh config/module.sh
cat config/module.sh
Expand Down

0 comments on commit f0e2593

Please sign in to comment.