
Advanced search
Medias (91)
-
MediaSPIP Simple : futur thème graphique par défaut?
26 September 2013, by
Updated: October 2013
Language: français
Type: Video
-
avec chosen
13 September 2013, by
Updated: September 2013
Language: français
Type: Picture
-
sans chosen
13 September 2013, by
Updated: September 2013
Language: français
Type: Picture
-
config chosen
13 September 2013, by
Updated: September 2013
Language: français
Type: Picture
-
SPIP - plugins - embed code - Exemple
2 September 2013, by
Updated: September 2013
Language: français
Type: Picture
-
GetID3 - Bloc informations de fichiers
9 April 2013, by
Updated: May 2013
Language: français
Type: Picture
Other articles (74)
-
Organiser par catégorie
17 May 2013, byDans MédiaSPIP, une rubrique a 2 noms : catégorie et rubrique.
Les différents documents stockés dans MédiaSPIP peuvent être rangés dans différentes catégories. On peut créer une catégorie en cliquant sur "publier une catégorie" dans le menu publier en haut à droite ( après authentification ). Une catégorie peut être rangée dans une autre catégorie aussi ce qui fait qu’on peut construire une arborescence de catégories.
Lors de la publication prochaine d’un document, la nouvelle catégorie créée sera proposée (...) -
Création définitive du canal
12 March 2010, byLorsque votre demande est validée, vous pouvez alors procéder à la création proprement dite du canal. Chaque canal est un site à part entière placé sous votre responsabilité. Les administrateurs de la plateforme n’y ont aucun accès.
A la validation, vous recevez un email vous invitant donc à créer votre canal.
Pour ce faire il vous suffit de vous rendre à son adresse, dans notre exemple "http://votre_sous_domaine.mediaspip.net".
A ce moment là un mot de passe vous est demandé, il vous suffit d’y (...) -
Le profil des utilisateurs
12 April 2011, byChaque utilisateur dispose d’une page de profil lui permettant de modifier ses informations personnelle. Dans le menu de haut de page par défaut, un élément de menu est automatiquement créé à l’initialisation de MediaSPIP, visible uniquement si le visiteur est identifié sur le site.
L’utilisateur a accès à la modification de profil depuis sa page auteur, un lien dans la navigation "Modifier votre profil" est (...)
On other websites (5931)
-
Reading file metadata in nodejs with ffmetadata and fs returns undefined
10 November 2020, by CitanafI cant seem to get this right. I am attempting to read a file's metadata (title) with ffmetadata via a loop on the folder using fs. I would then like to push those properties into an object array called files. If I place the push method inside the ffmetadata, it throws a "push is not a function" error. If I place the push method outside ffmetadata, but inside readdirSync, the object gets created, but the titles are undefined.


I think I'm running into a asynchronous issue or a variable scope issue? I've place several Console.logs over this and the return from the metadata returns after code that comes well after this section.


Any help is appreciated.


var path = './AudioFiles/'
var files = [];
var fTitle

//Read list of files
fs.readdirSync(path).forEach((file) => {
 ffmetadata.read(path + file, function(err, data){
 if (err) console.error("Error reading metadata", err);
 else {
 fTitle = data.title
 }
 })
 files.push({name:file.replace('.mp3',''),title:fTitle})
})



This is what I am receiving:


files = [{name:"myFile1",title:undefined},{name:"myFile2",title:undefined}...]



I am expecting the below results:


files = [{name:"myFile1",title:"myFile1Title"},{name:"myFile2",title:"myFile2Title"}...]



-
avutil/log: added av_log_format_line2 which returns buffer length
27 April 2016, by Andreas Weisavutil/log: added av_log_format_line2 which returns buffer length
The new function behaves the same as av_log_format_line, but also forwards
the return value from the underlying snprintf call. This will allow
callers to accurately determine the size requirements for the line buffer.Signed-off-by: Andreas Weis <github@ghulbus-inc.de>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> -
python imageio.get_reader() returns odd exception
17 August 2020, by tristan_jiaimport imageio

reader = imageio.get_reader("./t.mp4")



As shown above, with python 3.6.10, it returns:


>>> reader = imageio.get_reader("../")
Traceback (most recent call last):
 File "<stdin>", line 1, in <module>
 File "/home/tristan_jia/workspace/py3.6/venv/lib/python3.6/site-packages/imageio/core/functions.py", line 129, in get_reader
 return format.get_reader(request)
 File "/home/tristan_jia/workspace/py3.6/venv/lib/python3.6/site-packages/imageio/core/format.py", line 168, in get_reader
 return self.Reader(self, request)
 File "/home/tristan_jia/workspace/py3.6/venv/lib/python3.6/site-packages/imageio/core/format.py", line 217, in __init__
 self._open(**self.request.kwargs.copy())
 File "/home/tristan_jia/workspace/py3.6/venv/lib/python3.6/site-packages/imageio/plugins/ffmpeg.py", line 357, in _open
 self._initialize()
 File "/home/tristan_jia/workspace/py3.6/venv/lib/python3.6/site-packages/imageio/plugins/ffmpeg.py", line 430, in _initialize
 shell=ISWIN)
 File "/usr/lib64/python3.6/subprocess.py", line 729, in __init__
 restore_signals, start_new_session)
 File "/usr/lib64/python3.6/subprocess.py", line 1364, in _execute_child
 raise child_exception_type(errno_num, err_msg, err_filename)
OSError: [Errno 8] Exec format error: '/home/tristan_jia/.imageio/ffmpeg/ffmpeg-linux64-v3.3.1'

</module></stdin>


I searched everywhere but haven't seen any similar questions. The script runs on Opensuse Leap 15.1, is it related to the system I use?