
Recherche avancée
Médias (5)
-
ED-ME-5 1-DVD
11 octobre 2011, par
Mis à jour : Octobre 2011
Langue : English
Type : Audio
-
Revolution of Open-source and film making towards open film making
6 octobre 2011, par
Mis à jour : Juillet 2013
Langue : English
Type : Texte
-
Valkaama DVD Cover Outside
4 octobre 2011, par
Mis à jour : Octobre 2011
Langue : English
Type : Image
-
Valkaama DVD Label
4 octobre 2011, par
Mis à jour : Février 2013
Langue : English
Type : Image
-
Valkaama DVD Cover Inside
4 octobre 2011, par
Mis à jour : Octobre 2011
Langue : English
Type : Image
Autres articles (103)
-
Websites made with MediaSPIP
2 mai 2011, parThis page lists some websites based on MediaSPIP.
-
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
Sur d’autres sites (12995)
-
Add logo or watermark to Converted video using ffmpeg and PHP
27 mars 2022, par Medicare AdvisorsWe are converting videos to MP4 using FFMPEG.


We did a lot of research, however we cannot figure out how to add the company logo as a logo or a water mark to the converted video


PHP code


<?php 
$uploads_dir = 'original/';
$file_name = basename($_FILES['file']['name']);
$output_name = explode('.', $file_name)[0];
$uploaded_file = $uploads_dir . $file_name;
$convert_status = ['mp4' => 0, 'webm' => 0];

if(isset($_POST['submit'])) {
 if(move_uploaded_file($_FILES['file']['tmp_name'], $uploaded_file)) {
 // Make sure to get the correct path to ffmpeg
 // Run $ where ffmpeg to get the path
 $ffmpeg = '/bin/ffmpeg';
 
 // MP4
 $video_mp4 = $output_name . '.mp4';
 exec($ffmpeg . ' -i "' . $uploaded_file . '" -vcodec h264 -acodec libfdk_aac "./converted/' . $video_mp4 . '" -y 1>convert.txt 2>&1', $output, $convert_status['mp4']);

 // Debug
 // echo '<pre>' . print_r($output, 1) . ' </pre>';

 

 // Debug
 // echo '<pre>' . print_r($output, 1) . ' </pre>';
 }
}
?>



The logo we want to add is on : https://propeview.com/wp-content/uploads/2021/08/logo-whiteb.png


-
Close ogg stream upon error when using AV_EF_EXPLODE.
20 novembre 2017, par Dale Curtis -
ffmpeg's strange behaviour-Conversion started when I close my application
16 décembre 2013, par m.qayyumI'm using ffmpeg in my application to rotate video, but problem is that when I start conversion ffmpeg only shows it's version information and not start the actual conversion, but when I close my application ffmpeg process remains in Running Processes in Taskbar and start to convert the file.
ffmpeg output
Here is my code, please tell me where i'm doing it wrong.
void ConvertVideo(object[] arr) {
string Argument = (string)arr[0];
string OutputFolder = (string)arr[1];
string ConvertedFile = (string)arr[2];
UpdateStatus("Converting! Please wait...");
ffmpeg = new Process();
ffmpeg.StartInfo.WindowStyle = ProcessWindowStyle.Hidden;
ffmpeg.StartInfo.FileName = "ffmpeg.exe";
ffmpeg.StartInfo.UseShellExecute = false;
ffmpeg.StartInfo.RedirectStandardError = true;
ffmpeg.StartInfo.RedirectStandardOutput = true;
ffmpeg.StartInfo.CreateNoWindow = true;
ffmpeg.StartInfo.Arguments = Argument;
ffmpeg.Start();
myStreamReader = ffmpeg.StandardError;
outputLine = myStreamReader.ReadLine();
UpdateRTB(outputLine);//Write line to ritchtextbox
do
{
if (outputLine.Contains("muxing overhead"))
{
UpdateStatus("Muxing video");
}
if (outputLine.StartsWith("frame"))
{
UpdateStatus("Converting video");
}
}
while (!(ffmpeg.HasExited & (string.Compare(outputLine, "") == 0 | outputLine == null)));
ffmpeg.Close();
myStreamReader.Close();
UpdateStatus("Convertion completed successfully");
}