
Recherche avancée
Médias (1)
-
Carte de Schillerkiez
13 mai 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Texte
Autres articles (64)
-
Les autorisations surchargées par les plugins
27 avril 2010, parMediaspip core
autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs -
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 -
HTML5 audio and video support
13 avril 2011, parMediaSPIP uses HTML5 video and audio tags to play multimedia files, taking advantage of the latest W3C innovations supported by modern browsers.
The MediaSPIP player used has been created specifically for MediaSPIP and can be easily adapted to fit in with a specific theme.
For older browsers the Flowplayer flash fallback is used.
MediaSPIP allows for media playback on major mobile platforms with the above (...)
Sur d’autres sites (9578)
-
ffmpeg built on mac 10.13 fails when ran on other computer (dyld : Library not loaded libmp3lame.0.dylib)
15 mars 2023, par MartinI have a shell script called
buildffmpeg.sh
which I call with the command$ sh buildffmpeg.sh
on my mac os high sierra 10.13 machine :

#!/bin/bash

# If you get error `c compiler failed` run `sudo apt install libglfw3-dev libglew-dev`
# apt-get install build-essential
# apt-get build-dep ffmpeg
# when running this on mac, you need to install some libraries such as 'brew install opus'

set -e

CWD=$(pwd)
PACKAGES="$CWD/packages"
WORKSPACE="$CWD/workspace"
ADDITIONAL_CONFIGURE_OPTIONS=""


mkdir -p "$PACKAGES"
mkdir -p "$WORKSPACE"

FFMPEG_TAG="$1"
FFMPEG_URL="http://git.ffmpeg.org/gitweb/ffmpeg.git/snapshot/74c4c539538e36d8df02de2484b045010d292f2c.tar.gz"

FFMPEG_ARCHIVE="$PACKAGES/ffmpeg.tar.gz"

if [ ! -f "$FFMPEG_ARCHIVE" ]; then
 echo "Downloading tag ${FFMPEG_TAG}..."
 curl -L -o "$FFMPEG_ARCHIVE" "$FFMPEG_URL"
fi

EXTRACTED_DIR="$PACKAGES/extracted"

mkdir -p "$EXTRACTED_DIR"

echo "Extracting..."
tar -xf "$FFMPEG_ARCHIVE" --strip-components=1 -C "$EXTRACTED_DIR"

cd "$EXTRACTED_DIR"

echo "Building..."

# Min electron supported version
MACOS_MIN="10.10"

./configure $ADDITIONAL_CONFIGURE_OPTIONS \
 --pkgconfigdir="$WORKSPACE/lib/pkgconfig" \
 --prefix=${WORKSPACE} \
 --pkg-config-flags="--static" \
 --extra-cflags="-I$WORKSPACE/include -mmacosx-version-min=${MACOS_MIN}" \
 --extra-ldflags="-L$WORKSPACE/lib -mmacosx-version-min=${MACOS_MIN} -L/usr/local/opt/lame/lib -Wl,-rpath,/usr/local/opt/lame/lib" \
 --extra-libs="-lpthread -lm" \
 --enable-static \
 --disable-securetransport \
 --disable-debug \
 --disable-shared \
 --disable-ffplay \
 --disable-lzma \
 --disable-doc \
 --enable-version3 \
 --enable-pthreads \
 --enable-runtime-cpudetect \
 --enable-avfilter \
 --enable-filters \
 --disable-libxcb \
 --enable-gpl \
 --disable-libass \
 --enable-libmp3lame \
 --enable-libx264 \
 --enable-libopus

make -j 4
make install

otool -L "$WORKSPACE/bin/ffmpeg"
otool -L "$WORKSPACE/bin/ffprobe"

echo "Building done. The binaries can be found here: $WORKSPACE/bin/ffmpeg $WORKSPACE/bin/ffprobe"

mkdir ffmpeg-mac/ 
cp -r "$WORKSPACE/bin/" "$CWD/ffmpeg-mac/"

rm -rf "$PACKAGES"
rm -rf "$WORKSPACE"

exit 0




When it finishes, I have a folder
ffmpeg-mac/
which contains two built executablesffmpeg
andffprobe
.

but if I try to move the
ffmpeg-mac
folder onto my other macbook, running 11.2.3 big sur, and if i try to call my built ffmpeg file with./ffmpeg-mac/ffmpeg
, it fails with this error :

$ ./ffmpeg-mac/ffmpeg 
dyld: Library not loaded: /usr/local/opt/lame/lib/libmp3lame.0.dylib
 Referenced from: /Users/martinbarker/Documents/projects/rendertunev1.1.2/./ffmpeg-mac/ffmpeg
 Reason: image not found
Abort trap: 6




So I think when I run the script to build ffmpeg on my mac 10.13 high sierra machine, it for some reason is not including the file
libmp3lame.0.dylib
. I've tried using brew to uninstall, install, unlink, and linklame
, but no luck. I've tried manually editing my shell script to include the file but no luck.

Can anyone help me fix my build script so that when I build ffmpeg on high sierra, I can use the finished built file on other mac computers ?


-
Configured Half-ninja android FFMPEG project
24 décembre 2013, par Mr.GI have configured android-halfninja project completely and i manage to build
libs/armeabi/libvideokit.so and
libs/armeabi/ffmpeglibs from the given source
But i had to make some changes to the .sh files in order to build .so files.
But now i tried to execute following ffmpeg command in my android project it doesn't run properly
String var[] = {"ffmpeg","-i",input};
12-24 10:34:44.569: I/VideoKit(14374): Loading native library compiled at 14:43:51 Dec 18 2013
12-24 10:34:44.599: I/ActivityManager(290): Process uk.co.halfninja.videokit (pid 14374) has died.
12-24 10:34:44.599: W/ActivityManager(290): Force removing ActivityRecord{2bea3e28 uk.co.halfninja.videokit/.MainActivity}: app died, no saved stateCan any one tell me what might be th issue to have this error in half-nonja project
here is my configure_ffmpeg.sh file
#!/bin/bash
pushd `dirname $0`
. settings.sh
if [[ $DEBUG == 1 ]]; then
echo "DEBUG = 1"
DEBUG_FLAG="--disable-stripping"
fi
# I haven't found a reliable way to install/uninstall a patch from a Makefile,
# so just always try to apply it, and ignore it if it fails. Works fine unless
# the files being patched have changed, in which cause a partial application
# could happen unnoticed.
patch -N -p1 --reject-file=- < redact-plugins.patch
patch -N -p1 --reject-file=- < arm-asm-fix.patch
patch -d ffmpeg -N -p1 --reject-file=- < \
ARM_generate_position_independent_code_to_access_data_symbols.patch
patch -d ffmpeg -N -p1 --reject-file=- < \
ARM_intmath_use_native-size_return_types_for_clipping_functions.patch
patch -d ffmpeg -N -p1 --reject-file=- < \
enable-fake-pkg-config.patch
pushd ffmpeg
./configure \
$DEBUG_FLAG \
--arch=arm \
--cpu=cortex-a8 \
--target-os=linux \
--enable-runtime-cpudetect \
--prefix=$prefix \
--enable-pic \
--disable-shared \
--enable-static \
--cross-prefix=$NDK_TOOLCHAIN_BASE/bin/$NDK_ABI-linux-androideabi- \
--sysroot="$NDK_SYSROOT" \
--extra-cflags="-I../x264 -mfloat-abi=softfp -mfpu=neon" \
--extra-ldflags="-L../x264" \
\
--enable-version3 \
--enable-gpl \
\
--disable-doc \
--enable-yasm \
\
--disable-everything \
--enable-decoder=mjpeg \
--enable-demuxer=mjpeg \
--enable-parser=mjpeg \
--enable-demuxer=image2 \
--enable-muxer=mp4 \
--enable-encoder=libx264 \
--enable-decoder=rawvideo \
--enable-protocol=file \
--enable-hwaccels \
--enable-filter=buffer \
--enable-filter=buffersink \
--disable-demuxer=v4l \
--disable-demuxer=v4l2 \
--disable-indev=v4l \
--disable-indev=v4l2 \
\
--disable-indevs \
--enable-indev=lavfi \
--disable-outdevs \
\
--enable-hwaccels \
\
--disable-ffmpeg \
--disable-ffplay \
--disable-ffprobe \
--disable-ffserver \
--disable-network \
\
--enable-libx264 \
--enable-zlib \
--enable-muxer=md5
popd; popd
#--enable-decoders \
#--enable-encoders \
#--enable-muxers \
#--enable-demuxers \
#--enable-parsers \
#--enable-protocols \
#--enable-filter=buffer \
#--enable-filter=buffersink \
#--enable-avresample \
#--enable-faac \ -
convert ogv to webm using ffmpeg and point ffmpeg to new installed version
9 juin 2015, par AishaI was facing problem in converting files from one format to another, so I put the question on stackoverflow, some people suggested me to recompile ffmpeg my ffmpeg version was 0.10.0 so they suggest me to install new one with full codecs from this link
https://trac.ffmpeg.org/wiki/CompilationGuide/Centos
I followed the steps and installed new version but i didnot uninstall my old one and its still giving me error when i am converting video from ogv to webm
/root/bin$ ffmpeg -i hello.ogv -acodec libvorbis -ac 2 -ab 96k -ar 44100 hello.webm
ffmpeg version 0.10.15 Copyright (c) 2000-2014 the FFmpeg developers
built on Aug 30 2014 15:49:19 with gcc 4.4.7 20120313 (Red Hat 4.4.7-3)
configuration: --prefix=/usr --bindir=/usr/bin --datadir=/usr/share /ffmpeg --incdir=/usr/include/ffmpeg --libdir=/usr/lib64 --mandir=/usr/share/man --arch=x86_64 --extra-cflags='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic' --enable-bzlib --disable-crystalhd --enable-gnutls --enable-libass --enable-libcdio --enable-libcelt --enable-libdc1394 --disable-indev=jack --enable-libfreetype --enable-libgsm --enable-libmp3lame --enable-openal --enable-libopenjpeg --enable-libpulse --enable-librtmp --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-libv4l2 --enable-libx264 --enable-libxvid --enable-x11grab --enable-avfilter --enable-postproc --enable-pthreads --disable-static --enable-shared --enable-gpl --disable-debug --disable-stripping --shlibdir=/usr/lib64 --enable-runtime-cpudetect
libavutil 51. 35.100 / 51. 35.100
libavcodec 53. 61.100 / 53. 61.100
libavformat 53. 32.100 / 53. 32.100
libavdevice 53. 4.100 / 53. 4.100
libavfilter 2. 61.100 / 2. 61.100
libswscale 2. 1.100 / 2. 1.100
libswresample 0. 6.100 / 0. 6.100
libpostproc 52. 0.100 / 52. 0.100
Input #0, ogg, from 'hello.ogv':
Duration: 00:01:30.00, start: 0.000000, bitrate: 435 kb/s
Stream #0:0: Video: theora, yuv420p, 400x320 [SAR 1:1 DAR 5:4], 25 fps, 25 tbr, 25 tbn, 25 tbc
Stream #0:1(und): Audio: vorbis, 44100 Hz, stereo, s16, 128 kb/s
Metadata:
CREATION_TIME : 2013-02-16 05:41:59
LANGUAGE : und
HANDLER_NAME : /tmp/tmpGzy9a1/448616221878309._audio.aac - Imported with GPAC 0.4.6-DEV-rev3544
MAJOR_BRAND : FACE
MINOR_VERSION : 1337
COMPATIBLE_BRANDS: isomavc1FACE
ENCODER : Lavf55.37.102
[buffer @ 0x2143160] w:400 h:320 pixfmt:yuv420p tb:1/1000000 sar:1/1 sws_param:
Output #0, webm, to 'hello.webm':
Stream #0:0: Video: none, yuv420p, 400x320 [SAR 1:1 DAR 5:4], q=2-31, 128 kb/s, 90k tbn, 25 tbc
Stream #0:1(und): Audio: none, 44100 Hz, 2 channels, s16
Metadata:
CREATION_TIME : 2013-02-16 05:41:59
LANGUAGE : und
HANDLER_NAME : /tmp/tmpGzy9a1/448616221878309._audio.aac - Imported with GPAC 0.4.6-DEV-rev3544
MAJOR_BRAND : FACE
MINOR_VERSION : 1337
COMPATIBLE_BRANDS: isomavc1FACE
ENCODER : Lavf55.37.102
Stream mapping:
Stream #0:0 -> #0:0 (theora -> ?)
Stream #0:1 -> #0:1 (vorbis -> libvorbis)
Encoder (codec none) not found for output stream #0:0I know i have to point to new ffmpeg build. but how to do this. Please help me. I am desperate.