
Recherche avancée
Médias (1)
-
The Great Big Beautiful Tomorrow
28 octobre 2011, par
Mis à jour : Octobre 2011
Langue : English
Type : Texte
Autres articles (3)
-
Les tâches Cron régulières de la ferme
1er décembre 2010, parLa gestion de la ferme passe par l’exécution à intervalle régulier de plusieurs tâches répétitives dites Cron.
Le super Cron (gestion_mutu_super_cron)
Cette tâche, planifiée chaque minute, a pour simple effet d’appeler le Cron de l’ensemble des instances de la mutualisation régulièrement. Couplée avec un Cron système sur le site central de la mutualisation, cela permet de simplement générer des visites régulières sur les différents sites et éviter que les tâches des sites peu visités soient trop (...) -
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 (...) -
Selection of projects using MediaSPIP
2 mai 2011, parThe examples below are representative elements of MediaSPIP specific uses for specific projects.
MediaSPIP farm @ Infini
The non profit organizationInfini develops hospitality activities, internet access point, training, realizing innovative projects in the field of information and communication technologies and Communication, and hosting of websites. It plays a unique and prominent role in the Brest (France) area, at the national level, among the half-dozen such association. Its members (...)
Sur d’autres sites (4138)
-
Streaming MP4 frames to HTML5, what am I doing wrong ?
5 septembre 2014, par mczarnekCurrently I am generating a MP4 Bitstream using Intel’s Media SDK library, which uses ffmpeg underneath the covers. I can generate a mp4 file, and play it and it works.
However, when I try to stream that mp4 across the network, it doesn’t play within the HTML5 video player, as tested within Chrome, Firefox, or IE.
This much is sent back and forth across the network :
Sent by Chrome:
GET / HTTP/1.1
Host: localhost:8085
Connection: keep-alive
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/32.0.1700.102 Safari/537.36
Accept-Encoding: identity;q=1, *;q=0
Accept: */*
Accept-Language: en-US,en;q=0.8
Range: bytes=0-
From my video player:
HTTP/1.1 200 OK
Server: Microsoft-HTTPAPI/2.0
Date: Thu, 09 Jan 2014 17:28:14 GMT
Content-type: video/mp4After this, I send a newline, and all the video frames, one after another, while listening to see if I receive anything back from the browser.
Then nothing happens. Any suggestions to get this playing video ? Thank you !
-
Trying to produce a stream of OGG encoded audio originating from microphone yields a completely quiet file
3 décembre 2019, par DanBasically title. I want to produce a constant stream of audio data encoded in OGG coming from my microphone. This is my current setup :
var mic = require('mic');
var fs = require('fs');
var { exec } = require('child_process')
var micInstance = mic({
rate: '44100',
channels: '1',
debug: true,
exitOnSilence: 0,
device: 'pulse',
});
var micInputStream = micInstance.getAudioStream();
var outputFileStream = fs.createWriteStream('output.final.ogg');
var transcode = exec('ffmpeg -loglevel panic -i pipe: -f ogg -')
micInputStream.pipe(transcode.stdin)
transcode.stdout.pipe(outputFileStream)When I pipe
micInputStream
directly toprocess.stdout
then use a unix pipe to pipe the data to aoutput.wav
file, I can play it back.When I pipe
micInputStream
directly toprocess.stdout
then use a unix pipe to pipe the data toffmpeg
, then unix-pipe all that data into aoutput.ogg
file, I can also play it back.But when I try my code, I get an
OGG
file, but when I play it back, it’s quiet.I’m at a loss, how do I just create a
readableStream
containing an endless stream of audio coming from the mic, encoded inOGG
? -
Camera Rendering Buffers and Stutters When Processing Large Video Files with FFmpeg
20 avril 2023, par TIANYU HUWhen rendering a real-time camera, I use ffmpeg to process a large video file(like 4G or even larger) at the same time. However, I noticed that the video frames are buffering and stuttering, indicated they are probably competing for limited system resources, like cpu, memory or I/O bandwidth etc.


I‘ve tried a lot of experiments to figure out the root cause. Firstly I limit the cpu usage of ffmpeg to 25%, but sadly it’s not getting better.


Then I suspect that ffmpeg would read the large video file from disk to page cache in memory as much as it can before processing, and the generated files are going to be written back from page cache to disk. The RAM of our computer is 8G, apparently it needs to swap in and swap out pages between memory and disk. This process is costly for the CPU, and other processes are likely to trigger an interrupt named “Page Fault” when they access pages that are not actually loaded into memory. If the time taken for “page fault” is too long, the program may lag.


Lastly I configure the system parameters related to “write back dirty pages to disk”, such as vm.dirty_writeback_centisecs and vm.dirty_background_ratio, to try to write back the dirty (Disk I/O) more frequently or infrequently. But I’m not quite sure what would happen if I modify these parameters.


Expection :
The requirement can be summarized as “real-time video rendering has higher priority, and the low rate of large file processing is accepted”, are there any possible solutions of this issue from your perspective ? Thanks in advance.