
Recherche avancée
Autres articles (57)
-
Mise à jour de la version 0.1 vers 0.2
24 juin 2013, parExplications des différents changements notables lors du passage de la version 0.1 de MediaSPIP à la version 0.3. Quelles sont les nouveautés
Au niveau des dépendances logicielles Utilisation des dernières versions de FFMpeg (>= v1.2.1) ; Installation des dépendances pour Smush ; Installation de MediaInfo et FFprobe pour la récupération des métadonnées ; On n’utilise plus ffmpeg2theora ; On n’installe plus flvtool2 au profit de flvtool++ ; On n’installe plus ffmpeg-php qui n’est plus maintenu au (...) -
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 (10684)
-
combine different encoding movie into one [duplicate]
21 décembre 2017, par HunneThis question already has an answer here :
We are trying to combine/concat different movie episodes into
one but when sometimes the video is with different encoding at that time
FFMPEG command throws an error so I would like you please help me in
this that if we modify the FFMPEG command and it combine different
encoding movie into one> /bin/ffmpeg \
-f lavfi -i color=c=black \
-ss 0.000 -t 16.545 \
-i "/var/customers/webs/dilip/motions4/upload/public/userfiles/input/fb10209949081578900/1509686278_59fbfc06d394b.mp4" \
-ss 0.000 -t 32.038 \
-i "/var/customers/webs/dilip/motions4/upload/public/userfiles/tmp/fb881023855388222/1509704918_59fc44d6ac51b.mp4" \
-ss 16.545 -t 20.386 \
-i "/var/customers/webs/dilip/motions4/upload/public/userfiles/input/fb10209949081578900/1509686278_59fbfc06d394b.mp4" \
-i "/var/customers/webs/dilip/motions4/upload/public/userfiles/input/fb10209949081578900/1509685957_59fbfac5113ff.png" \
-i "/var/customers/webs/dilip/motions4/upload/public/userfiles/public/1509691135_59fc0effd94c8.mp3" \
-f lavfi -i color=c=black:s=854x480:r=25:d=3 \
-f lavfi -i color=c=black:s=854x480:r=25:d=3 \
-filter_complex " \
[1:v]fps=fps=25[1_fps]; \
[1_fps]scale=853:480:force_original_aspect_ratio=increase[1_fps_tmpsize]; \
[1_fps_tmpsize]pad=854:480:x=0.5:y=0:color=black[1_scaled]; \
[2:v]fps=fps=25[2_fps]; \
[2_fps]scale=640:480:force_original_aspect_ratio=increase[2_fps_tmpsize]; \
[2_fps_tmpsize]pad=854:480:x=107:y=0:color=black[2_scaled]; \
[3:v]fps=fps=25[3_fps]; \
[3_fps]scale=853:480:force_original_aspect_ratio=increase[3_fps_tmpsize]; \
[3_fps_tmpsize]pad=854:480:x=0.5:y=0:color=black[3_scaled]; \
[2_scaled][1_scaled]scale2ref[scaled_2_scaled][1_scaled]; \
[3_scaled][1_scaled]scale2ref[scaled_3_scaled][1_scaled]; \
[1_scaled][scaled_2_scaled][scaled_3_scaled]concat=n=3:v=1:a=0[video_out]; \
[video_out]drawtext=fontfile='/var/customers/webs/dilip/motions4/upload/public/assets/fonts/libel-suit-rg.ttf' \
:x=w-tw-25:y=25:fontsize=32:text='www.omegaitech.com':fontcolor=white[video_out_watermarked]; \
[4:v]scale=100:100[scalled_logo]; [video_out_watermarked][scalled_logo]overlay=10:10 [video_out_watermarked]; \
[5:a]adelay=300|300|300|300|300|300|300|300[audio_out]; \
[6]setsar=1[a]; \
[a]drawtext=fontfile='/var/customers/webs/dilip/motions4/upload/public/assets/fonts/libel-suit-rg.ttf' \
:x=(w-text_w)/2:y=(h-text_h-line_h)/2:fontsize=32:text='Intro text':fontcolor=white[a]; \
[7]setsar=1[c]; \
[c]drawtext=fontfile='/var/customers/webs/dilip/motions4/upload/public/assets/fonts/libel-suit-rg.ttf':x=(w-text_w)/2:y=(h)/2-(line_h*2):fontsize=32:text='Created By':fontcolor=white,drawtext=fontfile='/var/customers/webs/dilip/motions4/upload/public/assets/fonts/libel-suit-rg.ttf':x=(w-text_w)/2:y=(h)/2-(line_h)+10:fontsize=32:text='Dilip Gorasia (omegaitech@yahoo.com)':fontcolor=white,drawtext=fontfile='/var/customers/webs/dilip/motions4/upload/public/assets/fonts/libel-suit-rg.ttf':x=(w-text_w)/2:y=(h)/2+20:fontsize=32:text='Modified By':fontcolor=white,drawtext=fontfile='/var/customers/webs/dilip/motions4/upload/public/assets/fonts/libel-suit-rg.ttf':x=(w-text_w)/2:y=(h)/2+(line_h)+20:fontsize=32:text='Raj Patel (rinpate@gmail.com)':fontcolor=white[c]; \
[video_out_watermarked]setsar=1[b]; \
[a][b][c]concat=n=3:v=1:a=0[video_out_watermarked]; \
[video_out_watermarked]drawtext=fontfile='/var/customers/webs/dilip/motions4/upload/public/assets/fonts/arial.ttf' \
:x=100:y=100:fontsize=32:text='Raj Patel':fontcolor=white:enable='between(t,0,13.37)'[video_out_watermarked]; \
[video_out_watermarked]drawtext=fontfile='/var/customers/webs/dilip/motions4/upload/public/assets/fonts/arial.ttf' \
:x=200:y=200:fontsize=32:text='Raj Patel':fontcolor=white:enable='between(t,13.37,38.78)'[video_out_watermarked] \
" \
-map "[video_out_watermarked]" -map "[audio_out]" \
-s 854x480 \
-aspect 1.779167 \
-r 25 \
-c:v libx264 -b:v 800k -bufsize 64k -crf 24 -movflags faststart -q:v 0 -q:a 0 -c:a aac -strict experimental -b:a 128k -f mp4 -threads 2 -shortest \
-t 74.969 -async 1 \
-y "/var/customers/webs/dilip/motions4/upload/public/userfiles/output/fb881023855388222/1509704929_59fc44e122d41.mp4"
ffmpeg version N-87770-g1954e62 Copyright (c) 2000-2017 the FFmpeg developers
built with gcc 4.9.2 (Debian 4.9.2-10)
configuration: --prefix=/root/ffmpeg_build --pkg-config-flags=--static --extra-cflags=-I/root/ffmpeg_build/include --extra-ldflags=-L/root/ffmpeg_build/lib --bindir=/root/bin --enable-gpl --enable-libass --enable-libfdk-aac --enable-libfreetype --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libx265 --enable-nonfree
libavutil 55. 77.101 / 55. 77.101
libavcodec 57.106.104 / 57.106.104
libavformat 57. 82.104 / 57. 82.104
libavdevice 57. 9.102 / 57. 9.102
libavfilter 6.106.101 / 6.106.101
libswscale 4. 7.103 / 4. 7.103
libswresample 2. 8.100 / 2. 8.100
libpostproc 54. 6.100 / 54. 6.100
Input #0, lavfi, from 'color=c=black':
Duration: N/A, start: 0.000000, bitrate: N/A
Stream #0:0: Video: rawvideo (I420 / 0x30323449), yuv420p, 320x240 [SAR 1:1 DAR 4:3], 25 tbr, 25 tbn, 25 tbc
Input #1, mov,mp4,m4a,3gp,3g2,mj2, from '/var/customers/webs/dilip/motions4/upload/public/userfiles/input/fb10209949081578900/1509686278_59fbfc06d394b.mp4':
Metadata:
major_brand : mp42
minor_version : 0
compatible_brands: isommp42
creation_time : 2016-09-07T03:10:56.000000Z
Duration: 00:04:06.76, start: 0.000000, bitrate: 2324 kb/s
Stream #1:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], 2194 kb/s, 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc (default)
Metadata:
creation_time : 2016-09-07T03:10:56.000000Z
handler_name : ISO Media file produced by Google Inc.
Stream #1:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 125 kb/s (default)
Metadata:
creation_time : 2016-09-07T03:10:56.000000Z
handler_name : ISO Media file produced by Google Inc.
Input #2, mov,mp4,m4a,3gp,3g2,mj2, from '/var/customers/webs/dilip/motions4/upload/public/userfiles/tmp/fb881023855388222/1509704918_59fc44d6ac51b.mp4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
encoder : Lavf57.36.100
comment : 1361809051215868
Duration: 00:00:32.38, start: 0.000000, bitrate: 310 kb/s
Stream #2:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 320x240 [SAR 1:1 DAR 4:3], 182 kb/s, 24 fps, 24 tbr, 12288 tbn, 48 tbc (default)
Metadata:
handler_name : VideoHandler
Stream #2:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 122 kb/s (default)
Metadata:
handler_name : SoundHandler
Input #3, mov,mp4,m4a,3gp,3g2,mj2, from '/var/customers/webs/dilip/motions4/upload/public/userfiles/input/fb10209949081578900/1509686278_59fbfc06d394b.mp4':
Metadata:
major_brand : mp42
minor_version : 0
compatible_brands: isommp42
creation_time : 2016-09-07T03:10:56.000000Z
Duration: 00:04:06.76, start: 0.000000, bitrate: 2324 kb/s
Stream #3:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], 2194 kb/s, 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc (default)
Metadata:
creation_time : 2016-09-07T03:10:56.000000Z
handler_name : ISO Media file produced by Google Inc.
Stream #3:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 125 kb/s (default)
Metadata:
creation_time : 2016-09-07T03:10:56.000000Z
handler_name : ISO Media file produced by Google Inc.
Input #4, png_pipe, from '/var/customers/webs/dilip/motions4/upload/public/userfiles/input/fb10209949081578900/1509685957_59fbfac5113ff.png':
Duration: N/A, bitrate: N/A
Stream #4:0: Video: png, rgba(pc), 128x128, 25 tbr, 25 tbn, 25 tbc
Input #5, mp3, from '/var/customers/webs/dilip/motions4/upload/public/userfiles/public/1509691135_59fc0effd94c8.mp3':
Metadata:
TOAL : www.Songs.PK
TRSN : www.Songs.PK
TPE4 : www.Songs.PK
encoded_by : Eac * Lame
EpisodeID : www.Songs.PK
comment : www.Songs.PK
lyrics-eng : www.Songs.PK
title : Zor Ka Jhatka - www.Songs.PK
track : 1
TGID : www.Songs.PK
TIT1 : www.Songs.PK
TIT3 : www.Songs.PK
copyright : www.Songs.PK
performer : www.Songs.PK
publisher : www.Songs.PK
genre : Bollywood Music
album : Action Replayy
album_artist : www.Songs.PK
composer : www.Songs.PK
TEXT : www.Songs.PK
TOLY : www.Songs.PK
TOPE : Music: Pritam | Lyrics: Irshad Kamil
artist : Daler Mehndi, Richa Sharma
TDES : www.Songs.PK
TCAT : www.Songs.PK
date : 2010
Duration: 00:04:10.17, start: 0.025056, bitrate: 164 kb/s
Stream #5:0: Audio: mp3, 44100 Hz, stereo, s16p, 158 kb/s
Metadata:
encoder : LAME3.98r
Stream #5:1: Video: mjpeg, yuvj420p(pc, bt470bg/unknown/unknown), 900x803 [SAR 300:300 DAR 900:803], 90k tbr, 90k tbn, 90k tbc
Metadata:
comment : Cover (front)
Input #6, lavfi, from 'color=c=black:s=854x480:r=25:d=3':
Duration: N/A, start: 0.000000, bitrate: N/A
Stream #6:0: Video: rawvideo (I420 / 0x30323449), yuv420p, 854x480 [SAR 1:1 DAR 427:240], 25 tbr, 25 tbn, 25 tbc
Input #7, lavfi, from 'color=c=black:s=854x480:r=25:d=3':
Duration: N/A, start: 0.000000, bitrate: N/A
Stream #7:0: Video: rawvideo (I420 / 0x30323449), yuv420p, 854x480 [SAR 1:1 DAR 427:240], 25 tbr, 25 tbn, 25 tbc
Stream mapping:
Stream #1:0 (h264) -fps
Stream #2:0 (h264) -fps
Stream #3:0 (h264) -fps
Stream #4:0 (png) -scale
Stream #5:0 (mp3) -adelay
Stream #6:0 (rawvideo) -setsar
Stream #7:0 (rawvideo) -setsar
drawtext -Stream #0:0 (libx264)
adelay -Stream #0:1 (aac)
Press [q] to stop, [?] for help
-async is forwarded to lavfi similarly to -af aresample=async=1:min_hard_comp=0.100000:first_pts=0.
[Parsed_concat_11 @ 0x340f840] Input link in1:v0 parameters (size 854x480, SAR 1:1) do not match the corresponding output link in0:v0 parameters (854x480, SAR 2560:2559)
[Parsed_concat_11 @ 0x340f840] Failed to configure output pad on Parsed_concat_11
Error reinitializing filters!
Failed to inject frame into filter network: Invalid argument
Error while processing the decoded data for stream #7:0
Conversion failed!`enter code here`Thx for your help
-
Anomalie #3697 (Fermé) : Bug svn10000 SPIP 3
14 février 2016, par MiKaël NavarroBonjour,
Je suis tombé sur un bug sur le processus de mise-à-jour de la base lors d’une migration vers SPIP3.
En effet lorsque un dossier n’est pas présent (comme dans le cas d’une installation fraiche de SPIP 3.1 à partir du fichier Zip) on obtient des erreurs PHP qui remplissent les logs du serveur Web (dans mon cas Nginx) et saturent le disque.
D’après la doc http://php.net/manual/fr/function.opendir.php, la fonction
opendir
renvoieFalse
en cas de soucis et non une ressource. Il faut soit ignorer ce warning soit contrôler préalablement que le dossier existe :
— - spip-3.1/ecrire/maj/svn10000.php 2016-01-06 17:34:04.000000000 +0100 +++ spip3/ecrire/maj/svn10000.php 2016-02-12 15:44:04.952961945 +0100 @@ -674,8 +674,9 @@ function ranger_cache_gd2() spip_log("ranger_cache_gd2") ; $base = _DIR_VAR . "cache-gd2/" ;$dir = opendir($base) ;
while (($f = readdir($dir)) !== false) + if (is_dir($base)) + if ($dir = opendir($base)) + while (($f = readdir($dir)) !== false) if (!is_dir($base . $f) and strncmp($f, ".", 1) !== 0 and preg_match(",[0-9a-f]32\.\w+,", $f) ) @@ -687,6 +688,8 @@ if (time() >= _TIME_OUT) return ; + +
Cdt,
—
A+, MiKaël.
http://www.klnavarro.fr -
using ffmpeg to add overlay with opacity
7 février 2016, par thesweetigerI have a problem with ffmpeg,I try to add a png files over a video i found how to add just I want this png file have some opacity
I tryed this lineffmpeg -n -i video.mp4 -i logo.png -filter_complex "setsar=sar=1;blend=all_mode='overlay':all_opacity=0.7" -movflags +faststart tmb/video.mp4
with this line ffmpeg return this error
Cannot find a matching stream for unlabeled input pad 1 on filter Parsed_blend_1
and there the complet log
ffmpeg version 2.7.5-0ubuntu0.15.10.1 Copyright (c) 2000-2016 the FFmpeg developers
built with gcc 5.2.1 (Ubuntu 5.2.1-22ubuntu2) 20151010
configuration: --prefix=/usr --extra-version=0ubuntu0.15.10.1 --build-suffix=-ffmpeg --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --enable-gpl --enable-shared --disable-stripping --enable-avresample --enable-avisynth --enable-frei0r --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-libopenjpeg --enable-openal --enable-libopus --enable-libpulse --enable-librtmp --enable-libschroedinger --enable-libshine --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libxvid --enable-libzvbi --enable-opengl --enable-x11grab --enable-libdc1394 --enable-libiec61883 --enable-libzmq --enable-libssh --enable-libsoxr --enable-libx264 --enable-libopencv --enable-libx265
libavutil 54. 27.100 / 54. 27.100
libavcodec 56. 41.100 / 56. 41.100
libavformat 56. 36.100 / 56. 36.100
libavdevice 56. 4.100 / 56. 4.100
libavfilter 5. 16.101 / 5. 16.101
libavresample 2. 1. 0 / 2. 1. 0
libswscale 3. 1.101 / 3. 1.101
libswresample 1. 2.100 / 1. 2.100
libpostproc 53. 3.100 / 53. 3.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'video.mp4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
encoder : Lavf54.59.106
Duration: 00:06:17.68, start: 0.023220, bitrate: 1660 kb/s
Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1080x720 [SAR 8:9 DAR 4:3], 1527 kb/s, 25 fps, 25 tbr, 12800 tbn, 50 tbc (default)
Metadata:
handler_name : VideoHandler
Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 127 kb/s (default)
Metadata:
handler_name : SoundHandler
Input #1, png_pipe, from 'logo.png':
Duration: N/A, bitrate: N/A
Stream #1:0: Video: png, rgba(pc), 1080x720 [SAR 3780:3780 DAR 3:2], 25 tbr, 25 tbn, 25 tbc
Cannot find a matching stream for unlabeled input pad 1 on filter Parsed_blend_1I’m a little noob with ffmpeg and I tryed to find a solution with google and don’t find.
Without setsar=sar=1 I got the error about two different sar
[Parsed_blend_0 @ 0x14bb0e0] First input link top parameters (size 1080x720, SAR 8:9) do not match the corresponding second input link bottom parameters (1080x720, SAR 1:1)
[Parsed_blend_0 @ 0x14bb0e0] Failed to configure output pad on Parsed_blend_0Thanks for your help