
Recherche avancée
Médias (1)
-
Rennes Emotion Map 2010-11
19 octobre 2011, par
Mis à jour : Juillet 2013
Langue : français
Type : Texte
Autres articles (91)
-
MediaSPIP 0.1 Beta version
25 avril 2011, parMediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
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 (...) -
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 (...) -
Personnaliser en ajoutant son logo, sa bannière ou son image de fond
5 septembre 2013, parCertains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;
Sur d’autres sites (11054)
-
Conversion does not end using ffmpeg on Android device
3 février 2016, par BelhaverI am trying to make an application with usage of ffmpeg-android-java https://github.com/WritingMinds/ffmpeg-android-java and i have a problem. File conversion just does not end.
Here is code which i am using :
try {
// code...
String commandStr = "-y -i /storage/emulated/0/input.mp4 -strict experimental -s " + fileWidth + "x" + fileHeight + " -vcodec libx264 -r 30 /storage/emulated/0/output.mp4";
ffmpeg.execute(commandStr, new ExecuteBinaryResponseHandler() {
@Override
public void onSuccess(String message) {
Log.d("FFMPEG success", "");
// code...
}
@Override
public void onFailure(String message) {
Log.d("FFMPEG failure: ", message);
// code...
}
@Override
public void onProgress(String message) {
Log.d("FFMPEG process: ", message);
}
@Override
public void onFinish() {
Log.d("FFMPEG done", "");
}
});
} catch (Throwable e) {
e.printStackTrace();
}Here is the output process :
FFMPEG process:: WARNING: linker: /data/data/pl.tradesoft.testowa/files/ffmpeg has text relocations. This is wasting memory and prevents security hardening. Please fix.
FFMPEG process:: ffmpeg version n2.4.2 Copyright (c) 2000-2014 the FFmpeg developers
FFMPEG process:: built on Oct 7 2014 15:08:46 with gcc 4.8 (GCC)
FFMPEG process:: configuration: --target-os=linux --cross-prefix=/home/sb/Source-Code/ffmpeg-android/toolchain-android/bin/arm-linux-androideabi- --arch=arm --cpu=cortex-a8 --enable-runtime-cpudetect --sysroot=/home/sb/Source-Code/ffmpeg-android/toolchain-android/sysroot --enable-pic --enable-libx264 --enable-libass --enable-libfreetype --enable-libfribidi --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/sb/Source-Code/ffmpeg-android/ffmpeg-pkg-config --prefix=/home/sb/Source-Code/ffmpeg-android/build/armeabi-v7a-neon --extra-cflags='-I/home/sb/Source-Code/ffmpeg-android/toolchain-android/include -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fno-strict-overflow -fstack-protector-all -mfpu=neon' --extra-ldflags='-L/home/sb/Source-Code/ffmpeg-android/toolchain-android/lib -Wl,-z,relro -Wl,-z,now -pie' --extra-libs='-lpng -lexpat -lm' --extra-cxxflags=
FFMPEG process:: libavutil 54. 7.100 / 54. 7.100
FFMPEG process:: libavcodec 56. 1.100 / 56. 1.100
FFMPEG process:: libavformat 56. 4.101 / 56. 4.101
FFMPEG process:: libavdevice 56. 0.100 / 56. 0.100
FFMPEG process:: libavfilter 5. 1.100 / 5. 1.100
FFMPEG process:: libswscale 3. 0.100 / 3. 0.100
FFMPEG process:: libswresample 1. 1.100 / 1. 1.100
FFMPEG process:: libpostproc 53. 0.100 / 53. 0.100
FFMPEG process:: Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/storage/emulated/0/input.mp4':
FFMPEG process:: Metadata:
FFMPEG process:: major_brand : isom
FFMPEG process:: minor_version : 512
FFMPEG process:: compatible_brands: isomiso2avc1mp41
FFMPEG process:: encoder : Lavf54.63.104
FFMPEG process:: Duration: 00:01:00.35, start: 0.000000, bitrate: 3267 kb/s
FFMPEG process:: Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 1368x768 [SAR 1:1 DAR 57:32], 3258 kb/s, 30 fps, 30 tbr, 15360 tbn, 60 tbc (default)
FFMPEG process:: Metadata:
FFMPEG process:: handler_name : VideoHandler
FFMPEG process:: Stream #0:1(und): Audio: aac (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 3 kb/s (default)
FFMPEG process:: Metadata:
FFMPEG process:: handler_name : SoundHandler
FFMPEG process:: [libx264 @ 0xb5e08800] using SAR=1/1
FFMPEG process:: [libx264 @ 0xb5e08800] using cpu capabilities: none!
FFMPEG process:: [libx264 @ 0xb5e08800] profile High, level 3.2
FFMPEG process:: [libx264 @ 0xb5e08800] 264 - core 142 - H.264/MPEG-4 AVC codec - Copyleft 2003-2014 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=6 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
FFMPEG process:: Output #0, mp4, to '/storage/emulated/0/output.mp4':
FFMPEG process:: Metadata:
FFMPEG process:: major_brand : isom
FFMPEG process:: minor_version : 512
FFMPEG process:: compatible_brands: isomiso2avc1mp41
FFMPEG process:: encoder : Lavf56.4.101
FFMPEG process:: Stream #0:0(und): Video: h264 (libx264) ([33][0][0][0] / 0x0021), yuv420p, 1368x768 [SAR 1:1 DAR 57:32], q=-1--1, 30 fps, 15360 tbn, 30 tbc (default)
FFMPEG process:: Metadata:
FFMPEG process:: handler_name : VideoHandler
FFMPEG process:: encoder : Lavc56.1.100 libx264
FFMPEG process:: Stream #0:1(und): Audio: aac ([64][0][0][0] / 0x0040), 44100 Hz, stereo, fltp, 128 kb/s (default)
FFMPEG process:: Metadata:
FFMPEG process:: handler_name : SoundHandler
FFMPEG process:: encoder : Lavc56.1.100 aac
FFMPEG process:: Stream mapping:
FFMPEG process:: Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264))
FFMPEG process:: Stream #0:1 -> #0:1 (aac (native) -> aac (native))
FFMPEG process:: Press [q] to stop, [?] for help
FFMPEG process:: frame= 16 fps=0.0 q=0.0 size= 0kB time=00:00:00.62 bitrate= 0.6kbits/s
FFMPEG process:: frame= 31 fps= 30 q=0.0 size= 0kB time=00:00:01.11 bitrate= 0.3kbits/s
.......
FFMPEG process:: frame= 1801 fps=2.7 q=29.0 size= 4550kB time=00:01:00.11 bitrate= 620.0kbits/s
FFMPEG process:: frame= 1805 fps=2.7 q=29.0 size= 4552kB time=00:01:00.25 bitrate= 618.8kbits/s
FFMPEG process:: frame= 1808 fps=2.7 q=29.0 size= 4555kB time=00:01:00.30 bitrate= 618.8kbits/s
FFMPEG process:: frame= 1810 fps=2.7 q=-1.0 Lsize= 4640kB time=00:01:00.34 bitrate= 629.9kbits/s
FFMPEG process:: video:4561kB audio:15kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 1.407034%
FFMPEG process:: [libx264 @ 0xb5e08800] frame I:8 Avg QP:16.53 size:114657
FFMPEG process:: [libx264 @ 0xb5e08800] frame P:571 Avg QP:19.19 size: 5161
FFMPEG process:: [libx264 @ 0xb5e08800] frame B:1231 Avg QP:26.30 size: 654
FFMPEG process:: [libx264 @ 0xb5e08800] consecutive B-frames: 8.7% 1.3% 1.3% 88.6%
FFMPEG process:: [libx264 @ 0xb5e08800] mb I I16..4: 19.9% 33.4% 46.7%
FFMPEG process:: [libx264 @ 0xb5e08800] mb P I16..4: 1.7% 2.3% 0.5% P16..4: 16.5% 2.5% 2.0% 0.0% 0.0% skip:74.5%
FFMPEG process:: [libx264 @ 0xb5e08800] mb B I16..4: 0.1% 0.1% 0.0% B16..8: 5.8% 0.4% 0.1% direct: 0.2% skip:93.2% L0:37.8% L1:59.7% BI: 2.5%
FFMPEG process:: [libx264 @ 0xb5e08800] 8x8 transform intra:47.6% inter:79.3%
FFMPEG process:: [libx264 @ 0xb5e08800] coded y,uvDC,uvAC intra: 38.4% 73.1% 35.2% inter: 2.0% 4.6% 0.4%
FFMPEG process:: [libx264 @ 0xb5e08800] i16 v,h,dc,p: 40% 30% 15% 16%
FFMPEG process:: [libx264 @ 0xb5e08800] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 23% 15% 38% 5% 6% 3% 3% 3% 4%
FFMPEG process:: [libx264 @ 0xb5e08800] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 30% 26% 18% 5% 6% 4% 4% 3% 3%
FFMPEG process:: [libx264 @ 0xb5e08800] i8c dc,h,v,p: 40% 25% 29% 7%
FFMPEG process:: [libx264 @ 0xb5e08800] Weighted P-Frames: Y:2.6% UV:2.6%
FFMPEG process:: [libx264 @ 0xb5e08800] ref P L0: 68.8% 8.0% 15.3% 7.5% 0.5%
FFMPEG process:: [libx264 @ 0xb5e08800] ref B L0: 85.0% 12.4% 2.6%
FFMPEG process:: [libx264 @ 0xb5e08800] ref B L1: 94.1% 5.9%
FFMPEG process:: [libx264 @ 0xb5e08800] kb/s:619.16And that’s all, nothing more is showing up. I was trying to change codec etc. and it didn’t work. Do you have any idea how can i resolve that problem ?
-
Building my JAVA parameter array for FFMPEG
29 janvier 2016, par user3541092FFmpeg Version : N-63893-gc69defd Copyright (c) 2000-2014 the FFmpeg developers
built on Jul 16 2014 05:38:01 with gcc 4.6 (Debian 4.6.3-1)Machine : Amazon Linux t2.micro (free tier)
Sample File : sample_iTunes.mov
Sample File URL : https://support.apple.com/en-us/HT201549I’m trying to replicate the following FFmpeg command, using a string array and then pass this array into the Runtime.getRuntime().exec().
ffmpeg -i file:/var/local/ffmpegtest/media_input/sample_iTunes.mov -pix_fmt yuv420p -c:v libx264 -vtag mp42 -metadata major_brand="mp42" -b:v 8000k -minrate 8000k -maxrate 10000k -ac 2 -strict experimental -c:a aac -b:a 256k -metadata:s:a:0 handler="Stereo" /var/local/ffmpegtest/media_output/sample_iTunes.mp4 -y
NOTE : This works when I pass the full command, as a single string into Runtime.getRuntime().exec().
String _cmd = "ffmpeg -i %s -pix_fmt yuv420p -c:v libx264 -vtag mp42 -metadata major_brand=\"mp42\" "
+ "-b:v 8000k -minrate 8000k -maxrate 10000k -ac 2 -strict experimental -c:a aac -b:a 256k -metadata:s:a:0 handler=\"Stereo\" %s -y";
String _ffmpegCommand = String.format(_cmd, _inputFile, _outPutFile);
p = Runtime.getRuntime().exec(_ffmpegCommand);
BufferedReader _reader = new BufferedReader(new InputStreamReader(p.getErrorStream()));
String _line = null;
while((_line = _reader.readLine()) != null) {
lw.writeLine(_logPath + _logName, _line);
System.out.println(_line);
}I started out with just a basic parameter list. As I add add each additional parameter, I re-build the JAR file and upload it to my EC2 instance to test for any errors.
The following string array works :
try
{
String[] _params = {"ffmpeg",
"-i",
String.format("%s", _inputFile),
"-pix_fmt",
"yuv420p",
"-c:v",
"libx264",
String.format("%s", _outPutFile),
"-y"};
p = Runtime.getRuntime().exec(_params);
BufferedReader _reader = new BufferedReader(new InputStreamReader(p.getErrorStream()));
String _line = null;
while((_line = _reader.readLine()) != null) {
lw.writeLine(_logPath + _logName, _line);
System.out.println(_line);
}
}
catch (Exception e) {
BufferedReader _reader = new BufferedReader(new InputStreamReader(p.getErrorStream()));
String _line = null;
while((_line = _reader.readLine()) != null) {
lw.writeLine(_logPath + _logName, _line);
System.out.println(_line);
}
}However, when I continue to build the array with additional parameters, I begin to experience problems (lets add -vtag mp42) :
try
{
String[] _params = {"ffmpeg",
"-i",
String.format("%s", _inputFile),
"-pix_fmt",
"yuv420p",
"-c:v",
"libx264",
"-vtag", // <---- New
"mp42", // <--- New
String.format("%s", _outPutFile),
"-y"};
p = Runtime.getRuntime().exec(_params);
BufferedReader _reader = new BufferedReader(new InputStreamReader(p.getErrorStream()));
String _line = null;
while((_line = _reader.readLine()) != null) {
lw.writeLine(_logPath + _logName, _line);
System.out.println(_line);
}
}
catch (Exception e) {
BufferedReader _reader = new BufferedReader(new InputStreamReader(p.getErrorStream()));
String _line = null;
while((_line = _reader.readLine()) != null) {
lw.writeLine(_logPath + _logName, _line);
System.out.println(_line);
}
}Error Message : Could not write header for output file #0 (incorrect codec parameters ?) : Invalid data found when processing input
Full Log output for errant trail run :
29 Jan 2016 03:45:09 UTC - Running FFMpeg...
29 Jan 2016 03:45:09 UTC - Input file: /var/local/ffmpegtest/media_input/sample_iTunes.mov
29 Jan 2016 03:45:09 UTC - Output file: /var/local/ffmpegtest/media_output/sample_iTunes.mp4
29 Jan 2016 03:45:09 UTC - ffmpeg version N-63893-gc69defd Copyright (c) 2000-2014 the FFmpeg developers
29 Jan 2016 03:45:09 UTC - built on Jul 16 2014 05:38:01 with gcc 4.6 (Debian 4.6.3-1)
29 Jan 2016 03:45:09 UTC - configuration: --prefix=/root/ffmpeg-static/64bit --extra-cflags='-I/root/ffmpeg-static/64bit/include -static' --extra-ldflags='-L/root/ffmpeg-static/64bit/lib -static' --extra-libs='-lxml2 -lexpat -lfreetype' --enable-static --disable-shared --disable-ffserver --disable-doc --enable-bzlib --enable-zlib --enable-postproc --enable-runtime-cpudetect --enable-libx264 --enable-gpl --enable-libtheora --enable-libvorbis --enable-libmp3lame --enable-gray --enable-libass --enable-libfreetype --enable-libopenjpeg --enable-libspeex --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-version3 --enable-libvpx
29 Jan 2016 03:45:09 UTC - libavutil 52. 89.100 / 52. 89.100
29 Jan 2016 03:45:09 UTC - libavcodec 55. 66.101 / 55. 66.101
29 Jan 2016 03:45:09 UTC - libavformat 55. 43.100 / 55. 43.100
29 Jan 2016 03:45:09 UTC - libavdevice 55. 13.101 / 55. 13.101
29 Jan 2016 03:45:09 UTC - libavfilter 4. 8.100 / 4. 8.100
29 Jan 2016 03:45:09 UTC - libswscale 2. 6.100 / 2. 6.100
29 Jan 2016 03:45:09 UTC - libswresample 0. 19.100 / 0. 19.100
29 Jan 2016 03:45:09 UTC - libpostproc 52. 3.100 / 52. 3.100
29 Jan 2016 03:45:09 UTC - Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/var/local/ffmpegtest/media_input/sample_iTunes.mov':
29 Jan 2016 03:45:09 UTC - Metadata:
29 Jan 2016 03:45:09 UTC - major_brand : qt
29 Jan 2016 03:45:09 UTC - minor_version : 537199360
29 Jan 2016 03:45:09 UTC - compatible_brands: qt
29 Jan 2016 03:45:09 UTC - creation_time : 2005-10-17 22:54:32
29 Jan 2016 03:45:09 UTC - Duration: 00:01:25.50, start: 0.000000, bitrate: 307 kb/s
29 Jan 2016 03:45:09 UTC - Stream #0:0(eng): Video: mpeg4 (Simple Profile) (mp4v / 0x7634706D), yuv420p, 640x480 [SAR 1:1 DAR 4:3], 261 kb/s, 10 fps, 10 tbr, 3k tbn, 25 tbc (default)
29 Jan 2016 03:45:09 UTC - Metadata:
29 Jan 2016 03:45:09 UTC - creation_time : 2005-10-17 22:54:33
29 Jan 2016 03:45:09 UTC - handler_name : Apple Video Media Handler
29 Jan 2016 03:45:09 UTC - encoder : 3ivx D4 4.5.1
29 Jan 2016 03:45:09 UTC - Stream #0:1(eng): Audio: aac (mp4a / 0x6134706D), 32000 Hz, mono, fltp, 43 kb/s (default)
29 Jan 2016 03:45:09 UTC - Metadata:
29 Jan 2016 03:45:09 UTC - creation_time : 2005-10-17 22:54:34
29 Jan 2016 03:45:09 UTC - handler_name : Apple Sound Media Handler
29 Jan 2016 03:45:09 UTC - [libx264 @ 0x30c2c00] using SAR=1/1
29 Jan 2016 03:45:09 UTC - [libx264 @ 0x30c2c00] using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle SSE4.2 AVX AVX2 FMA3 BMI1 BMI2
29 Jan 2016 03:45:09 UTC - [libx264 @ 0x30c2c00] profile High, level 2.2
29 Jan 2016 03:45:09 UTC - [libx264 @ 0x30c2c00] 264 - core 129 r2230 1cffe9f - H.264/MPEG-4 AVC codec - Copyleft 2003-2012 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=1 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=10 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
29 Jan 2016 03:45:09 UTC - [mp4 @ 0x30c21a0] Tag mp42/0x3234706d incompatible with output codec id '28' ([33][0][0][0])
29 Jan 2016 03:45:09 UTC - Output #0, mp4, to '/var/local/ffmpegtest/media_output/sample_iTunes.mp4':
29 Jan 2016 03:45:09 UTC - Metadata:
29 Jan 2016 03:45:09 UTC - major_brand : qt
29 Jan 2016 03:45:09 UTC - minor_version : 537199360
29 Jan 2016 03:45:09 UTC - compatible_brands: qt
29 Jan 2016 03:45:09 UTC - Stream #0:0(eng): Video: h264 (libx264) (mp42 / 0x3234706D), yuv420p, 640x480 [SAR 1:1 DAR 4:3], q=-1--1, 10 fps, 90k tbn, 10 tbc (default)
29 Jan 2016 03:45:09 UTC - Metadata:
29 Jan 2016 03:45:09 UTC - creation_time : 2005-10-17 22:54:33
29 Jan 2016 03:45:09 UTC - handler_name : Apple Video Media Handler
29 Jan 2016 03:45:09 UTC - encoder : Lavc55.66.101 libx264
29 Jan 2016 03:45:09 UTC - Stream #0:1(eng): Audio: aac (libvo_aacenc), 32000 Hz, mono, s16, 128 kb/s (default)
29 Jan 2016 03:45:09 UTC - Metadata:
29 Jan 2016 03:45:09 UTC - creation_time : 2005-10-17 22:54:34
29 Jan 2016 03:45:09 UTC - handler_name : Apple Sound Media Handler
29 Jan 2016 03:45:09 UTC - encoder : Lavc55.66.101 libvo_aacenc
29 Jan 2016 03:45:09 UTC - Stream mapping:
29 Jan 2016 03:45:09 UTC - Stream #0:0 -> #0:0 (mpeg4 (native) -> h264 (libx264))
29 Jan 2016 03:45:09 UTC - Stream #0:1 -> #0:1 (aac (native) -> aac (libvo_aacenc))
29 Jan 2016 03:45:09 UTC - Could not write header for output file #0 (incorrect codec parameters ?): Invalid data found when processing input -
Convert PNGs to webm video with transparency
20 septembre 2016, par sebastianI would like to use
avconv
to convert a series of PNG images to a WebM video, preserving transparency.I understand that the pixel format used in the output video must support transparency. So I tried :
$ avconv -framerate 25 -f image2 -i frames/%03d.png -pix_fmt yuva420p output.webm
Unfortunately,
avconv
complains :Incompatible pixel format 'yuva420p' for codec 'libvpx-vp9', auto-selecting format 'yuv420p'
I am using
ffmpeg version 2.8.4-1+b1 Copyright (c) 2000-2015 the FFmpeg developers
.