Recherche avancée

Médias (0)

Mot : - Tags -/xmlrpc

Aucun média correspondant à vos critères n’est disponible sur le site.

Autres articles (89)

  • Des sites réalisés avec MediaSPIP

    2 mai 2011, par

    Cette 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 2011

    Vous 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, par

    Chaque 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 williams

    suppose 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&#xA;</seconds>

    &#xA;

    And I can insert silence to audio like below

    &#xA;

    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&#xA;

    &#xA;

    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.

    &#xA;

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

    &#xA;

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

    &#xA;

    2 seconds silence at 3rd second&#xA;3 seconds silence at 6th second&#xA;1 second silence at 10th second&#xA;

    &#xA;

    and son on..

    &#xA;

  • for loop seems to runs several times [closed]

    19 juillet 2021, par Dentricky73

    I am (trying) to write a script that read the ip's from the file 'data.dat'.&#xA;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.

    &#xA;

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

    &#xA;

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

    &#xA;

    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.)

    &#xA;

         data.dat       >      OK_IP.LIST.txt&#xA;1111.1111.1111.1111    1111.1111.1111.1111&#xA;2222.2222.2222.2222    2222.2222.2222.2222&#xA;3333.3333.3333.3333    3333.3333.3333.3333&#xA;                       1111.1111.1111.1111&#xA;                       2222.2222.2222.2222&#xA;                       3333.3333.3333.3333&#xA;

    &#xA;

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

    &#xA;

    #!/bin/bash&#xA;&#xA;mkdir images >/dev/null 2>&amp;1   #dev null don&#x27;t display "dir already exist"&#xA;IPS="$(&lt; data.dat)"            #read the file data to var IPS&#xA;&#xA; ok200=0&#xA; counter=0&#xA; Totalips="$(wc -l "data.dat")"&#xA; &#xA; echo &#x27;starting...&#x27; &#xA; &#xA; for IP in $IPS;                # loop through the items &#xA;  do    &#xA;        TRY1="$(curl -m 2 -s -o /dev/null --head -w "%{http_code}" -X POST "rtsp://$IP:554")"          # ask Status code from curl&#xA;        if [ "$TRY1" -eq 200 ]                                                                 # is statuscode 200&#xA;        then&#xA;                    ok200=`expr $ok200 &#x2B; 1`                         &#xA;            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>&amp;1)"&#xA;                                                    #echo $FFM&#xA;            echo $IP &amp;>> OK_IP.LIST.txt&#xA;                                            &#xA;        fi              &#xA;        clear&#xA;        counter=`expr $counter &#x2B; 1`;&#xA;        echo  &#x27;IP done &#x27; $counter &#x27;from&#x27; $Totalips| sed &#x27;s/data.dat//g&#x27; &#xA;        echo &#x27;now testing&#x27; $IP&#xA;        echo &#x27;Good ips&#x27;  $ok200&#xA;        #sleep 1 #don&#x27;t help &#xA;done&#xA;

    &#xA;

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

    &#xA;

  • Revision fa57135b2c : Merge "Removing NUM_ prefix from constant names."

    22 octobre 2013, par Dmitry Kovalev

    Changed 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."