
Recherche avancée
Autres articles (78)
-
Participer à sa traduction
10 avril 2011Vous pouvez nous aider à améliorer les locutions utilisées dans le logiciel ou à traduire celui-ci dans n’importe qu’elle nouvelle langue permettant sa diffusion à de nouvelles communautés linguistiques.
Pour ce faire, on utilise l’interface de traduction de SPIP où l’ensemble des modules de langue de MediaSPIP sont à disposition. ll vous suffit de vous inscrire sur la liste de discussion des traducteurs pour demander plus d’informations.
Actuellement MediaSPIP n’est disponible qu’en français et (...) -
Creating farms of unique websites
13 avril 2011, parMediaSPIP platforms can be installed as a farm, with a single "core" hosted on a dedicated server and used by multiple websites.
This allows (among other things) : implementation costs to be shared between several different projects / individuals rapid deployment of multiple unique sites creation of groups of like-minded sites, making it possible to browse media in a more controlled and selective environment than the major "open" (...) -
HTML5 audio and video support
13 avril 2011, parMediaSPIP uses HTML5 video and audio tags to play multimedia files, taking advantage of the latest W3C innovations supported by modern browsers.
The MediaSPIP player used has been created specifically for MediaSPIP and can be easily adapted to fit in with a specific theme.
For older browsers the Flowplayer flash fallback is used.
MediaSPIP allows for media playback on major mobile platforms with the above (...)
Sur d’autres sites (12442)
-
Splitting videos slowly using FFMpeg in android
13 mai 2017, par KrishHi i am using FFMpeg below command1 for splitting video files in android,I am facing problem here when i upload more than 40Mb file taking too long time for splitting the files
Using command2 videos are splitting very fastly but splitting files size count more than main file size
Is there no way for splitting videos fastly with not increasing splitting videos count size compare to main file,Can some one help me please.
Command1 :-
String[] cmd = {"-ss", "" + "0", "-y", "-i", "inputFile", "-t", "" + "5", "-s",
"width" + "x" +
"height", "-vcodec", "mpeg4", "-b:v",
"2097152", "-b:a", "48000", "-ac", "2", "-ar", "22050", Environment.getExternalStorageDirectory() +
"/FFMpeg" + "/" + outPutFile + "" + indexValue + "" + "." + "mp4"};Command2 :-
String cmd[] = new String[]{"-i","inputfile", "-ss", "" + start, "-c", "copy", "-t", "" +
end, "-acodec", "copy", "-vcodec", "copy",
Environment.getExternalStorageDirectory() +
"outPutFile.mp4"}; -
How to join two videos into one stream using ffmpeg
12 janvier 2016, par Andrey ProkhorenkoI am new to ffmpeg, and I try to join two videos and get a video stream. I found a command :
ffmpeg -i input0.avi -vf "movie=input1.avi [in1]; [in]pad=640*2:352[in0]; [in0][in1] overlay=640:0 [out]" out.avi
but at the end we get a file "out.avi" and I need a video stream. Is there any way to achieve this ?
-
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