Recherche avancée

Médias (1)

Mot : - Tags -/Rennes

Autres articles (53)

  • Récupération d’informations sur le site maître à l’installation d’une instance

    26 novembre 2010, par

    Utilité
    Sur le site principal, une instance de mutualisation est définie par plusieurs choses : Les données dans la table spip_mutus ; Son logo ; Son auteur principal (id_admin dans la table spip_mutus correspondant à un id_auteur de la table spip_auteurs)qui sera le seul à pouvoir créer définitivement l’instance de mutualisation ;
    Il peut donc être tout à fait judicieux de vouloir récupérer certaines de ces informations afin de compléter l’installation d’une instance pour, par exemple : récupérer le (...)

  • Les tâches Cron régulières de la ferme

    1er décembre 2010, par

    La gestion de la ferme passe par l’exécution à intervalle régulier de plusieurs tâches répétitives dites Cron.
    Le super Cron (gestion_mutu_super_cron)
    Cette tâche, planifiée chaque minute, a pour simple effet d’appeler le Cron de l’ensemble des instances de la mutualisation régulièrement. Couplée avec un Cron système sur le site central de la mutualisation, cela permet de simplement générer des visites régulières sur les différents sites et éviter que les tâches des sites peu visités soient trop (...)

  • Submit bugs and patches

    13 avril 2011

    Unfortunately a software is never perfect.
    If you think you have found a bug, report it using our ticket system. Please to help us to fix it by providing the following information : the browser you are using, including the exact version as precise an explanation as possible of the problem if possible, the steps taken resulting in the problem a link to the site / page in question
    If you think you have solved the bug, fill in a ticket and attach to it a corrective patch.
    You may also (...)

Sur d’autres sites (3118)

  • FFMPEG Output Stream via UDP with big Lags

    28 septembre 2020, par hammeroflight

    I have a problem in solving a stable yet delayed video output stream. I have the following code to receive video from a camera operating over UDP whose address is mentioned in the code.

    


    import cv2
import threading
import queue
import time

q = queue.Queue()


def recieve():
    cap = cv2.VideoCapture('udp://@0.0.0.0:11111?buffer_size=65535&pkt_size=188')
    ret, frame = cap.read()
    q.put(frame)
    while ret:
        ret, frame = cap.read()
        q.put(frame)


def display():
    while True:
        if q.empty() != True:
            frame = q.get()            
            cv2.imshow('Video', frame)

        k = cv2.waitKey(30) & 0xff
        if k == 27:  
            break

p1 = threading.Thread(target=recieve).start()
p2 = threading.Thread(target=display).start()


    


    This code outputs a very stable video output with no packet losses, however, once the function is executed, the streaming lags by about 6 seconds. If I wave to the camera, I can see the output 6 seconds later.

    


    What I have tried :

    


    python app.py -fflags nobuffer -probesize 32 -analyzeduration 100
python app.py -fflags nobuffer -probesize 32 -analyzeduration 1M
python app.py ffplay -nobuffer -flags low_delay -framedrop -i udp://0.0.0.0:11111


    


    How can I reduce this lag/delay to upto anything less than 1sec from 6secs ?

    


  • ffmpeg : 1 image + 1 audio = 1 video (how can it encode faster ?)

    11 août 2013, par user1062949

    I want ffmpeg to take a png image and a mp3 audio file as input and generate a video file of the same duration as the audio file. I'm using the following command :

    ffmpeg -loop 1 -shortest -y -i image.png -i audio.mp3 -acodec copy \
    -vcodec libx264 video.mov

    However, given a 40min mp3 file (160kbps) as input, it is taking more than 2 hours to encode the whole video on a MacBook Pro i5 2.5GHz.

    I tried to use the -preset ultrafast option, but it is not really improving the encoding speed significantly.

    Is there any way to encode it faster using ffmpeg ?

    I was following the instructions provided in this post : ffmpeg : 1 image + 1 audio file = 1 video

    Any help will be appreciated, thank you.

  • Exit FFMPEG when a line freezes

    21 juin 2021, par user15966041

    I have a ffmpeg bat file for retrieving streams through rtsp

    


    bat file

    


    ffmpeg -xerror -loglevel error -stimeout 1111111 -rtsp_transport tcp -v verbose -i "rtsp://admin:admin1234@10.8.0.14:81/cam/realmonitor?channel=1&subtype=1 "  -vf scale=1024:576 -vcodec libx264  -sc_threshold 0 -f hls    -hls_flags delete_segments    -hls_time 2  -segment_time 2 -hls_list_size 2 C:\Apache24\htdocs\smartmine\ipcam\video_1\stream.m3u8  




    


    The problem im facing is that, after ffmpeg had run for a few hours, the speed decreases and the processing of the video stops and stays on that single line. FFMPEG

    


    Is there any way to exit the ffmpeg when this is happening. I have tried a lot of methods, but none of them worked out. Thanks a lot