
Recherche avancée
Médias (1)
-
SWFUpload Process
6 septembre 2011, par
Mis à jour : Septembre 2011
Langue : français
Type : Texte
Autres articles (102)
-
MediaSPIP 0.1 Beta version
25 avril 2011, parMediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
The zip file provided here only contains the sources of MediaSPIP in its standalone version.
To get a working installation, you must manually install all-software dependencies on the server.
If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...) -
Qu’est ce qu’un éditorial
21 juin 2013, parEcrivez votre de point de vue dans un article. Celui-ci sera rangé dans une rubrique prévue à cet effet.
Un éditorial est un article de type texte uniquement. Il a pour objectif de ranger les points de vue dans une rubrique dédiée. Un seul éditorial est placé à la une en page d’accueil. Pour consulter les précédents, consultez la rubrique dédiée.
Vous pouvez personnaliser le formulaire de création d’un éditorial.
Formulaire de création d’un éditorial Dans le cas d’un document de type éditorial, les (...) -
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 (12982)
-
Laravel php timelapse an UploadedFile video element, without saving it as a file
24 août 2022, par The Blind HawkI want to be able to change the frame rate of a video from 0.05fps to 3fps.

I receive the video as anIlluminate\Http\UploadedFile
element, with mp4 format, how do I speed up its frame rate before sending it via email ?

The video is 25 minutes long, it should become 25 seconds long after changing the frame rate.

Is there a way to change the fps without saving the element as a File ?

I was planning to use the ffmpeg repository here but it requires me to save both the initial file, and the second file after changing the fps.
This is my code :


<?php

namespace Server\Mail;

use Carbon\Carbon;
use Illuminate\Bus\Queueable;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Mail\Mailable;
use Illuminate\Queue\SerializesModels;
use Illuminate\Http\UploadedFile;

class TimeLapse extends Mailable
{
 use Queueable, SerializesModels;

 public UploadedFile $video;

 public bool $is_timelapsed;

 public string $format;

 /**
 * Create a new message instance.
 */
 public function __construct(
 UploadedFile $video, 
 bool $is_timelapsed, 
 string $format
 ){
 $this->video = $video;
 $this->is_timelapsed = $is_timelapsed;
 $this->format = $format;
 }

 private function timelapse(){
 // here I want to change $video element's fps from 0.05 to 3
 }

 /**
 * Build the message.
 *
 * @return $this
 */
 public function build()
 {
 if ( !$is_timelapsed ) { timelapse(); }

 $this->subject('message')
 ->text('emails.timelapse');

 $this->attach($this->video, [
 'as' => 'sample'.$format,
 'mime' => 'video/'.$format,
 ]);

 return $this;
 }
}



-
Revision 15804 : hum, la demande d’autorisation etait erronee, meme les admins devaient ...
22 juin 2010, par cedric@… — Loghum, la demande d’autorisation etait erronee, meme les admins devaient valider leur email par un clic dans leur boite mail lorsqu’ils changaient leur adresse, ce qui n’est pas normal. On corrige ca !
-
Revision 62748 : Peaufinage des emails de notif : on garde un lien de modération par ligne ...
20 juin 2012, par cedric@… — LogPeaufinage des emails de notif : on garde un lien de modération par ligne en sautant une ligne entre chaque. C’est moyen joli dans un grand écran/client mail, mais le plus pratique sur un mobile ou l’on clic avec des gros doigts pour ne pas se tromper de lien
Version