
Recherche avancée
Autres articles (45)
-
Les statuts des instances de mutualisation
13 mars 2010, parPour des raisons de compatibilité générale du plugin de gestion de mutualisations avec les fonctions originales de SPIP, les statuts des instances sont les mêmes que pour tout autre objets (articles...), seuls leurs noms dans l’interface change quelque peu.
Les différents statuts possibles sont : prepa (demandé) qui correspond à une instance demandée par un utilisateur. Si le site a déjà été créé par le passé, il est passé en mode désactivé. publie (validé) qui correspond à une instance validée par un (...) -
Support audio et vidéo HTML5
10 avril 2011MediaSPIP utilise les balises HTML5 video et audio pour la lecture de documents multimedia en profitant des dernières innovations du W3C supportées par les navigateurs modernes.
Pour les navigateurs plus anciens, le lecteur flash Flowplayer est utilisé.
Le lecteur HTML5 utilisé a été spécifiquement créé pour MediaSPIP : il est complètement modifiable graphiquement pour correspondre à un thème choisi.
Ces technologies permettent de distribuer vidéo et son à la fois sur des ordinateurs conventionnels (...) -
HTML5 audio and video support
13 avril 2011, parMediaSPIP uses HTML5 video and audio tags to play multimedia files, taking advantage of the latest W3C innovations supported by modern browsers.
The MediaSPIP player used has been created specifically for MediaSPIP and can be easily adapted to fit in with a specific theme.
For older browsers the Flowplayer flash fallback is used.
MediaSPIP allows for media playback on major mobile platforms with the above (...)
Sur d’autres sites (8377)
-
How can I use FFMPEG to fix a mpeg.ts file
29 septembre 2017, par Tim McClureI have an mpegts file that has some minor quality issues. Can I use ffmpeg to create an mp4 file from it and the mp4 file plays fine - meaning the transmuxing to mp4 corrected the problem. I am trying to use ffmpeg to re-encode the mpegts file to another mpegts file and through the transmuxing have the video file fixed. The script I am using :
ffmpeg -re -i 20170925T214300_S051-0001.ts -pix_fmt yuv420p -vcodec libx264 -r 25 -vf "scale=1024:576" -threads 0 -b:v: 2048k -bufsize 2244k -maxrate 2560k -profile:v baseline -g 50 -x264opts no-scenecut -x264opts force-cfr -an -f mpegts mcclure.ts
Is what I am trying to do possible ?
-
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