
Recherche avancée
Autres articles (89)
-
Des sites réalisés avec MediaSPIP
2 mai 2011, parCette page présente quelques-uns des sites fonctionnant sous MediaSPIP.
Vous pouvez bien entendu ajouter le votre grâce au formulaire en bas de page. -
Participer à sa traduction
10 avril 2011Vous pouvez nous aider à améliorer les locutions utilisées dans le logiciel ou à traduire celui-ci dans n’importe qu’elle nouvelle langue permettant sa diffusion à de nouvelles communautés linguistiques.
Pour ce faire, on utilise l’interface de traduction de SPIP où l’ensemble des modules de langue de MediaSPIP sont à disposition. ll vous suffit de vous inscrire sur la liste de discussion des traducteurs pour demander plus d’informations.
Actuellement MediaSPIP n’est disponible qu’en français et (...) -
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 (...)
Sur d’autres sites (11630)
-
Insert Random silence multiple times between Audios in ffmpeg
23 septembre 2021, par Gracie williamssuppose I have MP3 of around 1 minute duration and increase its duration longer.Duration can be any.


I want to randomly add N seconds of silence to that audio.


I can generate the silence like below


ffmpeg -f lavfi -i anullsrc=r=44100:cl=mono -t <seconds> -q:a 9 -acodec libmp3lame out.mp3
</seconds>


And I can insert silence to audio like below


ffmpeg -i in.wav -filter_complex "anullsrc,atrim=0:4[s];[0]atrim=0:14[a];[0]atrim=14,asetpts=N/SR/TB[b];[a][s][b]concat=3:v=0:a=1" out.wav



Is there anyway to insert silence at multiple areas.With php I can generate random time to insert based on 60 seconds audio like below.


$arr = [];
$arr[3] = 2; //here 3 is original audio insert time and 2 is the duration of silence
$arr[6] = 3; //here 6 is original audio insert time and 3 is the duration of silence
$arr[10] = 1;
$arr[12] = 3;



Now I want to insert silence between seconds based on above array like


2 seconds silence at 3rd second
3 seconds silence at 6th second
1 second silence at 10th second



and son on..


-
for loop seems to runs several times [closed]
19 juillet 2021, par Dentricky73I am (trying) to write a script that read the ip's from the file 'data.dat'.
Check if the ip have the statuscode 200, if yes write the ip to the text file 'OK_IP.LIST.txt', next dump the image from the rtsp stream to directory images.


My intention is to verify that the count from the ip's in data.dat is equal to OK_IP.LIST.txt ;
if not, delete data.dat and rename OK_IP.LIST.txt to data.dat and loop again.


Later the script should be looping until the user presses a key (but that's for the future).


The problem now is, when I start with 10 ip's in the data.list and write the good ip's (status code 200) to OK_IP.LIST.txt there are 20 ip's. (Let's say they all works.)


data.dat > OK_IP.LIST.txt
1111.1111.1111.1111 1111.1111.1111.1111
2222.2222.2222.2222 2222.2222.2222.2222
3333.3333.3333.3333 3333.3333.3333.3333
 1111.1111.1111.1111
 2222.2222.2222.2222
 3333.3333.3333.3333



Something is wrong in the loop ; the list is written twice to OK_IP.LIST.txt.
I'm doing something wrong, but I can't find it.


#!/bin/bash

mkdir images >/dev/null 2>&1 #dev null don't display "dir already exist"
IPS="$(< data.dat)" #read the file data to var IPS

 ok200=0
 counter=0
 Totalips="$(wc -l "data.dat")"
 
 echo 'starting...' 
 
 for IP in $IPS; # loop through the items 
 do 
 TRY1="$(curl -m 2 -s -o /dev/null --head -w "%{http_code}" -X POST "rtsp://$IP:554")" # ask Status code from curl
 if [ "$TRY1" -eq 200 ] # is statuscode 200
 then
 ok200=`expr $ok200 + 1` 
 FFM="$(ffmpeg -y -nostdin -stimeout 8000000 -rtsp_transport tcp -ss 0.5 -i "rtsp://$IP:554/12" -vframes 1 -s 640x480 -f image2 images/$IP.jpg >/dev/null 2>&1)"
 #echo $FFM
 echo $IP &>> OK_IP.LIST.txt
 
 fi 
 clear
 counter=`expr $counter + 1`;
 echo 'IP done ' $counter 'from' $Totalips| sed 's/data.dat//g' 
 echo 'now testing' $IP
 echo 'Good ips' $ok200
 #sleep 1 #don't help 
done



I know it's nooby written, I can check if the dir images exist - if yes, do nothing, else mkdir and so on.
That's all planned for later.


-
Revision fa57135b2c : Merge "Removing NUM_ prefix from constant names."
22 octobre 2013, par Dmitry KovalevChanged Paths :
Modify /vp9/common/vp9_blockd.h
Modify /vp9/common/vp9_onyxc_int.h
Modify /vp9/decoder/vp9_decodemv.c
Modify /vp9/encoder/vp9_bitstream.c
Modify /vp9/encoder/vp9_block.h
Modify /vp9/encoder/vp9_onyx_int.h
Modify /vp9/encoder/vp9_rdopt.c
Merge "Removing NUM_ prefix from constant names."