
Recherche avancée
Médias (1)
-
The pirate bay depuis la Belgique
1er avril 2013, par
Mis à jour : Avril 2013
Langue : français
Type : Image
Autres articles (65)
-
Personnaliser en ajoutant son logo, sa bannière ou son image de fond
5 septembre 2013, parCertains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;
-
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 -
Les autorisations surchargées par les plugins
27 avril 2010, parMediaspip core
autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs
Sur d’autres sites (13309)
-
how to use ffmpeg to get thumbnails from a video
23 mai 2017, par okendoI have been trying over weeks now to figure out how to use
ffmpeg
to get thumbnail from a video while upload that video inphp
.
This is my code and I don’t where I went wrong please help.<?php
if (logged_in() === true) {
if (isset($_POST['up'], $_FILES['file'])) {
$file_name = $_FILES['file']['name'];
$file_type = explode('.', $file_name);
$file_type = strtolower(end($file_type));
$random = rand();
$file_tmp = $_FILES['file']['tmp_name'];
$file_dir = "jobalertme/includes/video_uploads/$random.$file_type";
if ($file_type == 'mp4' || $file_type == 'avi' || $file_type == 'wmv' || $file_type == 'mov' || $file_type == 'flv') {
if (move_uploaded_file($file_tmp, "$file_dir")) {
$ffmpeg = "C:\\ffmpeg\\bin\\ffmpeg";
$img_name = "1.jpg";
$img_size = "120x90";
$getimgsec = 5;
$cmd = "$ffmpeg -i $file_tmp -an -ss $getimgsec -s $img_size www/jobalertme/includes/img_thumnail/$img_name <br />";
if (shell_exec($cmd)) {
echo "ok";
} else {
echo "not";
}
$updat = "UPDATE registration SET video='$file_dir' WHERE uname='$username'";
$qry = mysqli_query($con, $updat);
if ($qry) {
echo "<code class="echappe-js"><script> alert('your file has been successfully uploaded ')</script>" ;
echo "<script>window.open('upload_vid.php','_self')</script>
" ;
exit() ;
else
echo "<script> alert('we ran into some problems')</script>
" ;
echo "<script>window.open('upload_vid.php','_self')</script>
" ;
exit() ;
else
echo "<script> alert('we ran into some problems')</script>
" ;
echo "<script>window.open('upload_vid.php','_self')</script>
" ;
exit() ;
else
echo "<script>alert('please this file extension is not allowed, it must be an mp4 file format')</script>
" ;
echo "<script>window.open('upload_vid.php','_self')</script>
" ;
exit() ;
else
echo "<script>alert('please you need login before you can upload resume.')</scrpt>";<br />
echo "<script>window.open('upload_vid.php','_self')</script>" ;
exit() ;
?>
I have search on google youtube and others but still have not gotten the solution.
-
lavu/libm : add exp10 support
22 décembre 2015, par Ganesh Ajjanagaddelavu/libm : add exp10 support
exp10 is a function available in GNU libm. Looks like no other common
libm has it. This adds support for it to FFmpeg.There are essentially 2 ways of handling the fallback :
1. Using pow(10, x)
2. Using exp2(M_LOG2_10 * x).First one represents a Pareto improvement, with no speed or accuracy
regression anywhere, but speed improvement limited to GNU libm.Second one represents a slight accuracy loss (relative error 1e-13)
for non GNU libm. Speedup of > 2x is obtained on non GNU libm platforms,
30% on GNU libm. These are "average case numbers", another benefit is
the lack of triggering of the well-known terrible worst case paths
through pow.Based on reviews, second one chosen. Comment added accordingly.
Reviewed-by : Hendrik Leppkes <h.leppkes@gmail.com>
Reviewed-by : Michael Niedermayer <michael@niedermayer.cc>
Reviewed-by : Ronald S. Bultje <rsbultje@gmail.com>
Signed-off-by : Ganesh Ajjanagadde <gajjanagadde@gmail.com> -
Webm video files recorded on Chrome Mobile cannot be converted to MP4
7 juillet 2022, par Tobias KristensenI have a website where I record the user's webcam via the MediaRecorder API.
The video stream is created with navigator.mediaDevices.getUserMedia() :


// Create stream
const cameraStream = await navigator.mediaDevices.getUserMedia({ video: 
 { 
 aspectRatio: 1/1, 
 facingMode: 'user',
 width: { min: 360, ideal: 720, max: 1080 },
 height: { min: 360, ideal: 720, max: 1080 },
 deviceId: undefined
 } 
});

// Add stream to videoElement to display a video preview
videoElement.srcObject = cameraStream; 



I then check which mime types are available in the browser and use that info to initialize the MediaRecorder :


const validMimeTypes = [
 "video/webm\;codecs=vp8",
 "video/webm\;codecs=daala",
 "video/webm\;codecs=h264",
 "video/webm",
 "video/mpeg"
];

const getFirstAvailableMimeType = () => {
 for (const mimeType of validMimeTypes) {
 if (MediaRecorder.isTypeSupported(mimeType)) {
 return mimeType;
 }
 }
}

// Initialize Media Recorder
const mediaRecorder = new MediaRecorder(cameraStream, {
 mimeType: getFirstAvailableMimeType(),
});



After I finish recording a video, I upload it to a server and store it on Firebase Storage, so it can be downloaded later.


After downloading a video, I would like to convert it to an MP4 file. I've tried using CloudConvert and HandBrake. Both services have no issues converting videos that were recorded via Chrome on my desktop, but both fail when I try to convert videos recorded via Chrome Mobile on my phone.


When trying to convert the video to MP4 via CloudConvert, the following error is shown :


EBML header parsing failed. /input/import1/69fcceaccc27a0d6eabcb8a65045e87e.webm Invalid data found when processing input



Any ideas how I can resolve this issue ?