
Recherche avancée
Autres articles (83)
-
Amélioration de la version de base
13 septembre 2013Jolie sélection multiple
Le plugin Chosen permet d’améliorer l’ergonomie des champs de sélection multiple. Voir les deux images suivantes pour comparer.
Il suffit pour cela d’activer le plugin Chosen (Configuration générale du site > Gestion des plugins), puis de configurer le plugin (Les squelettes > Chosen) en activant l’utilisation de Chosen dans le site public et en spécifiant les éléments de formulaires à améliorer, par exemple select[multiple] pour les listes à sélection multiple (...) -
Menus personnalisés
14 novembre 2010, parMediaSPIP utilise le plugin Menus pour gérer plusieurs menus configurables pour la navigation.
Cela permet de laisser aux administrateurs de canaux la possibilité de configurer finement ces menus.
Menus créés à l’initialisation du site
Par défaut trois menus sont créés automatiquement à l’initialisation du site : Le menu principal ; Identifiant : barrenav ; Ce menu s’insère en général en haut de la page après le bloc d’entête, son identifiant le rend compatible avec les squelettes basés sur Zpip ; (...) -
Gestion de la ferme
2 mars 2010, parLa ferme est gérée dans son ensemble par des "super admins".
Certains réglages peuvent être fais afin de réguler les besoins des différents canaux.
Dans un premier temps il utilise le plugin "Gestion de mutualisation"
Sur d’autres sites (7423)
-
HTTP Header for Duration of a MP4 for HTML 5 video
9 mars 2014, par MustafaI am trying to stream MP4 video as it is encoded from a webserver. I believe I used the appropriate flags, but it is not working correctly. When I download the video from my stream and open it with VLC, it properly shows the duration. Since a socket is not seekable, I assume it writes the metadata to end ? My Chrome browser always shows 8 seconds duration. The first 8 seconds plays at the normal speed, but afterwards the pause button turns into play button and the video plays very fast, probably as fast as it is recieved. However the audio is played at normal speed. I tried
document.getElementById('myVid').duration = 20000
but it is a readonly field.I wonder, is there anyway to explicitly state the duration in HTTP headers or in any other way ? I cannot find any documentation about it.
ffmpeg -i - -vcodec libx264 -acodec libvo_aacenc -ar 44100 -ac 2 -ab 128000 -f mp4 -movflags frag_keyframe+faststart pipe:1 -fflags +genpts -re -profile baseline -level 30 -preset fast
To close-voters, that thinks it is not programming related, I use it in my own server I coded, and I need to set the duration programatically via JavaScript or setting the HTTP header. I believe it may be related to both ffmpeg or http headers, that's why I posted it here.
app.get("/video/*", function(req,res){
res.writeHead(200, {
'Content-Type': 'video/mp4',
});
var dir = req.url.split("/").splice(2).join("/");
var buf = new Buffer(dir, 'base64');
var src = buf.toString();
var Transcoder = require('stream-transcoder');
var stream = fs.createReadStream(src);
// I added my own flags to this module, they are at below:
new Transcoder(stream)
.videoCodec('libx264')
.audioCodec("libvo_aacenc")
.sampleRate(44100)
.channels(2)
.audioBitrate(128 * 1000)
.format('mp4')
.on('finish', function() {
console.log("finished");
})
.stream().pipe(res);
});exec function in that stream-transcoder module,
a.push("-fflags");
a.push("+genpts");
a.push("-re");
a.push("-profile");
a.push("baseline");
a.push("-level");
a.push("30");
a.push("-preset");
a.push("fast");
a.push("-strict");
a.push("experimental");
a.push("-frag_duration");
a.push("" + 2 * (1000 * 1000));
var child = spawn('ffmpeg', a, {
cwd: os.tmpdir()
}); -
ffmpeg mp4 shows blurred frames after seeking in the video with internet explorer
21 février 2014, par LarzzzI have a question regarding JWPlayer 5, IE and video encoding.
Basicly I use a Wowza server to stream my files. This works on all devices (windows, iOS and Android).
However when i play it in Internet Explorer, it behaves strange.
It plays fine, and the entire movie looks good without any issues. But when I seek in the video, it shows a line in the center of my video, like if the previous frame is still showing some part, and it refreshes after a few frames move in the video.
The frames itself are not broken, as if i just play the video without seeking it all looks good.
This does not happen in Chrome, Firefox or Safari, neither does this happen on android & iOS.
I've tested this with JW 6 as well, and it shows the same results for IE.Altough it's showing fine on other browsers, I still believe it's an issue with encoding, as other videos do not show this behavior.
Example viewable here : http://www.mobileevolution.be/standardcode-withsmil.html
The FFMPEG code i use to convert any file (.avi in this case) to an MP4 :
"ffmpeg.exe" -i "%1" -vcodec libx264 -strict experimental -c:a aac -profile:v baseline -level 3 -movflags faststart -bufsize 1000k -tune zerolatency -b:v 1000k -minrate 600k -maxrate 1500k "%5%71000k.mp4"
the %1, %5 and %7 are variables i send with a script.
I have tried various options, but could not figure out what the problem is.
I have also tried converting with handbrake, but this shows similar results.My questions are :
Has anyone seen this before ?
Does anyone know a solution ?
What's wrong with my FFMPEG settings ?Thanks for any help,
GrtsEDIT
pictures :
http://www.mobileevolution.be/foto1.jpg
http://www.mobileevolution.be/foto2.jpg
console output :
http://www.mobileevolution.be/consoleoutput.txt -
Merge commit 'f44ec22e095c5ba00ffeadd891655c456e3dd014'
28 septembre 2017, par James AlmerMerge commit 'f44ec22e095c5ba00ffeadd891655c456e3dd014'
* commit 'f44ec22e095c5ba00ffeadd891655c456e3dd014' :
lavc : use av_cpu_max_align() instead of hardcoding alignment requirementsThis commit is a noop, see
https://ffmpeg.org/pipermail/ffmpeg-devel/2017-September/215834.htmlMerged-by : James Almer <jamrial@gmail.com>