
Recherche avancée
Médias (1)
-
SPIP - plugins - embed code - Exemple
2 septembre 2013, par
Mis à jour : Septembre 2013
Langue : français
Type : Image
Autres articles (71)
-
Personnaliser en ajoutant son logo, sa bannière ou son image de fond
5 septembre 2013, parCertains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;
-
Ecrire une actualité
21 juin 2013, parPrésentez les changements dans votre MédiaSPIP ou les actualités de vos projets sur votre MédiaSPIP grâce à la rubrique actualités.
Dans le thème par défaut spipeo de MédiaSPIP, les actualités sont affichées en bas de la page principale sous les éditoriaux.
Vous pouvez personnaliser le formulaire de création d’une actualité.
Formulaire de création d’une actualité Dans le cas d’un document de type actualité, les champs proposés par défaut sont : Date de publication ( personnaliser la date de publication ) (...) -
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
Sur d’autres sites (13389)
-
Revision 4383 : Deux petits bugs visuels ... Si pas de document => pas de logos de ...
6 novembre 2010, par kent1 — LogDeux petits bugs visuels ... Si pas de document => pas de logos de documents => on essaye avec le logo de l’article sinon une image normale => on la retaille bien avec la mini-icone si possible ... un caractère "[" qui trainait
-
Why is the audio recording on Chrome missing duration
16 août 2019, par Ivan SedelkinI’m sending some user created audio to a server which later passes it to googles speech to text api for transcription. Everything works perfectly on firefox but when I try it on Chrome it doesn’t work. I then installed FFmpeg to check if the metadata somehow changed for the file on chrome and noticed that the duration on the file is tagged "N/A". This does not happen on firefox.
This is the audio recorded from Chrome
Input #0, matroska,webm, from 'PATH_TO_FILE':
Metadata:
encoder : Chrome
Duration: N/A, start: 0.000000, bitrate: N/A
Stream #0:0(eng): Audio: opus, 48000 Hz, mono, fltp (default)This is the audio recorded from Firefox
Input #0, ogg, from 'PATH_TO_FILE':
Duration: 00:00:01.26, start: 0.000000, bitrate: 53 kb/s
Stream #0:0: Audio: opus, 48000 Hz, mono, fltp
Metadata:
ENCODER : Mozilla68.0The audio itself is recorded using the mediarecorder-api where the blob is later converted to base64-url and sent to my server.
This is the code that I use to record the audio :
navigator.mediaDevices
.getUserMedia(
// constraints - only audio needed for this app
{
audio: true
}
)
// Success callback
.then(function(stream) {
console.log(navigator.mediaDevices.getSupportedConstraints());
var mediaRecorder = new MediaRecorder(stream, { sampleRate: 44100 });
var chunks = [];
$(".rec-button")
.mousedown(function() {
console.log("rec start");
$(".rec-button i").addClass("recStart");
mediaRecorder.start();
console.log(mediaRecorder.state);
console.log("recorder started");
})
.mouseup(function() {
console.log("rec end");
$(".rec-button i").removeClass("recStart");
mediaRecorder.stop();
mediaRecorder.ondataavailable = function(e) {
chunks.push(e.data);
var blob = new Blob(chunks, { type: "audio/ogg; codecs=opus" });
var player = document.getElementById("player");
player.src = URL.createObjectURL(blob);
chunks = [];
var reader = new window.FileReader();
reader.readAsDataURL(blob);
reader.onloadend = function() {
var base64 = reader.result;
var audioArr = {
audio: base64
};
$.ajax({
url: "http://localhost:4242/api/1.0/post",
type: "POST",
contentType: "application/json",
dataType: "json",
data: JSON.stringify(audioArr),
success: function(response) {
console.log(response);
},
error: function(err) {
console.log(err);
}
});
};
console.log(mediaRecorder.state);
console.log("recorder stopped");
};
});
})
// Error callback
.catch(function(err) {
console.log("The following getUserMedia error occured: " + err);
});My goal is that the audio file recorded from chrome has a duration so that the google api can transcribe it. If you guys have any way of overcoming this problem I would be grateful
-
JW Player can't play mp4 video downloaded from youtube
20 janvier 2015, par kheyaI have doenloaded am mp4 video using IE Realplayer plugin from youtube.
https://www.youtube.com/watch?v=e3a80c5Ar3YI have a test site on my local machine where I have HTML5 JW Player.
I download the video and then play locally using realplay to see if it plays.
I notice that not all mp4 downloads from youtube plays in Realplayer.
The ones that play in Realplayer also play in JW Player on local website.
But the mp4 files that don’t play in Realplayer also don’t play in JW player.This is the error I get in the player :
the video playback was aborted due to a corruption problem or because the video used features your browser didnot support mylocalsite/xyz.mp4 undefinedI tested IE, FF, Chrome. It works nowhere.
Here is my jw player setup and html :
<video src="mylocalsite/test.mp4" type="video/mp4" poster="mylocalsite/test.jpg" width="640" height="360"></video>
player setup :
var modes = '';
var swfPath = '/content/jw/player.swf';
if (navigator.userAgent.toLowerCase().match(/(android)/) || navigator.userAgent.toLowerCase().match(/(chrom)/)) {
modes = [{ type: 'flash', src: swfPath }, { type: "html5"}];
} else {
modes = [{ type: 'html5' }, { type: 'flash', src: swfPath }, { type: "download"}];
}
jwplayer('container').setup({
'flashplayer': swfPath,
'width': '640',
'height': '360',
'provider': 'video',
'modes': modes,
});Here is the details info about the file returned by ffmpeg :
ffmpeg version 1.1.4 Copyright (c) 2000-2013 the FFmpeg developers
built on Jul 31 2013 02:49:36 with gcc 4.6.2 (GCC)
configuration: --prefix=/c/Users/Administrator/ffmpeg --extra-cflags=-I/c/User
s/Administrator/ffmpeg/include --extra-ldflags=-L/c/Users/Administrator/ffmpeg/l
ib --cpu=i686 --enable-gpl --enable-libfdk-aac --enable-libx264 --enable-nonfree
libavutil 52. 13.100 / 52. 13.100
libavcodec 54. 86.100 / 54. 86.100
libavformat 54. 59.106 / 54. 59.106
libavdevice 54. 3.102 / 54. 3.102
libavfilter 3. 32.100 / 3. 32.100
libswscale 2. 1.103 / 2. 1.103
libswresample 0. 17.102 / 0. 17.102
libpostproc 52. 2.100 / 52. 2.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'C:\videos\woh.mp4':
Metadata:
major_brand : dash
minor_version : 0
compatible_brands: iso6avc1mp41
creation_time : 2013-09-08 23:34:28
Duration: 00:03:50.96, start: 0.000000, bitrate: 189 kb/s
Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 480x360,
187 kb/s, 25 tbr, 90k tbn, 50 tbc
Metadata:
creation_time : 2013-09-08 23:34:28
handler_name : VideoHandlerWhat can be causing this issue ?