
Recherche avancée
Autres articles (55)
-
MediaSPIP en mode privé (Intranet)
17 septembre 2013, parÀ partir de la version 0.3, un canal de MediaSPIP peut devenir privé, bloqué à toute personne non identifiée grâce au plugin "Intranet/extranet".
Le plugin Intranet/extranet, lorsqu’il est activé, permet de bloquer l’accès au canal à tout visiteur non identifié, l’empêchant d’accéder au contenu en le redirigeant systématiquement vers le formulaire d’identification.
Ce système peut être particulièrement utile pour certaines utilisations comme : Atelier de travail avec des enfants dont le contenu ne doit pas (...) -
Formulaire personnalisable
21 juin 2013, parCette page présente les champs disponibles dans le formulaire de publication d’un média et il indique les différents champs qu’on peut ajouter. Formulaire de création d’un Media
Dans le cas d’un document de type média, les champs proposés par défaut sont : Texte Activer/Désactiver le forum ( on peut désactiver l’invite au commentaire pour chaque article ) Licence Ajout/suppression d’auteurs Tags
On peut modifier ce formulaire dans la partie :
Administration > Configuration des masques de formulaire. (...) -
Le plugin : Podcasts.
14 juillet 2010, parLe problème du podcasting est à nouveau un problème révélateur de la normalisation des transports de données sur Internet.
Deux formats intéressants existent : Celui développé par Apple, très axé sur l’utilisation d’iTunes dont la SPEC est ici ; Le format "Media RSS Module" qui est plus "libre" notamment soutenu par Yahoo et le logiciel Miro ;
Types de fichiers supportés dans les flux
Le format d’Apple n’autorise que les formats suivants dans ses flux : .mp3 audio/mpeg .m4a audio/x-m4a .mp4 (...)
Sur d’autres sites (6762)
-
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 -
avformat/mov : Check default_encrypted_sample before use in mov_read_sample_encryption...
21 juillet 2018, par Michael Niedermayer -
how to use ffmpeg with mjpeg_vaapi encoder (with hardware acceleration) ?
8 août 2018, par MaratWhen I use ffmpeg with mjpeg encoder without hardware acceleration, everything works fine. I use following command :
ffmpeg -nostdin -rtsp_transport udp_multicast -allowed_media_types 'video' -i 'rtsp://MYIP' -ss 00:00:0.00 -f image2pipe -q:v 24 -vf scale=-2:480,format=yuv420p -c:v mjpeg -vframes 1 pipe:1
But, when I try to use mjpeg with hardware acceleration, I always get error :
ffmpeg -nostdin -rtsp_transport udp_multicast -allowed_media_types 'video' -hwaccel vaapi -vaapi_device /dev/dri/renderD128 -hwaccel_output_format vaapi -i 'rtsp://MYIP' -ss 00:00:0.00 -f image2pipe -q:v 24 -vf scale=-2:480,format=yuv420p -c:v mjpeg_vaapi -vframes 1 pipe:1
ffmpeg version N-91514-gc51e0cd Copyright (c) 2000-2018 the FFmpeg developers
built with gcc 5.4.0 (Ubuntu 5.4.0-6ubuntu1~16.04.10) 20160609
configuration: --pkg-config-flags=--static
libavutil 56. 18.102 / 56. 18.102
libavcodec 58. 21.106 / 58. 21.106
libavformat 58. 17.101 / 58. 17.101
libavdevice 58. 4.101 / 58. 4.101
libavfilter 7. 26.100 / 7. 26.100
libswscale 5. 2.100 / 5. 2.100
libswresample 3. 2.100 / 3. 2.100
libva info: VA-API version 0.39.0
libva info: va_getDriverName() returns 0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/i965_drv_video.so
libva info: Found init function __vaDriverInit_0_39
libva info: va_openDriver() returns 0
Input #0, rtsp, from 'rtsp://MYIP':
Metadata:
title : Session streamed with GStreamer
comment : rtsp-server
Duration: N/A, start: 0.180600, bitrate: N/A
Stream #0:0: Video: h264 (Main), yuvj420p(pc, progressive), 800x600, 50 fps, 50 tbr, 90k tbn, 100 tbc
Stream mapping:
Stream #0:0 -> #0:0 (h264 (native) -> mjpeg (mjpeg_vaapi))
Impossible to convert between the formats supported by the filter 'graph 0 input from stream 0:0' and the filter 'auto_scaler_0'
Error reinitializing filters!
Failed to inject frame into filter network: Function not implemented
Error while processing the decoded data for stream #0:0
Conversion failed!I tried with some additional options but it still keeps failing :
ffmpeg -nostdin -rtsp_transport udp_multicast -allowed_media_types 'video' -hwaccel vaapi -vaapi_device /dev/dri/renderD128 -hwaccel_output_format vaapi -i 'rtsp://MYIP' -ss 00:00:0.00 -f image2pipe -q:v 24 -vf "scale_vaapi=w=800:h=600" -b:v 700k -r 25 -vcodec mjpeg_vaapi -vframes 1 pipe:1
ffmpeg version N-91514-gc51e0cd Copyright (c) 2000-2018 the FFmpeg developers
built with gcc 5.4.0 (Ubuntu 5.4.0-6ubuntu1~16.04.10) 20160609
configuration: --pkg-config-flags=--static
libavutil 56. 18.102 / 56. 18.102
libavcodec 58. 21.106 / 58. 21.106
libavformat 58. 17.101 / 58. 17.101
libavdevice 58. 4.101 / 58. 4.101
libavfilter 7. 26.100 / 7. 26.100
libswscale 5. 2.100 / 5. 2.100
libswresample 3. 2.100 / 3. 2.100
libva info: VA-API version 0.39.0
libva info: va_getDriverName() returns 0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/i965_drv_video.so
libva info: Found init function __vaDriverInit_0_39
libva info: va_openDriver() returns 0
Input #0, rtsp, from 'rtsp://MYIP':
Metadata:
title : Session streamed with GStreamer
comment : rtsp-server
Duration: N/A, start: 0.179933, bitrate: N/A
Stream #0:0: Video: h264 (Main), yuvj420p(pc, progressive), 800x600, 50 fps, 50 tbr, 90k tbn, 100 tbc
Stream mapping:
Stream #0:0 -> #0:0 (h264 (native) -> mjpeg (mjpeg_vaapi))
[mjpeg_vaapi @ 0x374cd80] Encoding entrypoint not found (12 / 7).
Error initializing output stream 0:0 -- Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height
Conversion failed!Can please anyone suggest right options to make it work ?