
Recherche avancée
Autres articles (46)
-
Supporting all media types
13 avril 2011, parUnlike most software and media-sharing platforms, MediaSPIP aims to manage as many different media types as possible. The following are just a few examples from an ever-expanding list of supported formats : images : png, gif, jpg, bmp and more audio : MP3, Ogg, Wav and more video : AVI, MP4, OGV, mpg, mov, wmv and more text, code and other data : OpenOffice, Microsoft Office (Word, PowerPoint, Excel), web (html, CSS), LaTeX, Google Earth and (...)
-
Dépôt de média et thèmes par FTP
31 mai 2013, parL’outil MédiaSPIP traite aussi les média transférés par la voie FTP. Si vous préférez déposer par cette voie, récupérez les identifiants d’accès vers votre site MédiaSPIP et utilisez votre client FTP favori.
Vous trouverez dès le départ les dossiers suivants dans votre espace FTP : config/ : dossier de configuration du site IMG/ : dossier des média déjà traités et en ligne sur le site local/ : répertoire cache du site web themes/ : les thèmes ou les feuilles de style personnalisées tmp/ : dossier de travail (...) -
Keeping control of your media in your hands
13 avril 2011, parThe vocabulary used on this site and around MediaSPIP in general, aims to avoid reference to Web 2.0 and the companies that profit from media-sharing.
While using MediaSPIP, you are invited to avoid using words like "Brand", "Cloud" and "Market".
MediaSPIP is designed to facilitate the sharing of creative media online, while allowing authors to retain complete control of their work.
MediaSPIP aims to be accessible to as many people as possible and development is based on expanding the (...)
Sur d’autres sites (2061)
-
Anomalie #4562 : Suite #4468 : Unification des CSS pour les boutons et les icônes
17 février 2021Bon bon bon, on a pas mal réfléchi au sujet avec rastapopoulos, et je crois qu’on est arrivé à une solution satisfaisante.
En tout cas une solution qui répond complètement aux problèmes et besoins soulevés dans ce ticket, en ce qui me concerne.Le problème était de ne traiter des icônes que sous l’angle d’une utilisation dans des boutons, de ne le faire qu’à moitié en proposant un jeu d’icônes très restreint, et avec des icônes pas toutes prévues pour cette utilisation qui plus est.
Dans l’immédiat, pour clôturer ce ticket au plus vite, il s’agirait de faire ça :
- dans le CSS, retirer complètement les variantes de boutons avec icônes :
.bouton_add
,.bouton_supprimer
, etc. (ça sera fait différemment et mieux). - renommer la classe
.bouton
en.btn
: c’est moins verbeux et on comprend aussi bien. - préfixer les variantes génériques qui restent :
.btn_mini
au lieu de.btn mini
, etc. - finir les derniers petits ajustement visuels.
Avec ça le ticket pourra enfin être fermé.
Mais alors comment fait-on pour avoir des icônes dans les boutons ?
C’est l’étape suivante.Des icônes¶
On s’est dit, tant qu’à faire, autant proposer tout de suite un jeu complet d’icônes symboliques.
Les besoins sont multiples pour pleins d’éléments d’interface, dans les plugins et dans le core : plier/déplier des trucs, dupliquer un contenu, afficher un menu, remonter dans la hiérarchie, etc., etc. (je fais vite).
Et chacun doit réimplémenter ça un peu à sa sauce.On reprendrait un jeu d’icônes existant, qu’on n’aura pas à maintenir, optimisé, et qui fournit des icônes cohérentes visuellement, utilisables dans tous les contextes.
Il y a plusieurs choix de jeux d’icônes libres : Bootstrap-icons, Octicon, Material, Entypo, etc.Ces icônes seraient utilisables de 2 façons :
1. Des classes¶
Quand il s’agit d’icônes purement décoratives, des classes que l’on peut ajouter à n’importe quel élément inline.
Pour éviter les conflits, on propose la contraption de spip + icon = spicon.
Cette solution utilise une fontface, l’icône hérite de la taille et de la couleur du texte.Pour les boutons, même principe : la classe signifie « ajoute une icône dans cet élément »
Exemples :
<span class="CodeRay"><span class="tag">span> <span class="attribute-name">class</span>=<span class="string"><span class="delimiter">"</span><span class="content">spicon_menu</span><span class="delimiter">"</span></span><span class="tag">></span>Ouvrir le menu<span class="tag"></span>
<span class="tag">span> <span class="attribute-name">class</span>=<span class="string"><span class="delimiter">"</span><span class="content">spicon_truc</span><span class="delimiter">"</span></span><span class="tag">></span><span class="tag"></span> Du texte
<span class="tag">span> <span class="attribute-name">class</span>=<span class="string"><span class="delimiter">"</span><span class="content">titrem spicon_machin</span><span class="delimiter">"</span></span><span class="tag">></span>Mon titre<span class="tag"></span>
</span></span></span></span>2. Une balise #ICON¶
En complément, on peut vouloir embarquer une icône svg dans le HTML.
On propose de reprendre et d’adapter la super balise #ICON du plugin Zcore, qui fait ça très bien.
Cette balise permet d’embarquer une icône du set par défaut, mais également n’importe quelle autre (je rentre pas dans les détails).Un modèle correspondant permettra aussi d’inclure des icônes svg dans les textes :
<span class="CodeRay">#ICONE{identifiant}
#ICONE{chemin/vers/mon_icone.svg}
#ICONE{#identifiant_autre_set}
</span>Identifiants sémantiques¶
Les identifiants des icônes seront directement ceux du jeu d’icônes choisi.
Mais ils peuvent avoir des noms un peu barbares :chevron-double-right
,eye-slash
,grip-vertical
, etc.Dans tous les cas on pourra les utiliser tels quels, mais en plus de ça, on propose de faire une correspondance sémantique pour les icônes correspondants aux actions les plus courantes. Par exemple au lieu de faire
#ICONE{chevron-double-down}
on pourra faire#ICONE{deplier}
.La liste initiale est visible ici : https://demo.hedgedoc.org/3zIXkcFLTVSwV0nKC1_qcA?both
Voilà, je crois que c’est tout, rastapopoulos tu complètera si j’ai oublié des trucs.
Peut-être qu’on peut partir sur un nouveau ticket pour ce sujet et la branche dev qui ira avec.À vous les studios.
- dans le CSS, retirer complètement les variantes de boutons avec icônes :
-
ffmpeg, add static image to beginning and end with transitions
14 mars 2021, par CreateChangeffmpeg noob here, trying to help my mother with some videos for real estate walkthroughs. I'd like to set up a simple pipeline that I can run videos through and have outputted as such :


- 

- 5 second (silent) title card ->
- xfade transition ->
- property walk through ->
- xfade transition ->
- 5 second (silent) title card












Considerations :


- 

- The intro / outro card will be the same content.
- The input walkthrough videos will be of variable length so, if possible, a dynamic solution accounting for this would be ideal. If this requires me to script something using
ffprobe
, I can do that - just need to gain an understanding of the syntax and order of operations. - The video clip will come in with some audio already overlaid. I would like for the title cards to be silent, and have the video/audio clip fade in/out together.








I have gotten a sample working without the transitions :


ffmpeg -loop 1 -t 5 -i title_card.jpg \
 -i walkthrough.MOV \
 -f lavfi -t 0.1 -i anullsrc \
 -filter_complex "[0][2][1:v][1:a][0][2]concat=n=3:v=1:a=1[v][a]" \
 -map "[v]" -map "[a]" \
 -vcodec libx265 \
 -crf 18 \
 -vsync 2 \
 output_without_transitions.mp4



I have been unable to get it to work with transitions. See below for the latest iteration :


ffmpeg -loop 1 -t 5 -r 60 -i title_card.jpg \
 -r 60 -i walkthrough.MOV \
 -f lavfi -t 0.1 -i anullsrc \
 -filter_complex \
 "[0][1:v]xfade=transition=fade:duration=0.5:offset=4.5[v01]; \
 [v01][0]xfade=transition=fade:duration=0.5:offset=12.8[v]" \
 -map "[v]" \
 -vcodec libx265 \
 -crf 18 \
 -vsync 2 \
 output_with_transitions.mp4



This half-works, resulting in the initial title card, fading into the video, but the second title card never occurs. Note, I also removed any references to audio, in an effort to get the transitions alone to work.


I have been beating my head against the wall on this, so help would be appreciated :)


-
ffmpeg jpg batch script with timestamp
3 juillet 2021, par ChrisI currently have this batch script using ffmpeg to scale images and place in a new location with the same folder structure. How do i include the timestamp from the original jpg file in the filename of the new scaled jpg file ?


This gives files named m-H-S_IMG_0305


@echo off &setlocal
set /a nfile=0
echo Copying directory structure from %1 to %2 ...
xcopy /T "%~1" "%~2"
REM walk directory structure and convert each file in quiet mode
set "sourcefolder=%~1"
set "targetfolder=%~2"
for /R "%sourcefolder%" %%a in (*.JPG) do (
 echo converting "%%~nxa" ...
 set "sourcefile=%%~fa"
 set "sourcepath=%%~dpa"
 set "targetfile=%%~na.JPG"
 setlocal enabledelayedexpansion
 set "targetfolder=%targetfolder%!sourcepath:%sourcefolder%=!"
 ffmpeg -v quiet -i "!sourcefile!" -vf scale=256x256 -q:v 1 -strftime 1 "!targetfolder!%Y-%m-%d_%H-%M-%S_!targetfile!"
 endlocal
 set /A nfile+=1
)
echo Done! Converted %nfile% file(s)



Working version for file modify date :


@echo off &setlocal
set /a nfile=0
echo Copying directory structure from %1 to %2 ...
xcopy /T "%~1" "%~2"
REM walk directory structure and convert each file in quiet mode
set "sourcefolder=%~1"
set "targetfolder=%~2"
for /R "%sourcefolder%" %%a in (*.JPG) do (
 echo converting "%%~nxa" ...
 echo which has a timestamp of "%%~ta" ...
 set "sourcefile=%%~fa"
 set "sourcepath=%%~dpa"
 set "targetfile=%%~na.JPG"
 set "timestamp=%%~ta"
 setlocal enabledelayedexpansion
 set "timestamp=!timestamp: =_!"
 set "timestamp=!timestamp::=-!"
 set "timestamp=!timestamp:/=-!"
 set "targetfolder=%targetfolder%!sourcepath:%sourcefolder%=!"
 ffmpeg -v quiet -i "!sourcefile!" -vf scale=256x256 -q:v 1 "!targetfolder!!timestamp!_!targetfile!"
 endlocal
 set /A nfile+=1
)
echo Done! Converted %nfile% file(s)



File Creation date option attempt using exiftool (This works but it stops frequently so there is an error somewhere) :


@echo off &setlocal
set /a nfile=0
echo Copying directory structure from %1 to %2 ...
xcopy /T "%~1" "%~2"
REM walk directory structure and convert each file in quiet mode
set "sourcefolder=%~1"
set "targetfolder=%~2"
for /R "%sourcefolder%" %%a in (*.JPG) do (
 echo converting "%%~nxa" ...
 echo which has a timestamp of "%%~ta" ...
 set "sourcefile=%%~fa"
 set "sourcepath=%%~dpa"
 set "targetfile=%%~na.JPG"
 set "timestamp=('exiftool -d %%Y%%m%%d_%%H%%M%%S -CreateDate %%~a')"
 for /f "tokens=1,2 delims=x" %%a in ('exiftool -T -d %%Y%%m%%d_%%H%%M%%S -CreateDate "%%a"') do (
 set "timestamp=%%a"
 )
 setlocal enabledelayedexpansion
 set "targetfolder=%targetfolder%!sourcepath:%sourcefolder%=!"
 ffmpeg -v quiet -i "!sourcefile!" -vf scale=256x256 -q:v 1 "!targetfolder!!timestamp!_!targetfile!"
 endlocal
 set /A nfile+=1
)
echo Done! Converted %nfile% file(s)