
Recherche avancée
Médias (1)
-
Publier une image simplement
13 avril 2011, par ,
Mis à jour : Février 2012
Langue : français
Type : Video
Autres articles (76)
-
Gestion générale des documents
13 mai 2011, parMédiaSPIP ne modifie jamais le document original mis en ligne.
Pour chaque document mis en ligne il effectue deux opérations successives : la création d’une version supplémentaire qui peut être facilement consultée en ligne tout en laissant l’original téléchargeable dans le cas où le document original ne peut être lu dans un navigateur Internet ; la récupération des métadonnées du document original pour illustrer textuellement le fichier ;
Les tableaux ci-dessous expliquent ce que peut faire MédiaSPIP (...) -
Des sites réalisés avec MediaSPIP
2 mai 2011, parCette page présente quelques-uns des sites fonctionnant sous MediaSPIP.
Vous pouvez bien entendu ajouter le votre grâce au formulaire en bas de page. -
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 (12566)
-
Add 2 seconds of blank/black video with ffmpeg
22 avril 2016, par user3076099Let’s say I have two videos I want play simultaneously. movieA.mp4 is 38.6 seconds duration, and movieB.mp4 is 31.14 seconds duration. Using ffmpeg is there an easy way to fill the end of movieB.mp4 with black silence so that it is exactly 38.6 seconds (matching movieA.mp4). There’s a very niche technical reason I want to do this, so don’t ask haha !!
Also if possible, but less important, a way to remove this afterwards.
Been searching for 2 days for any sort of easy way around this without luck !!!
Thanks so much in advance !
-
How can I get FFmpeg to locate installed libraries when —sysroot is pointing to another directory ?
3 février 2013, par Xaero DegreazI've been going at this, literally for days. I'm trying to build FFmpeg with libmp3lame for use in an Android application. The build script sets a
--sysroot
flag that points to the Android NDK directory necessary to build these libraries in a way that Android can use them.The problem comes when I add the flag to
--enable-libmp3lame
; I getERROR: libmp3lame >= 3.98.3 not found
during the build start up. I know that LAME, and it's libraries are installed, because I can just run./configure --enable-libmp3lame
manually and the configuration launches without a hitch, and shows that libmp3lame is enabled for this build. However, building like this will simply not work for what I need it for, since I need the Android NDK to do some work.I've tracked the problem down to the fact that this build script is declaring the sysroot, and through some research, I've tried adding
-Luser/include
,-L/user/include
to the extra cflags, and ldflags (which I've read is the default search location for gcc). I've tried several other things as well, but I'm confident that someone out here can help with this specific problem. This entire build script is as follows :Extra info :
- Build OS : Ubuntu 11.10
- FFmpeg Ver : Latest from git
- LAME Ver : 3.9.x
- Android NDK : r7
build.sh
#!/bin/bash
if [ "$NDK" = "" ]; then
echo NDK variable not set, assuming ${HOME}/android-ndk
export NDK=${HOME}/android-ndk
fi
SYSROOT=$NDK/platforms/android-3/arch-arm
# Expand the prebuilt/* path into the correct one
TOOLCHAIN=`echo $NDK/toolchains/arm-linux-androideabi-4.4.3/prebuilt/*-x86`
export PATH=$TOOLCHAIN/bin:$PATH
rm -rf build/ffmpeg
mkdir -p build/ffmpeg
cd ffmpeg
# Don't build any neon version for now
for version in armv5te armv7a; do
DEST=../build/ffmpeg
FLAGS="--target-os=linux --cross-prefix=arm-linux-androideabi- --arch=arm"
FLAGS="$FLAGS --sysroot=$SYSROOT"
FLAGS="$FLAGS --soname-prefix=/data/data/net.smartnotes/lib/"
FLAGS="$FLAGS --enable-shared --disable-symver"
FLAGS="$FLAGS --enable-small --optimization-flags=-O2"
FLAGS="$FLAGS --disable-everything --enable-protocol=file"
FLAGS="$FLAGS --enable-libmp3lame --enable-encoder=nellymoser"
case "$version" in
neon)
EXTRA_CFLAGS="-march=armv7-a -mfloat-abi=softfp -mfpu=neon"
EXTRA_LDFLAGS="-Wl,--fix-cortex-a8"
# Runtime choosing neon vs non-neon requires
# renamed files
ABI="armeabi-v7a"
;;
armv7a)
# I have tried many things here.
EXTRA_CFLAGS="-march=armv7-a -mfloat-abi=softfp"
EXTRA_LDFLAGS=""
ABI="armeabi-v7a"
;;
*)
# I have tried many things here.
EXTRA_CFLAGS="-Luser/include"
EXTRA_LDFLAGS=""
ABI="armeabi"
;;
esac
DEST="$DEST/$ABI"
FLAGS="$FLAGS --prefix=$DEST"
mkdir -p $DEST
echo $FLAGS --extra-cflags="$EXTRA_CFLAGS" --extra-ldflags="$EXTRA_LDFLAGS" > $DEST/info.txt
./configure $FLAGS --extra-cflags="$EXTRA_CFLAGS" --extra-ldflags="$EXTRA_LDFLAGS" | tee $DEST/configuration.txt
[ $PIPESTATUS == 0 ] || exit 1
make clean
make -j4 || exit 1
make install || exit 1
done -
Getting return value of command inspite of sudo inside of php system
21 avril 2016, par nithintouI’ve been trying for a few days to get the return value of a script that performs an
ffmpeg
recording in the server using phpsystem()
:system("/usr/bin/sudo /usr/bin/php /root/startrecord.php $userid", $retval);
Tried
exec()
as well, but still can’t get the correctexit(n)
code from the recording script to perform the next steps. I am guessing the return value i keep getting is from sudo and not the actual php script.Can you guys suggest any workarounds or tips as to what I may be doing wrong ?