
Recherche avancée
Autres articles (36)
-
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 -
Submit enhancements and plugins
13 avril 2011If you have developed a new extension to add one or more useful features to MediaSPIP, let us know and its integration into the core MedisSPIP functionality will be considered.
You can use the development discussion list to request for help with creating a plugin. As MediaSPIP is based on SPIP - or you can use the SPIP discussion list SPIP-Zone. -
Creating farms of unique websites
13 avril 2011, parMediaSPIP platforms can be installed as a farm, with a single "core" hosted on a dedicated server and used by multiple websites.
This allows (among other things) : implementation costs to be shared between several different projects / individuals rapid deployment of multiple unique sites creation of groups of like-minded sites, making it possible to browse media in a more controlled and selective environment than the major "open" (...)
Sur d’autres sites (4932)
-
How to make faster screenshots using ffmpeg ?
18 janvier 2017, par supermarioI use this command to take screenshots from a video :
ffmpeg -i input.mkv -r 0.0033 -vf scale=-1:120 -vcodec png capture-%002d.png
But usually it takes several minutes even on a powerful machine. I’m wondering if there is a faster way to do so ?
-
Video ahead of audio. Javascript MediaSource
8 novembre 2022, par RobertzzelI am trying to build a real-time streaming app using websockets and ffmpeg.


I have 2 processes on the host machine for capturing video(screen) and audio(microphone) every second. Those 2 files (1 file for a second of audio and 1 file for a second of video) are combined into one mp4 file using ffmpeg.


ffmpeg -y -i video.mkv -i audio.wav -map 0:v -map 1:a -c:v libx264 -tune zerolatency -preset ultrafast -shortest -movflags frag_keyframe+empty_moov+default_base_moof -r 25 -g 50 -pass 1 -f mp4 -b:v 2M pipe:1



This file is sent to the client machine using a websocket.
On the web part I initialize a MediaSource object with a sourceBuffer.


videoSourceBuffer = mediaSource.addSourceBuffer('video/mp4; codecs="avc1.4D0033, mp4a.40.2"');



But I had a problem. Both audio and video were lagging behind. When I started the stream the delay was about 2 seconds. After 2 minutes the delay was 10 seconds.
I managed to see how many buffered frames I had in the sourceBuffer and speed up the stream to keep up with the source using this piece of code from How can I find remaing frames in a MediaSource SourceBuffer ?.


let getBufferedLength = () => videoSourceBuffer.buffered.end(0) - videoElement.currentTime;



Now the video stream has always a delay about 1.5 seconds but the audio lags behind.


I cannot find a way to access how many audio frames are buffered or something so I can sync both the audio and video


-
can i use ffmpeg to stream my desktop with an end to end latency below 80ms for a resolution of 1920x1080@30fps ?
12 juin 2014, par user2132270ffmpeg using direct show capture filter has an end to end latency of 200-350ms for 30fps using ultrafast and 8 threads.
End to end is from Source machine to target Raspberry Pi running hardware optimized omx-player.