
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 (66)
-
Personnaliser les catégories
21 juin 2013, parFormulaire de création d’une catégorie
Pour ceux qui connaissent bien SPIP, une catégorie peut être assimilée à une rubrique.
Dans le cas d’un document de type catégorie, les champs proposés par défaut sont : Texte
On peut modifier ce formulaire dans la partie :
Administration > Configuration des masques de formulaire.
Dans le cas d’un document de type média, les champs non affichés par défaut sont : Descriptif rapide
Par ailleurs, c’est dans cette partie configuration qu’on peut indiquer le (...) -
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 -
Support audio et vidéo HTML5
10 avril 2011MediaSPIP utilise les balises HTML5 video et audio pour la lecture de documents multimedia en profitant des dernières innovations du W3C supportées par les navigateurs modernes.
Pour les navigateurs plus anciens, le lecteur flash Flowplayer est utilisé.
Le lecteur HTML5 utilisé a été spécifiquement créé pour MediaSPIP : il est complètement modifiable graphiquement pour correspondre à un thème choisi.
Ces technologies permettent de distribuer vidéo et son à la fois sur des ordinateurs conventionnels (...)
Sur d’autres sites (10476)
-
Output for ffmpeg
23 juillet 2018, par Zikry KickbuttowskiHello is there a way to output a saved image filename in a format such as yyyy-mm-dd_hrs:min:seconds_imagenumber ? ie (img 2018-07-07_17:34:22_001). And the command has to include fps so that we are able to tweak the fps accordingly. The command also has to churn out images every second. Thanks !
-
QuTip Example 'bloch-sphere-animation' - video renders blank
15 juillet 2018, par damien murphy.On MacOSX Using Python3 running the following example code provided without modification : https://github.com/qutip/qutip-notebooks/blob/master/examples/bloch-sphere-animation.ipynb
I get a blank video and no errors.
I have installed libav and ffmpeg so I am not sure what else is missing with any error.
What codec did you install on mac when running these samples ?
Looking at the source of qutip I can see what it is using to render the video : https://github.com/qutip/qutip/blob/master/qutip/ipynbtools.py#L392
anim.save(name + '.mp4', fps=10, writer="avconv", codec="libx264")
I have avconv on the command line working without errors
This is the debug outout of matploylib.animation
INFO:matplotlib.animation:Animation.save using DEBUG:matplotlib.animation:frame
size in pixels is 576 x 576 INFO:matplotlib.animation:MovieWriter.run :
running command : [’avconv’, ’-f’, ’rawvideo’, ’-vcodec’, ’rawvideo’,
’-s’, ’576x576’, ’-pix_fmt’, ’rgba’, ’-r’, ’10’, ’-i’, ’pipe :’,
’-vcodec’, ’libx264’, ’-y’, ’movie.mp4’]
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter.grab_frame : Grabbing frame.
DEBUG:matplotlib.animation:MovieWriter — Command stdout : b’’
DEBUG:matplotlib.animation:MovieWriter — Command stderr : b"avconv
version 12.3, Copyright (c) 2000-2018 the Libav developers\n built on
Feb 13 2018 11:17:07 with Apple LLVM version 9.0.0
(clang-900.0.39.2)\n[rawvideo @ 0x7f963c000000] Estimating duration
from bitrate, this may be inaccurate\nInput #0, rawvideo, from
’pipe :’ :\n Duration : N/A, start : 0.000000, bitrate : N/A\n Stream0:0 : Video : rawvideo\n rgba, 576x576\n 10 fps, 10 tbn\nStream mapping :\n Stream #0:0 -> #0:0 (rawvideo (native) -> h264
(libx264))\nPress ctrl-c to stop encoding\n[libx264 @ 0x7f963e001800]
using cpu capabilities : MMX2 SSE2Fast SSSE3 SSE4.2 AVX\n[libx264 @
0x7f963e001800] profile High, level 2.2\n[libx264 @ 0x7f963e001800]
264 - core 152 r2854 e9a5903 - H.264/MPEG-4 AVC codec - Copyleft
2003-2017 - 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=12
lookahead_threads=2 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\nOutput #0, mp4, to ’movie.mp4’ :\n Metadata :\n encoder
: Lavf57.7.2\n Stream #0:0 : Video : h264 [[33][0][0][0] / 0x0021]\n
yuv420p, 576x576, q=2-31\n 10 fps, 10 tbn\n Metadata :\n
encoder : Lavc57.25.0 libx264\n Side data :\n cpb :
bitrate max/min/avg : 0/0/0 buffer size : 0 vbv_delay : -1\nframe= 6
fps= 0 q=0.0 size= 0kB time=10000000000.00 bitrate=
0.0kbits/s \rframe= 10 fps= 8 q=0.0 size= 0kB time=10000000000.00 bitrate= 0.0kbits/s \rframe= 13 fps= 7
q=0.0 size= 0kB time=10000000000.00 bitrate= 0.0kbits/s
\rframe= 16 fps= 7 q=0.0 size= 0kB time=10000000000.00
bitrate= 0.0kbits/s \rframe= 19 fps= 6 q=0.0 size= 0kB
time=10000000000.00 bitrate= 0.0kbits/s \rframe= 22 fps= 6
q=0.0 size= 0kB time=10000000000.00 bitrate= 0.0kbits/s
\rframe= 26 fps= 6 q=0.0 size= 0kB time=10000000000.00
bitrate= 0.0kbits/s \rframe= 30 fps= 6 q=0.0 size= 0kB
time=10000000000.00 bitrate= 0.0kbits/s \rframe= 33 fps= 6
q=0.0 size= 0kB time=10000000000.00 bitrate= 0.0kbits/s
\rframe= 36 fps= 6 q=0.0 size= 0kB time=10000000000.00
bitrate= 0.0kbits/s \rframe= 39 fps= 6 q=0.0 size= 0kB
time=10000000000.00 bitrate= 0.0kbits/s \rframe= 42 fps= 6
q=0.0 size= 0kB time=10000000000.00 bitrate= 0.0kbits/s
\rframe= 45 fps= 6 q=0.0 size= 0kB time=10000000000.00
bitrate= 0.0kbits/s \rframe= 48 fps= 6 q=0.0 size= 0kB
time=10000000000.00 bitrate= 0.0kbits/s \rframe= 51 fps= 6
q=0.0 size= 0kB time=10000000000.00 bitrate= 0.0kbits/s
\rframe= 55 fps= 6 q=0.0 size= 0kB time=10000000000.00
bitrate= 0.0kbits/s \rframe= 59 fps= 6 q=25.0 size= 1kB
time=10000000000.00 bitrate= 0.0kbits/s \rframe= 63 fps= 6
q=25.0 size= 1kB time=0.40 bitrate= 19.8kbits/s \rframe=
67 fps= 6 q=25.0 size= 1kB time=0.80 bitrate= 10.9kbits/s
\rframe= 71 fps= 6 q=25.0 size= 1kB time=1.20 bitrate=
7.9kbits/s \rframe= 75 fps= 6 q=25.0 size= 1kB time=1.60 bitrate= 6.4kbits/s \rframe= 79 fps= 6 q=25.0 size= 1kB
time=2.00 bitrate= 5.5kbits/s \rframe= 82 fps= 6 q=25.0 size=
1kB time=2.30 bitrate= 5.0kbits/s \rframe= 86 fps= 6 q=25.0
size= 2kB time=2.70 bitrate= 4.6kbits/s \rframe= 90 fps=
6 q=25.0 size= 2kB time=3.10 bitrate= 4.2kbits/s \rframe=
93 fps= 6 q=25.0 size= 2kB time=3.40 bitrate= 4.0kbits/s
\rframe= 97 fps= 6 q=25.0 size= 2kB time=3.80 bitrate=
3.8kbits/s \rframe= 101 fps= 6 q=25.0 size= 2kB time=4.20 bitrate= 3.6kbits/s \rframe= 105 fps= 6 q=25.0 size= 2kB
time=4.60 bitrate= 3.4kbits/s \rframe= 109 fps= 6 q=25.0 size=
2kB time=5.00 bitrate= 3.3kbits/s \rframe= 112 fps= 6 q=25.0
size= 2kB time=5.30 bitrate= 3.2kbits/s \rframe= 116 fps=
6 q=25.0 size= 2kB time=5.70 bitrate= 3.2kbits/s \rframe=
120 fps= 6 q=25.0 size= 2kB time=6.10 bitrate= 3.1kbits/s
\rframe= 123 fps= 6 q=25.0 size= 2kB time=6.40 bitrate=
3.0kbits/s \rframe= 126 fps= 6 q=25.0 size= 2kB time=6.70 bitrate= 3.0kbits/s \rframe= 129 fps= 6 q=25.0 size= 2kB
time=7.00 bitrate= 2.9kbits/s \rframe= 132 fps= 6 q=25.0 size=
3kB time=7.30 bitrate= 2.9kbits/s \rframe= 135 fps= 6 q=25.0
size= 3kB time=7.60 bitrate= 2.8kbits/s \rframe= 138 fps=
6 q=25.0 size= 3kB time=7.90 bitrate= 2.8kbits/s \rframe=
141 fps= 6 q=25.0 size= 3kB time=8.20 bitrate= 2.8kbits/s
\rframe= 144 fps= 6 q=25.0 size= 3kB time=8.50 bitrate=
2.7kbits/s \rframe= 148 fps= 6 q=25.0 size= 3kB time=8.90 bitrate= 2.7kbits/s \rframe= 150 fps= 6 q=-1.0 Lsize= 7kB
time=14.70 bitrate= 4.1kbits/s \r\nvideo:4kB audio:0kB other
streams:0kB global headers:0kB muxing overhead : 74.948143%\n[libx264 @
0x7f963e001800] frame I:1 Avg QP : 6.00 size : 112\n[libx264 @
0x7f963e001800] frame P:38 Avg QP : 6.21 size : 30\n[libx264 @
0x7f963e001800] frame B:111 Avg QP : 9.67 size : 22\n[libx264 @
0x7f963e001800] consecutive B-frames : 1.3% 0.0% 0.0%
98.7%\n[libx264 @ 0x7f963e001800] mb I I16..4 : 100.0% 0.0% 0.0%\n[libx264 @ 0x7f963e001800] mb P I16..4 : 0.0% 0.0% 0.0% P16..4 : 0.0% 0.0% 0.0% 0.0% 0.0% skip:100.0%\n[libx264 @
0x7f963e001800] mb B I16..4 : 0.0% 0.0% 0.0% B16..8 : 0.0% 0.0%
0.0% direct : 0.0% skip:100.0%\n[libx264 @ 0x7f963e001800] 8x8 transform intra:0.0%\n[libx264 @ 0x7f963e001800] coded y,uvDC,uvAC
intra : 0.0% 0.0% 0.0% inter : 0.0% 0.0% 0.0%\n[libx264 @
0x7f963e001800] i16 v,h,dc,p : 97% 0% 3% 0%\n[libx264 @
0x7f963e001800] i8c dc,h,v,p : 100% 0% 0% 0%\n[libx264 @
0x7f963e001800] Weighted P-Frames : Y:0.0% UV:0.0%\n[libx264 @
0x7f963e001800] kb/s:1.95\n" -
I want to use image as a background of a drawtext video using ffmpeg
8 janvier 2018, par FemzyCurrently i am able to create video with ffmpeg using the drawtext filters to draw text on a black background Now Remain one thing that seems difficult to me, I thought it would be easy until i come to discover i don’t got it right. I want to use an image as background for the drawtext filters. I.e I want to use image as background of the video instead of using the background color or video background. Please someone should take me through on this this is my code `
echo shell_exec('ffmpeg -f lavfi -i color=color=black -vf drawtext="textfile=text.txt:expansion=normal:fontfile=FreeSerif.otf: y=h-line_h-20:x=-100*t: fontcolor=white: fontsize=50" -t '.$words_count.' textover09.mp4 -report'); `
ffmpeg started on 2018-01-07 at 22:53:03
Report written to "ffmpeg-20180107-225303.log"
Command line:
ffmpeg -loop 1 -i elena.jpg -vf "drawtext=textfile=text.txt:expansion=normal:fontfile=FreeSerif.otf: y=h-line_h-20:x=-100*t: fontcolor=white: fontsize=50" -t 46.2 textover09.mp4 -report
ffmpeg version git-2017-12-28-be4dfbf Copyright (c) 2000-2017 the FFmpeg developers
built with gcc 4.4.7 (GCC) 20120313 (Red Hat 4.4.7-18)
configuration: --prefix=/usr/local/ffmpeg --extra-cflags=-I/usr/local/ffmpeg/include --extra-ldflags=-L/usr/local/ffmpeg/lib --bindir=/usr/local/bin --enable-gpl --enable-nonfree --enable-libfdk_aac --enable-libmp3lame --enable-libopus --enable-libvpx --enable-libx264 --enable-libtheora --enable-filter=drawtext --enable-libfreetype
libavutil 56. 7.100 / 56. 7.100
libavcodec 58. 9.100 / 58. 9.100
libavformat 58. 3.100 / 58. 3.100
libavdevice 58. 0.100 / 58. 0.100
libavfilter 7. 8.100 / 7. 8.100
libswscale 5. 0.101 / 5. 0.101
libswresample 3. 0.101 / 3. 0.101
libpostproc 55. 0.100 / 55. 0.100
Splitting the commandline.
Reading option '-loop' ... matched as AVOption 'loop' with argument '1'.
Reading option '-i' ... matched as input url with argument 'elena.jpg'.
Reading option '-vf' ... matched as option 'vf' (set video filters) with argument 'drawtext=textfile=text.txt:expansion=normal:fontfile=FreeSerif.otf: y=h-line_h-20:x=-100*t: fontcolor=white: fontsize=50'.
Reading option '-t' ... matched as option 't' (record or transcode "duration" seconds of audio/video) with argument '46.2'.
Reading option 'textover09.mp4' ... matched as output url.
Reading option '-report' ... matched as option 'report' (generate a report) with argument '1'.
Finished splitting the commandline.
Parsing a group of options: global .
Applying option report (generate a report) with argument 1.
Successfully parsed a group of options.
Parsing a group of options: input url elena.jpg.
Successfully parsed a group of options.
Opening an input file: elena.jpg.
[NULL @ 0x2c1fe80] Opening 'elena.jpg' for reading
[file @ 0x2c207c0] Setting default whitelist 'file,crypto'
[image2 @ 0x2c1fe80] Format image2 probed with size=2048 and score=50
[image2 @ 0x2c1fe80] Before avformat_find_stream_info() pos: 0 bytes read:32768 seeks:0 nb_streams:1
[image2 @ 0x2c1fe80] Opening 'elena.jpg' for reading
[AVIOContext @ 0x2c21f80] Statistics: 3871771 bytes read, 0 seeks
[mjpeg @ 0x2c21940] marker=d8 avail_size_in_buf=3871769
[mjpeg @ 0x2c21940] marker parser used 0 bytes (0 bits)
[mjpeg @ 0x2c21940] marker=e0 avail_size_in_buf=3871767
[mjpeg @ 0x2c21940] marker parser used 16 bytes (128 bits)
[mjpeg @ 0x2c21940] marker=e2 avail_size_in_buf=3871749
[mjpeg @ 0x2c21940] marker parser used 3160 bytes (25280 bits)
[mjpeg @ 0x2c21940] marker=db avail_size_in_buf=3868587
[mjpeg @ 0x2c21940] index=0
[mjpeg @ 0x2c21940] qscale[0]: 2
[mjpeg @ 0x2c21940] index=1
[mjpeg @ 0x2c21940] qscale[1]: 2
[mjpeg @ 0x2c21940] marker parser used 132 bytes (1056 bits)
[mjpeg @ 0x2c21940] marker=c0 avail_size_in_buf=3868453
[mjpeg @ 0x2c21940] Changing bps from 0 to 8
[mjpeg @ 0x2c21940] sof0: picture: 5616x3744
[mjpeg @ 0x2c21940] component 0 2:2 id: 0 quant:0
[mjpeg @ 0x2c21940] component 1 1:1 id: 1 quant:1
[mjpeg @ 0x2c21940] component 2 1:1 id: 2 quant:1
[mjpeg @ 0x2c21940] pix fmt id 22111100
[mjpeg @ 0x2c21940] marker parser used 17 bytes (136 bits)
[mjpeg @ 0x2c21940] marker=c4 avail_size_in_buf=3868434
[mjpeg @ 0x2c21940] marker parser used 0 bytes (0 bits)
[mjpeg @ 0x2c21940] escaping removed 6222 bytes
[mjpeg @ 0x2c21940] marker=da avail_size_in_buf=3868014
[mjpeg @ 0x2c21940] marker parser used 3861792 bytes (30894336 bits)
[mjpeg @ 0x2c21940] marker=d9 avail_size_in_buf=0
[mjpeg @ 0x2c22540] marker parser used 132 bytes (1056 bits)
[mjpeg @ 0x2c22540] marker=c0 avail_size_in_buf=3868453
[mjpeg @ 0x2c22540] sof0: picture: 5616x3744
[mjpeg @ 0x2c22540] component 0 2:2 id: 0 quant:0
[mjpeg @ 0x2c22540] component 1 1:1 id: 1 quant:1
[libx264 @ 0x2c24c40] i16 v,h,dc,p: 40% 53% 4% 3%
[libx264 @ 0x2c24c40] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 11% 10% 27% 7% 9% 8% 8% 9% 11%
[libx264 @ 0x2c24c40] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 29% 12% 11% 6% 9% 11% 7% 9% 6%
[libx264 @ 0x2c24c40] i8c dc,h,v,p: 53% 17% 21% 8%
[libx264 @ 0x2c24c40] Weighted P-Frames: Y:0.0% UV:0.0%
[libx264 @ 0x2c24c40] ref P L0: 56.3% 9.9% 21.1% 12.8%
[libx264 @ 0x2c24c40] ref B L0: 74.5% 22.4% 3.1%
[libx264 @ 0x2c24c40] ref B L1: 98.3% 1.7%
[libx264 @ 0x2c24c40] kb/s:4673.55
[AVIOContext @ 0x2c28ac0] Statistics: 32768 bytes read, 0 seeks