
Recherche avancée
Médias (2)
-
GetID3 - Bloc informations de fichiers
9 avril 2013, par
Mis à jour : Mai 2013
Langue : français
Type : Image
-
GetID3 - Boutons supplémentaires
9 avril 2013, par
Mis à jour : Avril 2013
Langue : français
Type : Image
Autres articles (74)
-
Emballe médias : à quoi cela sert ?
4 février 2011, parCe plugin vise à gérer des sites de mise en ligne de documents de tous types.
Il crée des "médias", à savoir : un "média" est un article au sens SPIP créé automatiquement lors du téléversement d’un document qu’il soit audio, vidéo, image ou textuel ; un seul document ne peut être lié à un article dit "média" ; -
Script d’installation automatique de MediaSPIP
25 avril 2011, parAfin de palier aux difficultés d’installation dues principalement aux dépendances logicielles coté serveur, un script d’installation "tout en un" en bash a été créé afin de faciliter cette étape sur un serveur doté d’une distribution Linux compatible.
Vous devez bénéficier d’un accès SSH à votre serveur et d’un compte "root" afin de l’utiliser, ce qui permettra d’installer les dépendances. Contactez votre hébergeur si vous ne disposez pas de cela.
La documentation de l’utilisation du script d’installation (...) -
Automated installation script of MediaSPIP
25 avril 2011, parTo overcome the difficulties mainly due to the installation of server side software dependencies, an "all-in-one" installation script written in bash was created to facilitate this step on a server with a compatible Linux distribution.
You must have access to your server via SSH and a root account to use it, which will install the dependencies. Contact your provider if you do not have that.
The documentation of the use of this installation script is available here.
The code of this (...)
Sur d’autres sites (4144)
-
Laravel ffmpeg Encoding failed
23 juillet 2018, par Ghyath DarwishFfmpeg Laravel show error while encoding when add watermark filter
Ffmpeg on windows 10
I tried same code on Ubuntu it is worked,
FFMpeg::fromDisk('public')
->open($path)
->addFilter(function ($filters) {
$filters->resize(new Dimension(640, 480));
$filters->watermark(public_path().'/storage/images/mark.png', [
'position' => 'relative',
'bottom' => 240,
'right' => 320
]);
})
->export()
->toDisk('public')
->inFormat((new \FFMpeg\Format\Video\X264('libmp3lame', 'libx264'))->setKiloBitrate(40))
->save('thumbnail/'.$filename);when i remove filter->watermark it is working, so what is the problem ?
-
Cant Record Stream Using MediaRecorder In Server ?
13 avril 2022, par Riyad ZaigirdarFirst I am trying to make a Webrtc peer connection from the browser to the server using SFU model.


Here is the post request which makes the webrtc peer connection from the browser to the server(SFU)


app.post("/broadcast", async ({ body }, res) => {
 const peer = new webrtc.RTCPeerConnection({
 iceServers: [
 {
 urls: "stun:stun.stunprotocol.org",
 },
 ],
 });
 peer.ontrack = (e) => handleTrackEvent(e, peer); <-- Important
 const desc = new webrtc.RTCSessionDescription(body.sdp);
 await peer.setRemoteDescription(desc);
 const answer = await peer.createAnswer();
 await peer.setLocalDescription(answer);
 const payload = {
 sdp: peer.localDescription,
 };

 res.json(payload);
});



In the handleTrackEvent function, I am getting the stream which I want to start record and save in the server's local storage.


function handleTrackEvent(e, peer) {
 console.log(e.streams);
 senderStream = e.streams[0];
 var recorder = new MediaStreamRecorder(e.streams);
 recorder.recorderType = MediaRecorderWrapper;
 recorder.mimeType = "video/webm";
 recorder.ondataavailable = (blob) => {
 console.log(blob);
 };
 recorder.start(5 * 1000); <-- Error generator
}



But when try to start the recording and get the blob in 5 sec intervals, it gives me "MediaRecorder Not Found" ...


Passing following params over MediaRecorder API. { mimeType: 'video/webm' }
/Users/tecbackup/webrtc-peer/node_modules/msr/MediaStreamRecorder.js:672
 mediaRecorder = new MediaRecorder(mediaStream);
 ^

ReferenceError: MediaRecorder is not defined



I am very new to webrtc, I need some suggestion to save the live stream from the browser to the server....In future, if find the blob, then I will save the blobs sequentially in a mp4 file in the server. Then, on runtime i start pressing ffmpeg in that mp4 file to get 240p, 360p, 720p ts files for hls streaming


-
Can we set size of image frame in save function ?
19 avril 2019, par TesterUnable to set the size of image frame so I am unable to use thumbnail size.
$video = $ffmpeg->open($videoFile);
$video
->filters()
->resize(new FFMpeg\Coordinate\Dimension(320, 240))
->synchronize();
$frame = $video->frame(FFMpeg\Coordinate\TimeCode::fromSeconds(1));
$frame->save('C:\wamp64\www\woc\image_bucket\thumbnail\\'.$thumbnailFileName);