
Recherche avancée
Médias (3)
-
MediaSPIP Simple : futur thème graphique par défaut ?
26 septembre 2013, par
Mis à jour : Octobre 2013
Langue : français
Type : Video
-
GetID3 - Bloc informations de fichiers
9 avril 2013, par
Mis à jour : Mai 2013
Langue : français
Type : Image
-
GetID3 - Boutons supplémentaires
9 avril 2013, par
Mis à jour : Avril 2013
Langue : français
Type : Image
Autres articles (45)
-
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 (4974)
-
Need help combining commands in to a script to run in Ubuntu
17 juin 2020, par user298294I have a bunch of video files with DTS audio that I need to convert to AC3. I have found commands that can do different parts of the task but I'm not sure how to put it all together to make a script that works. I have found the following script that will convert the audio from all my files to AC3 however I would prefer for it to only convert the DTS audio files to AC3. The script is as follows.



shopt -s globstar
for f in **/*.mkv; 
do 
 fname="${f##*/}"
 ffmpeg -i "$f" -c:v copy -c:s copy -c:a ac3 "/some/directory/$fname" &&
 mv "/some/directory/$fname" "$f"
done




I have also found this command that will return what sort of audio codec the mkv file is using.



`ffprobe -v error -select_streams a:0 -show_entries stream=codec_name -of default=nokey=1:noprint_wrappers=1 input.mkv`




So I'm wondering how I can combine the two to create a script that will do what I want it to do. I'm guessing I can add an if function using ffprobe at the beginning of the script ? Something like this...



shopt -s globstar
for f in **/*.mkv; 
do 
 fname="${f##*/}"
 if ffprobe -v error -select_streams a:0 -show_entries stream=codec_name -of 
 default=nokey=1:noprint_wrappers=1 "$f" | egrep "DTS"; then
 ffmpeg -i "$f" -c:v copy -c:s copy -c:a ac3 "/some/directory/$fname" &&
 mv "/some/directory/$fname" "$f"
 fi
done




Are there any problems with that ? I haven't written scripts since I was in high school playing around with my graphics calculator because I was bored so any help would be greatly appreciated.


-
Revision 69908 : inserer avant ou car peut etre un script inline et ...
14 février 2013, par cedric@… — Loginserer avant < ;link> ; ou < ;/head> ; car < ;script> ; peut etre un script inline et il devient bloquant derriere ne css
-
PHP script to close the ffmpeg session
14 octobre 2016, par Kiran Kumar SWe’ve made a PHP script to run the ffmpeg on a Windows 7 machine in background as below :
<?php
date_default_timezone_set('Asia/Kolkata');
$date = date('dmY_His', time());
$outputdst = ("C:/Users/test/Desktop/$date");
$cmd = "ffmpeg -f dshow -i video=screen-capture-recorder -r 15 -t 360 $outputdst.avi ";
$WshShell = new COM("WScript.Shell");
$WshShell->Run($cmd, 0, false);
?>The script is able to start the screen recording. Now the issue is if I kill the process, then the recorded file is not playing. How to stop ffmpeg without corrupting the recorded file ?