
Recherche avancée
Médias (3)
-
Exemple de boutons d’action pour une collection collaborative
27 février 2013, par
Mis à jour : Mars 2013
Langue : français
Type : Image
-
Exemple de boutons d’action pour une collection personnelle
27 février 2013, par
Mis à jour : Février 2013
Langue : English
Type : Image
-
Collections - Formulaire de création rapide
19 février 2013, par
Mis à jour : Février 2013
Langue : français
Type : Image
Autres articles (96)
-
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 (...) -
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. -
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 (9005)
-
PHP code not proceeding to the line after exec ffmpeg
5 avril 2014, par SelI have this PHP snippet that I call through curl, in order to perform an ffmpeg encoding. I also have another line afterwards that marks this as having been done, using a database. I want this to trigger after the exec finished, which would imply that the file has finished encoding. However, the database is never actually changed (works if I try commenting out the exec) and I can't get a good gauge of when the file is done encoding. The database only changes when you run ANOTHER request on top of this one. Code below.
$ID=$_POST['ID'];
exec("/usr/local/bin/ffmpeg -i stockvideos/Intro2.m2v -f image2 -loop 1 -r 24 -i temppics/Intro2pic".$ID.".png -filter_complex \
'[1:v]fade=in:st=0:d=1:alpha=1,fade=out:st=3:d=1:alpha=1[2wm];
[0:v][wm]overlay=10:10[outv]' \
-map [outv] -q 0 tempvideos/Intro2-".$ID.".m2v >> 1.log 2>&1");
$query_CreditVideoDone =sprintf("Update Messages SET CreditTitlesDone=%s WHERE ID=%s", GetSQLValueString(1, "boolean"),GetSQLValueString($ID, "text"));
$result = mysql_query($query_CreditVideoDone, $MMixer) or die(mysql_error());UPDATE : When I check the log (>2), it seems FFMPEG continues running even after the process is finished.
frame= 4 fps=0.0 q=0.0 size= 103kB time=00:00:00.06 bitrate=12619.2kbits/s
frame= 12 fps= 12 q=0.0 size= 562kB time=00:00:00.33 bitrate=13806.6kbits/s
frame= 21 fps= 14 q=0.0 size= 1339kB time=00:00:00.63 bitrate=17307.1kbits/s
frame= 29 fps= 14 q=0.0 size= 1682kB time=00:00:00.90 bitrate=15291.9kbits/s
frame= 38 fps= 15 q=0.0 size= 2081kB time=00:00:01.20 bitrate=14192.5kbits/s
frame= 51 fps= 16 q=0.0 size= 2677kB time=00:00:01.63 bitrate=13415.4kbits/s
frame= 58 fps= 16 q=0.0 size= 2939kB time=00:00:01.86 bitrate=12884.0kbits/s
frame= 66 fps= 16 q=0.0 size= 3338kB time=00:00:02.13 bitrate=12803.8kbits/s
frame= 74 fps= 16 q=0.0 size= 3724kB time=00:00:02.40 bitrate=12700.2kbits/s
frame= 82 fps= 16 q=0.0 size= 4012kB time=00:00:02.66 bitrate=12311.5kbits/s
frame= 92 fps= 16 q=0.0 size= 4483kB time=00:00:03.00 bitrate=12229.7kbits/s
frame= 102 fps= 16 q=0.0 size= 4951kB time=00:00:03.33 bitrate=12154.5kbits/s
frame= 111 fps= 16 q=0.0 size= 5384kB time=00:00:03.63 bitrate=12126.7kbits/s
frame= 118 fps= 16 q=0.0 size= 5622kB time=00:00:03.87 bitrate=11900.0kbits/s
frame= 127 fps= 16 q=0.0 size= 6042kB time=00:00:04.17 bitrate=11867.2kbits/s
frame= 138 fps= 16 q=0.0 size= 6550kB time=00:00:04.53 bitrate=11823.8kbits/s
frame= 149 fps= 17 q=0.0 size= 7043kB time=00:00:04.90 bitrate=11763.8kbits/s
frame= 157 fps= 17 q=0.0 size= 7338kB time=00:00:05.17 bitrate=11622.8kbits/s
frame= 167 fps= 17 q=0.0 size= 7807kB time=00:00:05.50 bitrate=11616.5kbits/s
frame= 176 fps= 17 q=0.0 size= 8215kB time=00:00:05.80 bitrate=11591.7kbits/s
frame= 186 fps= 17 q=0.0 size= 8667kB time=00:00:06.13 bitrate=11564.4kbits/s
frame= 196 fps= 17 q=0.0 size= 9254kB time=00:00:06.47 bitrate=11710.7kbits/s
frame= 203 fps= 17 q=0.0 size= 9794kB time=00:00:06.70 bitrate=11962.6kbits/s
frame= 211 fps= 17 q=0.0 size= 10135kB time=00:00:06.97 bitrate=11905.1kbits/s dup=0 drop=3
frame= 211 fps= 16 q=0.0 size= 10135kB time=00:00:06.97 bitrate=11905.1kbits/s dup=0 drop=13
frame= 211 fps= 15 q=0.0 size= 10135kB time=00:00:06.97 bitrate=11905.1kbits/s dup=0 drop=28
frame= 211 fps= 15 q=0.0 size= 10135kB time=00:00:06.97 bitrate=11905.1kbits/s dup=0 drop=41
frame= 211 fps= 14 q=0.0 size= 10135kB time=00:00:06.97 bitrate=11905.1kbits/s dup=0 drop=57
frame= 211 fps= 14 q=0.0 size= 10135kB time=00:00:06.97 bitrate=11905.1kbits/s dup=0 drop=73
frame= 211 fps= 13 q=0.0 size= 10135kB time=00:00:06.97 bitrate=11905.1kbits/s dup=0 drop=89
frame= 211 fps= 13 q=0.0 size= 10135kB time=00:00:06.97 bitrate=11905.1kbits/s dup=0 drop=98
frame= 211 fps= 13 q=0.0 size= 10135kB time=00:00:06.97 bitrate=11905.1kbits/s dup=0 drop=107
frame= 211 fps= 12 q=0.0 size= 10135kB time=00:00:06.97 bitrate=11905.1kbits/s dup=0 drop=115
frame= 211 fps= 12 q=0.0 size= 10135kB time=00:00:06.97 bitrate=11905.1kbits/s dup=0 drop=126
frame= 211 fps= 11 q=0.0 size= 10135kB time=00:00:06.97 bitrate=11905.1kbits/s dup=0 drop=138
frame= 211 fps= 11 q=0.0 size= 10135kB time=00:00:06.97 bitrate=11905.1kbits/s dup=0 drop=153
frame= 211 fps= 11 q=0.0 size= 10135kB time=00:00:06.97 bitrate=11905.1kbits/s dup=0 drop=169
frame= 211 fps= 11 q=0.0 size= 10135kB time=00:00:06.97 bitrate=11905.1kbits/s dup=0 drop=183
frame= 211 fps= 10 q=0.0 size= 10135kB time=00:00:06.97 bitrate=11905.1kbits/s dup=0 drop=194
frame= 211 fps= 10 q=0.0 size= 10135kB time=00:00:06.97 bitrate=11905.1kbits/s dup=0 drop=203
frame= 211 fps=9.8 q=0.0 size= 10135kB time=00:00:06.97 bitrate=11905.1kbits/s dup=0 drop=214
frame= 211 fps=9.6 q=0.0 size= 10135kB time=00:00:06.97 bitrate=11905.1kbits/s dup=0 drop=224
frame= 211 fps=9.4 q=0.0 size= 10135kB time=00:00:06.97 bitrate=11905.1kbits/s dup=0 drop=233
frame= 211 fps=9.1 q=0.0 size= 10135kB time=00:00:06.97 bitrate=11905.1kbits/s dup=0 drop=242
frame= 211 fps=8.9 q=0.0 size= 10135kB time=00:00:06.97 bitrate=11905.1kbits/s dup=0 drop=251
frame= 211 fps=8.7 q=0.0 size= 10135kB time=00:00:06.97 bitrate=11905.1kbits/s dup=0 drop=260
frame= 211 fps=8.6 q=0.0 size= 10135kB time=00:00:06.97 bitrate=11905.1kbits/s dup=0 drop=269
frame= 211 fps=8.4 q=0.0 size= 10135kB time=00:00:06.97 bitrate=11905.1kbits/s dup=0 drop=278
frame= 211 fps=8.2 q=0.0 size= 10135kB time=00:00:06.97 bitrate=11905.1kbits/s dup=0 drop=289
frame= 211 fps=8.0 q=0.0 size= 10135kB time=00:00:06.97 bitrate=11905.1kbits/s dup=0 drop=303
frame= 211 fps=7.9 q=0.0 size= 10135kB time=00:00:06.97 bitrate=11905.1kbits/s dup=0 drop=315....And so on until it times out on the server. Any idea why this happens ? It seems to prevent execution from anything after it. Redirecting to dev/null doesn't help either - there is no error output of course but the process is still hanging the same way.
Any help would be appreciated. Thanks !
Thanks !
Sel
-
Merge commit ’6f273093e54cba130f3ffde3d6433e74baa4ad89’
6 avril 2014, par Michael NiedermayerMerge commit ’6f273093e54cba130f3ffde3d6433e74baa4ad89’
* commit ’6f273093e54cba130f3ffde3d6433e74baa4ad89’ :
LucasArts SMUSH VIMA audio decoderConflicts :
Changelog
libavcodec/avcodec.h
libavcodec/codec_desc.c
libavcodec/version.h
libavcodec/vima.cThis commit adds a AV_CODEC_ID_ADPCM_VIMA alias in addition to the previously
used AV_CODEC_ID_VIMA, as well as a AVCodec with name "adpcm_vima" in addition
to the previously used name "vima"
These changes are needed for compatibility with the renamed codec in libavSee : b18357326ca1522d7fb7f4276ddebfccc29ce72c and others
Merged-by : Michael Niedermayer <michaelni@gmx.at>
-
Rotate video, output maximum 1920 x 1080 pixels
9 avril 2014, par Fabien BillerI used
ffmpeg.exe -ss 310 -i "H:\_REC\100MEDIA\someavi.AVI" -ss 0 -t 14 -vf "rotate='54*PI/180:ow=hypot(iw,ih):oh=ow'" -vf scale=1920:1080 "H:\_REC\100MEDIA\somemp4.mp4"
which should rotate the video(currently 1920 x 1080, MJPEG, 30fps) around 54° and fit it into 1920 x 1080 Pixels.
What it does is, it ignores the
-vf "rotate='54*PI/180:ow=hypot(iw,ih):oh=ow'" -vf scale=1920:1080
and returns the snippet.What to change ?
PS : ffmpeg version N-59696-gc0a33c4
OUTPUT :
E:\Ffmpeg\bin>ffmpeg -ss 310 -i "H:\_REC\100MEDIA\someavi.AVI"
-ss 0 -t 14 -vf "rotate='54*PI/180:ow=hypot(iw,ih):oh=ow'" -vf sca
le=1920:1080 "H:\_REC\100MEDIA\somemp4.mp4"
ffmpeg version N-59696-gc0a33c4 Copyright (c) 2000-2014 the FFmpeg developers
built on Jan 8 2014 22:07:06 with gcc 4.8.2 (GCC)
configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-av
isynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enab
le-iconv --enable-libass --enable-libbluray --enable-libcaca --enable-libfreetyp
e --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --ena
ble-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-l
ibopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libsp
eex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-aa
cenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavp
ack --enable-libx264 --enable-libxavs --enable-libxvid --enable-zlib
libavutil 52. 62.100 / 52. 62.100
libavcodec 55. 47.100 / 55. 47.100
libavformat 55. 22.102 / 55. 22.102
libavdevice 55. 5.102 / 55. 5.102
libavfilter 4. 0.103 / 4. 0.103
libswscale 2. 5.101 / 2. 5.101
libswresample 0. 17.104 / 0. 17.104
libpostproc 52. 3.100 / 52. 3.100
[avi @ 0000000002858060] non-interleaved AVI
Guessed Channel Layout for Input Stream #0.1 : mono
Input #0, avi, from 'H:\_REC\100MEDIA\someavi.AVI':
Duration: 00:19:59.95, start: 0.000000, bitrate: 13866 kb/s
Stream #0:0: Video: mjpeg (MJPG / 0x47504A4D), yuvj420p(pc), 1920x1080, 30 t
br, 30 tbn, 30 tbc
Stream #0:1: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 8000 Hz, mono, s16, 1
28 kb/s
File 'H:\_REC\100MEDIA\somemp4.mp4' already exists.
Overwrite ? [y/N] y
No pixel format specified, yuvj420p for H.264 encoding chosen.
Use -pix_fmt yuv420p for compatibility with outdated media players.
[libx264 @ 00000000049f2980] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2
AVX
[libx264 @ 00000000049f2980] profile High, level 4.0
[libx264 @ 00000000049f2980] 264 - core 140 r2377 1ca7bb9 - H.264/MPEG-4 AVC cod
ec - Copyleft 2003-2013 - http://www.videolan.org/x264.html - options: cabac=1 r
ef=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_pski
p=1 chroma_qp_offset=-2 threads=12 lookahead_threads=2 sliced_threads=0 nr=0 dec
imate=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
Output #0, mp4, to 'H:\_REC\100MEDIA\somemp4.mp4':
Metadata:
encoder : Lavf55.22.102
Stream #0:0: Video: h264 (libx264) ([33][0][0][0] / 0x0021), yuvj420p, 1920x
1080, q=-1--1, 1000k tbn, 30 tbc
Stream #0:1: Audio: aac (libvo_aacenc) ([64][0][0][0] / 0x0040), 8000 Hz, mo
no, s16, 128 kb/s
Stream mapping:
Stream #0:0 -> #0:0 (mjpeg -> libx264)
Stream #0:1 -> #0:1 (pcm_s16le -> libvo_aacenc)
Press [q] to stop, [?] for help
frame= 30 fps=0.0 q=0.0 size= 0kB time=00:00:00.82 bitrate= 0.5kbits/s
frame= 55 fps= 54 q=0.0 size= 0kB time=00:00:01.59 bitrate= 0.2kbits/s
frame= 75 fps= 46 q=29.0 size= 600kB time=00:00:02.10 bitrate=2337.0kbits/
frame= 90 fps= 41 q=29.0 size= 1017kB time=00:00:02.61 bitrate=3185.9kbits/
frame= 105 fps= 37 q=29.0 size= 1482kB time=00:00:03.12 bitrate=3881.8kbits/
frame= 120 fps= 35 q=29.0 size= 1959kB time=00:00:03.76 bitrate=4258.3kbits/
frame= 140 fps= 35 q=29.0 size= 2588kB time=00:00:04.28 bitrate=4953.2kbits/
frame= 145 fps= 32 q=29.0 size= 2742kB time=00:00:04.66 bitrate=4816.0kbits/
frame= 162 fps= 32 q=29.0 size= 3274kB time=00:00:05.17 bitrate=5181.6kbits/
frame= 177 fps= 32 q=29.0 size= 3744kB time=00:00:05.56 bitrate=5515.8kbits/
frame= 190 fps= 31 q=29.0 size= 4144kB time=00:00:06.07 bitrate=5591.5kbits/
frame= 205 fps= 31 q=29.0 size= 4612kB time=00:00:06.45 bitrate=5851.7kbits/
frame= 215 fps= 30 q=29.0 size= 4895kB time=00:00:06.96 bitrate=5754.9kbits/
frame= 227 fps= 30 q=29.0 size= 5169kB time=00:00:07.35 bitrate=5759.4kbits/
frame= 245 fps= 30 q=29.0 size= 5571kB time=00:00:07.99 bitrate=5710.1kbits/
frame= 262 fps= 30 q=29.0 size= 6052kB time=00:00:08.50 bitrate=5830.4kbits/
frame= 280 fps= 30 q=29.0 size= 6505kB time=00:00:09.14 bitrate=5827.4kbits/
frame= 300 fps= 30 q=29.0 size= 7048kB time=00:00:09.65 bitrate=5979.4kbits/
frame= 305 fps= 29 q=29.0 size= 7175kB time=00:00:09.91 bitrate=5930.2kbits/
frame= 322 fps= 29 q=29.0 size= 7675kB time=00:00:10.55 bitrate=5958.3kbits/
frame= 342 fps= 29 q=29.0 size= 8237kB time=00:00:11.06 bitrate=6098.9kbits/
frame= 357 fps= 29 q=29.0 size= 8661kB time=00:00:11.70 bitrate=6062.0kbits/
frame= 369 fps= 29 q=29.0 size= 9010kB time=00:00:12.08 bitrate=6105.8kbits/
frame= 387 fps= 29 q=29.0 size= 9501kB time=00:00:12.72 bitrate=6115.2kbits/
frame= 407 fps= 29 q=29.0 size= 10052kB time=00:00:13.24 bitrate=6219.2kbits/
frame= 414 fps= 29 q=29.0 size= 10257kB time=00:00:13.62 bitrate=6167.7kbits/
frame= 421 fps= 26 q=-1.0 Lsize= 12062kB time=00:00:14.00 bitrate=7053.8kbits
/s dup=253 drop=0
video:12036kB audio:19kB subtitle:0 global headers:0kB muxing overhead 0.054462%
[libx264 @ 00000000049f2980] frame I:2 Avg QP:21.20 size:106302
[libx264 @ 00000000049f2980] frame P:336 Avg QP:23.51 size: 36006
[libx264 @ 00000000049f2980] frame B:83 Avg QP:23.96 size: 169
[libx264 @ 00000000049f2980] consecutive B-frames: 60.6% 39.4% 0.0% 0.0%
[libx264 @ 00000000049f2980] mb I I16..4: 2.0% 96.2% 1.8%
[libx264 @ 00000000049f2980] mb P I16..4: 0.6% 31.1% 0.1% P16..4: 13.6% 3.3
% 1.4% 0.0% 0.0% skip:49.8%
[libx264 @ 00000000049f2980] mb B I16..4: 0.0% 0.0% 0.0% B16..8: 1.3% 0.0
% 0.0% direct: 0.0% skip:98.7% L0: 1.5% L1:98.5% BI: 0.0%
[libx264 @ 00000000049f2980] 8x8 transform intra:97.7% inter:79.3%
[libx264 @ 00000000049f2980] coded y,uvDC,uvAC intra: 86.0% 87.6% 8.9% inter: 9.
3% 15.7% 1.4%
[libx264 @ 00000000049f2980] i16 v,h,dc,p: 7% 7% 6% 80%
[libx264 @ 00000000049f2980] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 16% 14% 54% 3% 3%
2% 3% 3% 3%
[libx264 @ 00000000049f2980] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 14% 12% 14% 6% 21%
5% 19% 5% 4%
[libx264 @ 00000000049f2980] i8c dc,h,v,p: 47% 24% 25% 3%
[libx264 @ 00000000049f2980] Weighted P-Frames: Y:3.6% UV:3.0%
[libx264 @ 00000000049f2980] ref P L0: 57.9% 15.5% 9.5% 16.4% 0.7%
[libx264 @ 00000000049f2980] ref B L0: 34.6% 65.4%
[libx264 @ 00000000049f2980] kb/s:7025.99