
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 (13)
-
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 -
Contribute to a better visual interface
13 avril 2011MediaSPIP is based on a system of themes and templates. Templates define the placement of information on the page, and can be adapted to a wide range of uses. Themes define the overall graphic appearance of the site.
Anyone can submit a new graphic theme or template and make it available to the MediaSPIP community. -
Other interesting software
13 avril 2011, parWe don’t claim to be the only ones doing what we do ... and especially not to assert claims to be the best either ... What we do, we just try to do it well and getting better ...
The following list represents softwares that tend to be more or less as MediaSPIP or that MediaSPIP tries more or less to do the same, whatever ...
We don’t know them, we didn’t try them, but you can take a peek.
Videopress
Website : http://videopress.com/
License : GNU/GPL v2
Source code : (...)
Sur d’autres sites (4545)
-
Reading file metadata in nodejs with ffmetadata and fs returns undefined
10 novembre 2020, par 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 avril 2016, par 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 août 2020, par 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 ?