
Recherche avancée
Médias (1)
-
Revolution of Open-source and film making towards open film making
6 octobre 2011, par
Mis à jour : Juillet 2013
Langue : English
Type : Texte
Autres articles (41)
-
La sauvegarde automatique de canaux SPIP
1er avril 2010, parDans le cadre de la mise en place d’une plateforme ouverte, il est important pour les hébergeurs de pouvoir disposer de sauvegardes assez régulières pour parer à tout problème éventuel.
Pour réaliser cette tâche on se base sur deux plugins SPIP : Saveauto qui permet une sauvegarde régulière de la base de donnée sous la forme d’un dump mysql (utilisable dans phpmyadmin) mes_fichiers_2 qui permet de réaliser une archive au format zip des données importantes du site (les documents, les éléments (...) -
Script d’installation automatique de MediaSPIP
25 avril 2011, parAfin de palier aux difficultés d’installation dues principalement aux dépendances logicielles coté serveur, un script d’installation "tout en un" en bash a été créé afin de faciliter cette étape sur un serveur doté d’une distribution Linux compatible.
Vous devez bénéficier d’un accès SSH à votre serveur et d’un compte "root" afin de l’utiliser, ce qui permettra d’installer les dépendances. Contactez votre hébergeur si vous ne disposez pas de cela.
La documentation de l’utilisation du script d’installation (...) -
Automated installation script of MediaSPIP
25 avril 2011, parTo overcome the difficulties mainly due to the installation of server side software dependencies, an "all-in-one" installation script written in bash was created to facilitate this step on a server with a compatible Linux distribution.
You must have access to your server via SSH and a root account to use it, which will install the dependencies. Contact your provider if you do not have that.
The documentation of the use of this installation script is available here.
The code of this (...)
Sur d’autres sites (5959)
-
Ajax call returns 500 error
26 mars 2018, par user3080392I have an Ajax call to a PHP script. The PHP script uses FFmpeg to concatenate several
.ts
files into one, and then converts it into an MP4 file.The PHP script manages to concatenate the files and convert the file to an MP4. However, none of the code after the FFmpeg commands is carried out.
Furthermore, my Ajax "success" function always returns a "500 Internal Server Error"
Here’s the Ajax :
function makeVid(vidUrl) {
$.ajax({
type: "POST",
url: 'make_vid.php',
data: {url: vidUrl},
cache: false,
success: function(data){
$("#vidResult").append(data);
document.getElementById(#myBtn).disabled = false;
},
error: function (jqXHR, exception) {
var msg = '';
if (jqXHR.status === 0) {
msg = 'Not connect.\n Verify Network.';
} else if (jqXHR.status == 404) {
msg = 'Requested page not found. [404]';
} else if (jqXHR.status == 500) {
msg = 'Internal Server Error [500].';
} else if (exception === 'parsererror') {
msg = 'Requested JSON parse failed.';
} else if (exception === 'timeout') {
msg = 'Time out error.';
} else if (exception === 'abort') {
msg = 'Ajax request aborted.';
} else {
msg = 'Uncaught Error.\n' + jqXHR.responseText;
}
$('#vidResult').html(msg);
}
});
}And here’s the PHP/FFmpeg :
shell_exec("$ffmpeg -f concat -safe 0 -i $vidClipsListTxtFile -c copy $combinedFileTs 1> $makeVidProgTxtFileTs 2>&1");
shell_exec("$ffmpeg -i $combinedFileTs -f mpegts -codec:v mpeg1video -bf 0 -codec:a mp2 -q 12 $combinedFileMp4 1> $makeVidProgTxtFileMp4 2>&1");
echo "video completed.";The PHP error log includes the following errors :
File does not exist: /home/mysite/public_html/favicon.ico
File does not exist: /home/mysite/public_html/404.shtml
File does not exist: /home/mysite/public_html/505.shtml
File does not exist: /home/mysite/public_html/robots.txtAnd here are some of the things I’ve tried to correct the problem :
-
Created the above files in the
public_html
folder -
Increased the
max_execution_time
andmemory_limit
in myphp.ini
file -
Changed the Ajax
success()
function to acomplete()
function
I still get the 500 error. What else can I try ?
-
-
Turn an FFMPEG script into bat file [closed]
24 décembre 2022, par Chase RogersCan someone help me turn this code into a bat file.


ffmpeg -i videoName.mp4 -vf fps=1/60 videoName_thumb%04d.png


If you know of a way to make it so that it will automatically use the videos name that would be very helpful as well.


I don't know anything about ffmpeg or bat files, I have been doing copy paste and test. I have found another script to take a space in a file name and turn it into a - so that this ffmpeg script will work. I will also be trying to turn that into a bat file as well, if you know of a bat file script that can do that I would really appreciate it.


-
Batch script cannot read file if there is a space
25 août 2022, par ShahpariCD "C:\Input"
for %%a in ("*.*") do "C:\ffmpeg.exe" -i %%a -map 0:v -map 0:a:0 -map 0:s -c:v copy -c:a ac3 -b:a 640K "C:\Out\%%~na.mkv"
pause



if there is no space this script works fine, but if there is a space in file name, the script reads only the first word of the file and throws an error. i tried to add a double quote first %%a. but then the script does not even run.


here is an example file name :

[TEST] ABC test - 99