
Recherche avancée
Médias (1)
-
Bug de détection d’ogg
22 mars 2013, par
Mis à jour : Avril 2013
Langue : français
Type : Video
Autres articles (88)
-
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 ;
-
Organiser par catégorie
17 mai 2013, parDans MédiaSPIP, une rubrique a 2 noms : catégorie et rubrique.
Les différents documents stockés dans MédiaSPIP peuvent être rangés dans différentes catégories. On peut créer une catégorie en cliquant sur "publier une catégorie" dans le menu publier en haut à droite ( après authentification ). Une catégorie peut être rangée dans une autre catégorie aussi ce qui fait qu’on peut construire une arborescence de catégories.
Lors de la publication prochaine d’un document, la nouvelle catégorie créée sera proposée (...) -
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 (7217)
-
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 ?
-
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.


-
-
Anomalie #4574 : Authentification AJAX non fonctionnelle lorsque mode parano actif
17 février 2021, par cedric -je rebondis là dessus car je me suis posé la question sur #4167 mais qu’est ce que tu appelles le mode parano ?
Pour moi c’est la config$GLOBALS['filtrer_javascript']=-1
mais pour le coup ça change uniquement dans l’espace privé par rapport au réglage par défaut, et rien dans l’espace public.Donc comment est-ce que ça casserait l’authentification ajax ? Ce serait pas plutôt, au hasard, ton plugin htmlpurifier qui du coup intervient partout dans ce mode de fonctionnement, et ça en effet on le supporte pas du tout (et surtout il faudrait l’expliquer plus clairement dans les tickets cas là on cherche à côté de la plaque...)