
Recherche avancée
Autres articles (66)
-
Problèmes fréquents
10 mars 2010, parPHP et safe_mode activé
Une des principales sources de problèmes relève de la configuration de PHP et notamment de l’activation du safe_mode
La solution consiterait à soit désactiver le safe_mode soit placer le script dans un répertoire accessible par apache pour le site -
Mediabox : ouvrir les images dans l’espace maximal pour l’utilisateur
8 février 2011, parLa visualisation des images est restreinte par la largeur accordée par le design du site (dépendant du thème utilisé). Elles sont donc visibles sous un format réduit. Afin de profiter de l’ensemble de la place disponible sur l’écran de l’utilisateur, il est possible d’ajouter une fonctionnalité d’affichage de l’image dans une boite multimedia apparaissant au dessus du reste du contenu.
Pour ce faire il est nécessaire d’installer le plugin "Mediabox".
Configuration de la boite multimédia
Dès (...) -
Récupération d’informations sur le site maître à l’installation d’une instance
26 novembre 2010, parUtilité
Sur le site principal, une instance de mutualisation est définie par plusieurs choses : Les données dans la table spip_mutus ; Son logo ; Son auteur principal (id_admin dans la table spip_mutus correspondant à un id_auteur de la table spip_auteurs)qui sera le seul à pouvoir créer définitivement l’instance de mutualisation ;
Il peut donc être tout à fait judicieux de vouloir récupérer certaines de ces informations afin de compléter l’installation d’une instance pour, par exemple : récupérer le (...)
Sur d’autres sites (7874)
-
Rotate video adding black bars with ffmpeg
13 février 2016, par MrMoogI have a lot of mp4 full hd videos made with a smartphone that looks rotated 90°.
These files have proper rotation metadata and they plays correctly on VLC or other desktop mediaplayers, but I want to display them on my dvd player that does not handles mp4 metadata.
So I tried to transpose with ffmpeg but I obtain 1080x1920 files, resolution obviously not recognized by tv/dvd-player.
How can I transpose, resize and add black side (left/right) bars of the correct dimensions to get "correct" 1920x1080 videos ?
-
ffmpeg generate first non black frame
17 octobre 2019, par MilouselI get via readstream video from AWS server. I modify it into different format and save it back into server. After that I want to create non black image from first frame of this video. So I need to check if first frame is black or not.
ffmpeg(stream)
.size('1320x438')
.videoCodec('libx264')
.toFormat('avi')
.output(fileName)
.on('end', function() {
console.log('Finished processing video');
const params = {
Body: fs.createReadStream(fileName),
Bucket: videoBucket,
Key: 'test/modification/' + fileName,
};
s3.putObject(params, (err, data) => {
if (err) {
console.log(err);
}
});
})
.output(screensName + '.jpg')
.outputOptions(
'-frames',
'1', // Capture just one frame of the video
)
.on('end', function() {
console.log('Finished processing screenshot');
const params = {
Body: fs.createReadStream(screensName + '.jpg'),
Bucket: videoBucket,
Key: 'test/shots/' + screensName + '.jpg',
};
s3.putObject(params, (err, data) => {
if (err) {
console.log(err);
}
});
})
.run(); -
Why this function not working, i am try to add watermark in Video for download [closed]
13 août 2020, par Ajay KumarI am trying to download Video with watermark but this function not working why


SHOW massege error. Video file exist in temp folder with watermark but not download


Failed to download Video if this function enabled and if disabled Video are download successful


function waterMark($videoURL,$username)
{


 require 'video_editor/vendor/autoload.php';

 $ffmpeg = FFMpeg\FFMpeg::create(array(
 'ffmpeg.binaries' => ffmpeg_lib,
 'ffprobe.binaries' => ffprobe_lib,
 'timeout' => 8600, // The timeout for the underlying process
 'ffmpeg.threads' => 42, // The number of threads that FFMpeg should use
 ), null);
 $ffmpeg_string = ffprobe_lib;


 $tempFile=rand().time();
 $outputFile='tmp/'.$tempFile.'.mp4';

 $video = $ffmpeg->open($videoURL);

 $watermarkPath = watermark_Path;
 $video
 ->filters()
 ->watermark($watermarkPath, array(
 'position' => 'absolute',
 'x' => 15,
 'y' => 30,
 ));
 $text="@".$username;
 $command = "text='$text': fontcolor=white:fontfile=OpenSans-Bold.ttf: fontsize=18: x=20: y=70:";
 $format = new FFMpeg\Format\Video\X264();
 $format->setAudioCodec("aac");

 try
 {

 $video->filters()->custom("drawtext=$command");
 $video->save($format, $outputFile);

 $array_out = array();
 $array_out[] =
 array(
 "download_url" => checkVideoUrl($outputFile)
 );

 $output=array( "code" => "200", "msg" => $array_out);
 print_r(json_encode($output, true));

 }
 catch(Exception $e)
 {
 echo $e->getMessage();
 die;
 }


}



Please solve this isu


Why this function not working, i am try to add watermark in Video for download