
Recherche avancée
Autres articles (30)
-
Des sites réalisés avec MediaSPIP
2 mai 2011, parCette page présente quelques-uns des sites fonctionnant sous MediaSPIP.
Vous pouvez bien entendu ajouter le votre grâce au formulaire en bas de page. -
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 ;
-
Ecrire une actualité
21 juin 2013, parPrésentez les changements dans votre MédiaSPIP ou les actualités de vos projets sur votre MédiaSPIP grâce à la rubrique actualités.
Dans le thème par défaut spipeo de MédiaSPIP, les actualités sont affichées en bas de la page principale sous les éditoriaux.
Vous pouvez personnaliser le formulaire de création d’une actualité.
Formulaire de création d’une actualité Dans le cas d’un document de type actualité, les champs proposés par défaut sont : Date de publication ( personnaliser la date de publication ) (...)
Sur d’autres sites (5701)
-
avformat/mov : Check default_encrypted_sample before use in mov_read_sample_encryption...
21 juillet 2018, par Michael Niedermayer -
FFmpeg drawtext=enable'between(t,0,5)' not working
24 juillet 2018, par AvaniI’m trying to draw text on a video at different time intervals using ffmpeg. Below is my instruction :
ffmpeg -i input.mp4 -vf "drawtext=fontfile='C:\arial.ttf':text='Text1':x=5:y=20Ûmax_glyph_a:fontsize=24:fontcolor=yellow:box=1:boxcolor=black@0.5:boxborderw=5:enable='between(t,0,20)', drawtext=fontfile='C:\arial.ttf':text='Text2':x=100:y=20Ûmax_glyph_a:fontsize=24:fontcolor=yellow:enable='between(t,5,20)', drawtext=fontfile='C:\arial.ttf':text='Text3':x=200:y=20Ûmax_glyph_a:fontsize=24:fontcolor=yellow:enable='between(t,10,20)'" output.mp4
I’m trying to draw text in a horizontal line and I want only Text1 for the first 5 seconds, and then Text2 starting from 5 seconds to 20 seconds, and Text3 starting from 10 seconds till the end.
When I do this, my first text stays for about 15 seconds and the last two show up in the last 4 seconds of the video. Is there something wrong with my instruction ? Am I using the enable between correctly ?
Below is the Log for ffmpeg -i input.mp4 -vf showinfo -vsync 0 -f null - :
ffmpeg version N-91399-g9f0077cc03 Copyright (c) 2000-2018 the FFmpeg developers
built with gcc 7.3.0 (GCC)
configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-bzlib --enable-fontconfig --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libzimg --enable-lzma --enable-zlib --enable-gmp --enable-libvidstab --enable-libvorbis --enable-libvo-amrwbenc --enable-libmysofa --enable-libspeex --enable-libxvid --enable-libaom --enable-libmfx --enable-amf --enable-ffnvcodec --enable-cuvid --enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2 --enable-avisynth
libavutil 56. 18.102 / 56. 18.102
libavcodec 58. 20.104 / 58. 20.104
libavformat 58. 17.101 / 58. 17.101
libavdevice 58. 4.101 / 58. 4.101
libavfilter 7. 25.100 / 7. 25.100
libswscale 5. 2.100 / 5. 2.100
libswresample 3. 2.100 / 3. 2.100
libpostproc 55. 2.100 / 55. 2.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'onlyVideo.mp4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2mp41
encoder : Lavf56.37.100
Duration: 00:00:20.00, start: 0.000000, bitrate: 73 kb/s
Stream #0:0(und): Video: mpeg4 (Simple Profile) (mp4v / 0x7634706D), yuv420p, 640x720 [SAR 1:1 DAR 8:9], 73 kb/s, 0.20 fps, 0.20 tbr, 16384 tbn, 1 tbc (default)
Metadata:
handler_name : VideoHandler
Stream mapping:
Stream #0:0 -> #0:0 (mpeg4 (native) -> wrapped_avframe (native))
Press [q] to stop, [?] for help
[Parsed_showinfo_0 @ 0000019e4ef73140] config in time_base: 1/16384, frame_rate: 1/5
[Parsed_showinfo_0 @ 0000019e4ef73140] config out time_base: 0/0, frame_rate: 0/0
[Parsed_showinfo_0 @ 0000019e4ef73140] n: 0 pts: 0 pts_time:0 pos: 44 fmt:yuv420p sar:1/1 s:640x720 i:P iskey:1 type:I checksum:850631B2 plane_checksum:[6C2678F8 6C5D6575 C2075336] mean:[191 121 133 ] stdev:[67.7 11.8 8.5 ]
[Parsed_showinfo_0 @ 0000019e4ef73140] side data - unknown side data type 17 (1845 bytes)
[Parsed_showinfo_0 @ 0000019e4ef73140] side data - unknown side data type 16 (8 bytes)
Output #0, null, to 'pipe:':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2mp41
encoder : Lavf58.17.101
Stream #0:0(und): Video: wrapped_avframe, yuv420p, 640x720 [SAR 1:1 DAR 8:9], q=2-31, 200 kb/s, 0.20 fps, 0.20 tbn, 0.20 tbc (default)
Metadata:
handler_name : VideoHandler
encoder : Lavc58.20.104 wrapped_avframe
[Parsed_showinfo_0 @ 0000019e4ef73140] n: 1 pts: 81920 pts_time:5 pos: 37980 fmt:yuv420p sar:1/1 s:640x720 i:P iskey:0 type:P checksum:D4B0BD28 plane_checksum:[E0310E7B DC71FA0B 97BCB493] mean:[31 127 132 ] stdev:[25.6 28.9 27.1 ]
[Parsed_showinfo_0 @ 0000019e4ef73140] side data - unknown side data type 17 (1845 bytes)
[Parsed_showinfo_0 @ 0000019e4ef73140] side data - unknown side data type 16 (8 bytes)
frame= 2 fps=0.0 q=-0.0 size=N/A time=00:00:10.00 bitrate=N/A speed=11.1x
[Parsed_showinfo_0 @ 0000019e4ef73140] n: 2 pts: 163840 pts_time:10 pos: 67732 fmt:yuv420p sar:1/1 s:640x720 i:P iskey:0 type:P checksum:9FC30D4F plane_checksum:[1F10F7EB 45F39329 BED7821D] mean:[60 123 125 ] stdev:[61.8 11.0 5.5 ]
[Parsed_showinfo_0 @ 0000019e4ef73140] side data - unknown side data type 17 (1845 bytes)
[Parsed_showinfo_0 @ 0000019e4ef73140] side data - unknown side data type 16 (8 bytes)
[Parsed_showinfo_0 @ 0000019e4ef73140] n: 3 pts: 245760 pts_time:15 pos: 133778 fmt:yuv420p sar:1/1 s:640x720 i:P iskey:0 type:P checksum:9F501A92 plane_checksum:[D1B4E4A7 C4CD0DFA EB7E27E2] mean:[162 129 139 ] stdev:[71.7 27.3 37.2 ]
[Parsed_showinfo_0 @ 0000019e4ef73140] side data - unknown side data type 17 (1845 bytes)
[Parsed_showinfo_0 @ 0000019e4ef73140] side data - unknown side data type 16 (8 bytes)
frame= 4 fps=0.0 q=-0.0 Lsize=N/A time=00:00:20.00 bitrate=N/A speed=21.7x
video:2kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown -
How to swap package configuration for environment
24 juillet 2018, par Finn MaunsellI’d like to change the location that I get ffmpeg from for my anaconda environment. The problem has occured because I want to use the ffmpeg configuration for my base system instead of the configuration meant for the environment.
If I use
ffmpeg
in ubuntu bash then I get this for my active environment :ffmpeg version N-91510-gd134b8d Copyright (c) 2000-2018 the FFmpeg developers
built with gcc 5.4.0 (Ubuntu 5.4.0-6ubuntu1~16.04.10) 20160609
configuration: --prefix=/home/notebook/ffmpeg_build --pkg-config-flags=--static --extra-cflags=-I/home/notebook/ffmpeg_build/include --extra-ldflags=-L/home/notebook/ffmpeg_build/lib --extra-libs='-lpthread -lm' --bindir=/home/notebook/bin --enable-gpl --enable-libaom --enable-openssl --enable-libass --enable-libfdk-aac --enable-libfreetype --enable-libmp3lame --enable-libopus --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libx265 --enable-nonfreeand for non-environment :
ffmpeg version 3.4.1 Copyright (c) 2000-2017 the FFmpeg developers
built with gcc 4.8.2 (GCC) 20140120 (Red Hat 4.8.2-15)
configuration: --prefix=/home/notebook/anaconda2/envs/tensorflow --disable-doc --enable-shared --enable-static --extra-cflags='-Wall -g -m64 -pipe -O3 -march=x86-64 -fPIC -I/home/notebook/anaconda2/envs/tensorflow/include' --extra-cxxflags='=-Wall -g -m64 -pipe -O3 -march=x86-64 -fPIC' --extra-libs=
'-L/home/notebook/anaconda2/envs/tensorflow/lib -lz' --enable-pic --enable-gpl --enable-version3 --enable-hardcoded-tables --enable-avresample --enable-libx264Solving this will allow me to use the 2nd ffmpeg installation in my conda environment.