[BOARD/PACKAGE] add FFMPEG to record&play /dev/fb0 + alsa capture (#48)

* [PACKAGE] downgrade FFMPEG(add) & X264
- use ffmpeg-3.1 thus downgrade ver. to working SDL1.2
- downgrade x264 to be inline with former ffmpeg
- uncomment FFSERVER build instructions (it is available in 3.1 version)

* [BOARD] 
- add `ffplay` & `ffmpeg` apps to record&play
- add `arecord` script for AUDIO capture (use alsaloop workaround)
- update appLinks with "params=&" for bg launch
- use `pkill` instead 'killall` for scripts (warning: it also checks for bash running under the same name)
- use FFPROBE to detect media format in `ffplay`
- for X264  use sources.buildroot.net (code.videolan.org src only works with git method)
- rm redundant usb Applink
- add 0003-ffplay-custom-sdlk.patch (to make hotkeys usable in miyoo)
This commit is contained in:
Apaczer
2023-11-18 17:27:30 +01:00
committed by GitHub
parent b7a8ba56ec
commit 423e87bd64
25 changed files with 212 additions and 366 deletions

View File

@@ -1,3 +1,2 @@
# Locally computed
sha256 58f39bf23a4e38ac3dd841a3f9ccf2aa16d2b0c35df9aecd9f3b5062780e5d74 x264-35417dcd65a57321fbadf98c9a4cff1cb741db4b.tar.gz
sha256 32b1062f7da84967e7019d01ab805935caa7ab7321a7ced0e30ebe75e5df1670 COPYING
sha256 a3a304da9eb1d5e6b19102e3c4156e17a9e7142d6dc1336e1001ff214c986843 x264-72d53ab2ac7af24597a824e868f2ef363a22f5d4.tar.gz

View File

@@ -4,18 +4,18 @@
#
################################################################################
X264_VERSION = 35417dcd65a57321fbadf98c9a4cff1cb741db4b
X264_SITE = https://code.videolan.org/videolan/x264/-/archive/$(VERSION)/x264-$(VERSION).tar.gz
X264_LICENSE = GPL-2.0+
X264_VERSION = 72d53ab2ac7af24597a824e868f2ef363a22f5d4
X264_SITE = http://sources.buildroot.net
X264_LICENSE = GPLv2+
X264_DEPENDENCIES = host-pkgconf
X264_LICENSE_FILES = COPYING
X264_INSTALL_STAGING = YES
X264_CONF_OPTS = --disable-avs --disable-lavf --disable-swscale
X264_CONF_OPTS = --disable-avs
ifeq ($(BR2_i386)$(BR2_x86_64),y)
# nasm needed for assembly files
X264_DEPENDENCIES += host-nasm
X264_CONF_ENV += AS="$(HOST_DIR)/bin/nasm"
# yasm needed for assembly files
X264_DEPENDENCIES += host-yasm
X264_CONF_ENV += AS="$(HOST_DIR)/usr/bin/yasm"
else ifeq ($(BR2_ARM_CPU_ARMV7A)$(BR2_aarch64),y)
# We need to pass gcc as AS, because the ARM assembly files have to be
# preprocessed
@@ -36,11 +36,6 @@ ifeq ($(BR2_TOOLCHAIN_HAS_THREADS),)
X264_CONF_OPTS += --disable-thread
endif
# Even though the configure script is not generated by autoconf, x264
# uses config.sub/config.guess, so we want up-to-date versions of
# them.
X264_POST_PATCH_HOOKS += UPDATE_CONFIG_HOOK
# the configure script is not generated by autoconf
define X264_CONFIGURE_CMDS
(cd $(@D); $(TARGET_CONFIGURE_OPTS) $(X264_CONF_ENV) ./configure \