
Recherche avancée
Autres articles (22)
-
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 (2708)
-
Need someone to write a batch shell script to watermark videos via ffmpeg [closed]
21 janvier 2021, par Shiv NandanI am using a batch shell script on windows server to watermark videos


for %%a in ("X:\input older\*.mp4") do ffmpeg -i "%%a" -vf "movie=watermark.png [watermark]; [in][watermark] overlay=main_w-overlay_w-10:10 [out]" "X:\output folder\%%~na.mp4"
pause



It converts all videos from input folder to output folder. I want to...


- 

- Change watermark location after every 10 seconds in video for all videos.
- Water mark size is perfect when video resolution is 19201080 but its different for low resolution video for example : 1280720 its large, and for 640*360 extra large. So I want to keep the water mark size fixed.






-
FFMPEG Script Produces video of 1 second
17 septembre 2019, par Tim JI am trying to work the script found here
#########################
## START CONFIGURATION ##
#########################
# path to video playlist.txt
playlist="playlist.txt";
# output frame size
outsize="1920x1080";
# frames per second
fps="60";
# video bitrate
bv="20M";
# audio bitrate
ba="256k";
# video codec
cv="h264";
# audio codec
ca="libfdk_aac";
# output container format
fmt="flv";
# base frequency (Hz)
bfreq="20";
# end frequency (Hz)
efreq="1420";
#######################
## END CONFIGURATION ##
#######################
randfile="$(cat "$playlist" | rl | head -1)";
duration="$(mediainfo --Inform="Video;%Duration/String3%" $randfile)";
viz="volume=2,showcqt=s=1920x144:text=0:r=$fps:axis=0:basefreq=$bfreq:endfreq=$efreq:count=15:sono_g=4:bar_g=4:bar_v=35:sono_h=144:sono_v=bar_v*a_weighting(f):tc=0.1,rotate=1200*sin(200*PI/200*t):ow=24:oh=24:c=none,scale=$outsize,setsar=1/1[viz];[1:v]scale=$outsize,setsar=1/1[vid1];[viz][vid1]blend=all_mode=heat:shortest=1:repeatlast=0,hue="H="2*PI*t/420""";
enc="-s $outsize -c:a $ca -b:a $ba -c:v $cv -preset ultrafast -b:v $bv -profile:v high -level 4.2 -g "$(bc <<< $fps*2)" -bf 2 -x264opts keyint="$(bc <<< $fps*2)":min-keyint="$(bc <<< $fps*2)":8x8dct=1 -pix_fmt yuv420p -r $fps";
ffmpeg -hide_banner -i "$1" -r $fps -i "$randfile" -filter_complex $viz $enc -t $duration -shortest -f $fmt "$2";When running however I am only getting a video output of 1 second, there is no exit message the process just ends.
The command I am running is
./ffviz.sh http://50.7.77.114:8277 output.mp4
The 1 second clip does contain the correct mp4 and and audio, so I believe the process is working, I am not able however to make it run it for longer than 1 second.
-
add watermark on video upload and compress to 360p using my script [closed]
31 janvier 2023, par Realbro media tipsI want to add watermark to my videos on upload using this my remote upload script and also compress video to 360p.


if (isset($_POST["submit"])) {
 $file_url = $_POST["file_url"];
 $file_name = $_POST["file_name"];

 if (filter_var($file_url, FILTER_VALIDATE_URL)) {
 $pathinfo = pathinfo($file_url);
 if (isset($pathinfo["extension"])) {
 $file_name .= "." . $pathinfo["extension"];
 $file_content = file_get_contents($file_url);
 $fopen = fopen("files/" . $file_name, "w");
 $fwrite = fwrite($fopen, $file_content);
 fclose($fopen);
 if ($fwrite) {
 $msg["success"] = "<input type="'text'" value="'https://example.com/file/files/$file_name'" />
<button>Copy text</button> File Uploaded Successfully.";
 $_POST["file_url"] = "";
 $_POST["file_name"] = "";
 } else {
 $msg["error"] = "Something wrong went. Please try again.";
 }
 } else {
 $msg["error"] = "Please enter a file URL.";
 }
 } else {
 $msg["error"] = "Please enter a valid URL.";
 }
}
?>



I have not tried anything cos am yet to learn more on this category.