
Recherche avancée
Médias (1)
-
The Great Big Beautiful Tomorrow
28 octobre 2011, par
Mis à jour : Octobre 2011
Langue : English
Type : Texte
Autres articles (65)
-
Submit bugs and patches
13 avril 2011Unfortunately a software is never perfect.
If you think you have found a bug, report it using our ticket system. Please to help us to fix it by providing the following information : the browser you are using, including the exact version as precise an explanation as possible of the problem if possible, the steps taken resulting in the problem a link to the site / page in question
If you think you have solved the bug, fill in a ticket and attach to it a corrective patch.
You may also (...) -
Submit enhancements and plugins
13 avril 2011If you have developed a new extension to add one or more useful features to MediaSPIP, let us know and its integration into the core MedisSPIP functionality will be considered.
You can use the development discussion list to request for help with creating a plugin. As MediaSPIP is based on SPIP - or you can use the SPIP discussion list SPIP-Zone. -
(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 (...)
Sur d’autres sites (8007)
-
How to set path to Opus on Heroku
19 décembre 2016, par onnexHi I’m stuck on getting opuslib to work on Heroku. I’ve installed the opus library buildback here https://elements.heroku.com/buildpacks/dubsmash/heroku-buildpack-opus
However my app throws an error
Error in command 'play' - OpusNotLoaded:
I’m assuming my app is not detecting the opus buildpack. This is where I get stuckFrom uploading changes to my repo the log shows
remote: ----------------------------------------------------------------------
remote: Libraries have been installed in:
remote: /tmp/build_b191a43c9f4f1541f35409377bad92ed/libopus/build/lib
remote:
remote: If you ever happen to want to link against installed libraries
remote: in a given directory, LIBDIR, you must either use libtool, and
remote: specify the full pathname of the library, or use the `-LLIBDIR'
remote: flag during linking and do at least one of the following:
remote: - add LIBDIR to the `LD_LIBRARY_PATH' environment variable
remote: during execution
remote: - add LIBDIR to the `LD_RUN_PATH' environment variable
remote: during linking
remote: - use the `-Wl,-rpath -Wl,LIBDIR' linker flag
remote: - have your system administrator add LIBDIR to `/etc/ld.so.conf'
remote:
remote: See any operating system documentation about shared libraries for
remote: more information, such as the ld(1) and ld.so(8) manual pages.
remote: ----------------------------------------------------------------------
remote: make[4]: Entering directory `/tmp/build_b191a43c9f4f1541f35409377bad92ed/libopus/opus-1.1/doc'
remote: make[5]: Entering directory `/tmp/build_b191a43c9f4f1541f35409377bad92ed/libopus/opus-1.1/doc'
remote: make[5]: Nothing to be done for `install-exec-am'.
remote: make[5]: Nothing to be done for `install-data-am'.
remote: make[5]: Leaving directory `/tmp/build_b191a43c9f4f1541f35409377bad92ed/libopus/opus-1.1/doc'
remote: make[4]: Leaving directory `/tmp/build_b191a43c9f4f1541f35409377bad92ed/libopus/opus-1.1/doc'
remote: /bin/mkdir -p '/tmp/build_b191a43c9f4f1541f35409377bad92ed/libopus/build/share/aclocal'
remote: /usr/bin/install -c -m 644 opus.m4 '/tmp/build_b191a43c9f4f1541f35409377bad92ed/libopus/build/share/aclocal'
remote: /bin/mkdir -p '/tmp/build_b191a43c9f4f1541f35409377bad92ed/libopus/build/lib/pkgconfig'
remote: /usr/bin/install -c -m 644 opus.pc '/tmp/build_b191a43c9f4f1541f35409377bad92ed/libopus/build/lib/pkgconfig'
remote: /bin/mkdir -p '/tmp/build_b191a43c9f4f1541f35409377bad92ed/libopus/build/include/opus'
remote: /usr/bin/install -c -m 644 include/opus.h include/opus_multistream.h include/opus_types.h include/opus_defines.h '/tmp/build_b191a43c9f4f1541f35409377bad92ed/libopus/build/include/opus'
remote: make[3]: Leaving directory `/tmp/build_b191a43c9f4f1541f35409377bad92ed/libopus/opus-1.1'
remote: make[2]: Leaving directory `/tmp/build_b191a43c9f4f1541f35409377bad92ed/libopus/opus-1.1'
remote: make[1]: Leaving directory `/tmp/build_b191a43c9f4f1541f35409377bad92ed/libopus/opus-1.1'
remote: -----> Python app detected
remote: $ pip install -r requirements.txt
remote:
remote: -----> ffmpeg app detected
remote: -----> Installing ffmpeg, ffmpeg-10bit, ffprobe, ffserver and qt-faststart ...
remote: exporting PATH
remote: -----> Discovering process types
remote: Procfile declares types -> worker
remote:
remote: -----> Compressing...
remote: Done: 220.2MHow would I set my library so my app can detect opus ? Your help would be greatly appreciated.
-
Revision d0796bcd0a5788f944919812a2d65232ee92110a : "pour faire logout il faut utiliser le path comme pour login sinon ce ...
26 septembre 2007, par Cerdic — Log"pour faire logout il faut utiliser le path comme pour login sinon ce n’est pas le meme cookie qu’on efface" git-svn-id : svn ://trac.rezo.net/spip/branches/spip-1.9.2@10423 caf5f3e8-d4fe-0310-bb3e-c32d5e47d55d
-
Convert any type of video to mp4 then add the path to the database
19 août 2017, par DilakSo here is my problem : On my website I want to allow users to upload any type of video. But with the HTML5 tag only .mp4 video can be used.
So I want to convert any type of video submit by the user to MP4 then add the path to the databse.I’ve read something about FFmpeg but I can’t figure out how to use it. I tried to use shell_exec("ffmpeg -i ".$vid." -vcodec libx264 -crf 20 out.mp4 2>&1") without success.
The html
<form method="post" enctype="multipart/form-data" action="post.php">
<input type="file" class=" file_multi_video" accept="video/*" />
</form>The php script :
if(file_exists($_FILES['media-vid']['tmp_name']) && is_uploaded_file($_FILES['media-vid']['tmp_name']))
{
$targetvid = md5(time());
$target_dirvid = "videos/";
$target_filevid = $targetvid.basename($_FILES["media-vid"]["name"]);
$uploadOk = 1;
$videotype = pathinfo($target_filevid,PATHINFO_EXTENSION);
if ($_FILES["media-vid"]["size"] > 500000000) {
$uploadOk = 0;
echo "Sorry, your file is too large.";
}
// Check if $uploadOk is set to 0 by an error
if ($uploadOk == 0) {
echo "Sorry, your video was not uploaded.";
// if everything is ok, try to upload file
} else {
$target_filevid = strtr($target_filevid,
'ÀÁÂÃÄÅÇÈÉÊËÌÍÎÏÒÓÔÕÖÙÚÛÜÝàáâãäåçèéêëìíîïðòóôõöùúûüýÿ',
'AAAAAACEEEEIIIIOOOOOUUUUYaaaaaaceeeeiiiioooooouuuuyy');
$target_filevid = preg_replace('/([^.a-z0-9]+)/i', '_', $target_filevid);
if (!move_uploaded_file($_FILES["media-vid"]["tmp_name"], $target_dirvid. $target_filevid)) {
echo "Sorry, there was an error uploading your file. Please retry.";
}else{
$vid= $target_dirvid.$target_filevid;
shell_exec("ffmpeg -i ".$vid." -vcodec libx264 -crf 20 out.mp4 2>&1");
}
}
}