
Recherche avancée
Autres articles (17)
-
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. -
Gestion générale des documents
13 mai 2011, parMédiaSPIP ne modifie jamais le document original mis en ligne.
Pour chaque document mis en ligne il effectue deux opérations successives : la création d’une version supplémentaire qui peut être facilement consultée en ligne tout en laissant l’original téléchargeable dans le cas où le document original ne peut être lu dans un navigateur Internet ; la récupération des métadonnées du document original pour illustrer textuellement le fichier ;
Les tableaux ci-dessous expliquent ce que peut faire MédiaSPIP (...) -
Les vidéos
21 avril 2011, parComme les documents de type "audio", Mediaspip affiche dans la mesure du possible les vidéos grâce à la balise html5 .
Un des inconvénients de cette balise est qu’elle n’est pas reconnue correctement par certains navigateurs (Internet Explorer pour ne pas le nommer) et que chaque navigateur ne gère en natif que certains formats de vidéos.
Son avantage principal quant à lui est de bénéficier de la prise en charge native de vidéos dans les navigateur et donc de se passer de l’utilisation de Flash et (...)
Sur d’autres sites (5628)
-
Screencasting with hardware-accelerated gnome-3 [closed]
30 octobre 2012, par JeroenI am running Ubuntu 12.04 with gnome 3 shell, and I would like to create a screencast. I have tried using recordMyDesktop, Kazam Screencaster, and ffmpeg but all suffer from the same problem, which I think has to do with hardware acceleration in Gnome 3. The recorded videos all get very glitchy with blue space for all operations that use some sort of effect. Here is an example recording : http://www.stat.ucla.edu/ jeroen/files/screencast.mkv.
The only method that does not seem to suffer from this, is the (largely undocumented) CTRL+SHIFT+R shortcut in gnome 3 that will start a recording. However, this feature is very buggy otherwise and often crashes when I enable audio input.
My machine has a GeForce GT 120 with Apple LED Cinema monitor. I am using the proprietary nvidia drivers that ship with Ubuntu 12.04. Is there any way I can record the video as it appears on my screen ? I know I can avoid the problem by switching to gnome2 or unity 2d or anything that does not use effects, but I would prefer to make the recordings in my regular gnome 3 environment.
-
"Invalid data found when processing input" no matter the FFMPEG configuration
25 mars 2017, par Jamie BonnettI’ve been stumped on this for a while now, no matter the configuration if use in NodeJS I always get the same error "Error : ffmpeg exited with code 1".
Here’s my code :
var http = require('http');
var fs = require('fs');
var ffmpeg = require('fluent-ffmpeg');
var server = http.createServer(function(req, res) {
var seektime = 100;
var pathToMovie = __dirname + '/src/video.mp4';
var stat = fs.statSync(pathToMovie);
res.writeHead(200, {
'Content-Type': 'video/mp4',
'Content-Length': stat.size
});
var proc = new ffmpeg(pathToMovie)
.seekInput(seektime)
.withVideoBitrate(1024)
.withVideoCodec('libx264')
.withAspect('16:9')
.withFps(24)
.toFormat('mp4');
var ffstream = proc.pipe(res, {end:true});
ffstream.on('data', function(chunk) {
console.log('ffmpeg just wrote ' + chunk.length + ' bytes');
});
});
server.listen(8000);I have no idea what to do now. Any ideas ?
Thanks,
Jamie -
Android ffmpeg using
6 juin 2012, par Vardan GevorgyanI have successfully compiled ffmpeg for android.
I have wrote simple application which just open mp4 file :int main(int argc, char * argv[])
{
av_register_all();
__android_log_write(ANDROID_LOG_INFO, "NDK", "Opening file: /sdcard/test.mp4...");
if (avformat_open_input(&pFormatCtx, "/sdcard/test.mp4", NULL, NULL) != 0) {
__android_log_write(ANDROID_LOG_INFO, "NDK", "file not opened\n");
return -1;
}
__android_log_write(ANDROID_LOG_INFO, "NDK", "file opened\n");
}When I run this code the C code crashes here :
06-06 18:22:42.629: I/DEBUG(31): #00 pc 00159804 /data/data libffmpeg.so
06-06 18:22:42.629: I/DEBUG(31): #01 lr 809465dc /data/data libffmpeg.sondk-stack write :
Stack frame #00 pc 00159804 /data/data/.../lib/libffmpeg.so: Routine av_opt_set_dict in libavutil/opt.c:552
Which is av_opt_set_dict function :
int av_opt_set_dict(void *obj, AVDictionary **options)
{
AVDictionaryEntry *t = NULL;
AVDictionary *tmp = NULL;
int ret = 0;
while ((t = av_dict_get(*options, "", t, AV_DICT_IGNORE_SUFFIX))) {
ret = av_set_string3(obj, t->key, t->value, 1, NULL);
if (ret == AVERROR_OPTION_NOT_FOUND)
av_dict_set(&tmp, t->key, t->value, 0);
else if (ret < 0) {
av_log(obj, AV_LOG_ERROR, "Error setting option %s to value %s.\n", t->key, t->value);
break;
}
ret = 0;
}
av_dict_free(options);
*options = tmp;
return ret;
}552 line is :
while ((t = av_dict_get(*options, "", t, AV_DICT_IGNORE_SUFFIX))) {
This code working on my linux machine (of course with .so for linux, for android I use ndk built .so file), but not under android.
Also, it's working on my rooted HTC Desire Z, but not on emulator or un-rooted device.
Here I found the post that I need to change libavformat/file.c file_check function :
static int file_check(URLContext *h, int mask)
{
struct stat st;
int ret = stat(h->filename, &st);
if (ret < 0)
return AVERROR(errno);
ret |= st.st_mode&S_IRUSR ? mask&AVIO_FLAG_READ : 0;
ret |= st.st_mode&S_IWUSR ? mask&AVIO_FLAG_WRITE : 0;
return ret;
}to
static int file_check(URLContext *h, int mask)
{
struct stat st;
int ret = stat(h->filename, &st);
if (ret < 0)
return AVERROR(errno);
ret |= st.st_mode&S_IRUSR ? mask&AVIO_FLAG_READ : 0;
ret |= st.st_mode&S_IRGRP ? mask&AVIO_FLAG_READ : 0;
ret |= st.st_mode&S_IROTH ? mask&AVIO_FLAG_READ : 0;
ret |= st.st_mode&S_IWUSR ? mask&AVIO_FLAG_WRITE : 0;
ret |= st.st_mode&S_IWGRP ? mask&AVIO_FLAG_WRITE : 0;
ret |= st.st_mode&S_IWOTH ? mask&AVIO_FLAG_WRITE : 0;
return ret;
}but it wasn't help.
Any suggestions ?
Thanks