
Recherche avancée
Médias (91)
-
Corona Radiata
26 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
Lights in the Sky
26 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
Head Down
26 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
Echoplex
26 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
Discipline
26 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
Letting You
26 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
Autres articles (59)
-
Publier sur MédiaSpip
13 juin 2013Puis-je poster des contenus à partir d’une tablette Ipad ?
Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir -
Encoding and processing into web-friendly formats
13 avril 2011, parMediaSPIP automatically converts uploaded files to internet-compatible formats.
Video files are encoded in MP4, Ogv and WebM (supported by HTML5) and MP4 (supported by Flash).
Audio files are encoded in MP3 and Ogg (supported by HTML5) and MP3 (supported by Flash).
Where possible, text is analyzed in order to retrieve the data needed for search engine detection, and then exported as a series of image files.
All uploaded files are stored online in their original format, so you can (...) -
MediaSPIP v0.2
21 juin 2013, parMediaSPIP 0.2 is the first MediaSPIP stable release.
Its official release date is June 21, 2013 and is announced here.
The zip file provided here only contains the sources of MediaSPIP in its standalone version.
To get a working installation, you must manually install all-software dependencies on the server.
If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...)
Sur d’autres sites (10189)
-
Can Imageio.getwriter to use codec 265 ?
21 mars 2024, par GerrikLabraI have pip installed imageio[ffmpeg] (2.34.0), but the only FFMPEG codec the imageio wrapper seems to support is h264. When I run the below code with the following codecs, I get the error :


I am trying to get DEVS or DEVLS codecs from the FFMPEG -codecs for my non-audio mp4 videos, any suggestions ?


from imageio import get_writer 
writer=get_writer("test.mp4",format="FFMPEG",mode="I",codec="gif")

Incompatible pixel format 'yuv420p' for codec 'gif', auto-selecting format 'bgr8'
[mp4 @ 000002330fbede40] Could not find tag for codec gif in stream #0, codec not currently supported in container
Could not write header for output file #0 (incorrect codec parameters ?): Invalid argument
Error initializing output stream 0:0 --

from imageio import get_writer 
writer=get_writer("test.mp4",format="FFMPEG",mode="I",codec="ffv1")

[mp4 @ 000001cdc94fde40] Could not find tag for codec ffv1 in stream #0, codec not currently supported in container
Could not write header for output file #0 (incorrect codec parameters ?): Invalid argument
Error initializing output stream 0:0 -- 



-
Cross compile FFmpeg with openssl and libsrt by android ndk
25 janvier 2024, par MingyI am trying to cross-compile FFmpeg using the Android NDK and enable support for OpenSSL and libsrt. After separately compiling OpenSSL and libsrt, when configuring FFmpeg, pkg-config cannot correctly locate the installed OpenSSL and libsrt libraries.


Here are my compilation scripts.
OpenSSL 3.1.4


#!/bin/bash

if [[ ! -d "./openssl" ]]; then
 git clone --depth 1 --branch openssl-3.1.4 https://github.com/openssl/openssl.git
fi

cd openssl

export ANDROID_NDK_ROOT=/home/albert/workspace/DevKit/android/SDK/ndk/25.1.8937393/
PATH=$ANDROID_NDK_ROOT/toolchains/llvm/prebuilt/linux-x86_64/bin:$PATH

rm -rf ./android
make clean

./Configure android-arm64 \
 -D__ANDROID_API__=28 \
--prefix=$PWD/android/arm64-v8a

make -j $(grep "cpu cores" /proc/cpuinfo | wc -l)
make install

cd ..



libsrt 1.5.3


#!/bin/bash

if [[ ! -d "./srt" ]]; then
 git clone --depth 1 --branch v1.5.3 https://github.com/Haivision/srt.git
fi

export OpenSSL_INSTALL_DIR=$PWD/openssl/android/arm64-v8a

cd srt

rm -rf ./android
make clean

./configure --use-enclib=openssl \
--use-openssl-pc=OFF \
--OPENSSL_INCLUDE_DIR=$OpenSSL_INSTALL_DIR/include \
--OPENSSL_CRYPTO_LIBRARY=$OpenSSL_INSTALL_DIR/lib/libcrypto.a \
--OPENSSL_SSL_LIBRARY=$OpenSSL_INSTALL_DIR/lib/libssl.a \
--CMAKE_PREFIX_PATH=$PWD/install/android/arm64-v8a \
--CMAKE_INSTALL_PREFIX=$PWD/install/android/arm64-v8a \
--CMAKE_ANDROID_NDK=/home/albert/workspace/DevKit/android/SDK/ndk/25.1.8937393 \
--CMAKE_SYSTEM_NAME=Android \
--CMAKE_SYSTEM_VERSION=28 \
--CMAKE_ANDROID_ARCH_ABI=arm64-v8a \
--CMAKE_C_FLAGS="-fPIC" \
--enable-c++11 \
--enable-stdcxx-sync \
--enable-debug=2 \
--enable-logging=0 \
--enable-heavy-logging=0 \
--enable-apps=0

make -j $(grep "cpu cores" /proc/cpuinfo | wc -l)
make install

cd ..



Then I put those install dir to PKG_CONFIG_PATH


export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:$PWD/openssl/android/arm64-v8a/lib/pkgconfig:$PWD/srt/install/android/arm64-v8a/lib/pkgconfig



Upon testing, both OpenSSL and SRT can successfully retrieve the version and corresponding linking symbols.


But, When I'm going to configure FFmpeg, Error Occurred


My FFmpeg configurtion script


TOOLCHAIN=/home/albert/workspace/DevKit/android/SDK/ndk/25.1.8937393/toolchains/llvm/prebuilt/linux-x86_64
API=28

./configure \
 --prefix=$PWD/android/arm64-v8a \
 --disable-neon \
 --disable-hwaccels \
 --disable-gpl \
 --disable-postproc \
 --enable-static \
 --enable-jni \
 --disable-mediacodec \
 --disable-decoder=h264_mediacodec \
 --disable-doc \
 --disable-programs \
 --disable-ffmpeg \
 --disable-ffplay \
 --disable-ffprobe \
 --disable-avdevice \
 --disable-symver \
 --cross-prefix=$TOOLCHAIN/bin/llvm- \
 --target-os=android \
 --arch=arm64 \
 --cpu=armv8-a \
 --cc=$TOOLCHAIN/bin/aarch64-linux-android$API-clang \
 --cxx=$TOOLCHAIN/bin/aarch64-linux-android$API-clang++ \
 --enable-cross-compile \
 --sysroot=$TOOLCHAIN/sysroot \
 --enable-version3 \
 --enable-openssl \
 --enable-libsrt \
 --extra-cflags="-DVK_ENABLE_BETA_EXTENSIONS=0 -mno-stackrealign -Os -fpic -march=armv8-a " \
 --extra-ldflags="" \
 $ADDITIONAL_CONFIGURE_FLAG



ERROR: srt >= 1.3.0 not found using pkg-config



config.log


require_pkg_config libsrt srt >= 1.3.0 srt/srt.h srt_socket
check_pkg_config libsrt srt >= 1.3.0 srt/srt.h srt_socket
test_pkg_config libsrt srt >= 1.3.0 srt/srt.h srt_socket
false --exists --print-errors srt >= 1.3.0
ERROR: srt >= 1.3.0 not found using pkg-config



If only enable OpenSSL, then get Error


ERROR: OpenSSL <3.0.0 is incompatible with the gpl



config.log


check_pkg_config openssl openssl >= 3.0.0 openssl/ssl.h OPENSSL_init_ssl
test_pkg_config openssl openssl >= 3.0.0 openssl/ssl.h OPENSSL_init_ssl
false --exists --print-errors openssl >= 3.0.0
ERROR: OpenSSL <3.0.0 is incompatible with the gpl



-
Error while linking shared library FFMpegJNI to android project
5 mars 2024, par Dari VI have built an ffmpeg module for all the architectures, but when I try to build project to run it on emulator (x86 architecture) i get an error, indicating that the files for x86 architecture are incompatible with elf_i386. The same is for other architectures, i get the error that the files are incompatible. What can i do in this case ?


[2/2] Linking CXX shared library E:\android_studio_projects\projects\IPTVPlayer\app\build\intermediates\cxx\Debug\1h3dp6s4\obj\x86\libffmpegJNI.so
FAILED: E:/android_studio_projects/projects/IPTVPlayer/app/build/intermediates/cxx/Debug/1h3dp6s4/obj/x86/libffmpegJNI.so 
cmd.exe /C "cd . && C:\Users\volos\AppData\Local\Android\Sdk\ndk\25.1.8937393\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe --target=i686-none-linux-android30 --sysroot=C:/Users/volos/AppData/Local/Android/Sdk/ndk/25.1.8937393/toolchains/llvm/prebuilt/windows-x86_64/sysroot -fPIC -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fno-limit-debug-info -static-libstdc++ -Wl,--build-id=sha1 -Wl,--fatal-warnings -Wl,--gc-sections -Wl,--no-undefined -Qunused-arguments -shared -Wl,-soname,libffmpegJNI.so -o E:\android_studio_projects\projects\IPTVPlayer\app\build\intermediates\cxx\Debug\1h3dp6s4\obj\x86\libffmpegJNI.so CMakeFiles/ffmpegJNI.dir/E_/media3/media-release/libraries/decoder_ffmpeg/src/main/jni/ffmpeg_jni.cc.o -landroid E:/media3/media-release/libraries/decoder_ffmpeg/src/main/jni/ffmpeg/android-libs/x86/libswresample.a E:/media3/media-release/libraries/decoder_ffmpeg/src/main/jni/ffmpeg/android-libs/x86/libavcodec.a E:/media3/media-release/libraries/decoder_ffmpeg/src/main/jni/ffmpeg/android-libs/x86/libavutil.a C:/Users/volos/AppData/Local/Android/Sdk/ndk/25.1.8937393/toolchains/llvm/prebuilt/windows-x86_64/sysroot/usr/lib/i686-linux-android/30/liblog.so -latomic -lm && cd ."
ld: error: E:/media3/media-release/libraries/decoder_ffmpeg/src/main/jni/ffmpeg/android-libs/x86/libavcodec.a(mpegaudiotabs.o) is incompatible with elf_i386