
Recherche avancée
Autres articles (82)
-
Soumettre améliorations et plugins supplémentaires
10 avril 2011Si vous avez développé une nouvelle extension permettant d’ajouter une ou plusieurs fonctionnalités utiles à MediaSPIP, faites le nous savoir et son intégration dans la distribution officielle sera envisagée.
Vous pouvez utiliser la liste de discussion de développement afin de le faire savoir ou demander de l’aide quant à la réalisation de ce plugin. MediaSPIP étant basé sur SPIP, il est également possible d’utiliser le liste de discussion SPIP-zone de SPIP pour (...) -
Le profil des utilisateurs
12 avril 2011, parChaque utilisateur dispose d’une page de profil lui permettant de modifier ses informations personnelle. Dans le menu de haut de page par défaut, un élément de menu est automatiquement créé à l’initialisation de MediaSPIP, visible uniquement si le visiteur est identifié sur le site.
L’utilisateur a accès à la modification de profil depuis sa page auteur, un lien dans la navigation "Modifier votre profil" est (...) -
Configurer la prise en compte des langues
15 novembre 2010, parAccéder à la configuration et ajouter des langues prises en compte
Afin de configurer la prise en compte de nouvelles langues, il est nécessaire de se rendre dans la partie "Administrer" du site.
De là, dans le menu de navigation, vous pouvez accéder à une partie "Gestion des langues" permettant d’activer la prise en compte de nouvelles langues.
Chaque nouvelle langue ajoutée reste désactivable tant qu’aucun objet n’est créé dans cette langue. Dans ce cas, elle devient grisée dans la configuration et (...)
Sur d’autres sites (8055)
-
do something with script output
3 novembre 2017, par Opolo WebdesignI’m lazy :) so I would like to automate some things on my network. Currently I’m running a script that automatically downloads the series I watch every week. Based on what is downloaded another script searches the web for subtitles. Some downloads however have subtitles with them, so searching for subtitles is not necessary. I would like to check every download for subtitles and get notified (or better move the file) if the file has the correct subtitles.
I started with the following :
find /volume2/Downloads/ -type f -mmin -30 | while IFS= read -r file; do
ffmpeg -i "${file}"
doneThis works and shows me the output of the ffmpeg command for each file newer than 30 minutes. I would like to work with the result given by ffmpeg so that when certain characters are present in the output, I’m notified via mail. My Linux scripting skills however stop at the script I got. I’m a web developer so I understand the logic behind a script like this, but not the specific code or commands.
Characters that I’m looking for :
- (eng) : Subtitle :
- (dut) : Subtitle :
Can this be done ?
Edit :
I did some more research and did some changes to my script :
find /volume2/Downloads/ -type f -mmin -60 | while IFS= read -r file; do
if ffmpeg -i "${file}" | grep -q '(dut): Subtitle:'; then
echo "matched"
fi
doneInstead of "matched" it shows the ffmpeg output, but it’s probably a step in the right direction ?
-
Why is PowerShell Eating my Dash
11 novembre 2017, par gvkvIn a directory
vidtemp
with files :G*53.mp4
(a series of GoPro videos) using PowerShell 5.0 :PS C:\Users\gvkv\vidtemp $sources = Get-ChildItem -Filter *53*
PS C:\Users\gvkv\vidtemp $vin = [String]::Join(" ", $($sources | %{"-i $($_.Name)"}))
PS C:\Users\gvkv\vidtemp $vin
-i GOPR0053.MP4 -i GP010053.MP4 -i GP020053.MP4 -i GP030053.MP4 -i GP040053.MP4 -i GP050053.MP4
PS C:\Users\gvkv\Videos\hockeytemp\tt\trw> $concat = [String]::Join(" ", `
>> $(0..$($sources.count-1) | `
>> %{"[$($_):v:0] [$($_):a:0]"}) + "concat=n=$($sources.count):v=1:a=1 [v] [a]" `
>> )
PS C:\Users\gvkv\vidtemp $concat
PS C:\Users\gvkv\vidtemp [0:v:0] [0:a:0] [1:v:0] [1:a:0] [2:v:0] [2:a:0] [3:v:0] [3:a:0] [4:v:0] [4:a:0] [5:v:0] [5:a:0] concat=n=6:v=1:a=1 [v] [a]
PS C:\Users\gvkv\vidtemp ffmpeg $vin `
>> -filter_complex $concat -map '[v]' -map '[a]' `
>> -c:v -crf 21 -preset slow
>> out.53.mp4
...
Unrecognized option 'i GOPR0053.MP4 -i GP010053.MP4 -i GP020053.MP4 -i GP030053.MP4 -i GP040053.MP4 -i GP050053.MP4'.
ndError splitting the argument list: Option not foundNote there’s no "
-
" on the firsti
. What’s happening and what do I do about it ? -
avconv : video from images with multiple names
15 novembre 2017, par user6760680I am trying to do something apparently simple : I would like to make a video from a series of images which have different roots in their filename, with
avconv
on linux. My images are, say :imageA_0001.png
imageA_0002.png
imageA_0003.png
imageB_0001.png
imageB_0002.png
imageB_0003.png
imageB_0004.pngThe question closest to mine that I could fine is this one. Unfortunately, it does not help me, using a command like :
avconv -pattern_type glob -i 'image?_%04d.png' -c:v libx264 -filter:v "setpts=6.0*PTS" video.mp4
Note that the first answer therein does not work any more. I tried using multiple
-i
for each filename, but that does not work either. I would like to be able to do this without renaming files or making links. Isn’t it possible ?