
Recherche avancée
Médias (91)
-
Géodiversité
9 septembre 2011, par ,
Mis à jour : Août 2018
Langue : français
Type : Texte
-
USGS Real-time Earthquakes
8 septembre 2011, par
Mis à jour : Septembre 2011
Langue : français
Type : Texte
-
SWFUpload Process
6 septembre 2011, par
Mis à jour : Septembre 2011
Langue : français
Type : Texte
-
La conservation du net art au musée. Les stratégies à l’œuvre
26 mai 2011
Mis à jour : Juillet 2013
Langue : français
Type : Texte
-
Podcasting Legal guide
16 mai 2011, par
Mis à jour : Mai 2011
Langue : English
Type : Texte
-
Creativecommons informational flyer
16 mai 2011, par
Mis à jour : Juillet 2013
Langue : English
Type : Texte
Autres articles (101)
-
Personnaliser les catégories
21 juin 2013, parFormulaire de création d’une catégorie
Pour ceux qui connaissent bien SPIP, une catégorie peut être assimilée à une rubrique.
Dans le cas d’un document de type catégorie, les champs proposés par défaut sont : Texte
On peut modifier ce formulaire dans la partie :
Administration > Configuration des masques de formulaire.
Dans le cas d’un document de type média, les champs non affichés par défaut sont : Descriptif rapide
Par ailleurs, c’est dans cette partie configuration qu’on peut indiquer le (...) -
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 -
Use, discuss, criticize
13 avril 2011, parTalk to people directly involved in MediaSPIP’s development, or to people around you who could use MediaSPIP to share, enhance or develop their creative projects.
The bigger the community, the more MediaSPIP’s potential will be explored and the faster the software will evolve.
A discussion list is available for all exchanges between users.
Sur d’autres sites (6799)
-
crossorigin header in php is not working after previous php exec ffmpeg command
17 avril 2022, par ivyyeziyangI am using php exec function to execute a FFMPEG command, but I am also using Javascript to send the request and they are cross origin requests, but after the exec command, while I start to send next cross origin request, it shows
Access to XMLHttpRequest at 'https://www..com:550/api/adminapi' from origin 'https://www..com:8081' has been blocked by CORS policy : No 'Access-Control-Allow-Origin' header is present on the requested resource.
which means the cross origin header is not working in the next cross origin request after exec command,
below is the code :


if (isset($_POST['crossorigin'])) {
$crossoriginallow = array();
$crossoriginallow = [
'https://www.***.com:8080', 
'https://www.***.com:8081', 
'https://www.***.com:8082'];
for ($i = 0; $i < sizeof($crossoriginallow); $i++) {
if ($crossoriginallow[$i] == $_POST['crossorigin']) {
 $crossorigin = $_POST['crossorigin'];
 break;
 }
}
header("Access-Control-Allow-Origin:$crossorigin");
header("Access-Control-Allow-Methods:GET, POST, OPTIONS, DELETE");
header("Access-Control-Allow-Headers:DNT,X-Mx-ReqToken,Keep- 
Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache- 
Control,Content-Type, Accept-Language, Origin, Accept-Encoding");
}

exec("ffmpeg -i " . $infilepath . " -c:v mpeg4 -preset veryslow - 
 c:a mp3 -q 0 " . $outfilepath /* . " 2>&1" *//* , $out */);

 $infilepathsep = explode('/', $infilepath);
 $folderpath = '';
 for ($i = 0; $i < sizeof($infilepathsep) - 1; $i++) {
 $folderpath = $folderpath . $infilepathsep[$i];
 $folderpath = $folderpath . '/';
}

 $opendirhandle = opendir($folderpath);
 closedir($opendirhandle);
 $openfilehandle = fopen($infilepath, 'r');
 fclose($openfilehandle);
 unlink(iconv("utf-8", "gbk", $infilepath));
 $result['data'] = $outfilepath;
 $result['msg'] = 'success';
 $jsonresult = json_encode($result);
 echo $jsonresult;
 ob_get_contents();
 ob_end_flush();



I does not encounter this problem before using the same code,but after I reinstall the computer it happens, May I please ask the reason if you know the problem ? Thank you very much for your help !


-
Convert WebM/H.264 to MP4/H.264 efficiently with ffmpeg.js
31 juillet 2017, par SB2055As a result of the answer here : Recording cross-platform (H.264 ?) videos using WebRTC MediaRecorder
How can one go about using
ffmpeg.js
to efficiently unwrap awebm
h.264
video and re-wrap it into anmp4
container ?I’m looking through the docs : https://github.com/Kagami/ffmpeg.js?files=1
However I don’t see (or perhaps I’m looking for the wrong terminology) any examples for the above. This operation will be performed on the browser (chrome) prior to uploading as a
Blob
- I could use a web worker though hopefully rewrapping is a trivial enough operation to not require it. -
For lossless video compression, which is better ? crf or qp ?
19 avril 2020, par Nagabhushan S NI have a raw video. I need it to compress it losslessly. There are two ways to do this. Setting the parameters
crf
orqp
to 0.crf
achieves constant bitrate whileqp
has constant quantization. I've two questions :


- 

- Do the options
-crf 0
and-qp 0
achieve the same result (lossless compression) ? - If not, what is the difference ? Which is recommended to have lossless compression ?







This question asks about
crf
andqp
, but doesn't talk about lossless compression.

- Do the options