
Recherche avancée
Médias (91)
-
Les Miserables
9 décembre 2019, par
Mis à jour : Décembre 2019
Langue : français
Type : Textuel
-
VideoHandle
8 novembre 2019, par
Mis à jour : Novembre 2019
Langue : français
Type : Video
-
Somos millones 1
21 juillet 2014, par
Mis à jour : Juin 2015
Langue : français
Type : Video
-
Un test - mauritanie
3 avril 2014, par
Mis à jour : Avril 2014
Langue : français
Type : Textuel
-
Pourquoi Obama lit il mes mails ?
4 février 2014, par
Mis à jour : Février 2014
Langue : français
-
IMG 0222
6 octobre 2013, par
Mis à jour : Octobre 2013
Langue : français
Type : Image
Autres articles (104)
-
Soumettre améliorations et plugins supplémentaires
10 avril 2011Si vous avez développé une nouvelle extension permettant d’ajouter une ou plusieurs fonctionnalités utiles à MediaSPIP, faites le nous savoir et son intégration dans la distribution officielle sera envisagée.
Vous pouvez utiliser la liste de discussion de développement afin de le faire savoir ou demander de l’aide quant à la réalisation de ce plugin. MediaSPIP étant basé sur SPIP, il est également possible d’utiliser le liste de discussion SPIP-zone de SPIP pour (...) -
Emballe médias : à quoi cela sert ?
4 février 2011, parCe plugin vise à gérer des sites de mise en ligne de documents de tous types.
Il crée des "médias", à savoir : un "média" est un article au sens SPIP créé automatiquement lors du téléversement d’un document qu’il soit audio, vidéo, image ou textuel ; un seul document ne peut être lié à un article dit "média" ; -
ANNEXE : Les plugins utilisés spécifiquement pour la ferme
5 mars 2010, parLe site central/maître de la ferme a besoin d’utiliser plusieurs plugins supplémentaires vis à vis des canaux pour son bon fonctionnement. le plugin Gestion de la mutualisation ; le plugin inscription3 pour gérer les inscriptions et les demandes de création d’instance de mutualisation dès l’inscription des utilisateurs ; le plugin verifier qui fournit une API de vérification des champs (utilisé par inscription3) ; le plugin champs extras v2 nécessité par inscription3 (...)
Sur d’autres sites (11453)
-
Anomalie #4348 : php 7.4 alpha1
27 août 2019, par Franck DSuper bonne nouvelle, il n’y a presque plus de différence concernant les tests unitaire en php 7.4 et 7.1 / 7.2 / 7.3
22 erreurs contre 19 pour les autres :)
Installation en MysqlJe vais mettre uniquement ceux donc j’ai un message de php, pour les autres, je pense que le mieux, c’est de voir plus tard
session.html : erreur
Warning : Illegal string offset ’id_auteur’ in C :\laragon\www\test3\ecrire\public\evaluer_page.php(51) : eval()’d code on line 6
Notice : Uninitialized string offset : 0 in C :\laragon\www\test3\ecrire\public\evaluer_page.php(51) : eval()’d code on line 6
Warning : Illegal string offset ’nom’ in C :\laragon\www\test3\ecrire\public\evaluer_page.php(51) : eval()’d code on line 8
Notice : Uninitialized string offset : 0 in C :\laragon\www\test3\ecrire\public\evaluer_page.php(51) : eval()’d code on line 8extraire_attribut.php : erreur
Warning : preg_match() : Empty regular expression in C :\laragon\www\test3\ecrire\inc\filtres.php on line 1845
Warning : preg_match() : Empty regular expression in C :\laragon\www\test3\ecrire\inc\filtres.php on line 1845balise_session.php : erreur
Exception : Test_balise_session_set -> testSessionSet -> Unexpected PHP Error [session_start() : Cannot start session when headers already sent] severity [2] in [C :\laragon\www\test3\ecrire\inc\session.php line 706]
BOUM !!! - Passes : 11, Failures : 0, Exceptions : 1, Non Applicable : 0
Warning : session_start() : Cannot start session when headers already sent in C :\laragon\www\test3\ecrire\inc\session.php on line 706autoriser.php : erreur
Exception : Test_balise_autoriser -> testAutoriserVerifAuteur -> Unexpected PHP Error [Illegal string offset ’id_auteur’] severity [2] in [C :\laragon\www\test3\tests\unit\simpletest\dist\balises\autoriser.php line 44]
Exception : Test_balise_autoriser -> testAutoriserVerifAuteur -> Unexpected PHP Error [Uninitialized string offset : 0] severity [8] in [C :\laragon\www\test3\tests\unit\simpletest\dist\balises\autoriser.php line 44]
Exception : Test_balise_autoriser -> testAutoriserVerifAuteur -> Unexpected PHP Error [Illegal string offset ’id_auteur’] severity [2] in [C :\laragon\www\test3\tests\unit\simpletest\dist\balises\autoriser.php line 49]
Exception : Test_balise_autoriser -> testAutoriserVerifAuteur -> Unexpected PHP Error [Uninitialized string offset : 0] severity [8] in [C :\laragon\www\test3\tests\unit\simpletest\dist\balises\autoriser.php line 49]
Exception : Test_balise_autoriser -> testAutoriserVerifAuteur -> Unexpected PHP Error [Illegal string offset ’id_auteur’] severity [2] in [C :\laragon\www\test3\tests\unit\simpletest\dist\balises\autoriser.php line 44]
Exception : Test_balise_autoriser -> testAutoriserVerifAuteur -> Unexpected PHP Error [Uninitialized string offset : 0] severity [8] in [C :\laragon\www\test3\tests\unit\simpletest\dist\balises\autoriser.php line 44]
Exception : Test_balise_autoriser -> testAutoriserVerifAuteur -> Unexpected PHP Error [Illegal string offset ’id_auteur’] severity [2] in [C :\laragon\www\test3\tests\unit\simpletest\dist\balises\autoriser.php line 50]
Exception : Test_balise_autoriser -> testAutoriserVerifAuteur -> Unexpected PHP Error [Uninitialized string offset : 0] severity [8] in [C :\laragon\www\test3\tests\unit\simpletest\dist\balises\autoriser.php line 50]
Exception : Test_balise_autoriser -> testAutoriserVerifAuteur -> Unexpected PHP Error [A non-numeric value encountered] severity [2] in [C :\laragon\www\test3\tests\unit\simpletest\dist\balises\autoriser.php line 50]
BOUM !!! - Passes : 12, Failures : 0, Exceptions : 9, Non Applicable : 000_sql_create_drop_view.php : erreur
Notice : Undefined index : field in C :\laragon\www\test3\tests\unit\sql\00_sql_create_drop_view.php on line 36
Notice : Undefined index : key in C :\laragon\www\test3\tests\unit\sql\00_sql_create_drop_view.php on line 37
Notice : Undefined index : field in C :\laragon\www\test3\tests\unit\sql\00_sql_create_drop_view.php on line 36
Notice : Undefined index : key in C :\laragon\www\test3\tests\unit\sql\00_sql_create_drop_view.php on line 37
Notice : Undefined index : field in C :\laragon\www\test3\tests\unit\sql\00_sql_create_drop_view.php on line 36
Notice : Undefined index : key in C :\laragon\www\test3\tests\unit\sql\00_sql_create_drop_view.php on line 37
Warning : count() : Parameter must be an array or an object that implements Countable in C :\laragon\www\test3\tests\test.inc on line 83
Warning : count() : Parameter must be an array or an object that implements Countable in C :\laragon\www\test3\tests\test.inc on line 83
Warning : count() : Parameter must be an array or an object that implements Countable in C :\laragon\www\test3\tests\test.inc on line 83
Warning : count() : Parameter must be an array or an object that implements Countable in C :\laragon\www\test3\tests\test.inc on line 83
Warning : count() : Parameter must be an array or an object that implements Countable in C :\laragon\www\test3\tests\test.inc on line 83
Warning : count() : Parameter must be an array or an object that implements Countable in C :\laragon\www\test3\tests\test.inc on line 83
Lecture des structures de table en echec10_sql_insert_select.php : erreur
Champ maj sur update
Le champ ’maj’ () n’a vraisemblablement pas recu de timestamp à l’insertion
Le champ ’maj’ () n’a vraisemblablement pas été mis a jour lors de l’update
Le champ ’maj’ () n’a vraisemblablement pas été mis a jour lors de l’updateq
Selections multi tables
selection sur 2 tables avec where en echec : attendu 3 reponses, présentes :30_sql_alter.php : erreur
Notice : Undefined index : field in C :\laragon\www\test3\tests\unit\sql\30_sql_alter.php on line 54
Notice : Trying to access array offset on value of type null in C :\laragon\www\test3\tests\unit\sql\30_sql_alter.php on line 54
Alter : drop column
sql_alter rate DROP COLUMN (plus de table ou sql_showtable en erreur ?)
sql_alter rate DROP sans COLUMN (plus de table ou sql_showtable en erreur ?)
sql_alter rate CHANGE (plus de table ou sql_showtable en erreur ?)
sql_alter rate MODIFY varchar en text :
sql_alter rate ADD COLUMN houba (plus de table ou sql_showtable en erreur ?)
sql_alter rate ADD COLUMN hop AFTER (plus de table ou sql_showtable en erreur ?)Alter : renomme table
sql_alter rate RENAME tableAlter : index
sql_alter rate DROP INDEX sons (plus de table ou sql_showtable en erreur ?)
sql_alter rate ADD INDEX (wouaf) (plus de table ou sql_showtable en erreur ?)
sql_alter rate ADD INDEX pluie (grrrr) (plus de table ou sql_showtable en erreur ?)
sql_alter rate DROP INDEX pluie (plus de table ou sql_showtable en erreur ?)
sql_alter rate ADD INDEX dring (grrrr, wouaf) (plus de table ou sql_showtable en erreur ?)
Alter : primary key
sql_alter rate DROP PRIMARY KEY (plus de table ou sql_showtable en erreur ?)
sql_alter rate ADD PRIMARY KEY (plus de table)
Alter : multiples
sql_alter rate DROP INDEX dring, DROP COLUMN wouaf, DROP COLUMN grrrr (plus de table ou sql_showtable en erreur ?)
sql_alter rate ADD COLUMN a INT, ADD COLUMN b INT, ADD COLUMN c INT, ADD INDEX abc (a,b,c) (plus de table ou sql_showtable en erreur ?) -
Trim video and extract thumbnail simultaneously
12 septembre 2019, par RobinI am using the following two codes for ffmpeg.
Trim Video :
ffmpeg -i input.mp4 -ss 0 -t 100 -c copy -f mp4 output.mp4
Create Thumbnail :
ffmpeg -i input.mp4 -ss 1 -vframes 1 -f mjpeg output
Which works as expected and is super fast, but when I combine the two like so :
ffmpeg -i input.mp4 -ss 0 -t 100 -c copy -f mp4 output.mp4 -i input.mp4 -ss 1 -vframes 1 -f mjpeg output.jpeg
ffmpeg
runs a re-encoding copy rather than using-c copy
. I really would like to execute both of these functions in a singleffmpeg
command.Below is the output from terminal when it is generating the thumbnail, which is where it appears the re-encoding is happening.
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
encoder : Lavf57.83.100
Stream #1:0(und): Video: mjpeg, yuvj420p(pc), 1280x720 [SAR 1:1 DAR 16:9], q=2-31, 200 kb/s, 25 fps, 25 tbn, 25 tbc (default)
Metadata:
creation_time : 1970-01-01T00:00:00.000000Z
handler_name : VideoHandler
encoder : Lavc57.107.100 mjpeg
Side data:
cpb: bitrate max/min/avg: 0/0/200000 buffer size: 0 vbv_delay: -1
frame= 324 fps=0.0 q=-1.0 q=6.3 size= 1792kB time=00:00:12.94 bitrate=1133.7kbits/s dup=0 drop=285 speed=2
frame= 661 fps=660 q=-1.0 q=6.3 size= 4096kB time=00:00:26.43 bitrate=1269.5kbits/s dup=0 drop=622 speed=2
frame= 1013 fps=674 q=-1.0 q=6.3 size= 6912kB time=00:00:40.51 bitrate=1397.7kbits/s dup=0 drop=974 speed=
frame= 1356 fps=677 q=-1.0 q=6.3 size= 8704kB time=00:00:54.22 bitrate=1314.9kbits/s dup=0 drop=1317 speed=
frame= 1694 fps=677 q=-1.0 q=6.3 size= 11264kB time=00:01:07.75 bitrate=1361.9kbits/s dup=0 drop=1655 speed=
frame= 2031 fps=676 q=-1.0 q=6.3 size= 14080kB time=00:01:21.23 bitrate=1419.8kbits/s dup=0 drop=1992 speed=
frame= 2360 fps=673 q=-1.0 q=6.3 size= 16384kB time=00:01:34.37 bitrate=1422.1kbits/s dup=0 drop=2321 speed=
frame= 2511 fps=672 q=-1.0 Lq=6.3 size= 17695kB time=00:01:40.40 bitrate=1443.8kbits/s dup=0 drop=2474 speed=26.9x
video:13036kB audio:4684kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown -
Making a timelapse by drag and drop - A rebuild of an old script using ImageMagick
14 août 2019, par cursor_majorI have written an apple script previously to automate a task I do in my work many times.
I shoot Raw + JPG in camera, copy to hard drive.
I then drag named and dated folder eg. "2019_08_14_CAM_A_CARD_01" on to an automator app and it divides the files in to folders "NEF" and "JPG" respectively.
I then drag the appropriate "JPG" folder onto my Timelapse app and it runs the image sequence process in QT7 and then saves the file with the parent folder name in the grandparent folder. This keeps things super organised for when I want to re link to the original RAW files.
[code below]
It is a 2 step process and works well for my needs, however, Apple are going to be resigning Quicktime 7 Pro so my app has a foreseeable end of life.
I want to take this opportunity to refine and improve the process using terminal and ImageMagick.
I have managed to work some code that runs well in terminal, but I have to navigate to the folder first then run a script. It doesn’t do the file renaming and doesn’t save in the right place.
Also, when I try and run the simple script in an automator ’App’ it throws up errors even before trying to add anything clever with the file naming.
Later, once I have recreated my timelapse. maker app I want to get clever with more of ImageMagicks commands and overlay a small super of the original frame name in the corner so I can expedite my reconnecting workflow.
I’m sorry, I’m a photographer not a coder but I’ve been bashing my head trying to work this out and I’ve hit a brick wall.
File Sorter
repeat with d in dd
do shell script "d=" & d's POSIX path's quoted form & "
cd \"$d\" || exit
mkdir -p {MOV,JPG,NEF,CR2}
find . -type f -depth 1 -iname '*.mov' -print0 | xargs -0 -J % mv % MOV
find . -type f -depth 1 -iname '*.cr2' -print0 | xargs -0 -J % mv % CR2
find . -type f -depth 1 -iname '*.jpg' -print0 | xargs -0 -J % mv % JPG
find . -type f -depth 1 -iname '*.nef' -print0 | xargs -0 -J % mv % NEF
for folder in `ls`;
do if [ `ls $folder | wc -l` == 0 ]; then
rmdir $folder;
fi; done;
"
end repeat
end open```
Timelapse Compiler
```on run {input, parameters}
repeat with d in input
set d to d's contents
tell application "Finder"
set seq1 to (d's file 1 as alias)
set dparent to d's container as alias
set mov to "" & dparent & (dparent's name) & ".mov"
end tell
tell application "QuickTime Player 7"
activate
open image sequence seq1 frames per second 25
tell document 1
with timeout of 500 seconds
save self contained in file mov
end timeout
quit
end tell
end tell
end repeat
return input
end run```
Current code that runs from within Terminal after I have navigated to folder of JPGs
```ffmpeg -r 25 -f image2 -pattern_type glob -i '*.JPG' -codec:v prores_ks -profile:v 0 imagemagick_TL_Test_01.mov```