
Recherche avancée
Médias (1)
-
Richard Stallman et le logiciel libre
19 octobre 2011, par
Mis à jour : Mai 2013
Langue : français
Type : Texte
Autres articles (42)
-
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 -
Ajouter notes et légendes aux images
7 février 2011, parPour pouvoir ajouter notes et légendes aux images, la première étape est d’installer le plugin "Légendes".
Une fois le plugin activé, vous pouvez le configurer dans l’espace de configuration afin de modifier les droits de création / modification et de suppression des notes. Par défaut seuls les administrateurs du site peuvent ajouter des notes aux images.
Modification lors de l’ajout d’un média
Lors de l’ajout d’un média de type "image" un nouveau bouton apparait au dessus de la prévisualisation (...) -
Librairies et binaires spécifiques au traitement vidéo et sonore
31 janvier 2010, parLes logiciels et librairies suivantes sont utilisées par SPIPmotion d’une manière ou d’une autre.
Binaires obligatoires FFMpeg : encodeur principal, permet de transcoder presque tous les types de fichiers vidéo et sonores dans les formats lisibles sur Internet. CF ce tutoriel pour son installation ; Oggz-tools : outils d’inspection de fichiers ogg ; Mediainfo : récupération d’informations depuis la plupart des formats vidéos et sonores ;
Binaires complémentaires et facultatifs flvtool2 : (...)
Sur d’autres sites (8613)
-
FFMPEG : create movie from timestamped images
28 mai 2017, par HyperDevilIm trying to make a small movie file from a folder with webcam images.
They are named like this :
00-00-38.jpg
00-05-37.jpg
00-10-37.jpg
00-15-37.jpgH-M-S.jpg format
Although i tried patterntype glob and simpler commands i cannot get it to work.
This is what i tried :
ffmpeg -r 1 -pattern_type glob -i '*.jpg' -scale=720:-1 -c:v libx264 out.mp4
(got only one image)
ffmpeg -r 25 -i *.jpg -vf "scale=720:-1" output.mp4
(same size as a jpg file but no video)Console output :
ffmpeg -framerate 1 -pattern_type glob -i "*.jpg" -vf scale=720:-1 -c:v libx264 -pix_fmt yuv420p out.mp4
ffmpeg version 1.0.10 Copyright (c) 2000-2014 the FFmpeg developers built on Jul 25 2014 07:50:40 with gcc 4.7 (Debian 4.7.2-5)
configuration: --prefix=/usr --extra-cflags='-g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security '
--extra-ldflags='-Wl,-z,relro' --cc='ccache cc' --enable-shared --enable-libmp3lame --enable-gpl --enable-nonfree --enable-libvorbis
--enable-pthreads --enable-libfaac --enable-libxvid --enable-postproc --enable-x11grab --enable-libgsm --enable-libtheora --enable-li
bopencore-amrnb --enable-libopencore-amrwb --enable-libx264 --enable-libspeex --enable-nonfree --disable-stripping --enable-libvpx --
enable-libschroedinger --disable-encoder=libschroedinger --enable-version3 --enable-libopenjpeg --enable-librtmp --enable-avfilter --
enable-libfreetype --enable-libvo-aacenc --disable-decoder=amrnb --enable-libvo-amrwbenc --enable-libaacplus --libdir=/usr/lib/x86_64
-linux-gnu --disable-vda --enable-libbluray --enable-libcdio --enable-gnutls --enable-frei0r --enable-openssl --enable-libass --enabl
e-libopus --enable-fontconfig --enable-libfdk-aac --enable-libdc1394 --disable-altivec --dis
libavutil 51. 73.101 / 51. 73.101
libavcodec 54. 59.100 / 54. 59.100
libavformat 54. 29.104 / 54. 29.104
libavdevice 54. 2.101 / 54. 2.101
libavfilter 3. 17.100 / 3. 17.100
libswscale 2. 1.101 / 2. 1.101
libswresample 0. 15.100 / 0. 15.100
libpostproc 52. 0.100 / 52. 0.100
[image2 @ 0x1d53f00] max_analyze_duration 5000000 reached at 5000000
Input #0, image2, from '*.jpg':
Duration: 00:04:48.00, start: 0.000000, bitrate: N/A
Stream #0:0: Video: mjpeg, yuvj420p, 800x593 [SAR 96:96 DAR 800:593], 1 fps, 1 tbr, 1 tbn, 1 tbc
[libx264 @ 0x1d35bc0] using SAR=1780/1779
[libx264 @ 0x1d35bc0] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX XOP FMA4 FMA3 SSEMisalign LZCNT BMI1
[libx264 @ 0x1d35bc0] profile High, level 2.2
[libx264 @ 0x1d35bc0] 264 - core 132 - H.264/MPEG-4 AVC codec - Copyleft 2003-2013 - http://www.videolan.org/x264.html - options: ca
bac=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 8x8dc
t=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 key
int_min=1 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 'out.mp4':
Metadata:
encoder : Lavf54.29.104
Stream #0:0: Video: h264 ([33][0][0][0] / 0x0021), yuv420p, 720x534 [SAR 1780:1779 DAR 800:593], q=-1--1, 1 tbn, 1 tbc
Stream mapping:
Stream #0:0 -> #0:0 (mjpeg -> libx264)
Press [q] to stop, [?] for help
frame= 288 fps=145 q=32763.0 Lsize= 349kB time=00:04:46.00 bitrate= 10.0kbits/s
video:345kB audio:0kB subtitle:0 global headers:0kB muxing overhead 1.208469%
[libx264 @ 0x1d35bc0] frame I:2 Avg QP: 2.80 size:130328
[libx264 @ 0x1d35bc0] frame P:73 Avg QP: 4.70 size: 1167
[libx264 @ 0x1d35bc0] frame B:213 Avg QP:17.33 size: 30
[libx264 @ 0x1d35bc0] consecutive B-frames: 1.4% 0.0% 0.0% 98.6%
[libx264 @ 0x1d35bc0] mb I I16..4: 20.2% 24.9% 55.0%
[libx264 @ 0x1d35bc0] mb P I16..4: 0.0% 0.0% 0.0% P16..4: 4.3% 0.1% 0.2% 0.0% 0.0% skip:95.5%
[libx264 @ 0x1d35bc0] mb B I16..4: 0.0% 0.0% 0.0% B16..8: 0.8% 0.0% 0.0% direct: 0.0% skip:99.2% L0: 5.4% L1:94.5% BI: 0.0
%
[libx264 @ 0x1d35bc0] 8x8 transform intra:24.9% inter:51.5%
[libx264 @ 0x1d35bc0] coded y,uvDC,uvAC intra: 99.4% 0.0% 0.0% inter: 0.6% 0.0% 0.0%
[libx264 @ 0x1d35bc0] i16 v,h,dc,p: 5% 19% 52% 25%
[libx264 @ 0x1d35bc0] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 10% 28% 21% 4% 6% 4% 8% 5% 15%
[libx264 @ 0x1d35bc0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 14% 27% 13% 6% 8% 5% 9% 6% 12%
[libx264 @ 0x1d35bc0] i8c dc,h,v,p: 100% 0% 0% 0%
[libx264 @ 0x1d35bc0] Weighted P-Frames: Y:0.0% UV:0.0%
[libx264 @ 0x1d35bc0] ref P L0: 98.1% 0.0% 1.7% 0.2%
[libx264 @ 0x1d35bc0] ref B L0: 52.0% 48.0%
[libx264 @ 0x1d35bc0] ref B L1: 73.0% 27.0%
[libx264 @ 0x1d35bc0] kb/s:9.78The video is 364KB without any video.
-
FFMPEG : create movie from timestamped images
26 août 2015, par HyperDevilIm trying to make a small movie file from a folder with webcam images.
They are named like this :
00-00-38.jpg
00-05-37.jpg
00-10-37.jpg
00-15-37.jpgH-M-S.jpg format
Although i tried patterntype glob and simpler commands i cannot get it to work.
This is what i tried :
ffmpeg -r 1 -pattern_type glob -i '*.jpg' -scale=720:-1 -c:v libx264 out.mp4
(got only one image)
ffmpeg -r 25 -i *.jpg -vf "scale=720:-1" output.mp4
(same size as a jpg file but no video)Console output :
ffmpeg -framerate 1 -pattern_type glob -i "*.jpg" -vf scale=720:-1 -c:v libx264 -pix_fmt yuv420p out.mp4
ffmpeg version 1.0.10 Copyright (c) 2000-2014 the FFmpeg developers built on Jul 25 2014 07:50:40 with gcc 4.7 (Debian 4.7.2-5)
configuration: --prefix=/usr --extra-cflags='-g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security '
--extra-ldflags='-Wl,-z,relro' --cc='ccache cc' --enable-shared --enable-libmp3lame --enable-gpl --enable-nonfree --enable-libvorbis
--enable-pthreads --enable-libfaac --enable-libxvid --enable-postproc --enable-x11grab --enable-libgsm --enable-libtheora --enable-li
bopencore-amrnb --enable-libopencore-amrwb --enable-libx264 --enable-libspeex --enable-nonfree --disable-stripping --enable-libvpx --
enable-libschroedinger --disable-encoder=libschroedinger --enable-version3 --enable-libopenjpeg --enable-librtmp --enable-avfilter --
enable-libfreetype --enable-libvo-aacenc --disable-decoder=amrnb --enable-libvo-amrwbenc --enable-libaacplus --libdir=/usr/lib/x86_64
-linux-gnu --disable-vda --enable-libbluray --enable-libcdio --enable-gnutls --enable-frei0r --enable-openssl --enable-libass --enabl
e-libopus --enable-fontconfig --enable-libfdk-aac --enable-libdc1394 --disable-altivec --dis
libavutil 51. 73.101 / 51. 73.101
libavcodec 54. 59.100 / 54. 59.100
libavformat 54. 29.104 / 54. 29.104
libavdevice 54. 2.101 / 54. 2.101
libavfilter 3. 17.100 / 3. 17.100
libswscale 2. 1.101 / 2. 1.101
libswresample 0. 15.100 / 0. 15.100
libpostproc 52. 0.100 / 52. 0.100
[image2 @ 0x1d53f00] max_analyze_duration 5000000 reached at 5000000
Input #0, image2, from '*.jpg':
Duration: 00:04:48.00, start: 0.000000, bitrate: N/A
Stream #0:0: Video: mjpeg, yuvj420p, 800x593 [SAR 96:96 DAR 800:593], 1 fps, 1 tbr, 1 tbn, 1 tbc
[libx264 @ 0x1d35bc0] using SAR=1780/1779
[libx264 @ 0x1d35bc0] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX XOP FMA4 FMA3 SSEMisalign LZCNT BMI1
[libx264 @ 0x1d35bc0] profile High, level 2.2
[libx264 @ 0x1d35bc0] 264 - core 132 - H.264/MPEG-4 AVC codec - Copyleft 2003-2013 - http://www.videolan.org/x264.html - options: ca
bac=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 8x8dc
t=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 key
int_min=1 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 'out.mp4':
Metadata:
encoder : Lavf54.29.104
Stream #0:0: Video: h264 ([33][0][0][0] / 0x0021), yuv420p, 720x534 [SAR 1780:1779 DAR 800:593], q=-1--1, 1 tbn, 1 tbc
Stream mapping:
Stream #0:0 -> #0:0 (mjpeg -> libx264)
Press [q] to stop, [?] for help
frame= 288 fps=145 q=32763.0 Lsize= 349kB time=00:04:46.00 bitrate= 10.0kbits/s
video:345kB audio:0kB subtitle:0 global headers:0kB muxing overhead 1.208469%
[libx264 @ 0x1d35bc0] frame I:2 Avg QP: 2.80 size:130328
[libx264 @ 0x1d35bc0] frame P:73 Avg QP: 4.70 size: 1167
[libx264 @ 0x1d35bc0] frame B:213 Avg QP:17.33 size: 30
[libx264 @ 0x1d35bc0] consecutive B-frames: 1.4% 0.0% 0.0% 98.6%
[libx264 @ 0x1d35bc0] mb I I16..4: 20.2% 24.9% 55.0%
[libx264 @ 0x1d35bc0] mb P I16..4: 0.0% 0.0% 0.0% P16..4: 4.3% 0.1% 0.2% 0.0% 0.0% skip:95.5%
[libx264 @ 0x1d35bc0] mb B I16..4: 0.0% 0.0% 0.0% B16..8: 0.8% 0.0% 0.0% direct: 0.0% skip:99.2% L0: 5.4% L1:94.5% BI: 0.0
%
[libx264 @ 0x1d35bc0] 8x8 transform intra:24.9% inter:51.5%
[libx264 @ 0x1d35bc0] coded y,uvDC,uvAC intra: 99.4% 0.0% 0.0% inter: 0.6% 0.0% 0.0%
[libx264 @ 0x1d35bc0] i16 v,h,dc,p: 5% 19% 52% 25%
[libx264 @ 0x1d35bc0] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 10% 28% 21% 4% 6% 4% 8% 5% 15%
[libx264 @ 0x1d35bc0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 14% 27% 13% 6% 8% 5% 9% 6% 12%
[libx264 @ 0x1d35bc0] i8c dc,h,v,p: 100% 0% 0% 0%
[libx264 @ 0x1d35bc0] Weighted P-Frames: Y:0.0% UV:0.0%
[libx264 @ 0x1d35bc0] ref P L0: 98.1% 0.0% 1.7% 0.2%
[libx264 @ 0x1d35bc0] ref B L0: 52.0% 48.0%
[libx264 @ 0x1d35bc0] ref B L1: 73.0% 27.0%
[libx264 @ 0x1d35bc0] kb/s:9.78The video is 364KB without any video.
-
ffmpeg screen blending mode makes transparent png pink
28 janvier 2014, par gilad sI have a sequence of PNG files with transparency - I'd like screen-blend them on top of a video
ffmpeg -i video.mp4 -i "Images/%03d.png" -filter_complex "blend=all_mode='screen':all_opacity=0.7" output.mp4
the images are indeed merged on top of the video but with a pink overlay ?!
I also tried to add "-vcodec png" and "-vcodec libx264" and to try a .mov video but got the same result.
ffmpeg version N-58061-g5231eec Copyright (c) 2000-2013 the FFmpeg developers
built on Nov 14 2013 05:35:15 with gcc 4.6 (Debian 4.6.3-1)
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
libavutil 52. 52.100 / 52. 52.100
libavcodec 55. 41.101 / 55. 41.101
libavformat 55. 21.100 / 55. 21.100
libavdevice 55. 5.100 / 55. 5.100
libavfilter 3. 91.100 / 3. 91.100
libswscale 2. 5.101 / 2. 5.101
libswresample 0. 17.104 / 0. 17.104
libpostproc 52. 3.100 / 52. 3.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '1.mp4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
encoder : Lavf54.2.100
Duration: 00:00:18.88, start: 0.000000, bitrate: 595 kb/s
Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 640x480, 461 kb/s,
25.16 fps, 25 tbr, 1000k tbn, 2000k tbc (default)
Metadata:
handler_name : VideoHandler
Stream #0:1(und): Audio: aac (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 128 kb/s
(default)
Metadata:
handler_name : SoundHandler
Input #1, image2, from 'Dots2/%03d.png':
Duration: 00:00:10.00, start: 0.000000, bitrate: N/A
Stream #1:0: Video: png, rgba, 640x480, 25 fps, 25 tbr, 25 tbn, 25 tbc
[libx264 @ 0x292ad60] using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle SSE4.2 AVX
[libx264 @ 0x292ad60] profile High, level 3.0
[libx264 @ 0x292ad60] 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=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
Output #0, mp4, to 'output_Dots.mp4':
Metadata:
major_brand : isom
Stream #0:1(und): Audio: aac (libvo_aacenc) ([64][0][0][0] / 0x0040), 44100 Hz, stereo,
s16, 128 kb/s (default)
Metadata:
handler_name : SoundHandler
Stream mapping:
Stream #0:0 (h264) -> blend:top (graph 0)
Stream #1:0 (png) -> blend:bottom (graph 0)
blend (graph 0) -> Stream #0:0 (libx264)
Stream #0:1 -> #0:1 (aac -> libvo_aacenc)
Press [q] to stop, [?] for help
frame= 475 fps=105 q=-1.0 Lsize= 1660kB time=00:00:18.92 bitrate= 718.7kbits/s
video:1349kB audio:295kB subtitle:0 global headers:0kB muxing overhead 0.993598%
[libx264 @ 0x292ad60] frame I:2 Avg QP:19.79 size: 33501
[libx264 @ 0x292ad60] frame P:176 Avg QP:23.16 size: 5651
[libx264 @ 0x292ad60] frame B:297 Avg QP:27.76 size: 1074
[libx264 @ 0x292ad60] consecutive B-frames: 13.3% 8.8% 3.8% 74.1%
[libx264 @ 0x292ad60] mb I I16..4: 1.7% 69.9% 28.4%
[libx264 @ 0x292ad60] mb P I16..4: 3.3% 8.1% 1.0% P16..4: 47.1% 14.7% 7.5% 0.0%
0.0% skip:18.3%
[libx264 @ 0x292ad60] mb B I16..4: 0.1% 0.0% 0.0% B16..8: 44.4% 2.6% 0.8%
direct: 0.9% skip:51.2% L0:46.0% L1:50.5% BI: 3.5%
[libx264 @ 0x292ad60] 8x8 transform intra:64.9% inter:74.0%
[libx264 @ 0x292ad60] coded y,uvDC,uvAC intra: 47.0% 50.4% 13.1% inter: 11.8% 12.7% 0.5%
[libx264 @ 0x292ad60] i16 v,h,dc,p: 50% 18% 9% 23%
[libx264 @ 0x292ad60] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 30% 15% 22% 4% 6% 6% 7% 5% 5%
[libx264 @ 0x292ad60] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 32% 19% 19% 4% 6% 6% 6% 4% 4%
[libx264 @ 0x292ad60] i8c dc,h,v,p: 55% 17% 25% 2%
[libx264 @ 0x292ad60] Weighted P-Frames: Y:29.0% UV:23.9%
[libx264 @ 0x292ad60] ref P L0: 63.5% 20.9% 13.2% 2.3% 0.2%
[libx264 @ 0x292ad60] ref B L0: 96.8% 2.8% 0.4%
[libx264 @ 0x292ad60] ref B L1: 98.4% 1.6%
[libx264 @ 0x292ad60] kb/s:581.24