
Recherche avancée
Médias (1)
-
Rennes Emotion Map 2010-11
19 octobre 2011, par
Mis à jour : Juillet 2013
Langue : français
Type : Texte
Autres articles (60)
-
Personnaliser les catégories
21 juin 2013, parFormulaire de création d’une catégorie
Pour ceux qui connaissent bien SPIP, une catégorie peut être assimilée à une rubrique.
Dans le cas d’un document de type catégorie, les champs proposés par défaut sont : Texte
On peut modifier ce formulaire dans la partie :
Administration > Configuration des masques de formulaire.
Dans le cas d’un document de type média, les champs non affichés par défaut sont : Descriptif rapide
Par ailleurs, c’est dans cette partie configuration qu’on peut indiquer le (...) -
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 -
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 (5472)
-
how do I fix the permission problem so ffmpeg can write when run from a cgi-script ?
7 juillet 2022, par NewtownGuyI have a shell script in Linux that runs ffmpeg for the purpose of converting video to a series snapshots in response to a command from apache2. The shell script is run from a perl script in /var/www/cgi-bin that is called by apache2. The conversion works fine when I run the shell script from the command line when I login as root. The problem is that ffmpeg cannot write its output when it's run from the cgi-script. With the exception of ffmpeg writing files, the shell script runs from the cgi-script just fine because I enabled it in /etc/sudoers and I run it with sudo. I have read several posts on the use of ffmpeg and setting permissions, and have tried the following without success :


- 

-
The full path to the snapshot files being written is given in the ffmpeg command


-
I tried placing the shell script that runs ffmpeg into a root folder instead of the same folder, /var/www/cgi-bin, as the perl cgi script


-
I gave the folder, /var/www/html/userName/video, where ffmpeg is to write its snapshots, www-data:root ownership instead of the original root:root, and I tried changing its write permission from 755 to 777.


-
ffmpeg is installed in the default location, /use/bin












How do I fix this ?


Thank you in advance.


-
-
laravel 5.6 | upload video - Unable to probe
23 février 2018, par syehbi herbianI was try to upload multiple video and i will get duration and frame with laravel-ffmpeg, so here’s my Controller :
public function doCreate($lessonsid)
{
if (empty(Session::get('contribID'))) {
return redirect('contributor/login');
}
# code...
// validate
// read more on validation at http://laravel.com/docs/validation
$rules = array(
'judul' => 'required',
// 'video.*' => 'mimes:mp4,mov,ogg,webm |required|max:100000',
// 'image.*' => 'mimes:jpeg,jpg,png,gif|required|max:30000'
);
$validator = Validator::make(Input::all(), $rules);
// process the login
if ($validator->fails()) {
return redirect()->back()->withErrors($validator)->withInput();
} else {
$now = new DateTime();
$cid = Session::get('contribID');
$title = Input::get('judul');
$image_video = Input::file('image');
$lessons_video = Input::file('video');
// dd($lessons_video);
$description = Input::get('desc');
$video=Video::where('lessons_id',$lessonsid)->get();
$count_video=count($video);
if (!is_dir("assets/source/lessons/lessons-$lessonsid")) {
$newforder=mkdir("assets/source/lessons/lessons-".$lessonsid);
}
$i=$count_video + 1;
foreach ($title as $key => $titles) {
$type_video =$lessons_video[$key]->getMimeType();
if (!is_dir("assets/source/lessons/lessons-".$lessonsid."/video-".$i)) {
$newforder=mkdir("assets/source/lessons/lessons-".$lessonsid."/video-".$i);
}
$DestinationPath= 'assets/source/lessons/lessons-'.$lessonsid.'/video-'.$i;
//insert image
if(!empty($image_video[$key])){
$imagefilename = $image_video[$key]->getClientOriginalName();
$image_video[$key]->move($DestinationPath, $imagefilename);
}else{
$imagefilename = '';
}
if($imagefilename ==''){
$url_image= $imagefilename;
}else{
$urls=url('');
$url_image= $urls.'/assets/source/lessons/video-'.$i.'/'.$imagefilename;
}
//insert video
if(!empty($lessons_video[$key])){
$lessonsfilename = $lessons_video[$key]->getClientOriginalName();
$lessons_video[$key]->move($DestinationPath, $lessonsfilename);
}else{
$lessonsfilename = '';
}
if($lessonsfilename ==''){
$url_video= $lessonsfilename;
}else{
$urls=url('');
$url_video= $urls.'/assets/source/lessons/video-'.$i.'/'.$lessonsfilename;
}
$media = FFMpeg::open($url_video);
$frame = $media->getFrameFromString('00:00:13.37');
dd($lessonsfilename);
$store = new Video;
$store->lessons_id = $lessonsid;
$store->title = $titles;
$store->image = $url_image;
$store->video = $url_video;
$store->description = $description[$key];
$store->type_video = $type_video;
$store->durasi = 0;
$store->created_at = $now;
$store->enable=1;
$store->save();
if($store){
// $media = FFMpeg::open($store->video);
// // $frame = FFMpeg::open($link)
// // ->getFrameFromSeconds(10)
// // ->export()
// // ->toDisk('public')
// // ->save($filename.'.png');
// // dd($frame);
// $durationInSeconds = $media->getDurationInSeconds();
// dd($media);
}
$i++;
}
// Session::set('lessons_title',$title);
// Session::set('lessons_category_id',$category_id);
// Session::set('lessons_image',$image);
// Session::set('lessons_description',$description);
return redirect('contributor/lessons/'.$lessonsid.'/view')->with('success','Penambahan video berhasil');
}
}it give me an errors like this :
Unable to probe /var/www/html/dev/laravel/storage/app/https://dev.cilsy.id/assets/source/lessons/video-4/1. Introduction (1).mp4
so the problem is it the way I check that it has multiple file using is_array is right ? and the second what can cause this problems ?
-
Anomalie #3371 : faille sécurité ? balise meta+refresh dans un champ d’article
5 janvier 2015, par goldstein goldsteinCiao
Sauf que le fait d’autoriser l’inscription ouverte est une fonctionnalité de la distribution par défaut, ce n’est pas un plugin.
Par défaut SPIP fait confiance. Donc l’un et l’autre semblent logiques ainsi. Après est ce qu’on est d’accord ou pas, c’est un débat complémentaire.