
Recherche avancée
Médias (1)
-
The pirate bay depuis la Belgique
1er avril 2013, par
Mis à jour : Avril 2013
Langue : français
Type : Image
Autres articles (90)
-
Amélioration de la version de base
13 septembre 2013Jolie sélection multiple
Le plugin Chosen permet d’améliorer l’ergonomie des champs de sélection multiple. Voir les deux images suivantes pour comparer.
Il suffit pour cela d’activer le plugin Chosen (Configuration générale du site > Gestion des plugins), puis de configurer le plugin (Les squelettes > Chosen) en activant l’utilisation de Chosen dans le site public et en spécifiant les éléments de formulaires à améliorer, par exemple select[multiple] pour les listes à sélection multiple (...) -
Multilang : améliorer l’interface pour les blocs multilingues
18 février 2011, parMultilang est un plugin supplémentaire qui n’est pas activé par défaut lors de l’initialisation de MediaSPIP.
Après son activation, une préconfiguration est mise en place automatiquement par MediaSPIP init permettant à la nouvelle fonctionnalité d’être automatiquement opérationnelle. Il n’est donc pas obligatoire de passer par une étape de configuration pour cela. -
ANNEXE : Les plugins utilisés spécifiquement pour la ferme
5 mars 2010, parLe site central/maître de la ferme a besoin d’utiliser plusieurs plugins supplémentaires vis à vis des canaux pour son bon fonctionnement. le plugin Gestion de la mutualisation ; le plugin inscription3 pour gérer les inscriptions et les demandes de création d’instance de mutualisation dès l’inscription des utilisateurs ; le plugin verifier qui fournit une API de vérification des champs (utilisé par inscription3) ; le plugin champs extras v2 nécessité par inscription3 (...)
Sur d’autres sites (10548)
-
ffmpeg with Axis P1347 returns 400 Bad Request, but Axis 1357 works
3 mai 2016, par steampoweredI have two cameras : an Axis P1347 and an Axis P1357.
ffmpeg
gets a400 Bad Request
on the P1347 but everything works fine with the P1357.I am able to successfully stream rtsp video using vlc from an Axis P1347 Camera using the following url :
rtsp://10.8.3.85:554/axis-media/media.amp?videocodec=h264&audio=1
However, this same url in ffmpeg gives the following for the Axis P1347 Camera :
root@ubuntu4-virtual-machine:/home/ubuntu4# ffmpeg -re -v verbose -i "rtsp://10.8.3.85:554/axis-media/media.amp?videocodec=h264&audio=1"
ffmpeg version git-2016-05-02-9fcb59c Copyright (c) 2000-2016 the FFmpeg developers
built with gcc 4.8 (Ubuntu 4.8.4-2ubuntu1~14.04.1)
configuration: --enable-gpl --enable-libfaac --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-librtmp --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-nonfree --enable-version3
libavutil 55. 23.100 / 55. 23.100
libavcodec 57. 38.100 / 57. 38.100
libavformat 57. 35.100 / 57. 35.100
libavdevice 57. 0.101 / 57. 0.101
libavfilter 6. 44.100 / 6. 44.100
libswscale 4. 1.100 / 4. 1.100
libswresample 2. 0.101 / 2. 0.101
libpostproc 54. 0.100 / 54. 0.100
rtsp://10.8.3.85:554/axis-media/media.amp?videocodec=h264&audio=1: Server returned 400 Bad RequestThe same ffmpeg command works great with the nearly identical Axis P1357 Camera :
root@ubuntu4-virtual-machine:/home/ubuntu4# ffmpeg -re -rtsp_transport tcp -i "rtsp://10.8.3.90:554/axis-media/media.amp?videocodec=h264&audio=1"
ffmpeg version git-2016-05-02-9fcb59c Copyright (c) 2000-2016 the FFmpeg developers
built with gcc 4.8 (Ubuntu 4.8.4-2ubuntu1~14.04.1)
configuration: --enable-gpl --enable-libfaac --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-librtmp --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-nonfree --enable-version3
libavutil 55. 23.100 / 55. 23.100
libavcodec 57. 38.100 / 57. 38.100
libavformat 57. 35.100 / 57. 35.100
libavdevice 57. 0.101 / 57. 0.101
libavfilter 6. 44.100 / 6. 44.100
libswscale 4. 1.100 / 4. 1.100
libswresample 2. 0.101 / 2. 0.101
libpostproc 54. 0.100 / 54. 0.100
Input #0, rtsp, from 'rtsp://10.8.3.90:554/axis-media/media.amp?videocodec=h264&audio=1':
Metadata:
title : Media Presentation
Duration: N/A, start: 0.083300, bitrate: N/A
Stream #0:0: Video: h264 (Main), yuvj420p(pc, bt709), 2592x1944 [SAR 1:1 DAR 4:3], 12 tbr, 90k tbn
Stream #0:1: Audio: aac (LC), 16000 Hz, mono, fltpObviously
rtsp
is turned on and working if vlc can display video, correct ? So why does VLC work with the camera, but not ffmpeg ? Note ffmpeg is installed and works correctly with a similar camera. -
Installing full multimedia stack on server (ffmpeg,mp4box,sox,mplayer)
29 avril 2015, par hdezelaI’ve had a trusty text file with all(?) the steps I need to set up a full multimedia stack on a RHEL compatible server (CentOS, AWS Linux, etc.) for a few years now. However, sometimes some things are missing and I need to revise it. I know it is not complete so I’m asking for suggestions/modifications in order to get a good - and public - list of how to install all this stuff easily.
Ideally, I want to be able to run through the file and end up with a system that’ll take any media file and be able to convert/encode/decode/whatever with it.
This is what I have :
yum install mesa-libGL-devel mesa-libGLU-devel libXi-devel libXmu-devel freeglut-devel freeglut ncurses-devel
cd /usr/local/src
mkdir /usr/local/src/tmp
chmod 777 /usr/local/src/tmp
export TMPDIR=/usr/local/src/tmp
wget http://www.tortall.net/projects/yasm/releases/yasm-1.3.0.tar.gz
wget http://downloads.xiph.org/releases/ogg/libogg-1.3.2.tar.gz
wget http://downloads.xiph.org/releases/vorbis/libvorbis-1.3.4.tar.gz
wget http://downloads.xiph.org/releases/theora/libtheora-1.1.1.tar.gz
wget ftp://ftp.videolan.org/pub/videolan/x264/snapshots/last_stable_x264.tar.bz2
wget http://downloads.sourceforge.net/project/opencore-amr/opencore-amr/opencore-amr-0.1.3.tar.gz
wget http://downloads.sourceforge.net/faac/faac-1.28.tar.gz
wget http://downloads.sourceforge.net/project/lame/lame/3.99/lame-3.99.5.tar.gz
wget http://webm.googlecode.com/files/libvpx-v1.3.0.zip
wget http://downloads.sourceforge.net/project/yamdi/yamdi/1.9/yamdi-1.9.tar.gz
wget http://rtmpdump.mplayerhq.hu/download/rtmpdump-2.3.tgz
git clone https://github.com/FFmpeg/FFmpeg.git
wget http://downloads.sourceforge.net/gpac/gpac-0.5.0.tar.gz
wget http://downloads.sourceforge.net/gpac/gpac_extra_libs-0.5.0.tar.gz
wget http://www.mplayerhq.hu/MPlayer/releases/codecs/all-20110131.tar.bz2
wget http://www.mplayerhq.hu/MPlayer/releases/MPlayer-1.1.tar.xz
wget https://bitbucket.org/acoustid/chromaprint/downloads/chromaprint-fpcalc-1.1-linux-x86_64.tar.gz
wget http://sourceforge.net/projects/mad/files/madplay/0.15.2b/madplay-0.15.2b.tar.gz
wget http://sourceforge.net/projects/mad/files/libmad/0.15.1b/libmad-0.15.1b.tar.gz
wget http://sourceforge.net/projects/mad/files/libid3tag/0.15.1b/libid3tag-0.15.1b.tar.gz
wget http://sourceforge.net/projects/sox/files/sox/14.4.1/sox-14.4.1.tar.gz
wget http://downloads.xiph.org/releases/ao/libao-1.2.0.tar.gz
wget http://downloads.sourceforge.net/twolame/twolame-0.3.13.tar.gz
wget http://www.mega-nerd.com/libsndfile/files/libsndfile-1.0.25.tar.gz
wget http://www.wavpack.com/wavpack-4.70.0.tar.bz2
wget http://www.linuxfromscratch.org/patches/blfs/svn/libmad-0.15.1b-fixes-1.patch
tar zxf yasm-1.3.0.tar.gz
tar zxf libogg-1.3.2.tar.gz
tar zxf libvorbis-1.3.4.tar.gz
tar zxf libtheora-1.1.1.tar.gz
tar jxf last_stable_x264.tar.bz2
tar zxf opencore-amr-0.1.3.tar.gz
tar zxf faac-1.28.tar.gz
tar zxf lame-3.99.5.tar.gz
unzip libvpx-v1.3.0.zip
tar xzf yamdi-1.9.tar.gz
tar xzf rtmpdump-2.3.tgz
tar zxvf gpac-0.5.0.tar.gz
tar zxvf gpac_extra_libs-0.5.0.tar.gz
tar jxf all-20110131.tar.bz2
tar jxf MPlayer-1.1.tar.xz
tar xf chromaprint-fpcalc-1.1-linux-x86_64.tar.gz
tar xf madplay-0.15.2b.tar.gz
tar xf libmad-0.15.1b.tar.gz
tar xf libid3tag-0.15.1b.tar.gz
tar xf sox-14.4.1.tar.gz
tar xf libao-1.2.0.tar.gz
tar xf twolame-0.3.13.tar.gz
tar xf libsndfile-1.0.25.tar.gz
tar jxf wavpack-4.70.0.tar.bz2
[YASM]
cd /usr/local/src/yasm-1.3.0
./configure && make && make install
yasm --version
ldconfig
[LIBOGG]
cd /usr/local/src/libogg-1.3.2
./configure && make clean && make && make install
ls /usr/local/lib/libogg*
ldconfig
[LIBVORBIS]
cd /usr/local/src/libvorbis-1.3.4
./configure && make clean && make && make install
ls /usr/local/lib/libvorbis*
ldconfig
[LIBTHEORA]
cd /usr/local/src/libtheora-1.1.1
./configure && make clean && make && make install
ls /usr/local/lib/libtheora*
ldconfig
[x264]
cd /usr/local/src/x264-snapshot-[***]
./configure --enable-shared && make clean && make && make install
ls /usr/local/lib/libx264*
ldconfig
[AMR]
cd /usr/local/src/opencore-amr-0.1.3
./configure && make clean && make && make install
ls /usr/local/lib/libopencore*
ldconfig
[FAAC]
cd /usr/local/src/faac-1.28
vi /usr/local/src/faac-1.28/common/mp4v2/mpeg4ip.h [ELIMINAR]:char *strcasestr(const char *haystack, const char *needle);
./configure && make && make install
ls /usr/local/lib/libfaac*
ldconfig
[LAME]
cd /usr/local/src/lame-3.99.5
./configure && make clean && make && make install
ls /usr/local/lib/libmp3lame*
ldconfig
[GPAC+MP4BOX]
cd /sr/local/src/gpac
cp -r ../gpac_extra_libs/* extra_lib/
chmod +x configure
./configure
make lib
make apps
make install-lib
make install
cp bin/gcc/libgpac.so /usr/lib
ldconfig
[LIBVPX]
cd /usr/local/src/libvpx-v1.3.0
./configure --enable-vp8 --enable-pic --enable-shared && make && make install
ls /usr/local/lib/libvpx*
ldconfig
[LIBRTMP]
cd /usr/local/src/rtmpdump-2.3
make SYS=posix
make install
ls /usr/local/lib/librtm*
ldconfig
[FFMPEG]
cd /usr/local/src/FFmpeg
export PKG_CONFIG_PATH="${PKG_CONFIG_PATH}:/usr/local/lib/pkgconfig"
./configure --enable-gpl --enable-version3 --enable-nonfree --enable-shared --enable-libmp3lame --enable-libx264 --enable-libfaac --enable-libvpx --enable-libvorbis --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopencore-amrnb --enable-libtheora --enable-librtmp
make clean && make && make install
make tools/qt-faststart
cp tools/qt-faststart /usr/local/bin/
ldconfig
ffmpeg
qt-faststart
[MPLAYER]
mv /usr/local/src/all-20110131 /usr/local/lib/codecs/
chmod -R 755 /usr/local/lib/codecs/
cd MPlayer-1-1
make clean
./configure && make && make install
ldconfig
[YAMDI]
cd /usr/local/src/yamdi-1.9
gcc yamdi.c -o yamdi -O2 -Wall
strip yamdi
cp yamdi /usr/bin/yamdi
yamdi -h
[MEDIAINFO]
rpm -ivh http://downloads.sourceforge.net/zenlib/libzen0-0.4.31-1.x86_64.CentOS_6.rpm
rpm -ivh http://sourceforge.net/projects/mediainfo/files/binary/libmediainfo0/0.7.73/libmediainfo0-0.7.73-1.x86_64.CentOS_6.rpm
rpm -ivh http://sourceforge.net/projects/mediainfo/files/binary/mediainfo/0.7.73/mediainfo-0.7.73-1.x86_64.CentOS_6.rpm
[CHROMAPRINT]
cp /usr/local/src/chromaprint-fpcalc-1.1-linux-x86_64/fpcalc /usr/local/bin/fpcalc
[LIBAO]
cd /usr/local/src/libao-1.2.0
./configure
make
make install
ldconfig
[LIBSND]
cd /usr/local/src/libsndfile-1.0.25
./configure
make
make install
ldconfig
[TWOLAME]
cd /usr/local/src/twolame-0.3.13
./configure
make
make install
ldconfig
[WAVPACK]
cd /usr/local/src/wavpack-4.70.0
./configure
make
make install
ldconfig
[LIBMAD]
cd /usr/local/src/libmad-0.15.1b
patch -Np1 -i ../libmad-0.15.1b-fixes-1.patch
sed "s@AM_CONFIG_HEADER@AC_CONFIG_HEADERS@g" -i configure.ac
touch NEWS AUTHORS ChangeLog
autoreconf -fi
./configure --enable-shared
make
make install
ldconfig
[ID3]
cd /usr/local/src/libid3tag-0.15.1b
./configure --enable-shared
make
make install
ldconfig
[MADPLAY]
cd /usr/local/src/madplay-0.15.2b
./configure --enable-shared
make
make install
ldconfig
[SOX]
cd /usr/local/src/sox-14.4.1
./configure
make -s
make install
ldconfig -
FFMpeg Error initializing filter 'drawtext' on Android project
14 janvier 2019, par user3884677I try to draw a text on a video using FFMpeg but I have the error :
ffmpeg version n3.0.1 Copyright (c) 2000-2016 the FFmpeg developers
built with gcc 4.8 (GCC)
configuration: --target-os=linux --cross-prefix=/home/vagrant/SourceCode/ffmpeg-android/toolchain-android/bin/arm-linux-androideabi- --arch=arm --cpu=cortex-a8 --enable-runtime-cpudetect --sysroot=/home/vagrant/SourceCode/ffmpeg-android/toolchain-android/sysroot --enable-pic --enable-libx264 --enable-libass --enable-libfreetype --enable-libfribidi --enable-libmp3lame --enable-fontconfig --enable-pthreads --disable-debug --disable-ffserver --enable-version3 --enable-hardcoded-tables --disable-ffplay --disable-ffprobe --enable-gpl --enable-yasm --disable-doc --disable-shared --enable-static --pkg-config=/home/vagrant/SourceCode/ffmpeg-android/ffmpeg-pkg-config --prefix=/home/vagrant/SourceCode/ffmpeg-android/build/armeabi-v7a --extra-cflags='-I/home/vagrant/SourceCode/ffmpeg-android/toolchain-android/include -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fno-strict-overflow -fstack-protector-all' --extra-ldflags='-L/home/vagrant/SourceCode/ffmpeg-android/toolchain-android/lib -Wl,-z,relro -Wl,-z,now -pie' --extra-libs='-lpng -lexpat -lm' --extra-cxxflags=
libavutil 55. 17.103 / 55. 17.103
libavcodec 57. 24.102 / 57. 24.102
libavformat 57. 25.100 / 57. 25.100
libavdevice 57. 0.101 / 57. 0.101
libavfilter 6. 31.100 / 6. 31.100
libswscale 4. 0.100 / 4. 0.100
libswresample 2. 0.101 / 2. 0.101
libpostproc 54. 0.100 / 54. 0.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/storage/emulated/0/mediapicker/videos/eb89fc80-ebcc-4848-a95c-6983b2c5b09d.mp4':
Metadata:
major_brand : 3gp4
minor_version : 0
compatible_brands: isom3gp4
creation_time : 2018-10-03 15:46:13
com.android.version: 6.0
Duration: 00:00:04.78, start: 0.000000, bitrate: 6167 kb/s
Stream #0:0(eng): Video: h264 (Baseline) (avc1 / 0x31637661), yuv420p, 1280x720, 6122 kb/s, SAR 1:1 DAR 16:9, 19.95 fps, 19.92 tbr, 90k tbn, 180k tbc (default)
Metadata:
rotate : 90
creation_time : 2018-10-03 15:46:13
handler_name : VideoHandle
Side data:
displaymatrix: rotation of -90.00 degrees
Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 127 kb/s (default)
Metadata:
creation_time : 2018-10-03 15:46:13
handler_name : SoundHandle
Fontconfig error: Cannot load default config file
[Parsed_drawtext_0 @ 0xb561e040] impossible to init fontconfig
[AVFilterGraph @ 0xb5609140] Error initializing filter 'drawtext' with args '"fontfile=/usr/share/fonts/TTF/Vera.ttf: text=Test Heading"'
Error opening filters!This is my code :
private GLSurfaceView mGLView;
private Button chooseVideo;
private Button valideButton;
private String SelectedVideo;
private VideoView videoView;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
chooseVideo= findViewById(R.id.choose_video);
chooseVideo.setOnClickListener(new View.OnClickListener() {
public void onClick(View v) {
new VideoPicker.Builder(MainActivity.this)
.mode(VideoPicker.Mode.GALLERY)
.directory(VideoPicker.Directory.DEFAULT)
.extension(VideoPicker.Extension.MP4)
.enableDebuggingMode(true)
.build();
}
});
videoView = (VideoView) findViewById(R.id.videoView);
final FFmpeg ffmpeg = FFmpeg.getInstance(MainActivity.this);
try {
ffmpeg.loadBinary(new LoadBinaryResponseHandler() {
@Override
public void onStart() {
}
@Override
public void onFailure() {
}
@Override
public void onSuccess() {
}
@Override
public void onFinish() {
}
});
} catch (FFmpegNotSupportedException e) {
}
valideButton= findViewById(R.id.valide);
valideButton.setOnClickListener(new View.OnClickListener() {
public void onClick(View v) {
try {
String[] cmd = {"-y" , "-i", SelectedVideo,
"-vf", "drawtext=\"fontfile=/usr/share/fonts/TTF/Vera.ttf: text=\'Test Heading\'\"",
"-acodec",
"copy", Environment.getExternalStorageDirectory()+"/"+Environment.DIRECTORY_MOVIES+"/output.mp4"};
ffmpeg.execute(cmd, new ExecuteBinaryResponseHandler() {
@Override
public void onStart() {
}
@Override
public void onProgress(String message) {
}
@Override
public void onFailure(String message) {
Log.i("ffmpegFailure",message);
}
@Override
public void onSuccess(String message) {
Log.i("ffmpegExecute",message);
videoView.setVideoPath(Environment.getExternalStorageDirectory()+"/"+Environment.DIRECTORY_MOVIES+"/output.mp4");
videoView.requestFocus();
videoView.start();
}
@Override
public void onFinish() {
}
});
} catch (FFmpegCommandAlreadyRunningException e) {
// Handle if FFmpeg is already running
}
}
});
}My problem is that I can not use the option ’drawtext’. When I don’t use the option ’drawtext’ it’s work. I do not know which syntax I should use.
I tried a lot of possibilities without success.
I use this library : http://writingminds.github.io/ffmpeg-android-java/Can you help me ?