mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-28 13:16:41 +00:00
ffmpeg:
- fix ffmpeg build and install - add README
This commit is contained in:
parent
0c5271baaf
commit
fd6c5d216f
6
packages/multimedia/ffmpeg/README
Normal file
6
packages/multimedia/ffmpeg/README
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
# to get it from git:
|
||||||
|
|
||||||
|
git clone git://git.ffmpeg.org/ffmpeg/
|
||||||
|
cd ffmpeg
|
||||||
|
git clone git://git.ffmpeg.org/libswscale/
|
||||||
|
cd ..
|
@ -6,18 +6,6 @@ $SCRIPTS/build toolchain
|
|||||||
$SCRIPTS/build zlib
|
$SCRIPTS/build zlib
|
||||||
$SCRIPTS/build faad2
|
$SCRIPTS/build faad2
|
||||||
|
|
||||||
if [ "$DEBUG" = yes ]; then
|
|
||||||
DEBUG_CONFIG="--enable-debug --disable-stripping"
|
|
||||||
else
|
|
||||||
DEBUG_CONFIG="--disable-debug --enable-stripping"
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ "$OPTIMIZATIONS" = size ]; then
|
|
||||||
OPTIM_CONFIG="--enable-small"
|
|
||||||
else
|
|
||||||
OPTIM_CONFIG="--disable-small"
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ "$DEVTOOLS" = "yes" ]; then
|
if [ "$DEVTOOLS" = "yes" ]; then
|
||||||
$SCRIPTS/build SDL
|
$SCRIPTS/build SDL
|
||||||
$SCRIPTS/build SDL_image
|
$SCRIPTS/build SDL_image
|
||||||
@ -34,6 +22,8 @@ cd $PKG_BUILD/
|
|||||||
--prefix=/usr \
|
--prefix=/usr \
|
||||||
--extra-cflags="$CFLAGS" \
|
--extra-cflags="$CFLAGS" \
|
||||||
--cpu=$TARGET_CPU \
|
--cpu=$TARGET_CPU \
|
||||||
|
--disable-debug \
|
||||||
|
--enable-stripping \
|
||||||
--disable-static \
|
--disable-static \
|
||||||
--enable-shared \
|
--enable-shared \
|
||||||
--enable-gpl \
|
--enable-gpl \
|
||||||
@ -45,7 +35,7 @@ cd $PKG_BUILD/
|
|||||||
--enable-pthreads \
|
--enable-pthreads \
|
||||||
--disable-x11grab \
|
--disable-x11grab \
|
||||||
--enable-ipv6 \
|
--enable-ipv6 \
|
||||||
$OPTIM_CONFIG \
|
--enable-small \
|
||||||
--enable-encoders \
|
--enable-encoders \
|
||||||
--enable-decoders \
|
--enable-decoders \
|
||||||
--enable-muxers \
|
--enable-muxers \
|
||||||
@ -59,7 +49,6 @@ cd $PKG_BUILD/
|
|||||||
--enable-filters \
|
--enable-filters \
|
||||||
--enable-zlib \
|
--enable-zlib \
|
||||||
--enable-libfaad \
|
--enable-libfaad \
|
||||||
$DEBUG_CONFIG \
|
|
||||||
$DEVTOOLS_CONFIG \
|
$DEVTOOLS_CONFIG \
|
||||||
|
|
||||||
make
|
make
|
||||||
|
@ -15,6 +15,6 @@ if [ "$DEVTOOLS" = "yes" ]; then
|
|||||||
$SCRIPTS/install SDL
|
$SCRIPTS/install SDL
|
||||||
$SCRIPTS/install SDL_image
|
$SCRIPTS/install SDL_image
|
||||||
$SCRIPTS/install SDL_mixer
|
$SCRIPTS/install SDL_mixer
|
||||||
mkdir -p $INSTALL/usr/bin && cp -P $BUILD/$1*/ffplay $INSTALL/usr/bin
|
mkdir -p $INSTALL/usr/bin && cp -P $PKG_BUILD/ffplay $INSTALL/usr/bin
|
||||||
cp -P $PKG_BUILD/libavdevice/libavdevice.so* $INSTALL/usr/lib
|
cp -P $PKG_BUILD/libavdevice/libavdevice.so* $INSTALL/usr/lib
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user