
Recherche avancée
Autres articles (71)
-
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 ;
-
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 (...) -
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 (9157)
-
Can't obtain thumbnail with ffmpeg codeigniter
2 avril 2015, par DMBorgesI have used the following tutorial ( https://www.youtube.com/watch?v=qT4hN5o57hI) to try to obtain a thumbnail from a uploaded video using codeigniter as a framework. As I am new to all this I don’t understand if at the end of supposedly uploading my video the code failed to create a thumbnail, if my created thumbnail is somewhere lost in my computer of by some settings reasons ffmpeg is not working.
Where does my $imageFile goes to ?
Here is my code.
MY VIEW
<div>
<?php echo form_open_multipart('gallery/save/'); ?>
<table class="table">
<tr>
<td>Video</td>
<td><?php echo form_upload('pic'); ?></td>
</tr>
<tr>
<td>Descrição</td>
<td><?php echo form_input('description'); ?></td>
</tr>
<tr>
<td></td>
<td><?php echo form_submit('upload', 'Guardar', 'class="btn btn-primary"'); ?></td>
</tr>
</table>
</div>MY CONTROLLER
<?php
class Gallery extends CI_Controller{
public function index(){
//Load View
$data['main_content'] = 'gallery';
$this->load->view('layouts/main', $data);
}
public function save()
{
$url = $this->do_upload();
$ffmpeg = "C:\\xampp\\htdocs\\ffmpeg\\bin";
$videoFile = $_FILES["pic"]["tmp_name"];
$imageFile = "1.jpg";
$size = "120x90";
$getFromSecond = 5;
$cmd = "$ffmpeg -i $videoFile -an -ss $getFromSecond -s $size $imageFile ";
echo $cmd;
if(!shell_exec($cmd)){
echo 'thumbnail created!';
}
else {
echo 'ERROR!';
}
/* $config = array(
'source_image' => $url,
'new_image' =>"./assets/images/gallery/thumbs/",
'maintain_ration' => true,
'width' => 150,
'height'=> 100
);
$this -> load -> library('image_lib', $config);
$this ->image_lib-> resize();
$description = $_POST["description"];
$user = $this->session->userdata('user_id');
$this->Gallery_model->save($description, $url, $user);
redirect('gallery'); */
}
private function do_upload()
{
$type = explode('.', $_FILES["pic"]["name"]);
$type = strtolower($type[count($type)-1]);
$id = uniqid(rand());
$url = "./assets/images/gallery/".$id.'.'.$type;
if(in_array($type, array("wmv", "mp4", "avi", "flv")))
if(is_uploaded_file($_FILES["pic"]["tmp_name"]))
if(move_uploaded_file($_FILES["pic"]["tmp_name"],$url))
return $url;
return "";
}
} -
Can FFmpeg perform audio phase subtraction ? [closed]
22 avril 2023, par CalarpoI can do audio phase subtraction in Adobe Audition like so : https://www.youtube.com/watch?v=vNvJKBg3yds


How can I do this with FFmpeg ? Is it possible ?


I've googled for audio phase subtraction, and looked at https://ffmpeg.org/ffmpeg-filters.html, nothing seems to work for me.


I want to do phase subtraction in batches and support for stereo audio.


-
How to create effect same video with FFmpeg
29 juin 2023, par Sang VoHow to make a video from an image with a drag effect like this one in FFmpeg :


https://www.youtube.com/watch?v=zC6qbpe3FyE&ab_channel=CloudMood



I tried to zoom in zoom out effects but not the same with video


ffmpeg -loop 1 -i photo.jpg -vf "zoompan=z='min(zoom+0.001,1.2)':x='if(gte(zoom,1.2),x+2,x-1)':y='if(gte(zoom,1.2),y+2,y-1)':d=10*25,framerate=25,scale=1920:1080" -c:v libx264 -t 10 -pix_fmt yuv420p -s 1920x1080 output.mp4