
Recherche avancée
Médias (1)
-
Collections - Formulaire de création rapide
19 février 2013, par
Mis à jour : Février 2013
Langue : français
Type : Image
Autres articles (104)
-
Les vidéos
21 avril 2011, parComme les documents de type "audio", Mediaspip affiche dans la mesure du possible les vidéos grâce à la balise html5 .
Un des inconvénients de cette balise est qu’elle n’est pas reconnue correctement par certains navigateurs (Internet Explorer pour ne pas le nommer) et que chaque navigateur ne gère en natif que certains formats de vidéos.
Son avantage principal quant à lui est de bénéficier de la prise en charge native de vidéos dans les navigateur et donc de se passer de l’utilisation de Flash et (...) -
Submit bugs and patches
13 avril 2011Unfortunately a software is never perfect.
If you think you have found a bug, report it using our ticket system. Please to help us to fix it by providing the following information : the browser you are using, including the exact version as precise an explanation as possible of the problem if possible, the steps taken resulting in the problem a link to the site / page in question
If you think you have solved the bug, fill in a ticket and attach to it a corrective patch.
You may also (...) -
Encoding and processing into web-friendly formats
13 avril 2011, parMediaSPIP automatically converts uploaded files to internet-compatible formats.
Video files are encoded in MP4, Ogv and WebM (supported by HTML5) and MP4 (supported by Flash).
Audio files are encoded in MP3 and Ogg (supported by HTML5) and MP3 (supported by Flash).
Where possible, text is analyzed in order to retrieve the data needed for search engine detection, and then exported as a series of image files.
All uploaded files are stored online in their original format, so you can (...)
Sur d’autres sites (7423)
-
vaapi : Add external control of allow-profile-mismatch
27 mars 2017, par Mark Thompson -
Problem with ffmpeg and name change while loading on server
29 novembre 2020, par PajtimI am testing a code in php / ffmpeg it is watermark. It works very well after uploading the video but the problem is that the video should only be with an "input.mp4" name.


I have set the path where the video should be saved and the name of each video is changed
move_uploaded_file($_FILES["video"]["tmp_name"], "./" . ('input.mp4'));
after it is uploaded to "input.mp4" but even this did not solve the problem.

So it only works when you upload the video from the beginning named input.mp4.


Is there an option ffmpeg to accept each name as input when uploading video with another name ?




<form action="video.php" method="post" enctype="multipart/form-data">
 <div class="form-group">
 <label>Select video</label>
 <input type="file" class="form-control" />
 </div>
 
 
 <input type="submit" class="btn btn-primary" value="submit" />
 </form>







$video = $_FILES["video"]["name"];
$image = $_FILES["image"]["name"];
move_uploaded_file($_FILES["video"]["tmp_name"], "./" . ('input.mp4'));

// then you have to resize the selected image to lower resolution
$command = "/usr/local/bin/ffmpeg -i " . $image . " -s 128x128 output.jpeg";
 
// execute that command
system($command);
 
// both input files has been selected
$command = "/usr/local/bin/ffmpeg -i " . $video . " -i output.jpeg";
 
// now apply the filter to select both files
// it must enclose in double quotes
// [0:v] means first input which is video
// [1:v] means second input which is resized image
$command .= " -filter_complex \"[0:v][1:v]";
 
// now we need to tell the position of overlay in video
$command .= " overlay=80:50\""; // closing double quotes
 
// save in a separate output file
$command .= " -c:a copy output.mp4";
 
// execute the command
system($command);

echo '<a href="http://stackoverflow.com/input.mp4" download="download">Download</a>';



-
avcodec/ratecontrol : drop remnants of libxvid rate control
22 janvier 2023, par Marton Balint