Recherche avancée

Médias (0)

Mot : - Tags -/serveur

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

Autres articles (59)

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

  • Configurer la prise en compte des langues

    15 novembre 2010, par

    Accé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 (...)

  • Sélection de projets utilisant MediaSPIP

    29 avril 2011, par

    Les exemples cités ci-dessous sont des éléments représentatifs d’usages spécifiques de MediaSPIP pour certains projets.
    Vous pensez avoir un site "remarquable" réalisé avec MediaSPIP ? Faites le nous savoir ici.
    Ferme MediaSPIP @ Infini
    L’Association Infini développe des activités d’accueil, de point d’accès internet, de formation, de conduite de projets innovants dans le domaine des Technologies de l’Information et de la Communication, et l’hébergement de sites. Elle joue en la matière un rôle unique (...)

Sur d’autres sites (6780)

  • 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'.
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.

    


  • ffmpeg - Stream multiple files over an ffserver to one ffplay at different times ? [closed]

    13 mai 2013, par golmschenk

    I have an ffserver up and running. Using this server I can run a simple ffplay command :

    ffplay udp://localhost:7777

    which then waits for a stream. Then if I stream something to the server with a simple ffmpeg command :

    ffmpeg -re -i small.mp4 -f mpegts udp://localhost:7777

    The video pops up and plays fine. However, after the video is finished and the ffplay is still waiting open with the display window showing the last frame of the video just sent, then if I try to run the same ffmpeg command again to play the video again, the ffplay gets a bunch of warnings which look similar to :

    [mpegts @ 0x7fde1c0008c0] Continuity check failed for pid 256 expected 2 got 0

    And there is no playback. I would like to be able to stream one video, leave the same ffplay open and a little while after the first video has stopped stream another video. Is there a way I can achieve this ? Thank you much !

  • Is ffmpeg using a buffer ? Why arent the filename and drawtext times matching ?

    6 octobre 2018, par Ian Rubenstein

    I am using ffmpeg to

    1) capture images from a webcam as jpeg with the timestamp in the filename and as an overlay with drawtext

    ffmpeg -s 1920x1080 -framerate 20 -i /dev/video1 -f image2 -ss 8 -s 1920x1080 -qscale:v 1 -r 1 -strftime 1 -vf setpts=.2*PTS, drawtext=fontfile=/usr/share/fonts/truetype/dejavu/DejaVuSans.ttf: text='%{localtime\:%Y-%m-%d_%T}': fontcolor=white: fontsize=24: box=1: boxcolor=black@0.5: boxborderw=5: x=(w-text_w)*.04: y=(h-text_h)*.96 /home/ian/netdrives/antares/Pictures/plant_lapse/ir/20181004/plant.%Y%m%d_%H%M%S.jpeg

    2) combine the images into a timelapse video

    C:/Users/Ian/apps/ffmpeg/bin/ffmpeg -f concat -safe 0 -i processingfilelist.ir_20181004.txt -c:v h264_nvenc -rc constqp -qp 38 -s 1920x1080 -filter:v format=yuv420p,fps=60,scale=iw/1.5:-1,yadif=0:-1:0,hqdn3d plant_lapse_ir_20181004_074451_dusk.mp4

    Its generally working, but I noticed the filenames are one frame ahead of the timestamp shown in the overlay.

    Example Image - Im not smart enough to know which is the right time, just to know that I’d like them to match. Any ideas why they don’t ?