
Recherche avancée
Autres articles (98)
-
Gestion des droits de création et d’édition des objets
8 février 2011, parPar défaut, beaucoup de fonctionnalités sont limitées aux administrateurs mais restent configurables indépendamment pour modifier leur statut minimal d’utilisation notamment : la rédaction de contenus sur le site modifiables dans la gestion des templates de formulaires ; l’ajout de notes aux articles ; l’ajout de légendes et d’annotations sur les images ;
-
Supporting all media types
13 avril 2011, parUnlike most software and media-sharing platforms, MediaSPIP aims to manage as many different media types as possible. The following are just a few examples from an ever-expanding list of supported formats : images : png, gif, jpg, bmp and more audio : MP3, Ogg, Wav and more video : AVI, MP4, OGV, mpg, mov, wmv and more text, code and other data : OpenOffice, Microsoft Office (Word, PowerPoint, Excel), web (html, CSS), LaTeX, Google Earth and (...)
-
Dépôt de média et thèmes par FTP
31 mai 2013, parL’outil MédiaSPIP traite aussi les média transférés par la voie FTP. Si vous préférez déposer par cette voie, récupérez les identifiants d’accès vers votre site MédiaSPIP et utilisez votre client FTP favori.
Vous trouverez dès le départ les dossiers suivants dans votre espace FTP : config/ : dossier de configuration du site IMG/ : dossier des média déjà traités et en ligne sur le site local/ : répertoire cache du site web themes/ : les thèmes ou les feuilles de style personnalisées tmp/ : dossier de travail (...)
Sur d’autres sites (12655)
-
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 bc0a974310 : Fix to golden update in cyclic_refresh. For one pass CBR : only check for updati
24 août 2015, par MarcoChanged Paths :
Modify /vp9/encoder/vp9_encoder.c
Fix to golden update in cyclic_refresh.For one pass CBR : only check for updating refresh_golden
if ext_refresh_frame_flags_pending is not set (i.e., == 0).
And move the resetting of ext_refresh_frame_flags_pending = 0
down to after the encode_loop (and account for dropped frames).This is to prevent changing refresh_golden flga when the user
supplies the reference/update flags.Change-Id : I4d87b3e705ba43f243667e367503b585c61e2a54
-
ffmpeg : How to add frames or black at the end of a video ?
10 mai 2012, par Jim HoyleHow to copy an arbitrary amount of duplicates of the last frame at the end of any video ? Or alternatively, how to add black frames at the end of any video ? Can this be done by scripting and ffmpeg ? Of course any other tool is fine, as long as the action is scriptable.
The difficulty is that all video formats, or at least as wide range of video formats as possible, should be supported. The script should take in any video formats without manually changing the script per video.