Skip to content

Instantly share code, notes, and snippets.

View tanersener's full-sized avatar

Taner Sener tanersener

  • Europe
View GitHub Profile
@tanersener
tanersener / android_libnsl.sh
Last active June 26, 2018 15:49
Android cross-compile failure for libnsl library from https://github.com/thkukuk/libnsl
# Building https://github.com/thkukuk/libnsl/archive/v1.2.0.tar.gz
./configure
--prefix=/Users/taner/Projects/mobile-ffmpeg/prebuilt/android-arm/libnsl
--with-pic
--with-sysroot=/Users/taner/Library/Android/sdk/ndk-bundle/toolchains/mobile-ffmpeg-arm/sysroot
--enable-static
--disable-shared
--disable-fast-install
--without-libintl-prefix
@tanersener
tanersener / android_ntirpc.sh
Created June 26, 2018 15:46
Android cross-compile failure for ntirpc library from https://github.com/nfs-ganesha/ntirpc
# Building ntirpc https://github.com/nfs-ganesha/ntirpc/archive/v1.6.2.tar.gz
cmake
-Wno-dev
-DCMAKE_VERBOSE_MAKEFILE=0
-DCMAKE_C_FLAGS=-march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=softfp -std=c99 -Wno-unused-function -fstrict-aliasing -fPIC -DANDROID -D__ANDROID_API__=21
-DCMAKE_CXX_FLAGS=-std=c++11 -fno-exceptions -fno-rtti
-DCMAKE_EXE_LINKER_FLAGS=-march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=softfp -Wl,--fix-cortex-a8 -lc -lm -ldl -llog
-DCMAKE_SYSROOT=/Users/taner/Library/Android/sdk/ndk-bundle/toolchains/mobile-ffmpeg-arm/sysroot
-DCMAKE_FIND_ROOT_PATH=/Users/taner/Library/Android/sdk/ndk-bundle/toolchains/mobile-ffmpeg-arm/sysroot
@tanersener
tanersener / android_libtirpc.sh
Created June 26, 2018 16:03
Android cross-compile failure for libtirpc library from https://sourceforge.net/projects/libtirpc
# Building https://sourceforge.net/projects/libtirpc/files/libtirpc/1.0.3/libtirpc-1.0.3.tar.bz2
./configure
--prefix=/Users/taner/Projects/mobile-ffmpeg/prebuilt/android-arm/libtirpc
--with-pic
--with-sysroot=/Users/taner/Library/Android/sdk/ndk-bundle/toolchains/mobile-ffmpeg-arm/sysroot
--enable-static
--disable-shared
--disable-fast-install
--disable-gssapi
@tanersener
tanersener / android_samba.sh
Created June 26, 2018 16:11
Android cross-compile failure for samba library from https://www.samba.org
# Building https://download.samba.org/pub/samba/samba-4.8.3.tar.gz
./configure
--prefix=/Users/taner/Projects/mobile-ffmpeg/prebuilt/android-arm/lame
--with-static-modules=ALL
--cross-compile
--cross-answers=/tmp/cross-answers-arm.txt
--hostcc=arm-linux-androideabi
...
@tanersener
tanersener / android-xvc.sh
Last active March 3, 2024 15:55
Cross-compile script for Android. Creates binaries for arm-v7a, arm64-v8a, x86 and x86-64 platforms.
#!/bin/bash
set_arch_specific_variables() {
case ${ARCH} in
arm-v7a)
TOOLCHAIN="arm"
TARGET_HOST="arm-linux-androideabi"
TARGET_ARCH="arm"
ABI="armeabi-v7a"
;;
@tanersener
tanersener / [email protected]
Created December 6, 2018 15:09
push_vertical.sh script in reverse order, images pushed/pulled from bottom to top
#!/bin/bash
#
# ffmpeg video slideshow script with vertical push transition v2 (01.12.2018)
#
# Copyright (c) 2017-2018, Taner Sener (https://github.com/tanersener)
#
# This work is licensed under the terms of the MIT license. For a copy, see <https://opensource.org/licenses/MIT>.
#
# SCRIPT OPTIONS - CAN BE MODIFIED
@tanersener
tanersener / firefox-developer-edition.desktop
Created March 7, 2020 09:15
Firefox Developer Edition desktop shortcut for Ubuntu that starts application from /usr/local/firefox-developer-edition path
[Desktop Entry]
Version=1.0
Name=Firefox Developer Edition Web Browser
Comment=Browse the World Wide Web
GenericName=Web Browser
Keywords=Internet;WWW;Browser;Web;Explorer
Exec=/usr/local/firefox-developer-edition/firefox %u
Terminal=false
X-MultipleArgs=false
Type=Application
@tanersener
tanersener / camera_flutter_ffmpeg.dart
Last active June 28, 2020 19:31
Flutter example application with camera and flutter_ffmpeg plugins enabled. When video recording is stopped, flutter_ffmpeg copies recorded video to another directory. Needs path, path_provider, flutter_ffmpeg, camera, video_player, e2e dependencies in pubspec.yaml.
// Copyright 2019 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// ignore_for_file: public_member_api_docs
import 'dart:async';
import 'dart:io';
import 'package:camera/camera.dart';
@tanersener
tanersener / srt.sh
Created October 30, 2021 19:49
srt (https://github.com/Haivision/srt) build script for ffmpeg-kit apple platforms. Current version fails during the installation.
#!/bin/bash
cd "srt" || return 1
# ALWAYS CLEAN THE PREVIOUS BUILD
make distclean 2>/dev/null 1>/dev/null
USE_ENCLIB=gnutls ./configure \
--enable-apps=OFF \
--use-enclib=gnutls \
org.springframework.web.util.NestedServletException: Method not found.
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1014)
at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:909)
at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:883)
at org.springframework.mock.web.MockFilterChain.doFilter(MockFilterChain.java:134)
at org.springframework.test.web.servlet.MockMvc.perform(MockMvc.java:183)
at com.arthenica.smartexception.java.SpringTest.putUserTest(SpringTest.java:100)