
Recherche avancée
Autres articles (53)
-
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 -
Les formats acceptés
28 janvier 2010, parLes commandes suivantes permettent d’avoir des informations sur les formats et codecs gérés par l’installation local de ffmpeg :
ffmpeg -codecs ffmpeg -formats
Les format videos acceptés en entrée
Cette liste est non exhaustive, elle met en exergue les principaux formats utilisés : h264 : H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 m4v : raw MPEG-4 video format flv : Flash Video (FLV) / Sorenson Spark / Sorenson H.263 Theora wmv :
Les formats vidéos de sortie possibles
Dans un premier temps on (...)
Sur d’autres sites (9180)
-
ffmpeg overlay image and lower transparency
15 juin 2017, par JohanRI have this ffmpeg command that I use to create a video from a photo and a animated GIF border overlay, and a audio track.
ffmpeg -framerate 15 -loop 1 -i photo.jpg -ignore_loop 0 -i overlay.gif -filter_complex "scale=(iw*sar)*max(600/(iw*sar)\,750/ih):ih*max(600/(iw*sar)\,750/ih), crop=600:750, overlay" -i audio.wav -c:v libx264 -c:a aac -b:a 192k -shortest output.mp4
What I want is to lower the opacity of the overlay image.
I have checked a lot of threads, but I can’t figure out how to combine something like this with my existing filters.
-filter_complex "blend=all_mode='overlay':all_opacity=0.7"
Any ideas ?
Here’s the full ffmpeg output of one of my tests :
ffmpeg -framerate 15 -loop 1 -i photo.jpg -ignore_loop 0 -i overlay.gif -filter_complex "scale=(iw*sar)*max(600/(iw*sar)\,750/ih):ih*max(600/(iw*sar)\,750/ih), crop=600:750, blend=all_mode='overlay':all_opacity=0.7" -i audio.wav -c:v libx264 -c:a aac -b:a 192k -shortest output.mp4
ffmpeg version N-83507-g8fa18e0 Copyright (c) 2000-2017 the FFmpeg developers
built with gcc 5.4.0 (GCC)
configuration: --enable-gpl --enable-version3 --enable-cuda --enable-cuvid --enable-d3d11va --enable-dxva2 --enable-libmfx --enable-nvenc --enable-avisynth --enable-bzlib --enable-fontconfig --enabl
e-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug -
-enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenh264 --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libsnappy --enable-libsoxr --enable-libspe
ex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable
-libxavs --enable-libxvid --enable-libzimg --enable-lzma --enable-zlib
libavutil 55. 47.100 / 55. 47.100
libavcodec 57. 80.100 / 57. 80.100
libavformat 57. 66.102 / 57. 66.102
libavdevice 57. 2.100 / 57. 2.100
libavfilter 6. 73.100 / 6. 73.100
libswscale 4. 3.101 / 4. 3.101
libswresample 2. 4.100 / 2. 4.100
libpostproc 54. 2.100 / 54. 2.100
Input #0, image2, from 'photo.jpg':
Duration: 00:00:00.07, start: 0.000000, bitrate: 15374 kb/s
Stream #0:0: Video: mjpeg, yuvj420p(pc, bt470bg/unknown/unknown), 400x600 [SAR 72:72 DAR 2:3], 15 fps, 15 tbr, 15 tbn, 15 tbc
Input #1, gif, from 'overlay.gif':
Duration: N/A, bitrate: N/A
Stream #1:0: Video: gif, bgra, 600x750, 5.42 fps, 5 tbr, 100 tbn, 100 tbc
Guessed Channel Layout for Input Stream #2.0 : mono
Input #2, wav, from 'audio.wav':
Duration: 00:00:23.00, bitrate: 705 kb/s
Stream #2:0: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 44100 Hz, mono, s16, 705 kb/s
[swscaler @ 00000000023300a0] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 000000000234d1e0] deprecated pixel format used, make sure you did set range correctly
[Parsed_blend_2 @ 00000000022fd0c0] First input link top parameters (size 600x750, SAR 1:1) do not match the corresponding second input link bottom parameters (600x750, SAR 0:1)
[Parsed_blend_2 @ 00000000022fd0c0] Failed to configure output pad on Parsed_blend_2
Error configuring complex filters.
Invalid argument -
DIY video file streaming from linux/osx to iOS devices
27 septembre 2016, par sfactorThis is for a hobby project. I want to learn about video streaming and also create something that’s useful for me as well.
The project should be able to run a server on my macbook and a client on my iPad that will allow me to watch the videos I’ve got stored on my laptop without having to copy them in my iPad over my wifi.
I know there are solutions like Plex, Air Video etc. that allow me to do it. But since my goal is to practice writing some client/server code, I want to create something myself with the basic functionality of these apps.
I figured I’d probably need something like ffmpeg and Apple’s HTTP Live Streaming (HLS), but I don’t have a Apple developer account to be able to use it. I do have Xcode in my mac. So, some free 3rd party library for HLS or something equivalent. I also fond this tool called https://www.bento4.com.
How would I go about getting started with such an application and what are the libraries I could use to accomplish this ?
-
Error when compiling FAAC for iOS
6 novembre 2014, par 谢小进I want to compile
FAAC
for iOS, includingi386
,x86_64
,armv7
,armv7s
,arm64
. I am using this shell script and when I run it, onlyi386
andx86_64
are built. The current code is like this :#!/bin/sh
# OS X Mavericks, Xcode 5.1
set -ex
VERSION="1.28"
CURRPATH=`pwd`
SOURCE="faac-$VERSION"
DSTDIR="libfaac"
SDKVERSION="7.1"
ARCHS="i386 x86_64 armv7 armv7s arm64"
DEVELOPER="/Applications/Xcode.app/Contents/Developer"
rm -rf $DSTDIR
mkdir $DSTDIR
tar jxf $SOURCE.tar.gz
cd $SOURCE
for ARCH in $ARCHS; do
mkdir -p $CURRPATH/$DSTDIR/$ARCH
if [ $ARCH == "i386" -o $ARCH == "x86_64" ]; then
PLATFORM="iPhoneSimulator"
if [ $ARCH = "i386" ]; then
HOST="--host=i386-apple-darwin"
fi
else
PLATFORM="iPhoneOS"
HOST="--host=arm-apple-darwin"
fi
SDK="$DEVELOPER/Platforms/$PLATFORM.platform/Developer/SDKs/$PLATFORM$SDKVERSION.sdk"
IOSMV="-miphoneos-version-min=7.0"
export CC="$DEVELOPER/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang"
export CFLAGS="$IOSMV -arch $ARCH"
export LDFLAGS="$IOSMV -arch $ARCH -isysroot $SDK"
export LIBS="-L$SDK/usr/lib"
export CXXFLAGS="$IOSMV -arch $ARCH -I$SDK/usr/include"
./configure \
$HOST \
--prefix=$CURRPATH/$DSTDIR/$ARCH
make && make install && make clean
done
cd ..
mkdir -p $DSTDIR/lib
lipo -create `find $DSTDIR -name libfdk-aac.a` -output $DSTDIR/lib/libfdk-aac.a
cp -rf $DSTDIR/$ARCH/include $DSTDIR
for ARCH in $ARCHS; do
rm -rf $DSTDIR/$ARCH
doneCan somebody tell me why
armv7
,armv7s
,arm64
are not built correct ? If needed, where can I change them ? Maybe it could be like-host=
value. but I have used-host=armv7-apple-darwin
,-host=armv7s-apple-darwin
, and-host=arm64-apple-darwin
, it’s not correct either.