
Recherche avancée
Autres articles (47)
-
Gestion générale des documents
13 mai 2011, parMédiaSPIP ne modifie jamais le document original mis en ligne.
Pour chaque document mis en ligne il effectue deux opérations successives : la création d’une version supplémentaire qui peut être facilement consultée en ligne tout en laissant l’original téléchargeable dans le cas où le document original ne peut être lu dans un navigateur Internet ; la récupération des métadonnées du document original pour illustrer textuellement le fichier ;
Les tableaux ci-dessous expliquent ce que peut faire MédiaSPIP (...) -
Des sites réalisés avec MediaSPIP
2 mai 2011, parCette page présente quelques-uns des sites fonctionnant sous MediaSPIP.
Vous pouvez bien entendu ajouter le votre grâce au formulaire en bas de page. -
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 (3043)
-
Is there a way a video can be encoded on its own when uploaded into server
18 février 2013, par user1914374Below is my code where it uploads a file into a server and stores the names of each uploaded file into the db :
<?php
// connect to the database
include('connect.php');
/* check connection */
if (mysqli_connect_errno()) {
printf("Connect failed: %s\n", mysqli_connect_error());
die();
}
if ($_FILES['fileVideo']['error'] === UPLOAD_ERR_OK) {
$result = 0;
if( file_exists("VideoFiles/".$_FILES['fileVideo']['name'])) {
$parts = explode(".",$_FILES['fileVideo']['name']);
$ext = array_pop($parts);
$base = implode(".",$parts);
$n = 2;
while( file_exists("VideoFiles/".$base."_".$n.".".$ext)) $n++;
$_FILES['fileVideo']['name'] = $base."_".$n.".".$ext;
move_uploaded_file($_FILES["fileVideo"]["tmp_name"],
"VideoFiles/" . $_FILES["fileVideo"]["name"]);
$result = 1;
}
else
{
move_uploaded_file($_FILES["fileVideo"]["tmp_name"],
"VideoFiles/" . $_FILES["fileVideo"]["name"]);
$result = 1;
}
$videosql = "INSERT INTO Video (VideoFile)
VALUES (?)";
if (!$insert = $mysqli->prepare($videosql)) {
// Handle errors with prepare operation here
}
//Assign the variable
$vid = 'VideoFiles/'.$_FILES['fileVideo']['name'];
//Dont pass data directly to bind_param store it in a variable
$insert->bind_param("s",$vid);
$insert->execute();
$id = $mysqli->insert_id;
if ($insert->errno) {
// Handle query error here
}
$insert->close();
}else{
echo "Upload was not successful";
}
?>
<code class="echappe-js"><script language="javascript" type="text/javascript"><br />
window.top.stopVideoUpload(&lt;?php echo $result; ?>,&#39;&lt;?php echo $id; ?>&#39;, &#39;&lt;?php echo $_FILES[&#39;fileVideo&#39;][&#39;name&#39;]; ?>&#39;);<br />
</script>Now I am using a jwplayer and it requires video files to match video formats on this page :
So I need to be able to encode files automatically on the server when the file is uploaded into the server. I do not want the user to try and encode a video file manually by themseleves, I want it done automatically. But my question is how can I get automatic server side file encoding to work ?
I have a demo showing how a video file is uploaded : DEMO
To use Demo :
-
Click on
Add Question
button and file input will appear in table -
Click on upload straightaway and you will see a simple validation stating which video file format are allowed (this is simply done by checking video file extension)
-
Browse for a video file, select and then click on
Upload
and wait for upload to finish (I recommend a short video file for saving time). When file is uploaded it will display success message and video file is uploaded into server,
-
-
Revision 7d8fc26c9c : vpxdec : support scaling output Adds an option, —scale, that will rescale any f
26 février 2013, par John KoleszarChanged Paths : Modify /examples.mk Modify /vpxdec.c vpxdec : support scaling output Adds an option, —scale, that will rescale any frames produced by the decoder that don't match the resolution of the first frame to that resolution. This is useful for playback of files that use spatial (...)
-
Revision 1cfc86ebe0 : Add unit test for x4 multi-SAD functions Update the function prototypes to matc
1er mars 2013, par John KoleszarChanged Paths : Modify /test/sad_test.cc Modify /vp9/common/vp9_rtcd_defs.sh Modify /vp9/encoder/vp9_sad_c.c Modify /vp9/encoder/vp9_variance.h Add unit test for x4 multi-SAD functions Update the function prototypes to match between VP9 and VP8. Change-Id : (...)