
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 (63)
-
Les vidéos
21 avril 2011, parComme les documents de type "audio", Mediaspip affiche dans la mesure du possible les vidéos grâce à la balise html5 .
Un des inconvénients de cette balise est qu’elle n’est pas reconnue correctement par certains navigateurs (Internet Explorer pour ne pas le nommer) et que chaque navigateur ne gère en natif que certains formats de vidéos.
Son avantage principal quant à lui est de bénéficier de la prise en charge native de vidéos dans les navigateur et donc de se passer de l’utilisation de Flash et (...) -
(Dés)Activation de fonctionnalités (plugins)
18 février 2011, parPour gérer l’ajout et la suppression de fonctionnalités supplémentaires (ou plugins), MediaSPIP utilise à partir de la version 0.2 SVP.
SVP permet l’activation facile de plugins depuis l’espace de configuration de MediaSPIP.
Pour y accéder, il suffit de se rendre dans l’espace de configuration puis de se rendre sur la page "Gestion des plugins".
MediaSPIP est fourni par défaut avec l’ensemble des plugins dits "compatibles", ils ont été testés et intégrés afin de fonctionner parfaitement avec chaque (...) -
Activation de l’inscription des visiteurs
12 avril 2011, parIl est également possible d’activer l’inscription des visiteurs ce qui permettra à tout un chacun d’ouvrir soit même un compte sur le canal en question dans le cadre de projets ouverts par exemple.
Pour ce faire, il suffit d’aller dans l’espace de configuration du site en choisissant le sous menus "Gestion des utilisateurs". Le premier formulaire visible correspond à cette fonctionnalité.
Par défaut, MediaSPIP a créé lors de son initialisation un élément de menu dans le menu du haut de la page menant (...)
Sur d’autres sites (10592)
-
Simplest way to convert uploaded videos to mp4 before storing them on a server ?
26 juin 2017, par ioanI’m using a goDaddy server and cPanel to make a website, and I want to make a feature that lets users upload videos, save them on the server, then display them elsewhere on the site.
displaying uploaded videos :
echo "<video controls="controls"><source src="{$video_row[$i]}"></source></video>";
But I found out that most browsers can only play a few video formats like mp4. So I want to convert them all to mp4 before saving them to the server. So sometime before running the
move_uploaded_file()
function.Is there something I can download and put on the server that will let me do that ? From other questions I found about FFmpeg, but i couldn’t figure out how to use it and if I can even install it on a godaddy server.
Php code :
if (isset($_FILES["submit_file"])) { //this comes from an html form
$name = $_FILES['submit_file']['name'];
$original_name = $name;
$size = $_FILES['submit_file']['size'];
$tmp_name = $_FILES['submit_file']['tmp_name'];
$target_dir = null;
$finfo = finfo_open(FILEINFO_MIME_TYPE); //get mime type
$mime = finfo_file($finfo, $tmp_name);
if ($mime == "video/mp4" || $mime == "video/wmv" || $mime == "video/avi" || $mime == "video/mov") {
if ($mime != "video/mp4") {
//CONVERT TO MP4
}
$target_dir = "uploads/videos/";
$path = $target_dir.basename($name);
if (move_uploaded_file($tmp_name, $path) == true) {
//moved
}
} else {
//error: Unsupported File Type
}
}How do others deal with videos ? I was able to upload and play mp4 videos fine with my method, but html5 can’t seem to play other types, and I don’t want to limit users to only upload mp4
-
yt-dlp : ffmpeg working for some videos, but not for the others
30 janvier 2023, par Mikki99I started using yt-dlp a few days ago, so I'm new to the whole thing. I needed to download some videos from youtube, but have them split into chapters.


The command :


yt-dlp --split-chapters URL



seems to be doing the right thing. However, running exactly the same command works for some videos, but for some I get the following error :


ERROR: Postprocessing: ffmpeg not found. Please install or provide the path using --ffmpeg-location 'list' is not recognized as an internal or external command, operable program or batch file.



I have previously installed ffmpeg and added it to the PATH and it worked fine, and it doesn't make much sense to me that the command would work for certain URLs if ffmpeg wasn't there.


The video for which the error comes up is no different than the one for which the command works. They both have chapters.


Also, I don't really understand this last part of the error message


'list' is not recognized as an internal or external command, operable program or batch file



Does anyone have an idea what might be happening ?


Please do let me know if there is something else I should share — I'll edit the original post !


Thanks a lot !


I've tried running the command on different short (couple mins long) videos that included chapters (just so the download doesn't take a lot of time). It worked for numerous arbitrary videos I found on youtube. The video that I am actually interested in is 40 min long (suppose that doesn't make any difference), but for this video (or others from this playlist) I run into the mentioned error. Here is the link to the video, if you want to try it out yourself.


-
Splitting videos using ffmpeg - ffsplit.sh by grapsus.net
15 avril 2018, par hongducwbhttp://grapsus.net/blog/post/A-script-for-splitting-videos-using-ffmpeg
Everything work fine, but i dont know how to make it auto splitting each files in folder with different filename ...i have bunch of files but i dont want create each folder for each files then rename it to input name (eg : video.mpg, 1.mp4,..)ffsplit.sh video.mpeg 1200
and is there have anyway to excute it without ffsplit.sh in same folder ? because it’s in ubuntu (installed on windows10) (it’s like Environment Variables in windows)
THANK :)