Skip to content

Commit

Permalink
Removed unnecessary codecs/demuxers from ffmpeg to reduce the binary …
Browse files Browse the repository at this point in the history
…size
  • Loading branch information
windows-server-2003 committed Aug 12, 2021
1 parent e0aa4aa commit 1a133e7
Show file tree
Hide file tree
Showing 7 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -59,15 +59,15 @@ RSF_PATH := resource/app.rsf
ARCH := -march=armv6k -mtune=mpcore -mfloat-abi=hard -mtp=soft

CFLAGS := -Wall -Wextra -Wno-unused -Wno-psabi -O2 -mword-relocations \
-fomit-frame-pointer -ffunction-sections \
-fomit-frame-pointer -ffunction-sections -fdata-sections -flto \
$(ARCH)

CFLAGS += $(INCLUDE) -DARM11 -D_3DS

CXXFLAGS := $(CFLAGS) -fno-rtti -fno-exceptions -std=gnu++11

ASFLAGS := $(ARCH)
LDFLAGS = -specs=3dsx.specs $(ARCH) -Wl,-Map,$(notdir $*.map)
LDFLAGS = -specs=3dsx.specs $(ARCH) -Wl,-Map,$(notdir $*.map) -flto

LIBS := -lswresample -lavformat -lswscale -lavcodec -lavutil -lcitro2d -lcitro3d -lctru -lm

Expand Down
2 changes: 1 addition & 1 deletion library/FFmpeg/ffmpeg_build.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
The ffmpeg binaries provided in this repository have been compiled by the following configuration :

configure command :
./configure --enable-cross-compile --cross-prefix=[path_to_compiler] --prefix=[build_directory] --cpu=armv6k --arch=arm --target-os=linux --extra-cflags="-mfloat-abi=hard -mtune=mpcore -mtp=cp15" --extra-ldflags="-mfloat-abi=hard" --disable-filters --disable-devices --disable-bsfs --disable-parsers --disable-hwaccels --disable-debug --disable-programs --disable-avdevice --disable-postproc --disable-avfilter --disable-decoders --disable-demuxers --disable-encoders --disable-muxers --disable-asm --disable-protocols --enable-inline-asm --enable-vfp --enable-armv5te --enable-armv6 --enable-decoder="aac,ac3,bmp,gif,h263,h264,hevc,jpeg,jpeg2000,mjpeg,mp1,mp2,mp3,mpeg1video,mpeg2video,mpeg4,msmpeg4*,*pcm*,vorbis,webp,opus" --enable-demuxer="aac,ac3,avi,gif,h263,h264,hevc,matroska,m4v,mjpeg,mjpeg_2000,mpegvideo,mpjpeg,mp3,mov,*pcm*,ogg,wav" --enable-encoder="aac,ac3,mp2,mpeg4" --enable-muxer="mp4" --enable-protocol="file"
./configure --enable-cross-compile --cross-prefix=[path_to_compiler] --prefix=[build_directory] --cpu=armv6k --arch=arm --target-os=linux --extra-cflags="-mfloat-abi=hard -mtune=mpcore -mtp=cp15" --extra-ldflags="-mfloat-abi=hard" --disable-filters --disable-devices --disable-bsfs --disable-parsers --disable-hwaccels --disable-debug --disable-programs --disable-avdevice --disable-postproc --disable-avfilter --disable-decoders --disable-demuxers --disable-encoders --disable-muxers --disable-asm --disable-protocols --enable-inline-asm --enable-vfp --enable-armv5te --enable-armv6 --enable-decoder="aac,h264,opus" --enable-demuxer="mov" --enable-protocol="file"
An example for [path_to_compiler] and [build_directory] is "C:/devkitpro/devkitARM/bin/arm-none-eabi-" and "C:/ThirdTube/library/FFmpeg", respectively.

compiler : devkitARM release 56
Expand Down
Binary file modified library/FFmpeg/lib/libavcodec.a
Binary file not shown.
Binary file modified library/FFmpeg/lib/libavformat.a
Binary file not shown.
Binary file modified library/FFmpeg/lib/libavutil.a
Binary file not shown.
Binary file modified library/FFmpeg/lib/libswresample.a
Binary file not shown.
Binary file modified library/FFmpeg/lib/libswscale.a
Binary file not shown.

0 comments on commit 1a133e7

Please sign in to comment.