Recherche avancée

Médias (0)

Mot : - Tags -/optimisation

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

Autres articles (78)

  • Amélioration de la version de base

    13 septembre 2013

    Jolie sélection multiple
    Le plugin Chosen permet d’améliorer l’ergonomie des champs de sélection multiple. Voir les deux images suivantes pour comparer.
    Il suffit pour cela d’activer le plugin Chosen (Configuration générale du site > Gestion des plugins), puis de configurer le plugin (Les squelettes > Chosen) en activant l’utilisation de Chosen dans le site public et en spécifiant les éléments de formulaires à améliorer, par exemple select[multiple] pour les listes à sélection multiple (...)

  • Qu’est ce qu’un masque de formulaire

    13 juin 2013, par

    Un masque de formulaire consiste en la personnalisation du formulaire de mise en ligne des médias, rubriques, actualités, éditoriaux et liens vers des sites.
    Chaque formulaire de publication d’objet peut donc être personnalisé.
    Pour accéder à la personnalisation des champs de formulaires, il est nécessaire d’aller dans l’administration de votre MediaSPIP puis de sélectionner "Configuration des masques de formulaires".
    Sélectionnez ensuite le formulaire à modifier en cliquant sur sont type d’objet. (...)

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

  • How to run ffmpeg on demand when someone opens my website with the player where a remote IP camera is displayed ?

    8 mai 2023, par alexiter

    I set up an nginx server to stream from an IP camera located elsewhere, I used a windows server because it was the one I had no use for (I usually prefer linux), I would need to know how I can make the ffmpeg command run only when someone opens the website where the player is located.

    


    This is my nginx.conf server code :

    


    worker_processes  1;

error_log  logs/error.log info;

events {
    worker_connections  1024;
}
rtmp {
    server {
        listen 1935;
        ping 30s;
        notify_method get;
        application live {
            live on;
            on_publish http://*******:8080/auth;
            dash on; 
            dash_path tmp/dash;
            
            
        }
    }
}
http{

   server {
        listen 8080;
        location /auth {
        if ($arg_psk = '*****') {
    return 201;
    }
  return 404;
  }
}
   
   server {
        listen 8443 ssl;
        server_name stream.*****.com;
        
        ssl on;
        ssl_certificate C:/Certbot/live/stream.*****.com/fullchain.pem;
        ssl_certificate_key C:/Certbot/live/stream.****.com/privkey.pem;
        ssl_session_timeout 5m;
        charset utf-8;
        location /dash {
            root tmp;
            add_header Cache-Control no-cache;
        }
        location / {
            root www;
        }
        

   }
}



    


    The command that I use from the DOS console in windows is this :

    


    ffmpeg -rtsp_transport tcp -i rtsp://*****:******@******.com:557/Streaming/Channels/101 -c copy -f flv -y -t 35 rtmp://********:1935/live/stream?psk=********


    


    Basically what I need is that ffmpeg is not running constantly, only when someone wants to view the video from the IP camera. (I have programmed ffmpeg to finish after 35 seconds, although I will put five minutes later)

    


  • Send data to udp port in azure virtual machine

    30 août 2013, par Anton Shakalo

    I use Wowza for live video streaming solution. I prefer to use windows azure as cloud hosting.

    For video streaming I need to open some udp ports.
    I have created endpoint for udp port 10000, map private and public ports to 10000 following instructions from here.

    I repeat this for http/80 port and it works fine.

    Then I tried to send video stream by ffmpeg with next command :

    ffmpeg -re -i "%WMSAPP_HOME%/content/sample.mp4"  -vcodec libx264  -vb 150000 -g 60 -vprofile baseline -level 2.1 -acodec aac -ab 64000 -ar 48000 -ac 2 -vbsf h264_mp4toannexb -strict experimental -f mpegts udp://%SERVER_IP%:10000?pkt_size=1316

    Where %SERVER_IP% is public IP address of my virtual machine.
    When I test locally, with 127.0.0.1 as server url, streaming works without problems.
    But now I can not see that video stream is coming to server.

    So I need help with this. How can I send data to udp port in azure virtual machine ?

    Also, I've tried to ping %SERVER_IP%:%PORT% by telnet and nmap but no success.
    If I describe something not clear on not correct - please comment and I will try to explain more detail.

  • OpenCV cant open rtsp stream of hikvision cameras ?

    25 août 2022, par Smadar

    I'm using hikvision camera, and tried to open the rtsp stream using OpenCV videoCapture with cv2.CAP_FFMPEG, but OpenCV failed to open it.
I open the stream from VLC and it is working fine.
The configuration parameters in the camera dashboard was changed as well. The encoding parameter was changed from H265 to H264, the resolution also has changed to a lower values (1280*720 - the lowest, also tried full HD), the bitrate was changed as well .
I tried to open the stream in two ways -
The first way :

    


    feed = cv2.VideoCapture('rtsp://user:password@IP:554/Streaming/Channels/1', cv2.CAP_FFMPEG)
print('FEED IS OPEN ? ', feed.isOpened())
if feed.isOpened():
    print('IM HERE')
    frame_status, frame = feed.read()
    print(frame_status)
    print(frame.shape[0])


    


    The second way :

    


    cap = cv2.VideoCapture()

cap.open("rtsp://user:password@IP:554/Streaming/Channels/1")
print('IM HERE', cap.isOpened())
while(True):
     # Capture frame-by-frame
    print('IM HERE')
    ret, frame = cap.read()
    print('RET: ', ret)
    print(type(frame))
    print('IM HERE')
    # Our operations on the frame come here
    #gray = cv2.cvtColor(frame, cv2.COLOR_BGR2GRAY)

    # Display the resulting frame
    print(frame.shape[0])
    # cv2.imshow('frame',ret)

    if cv2.waitKey(1) & 0xFF == ord('q'):
        break

# When everything done, release the capture
cap.release()
cv2.destroyAllWindows()


    


    There is also check ping and there is a connection to the camera.

    


    I will really appreciate any help here in trying of figure this out.
Thank you all.