Recherche avancée

Médias (1)

Mot : - Tags -/book

Autres articles (94)

  • Configuration spécifique pour PHP5

    4 février 2011, par

    PHP5 est obligatoire, vous pouvez l’installer en suivant ce tutoriel spécifique.
    Il est recommandé dans un premier temps de désactiver le safe_mode, cependant, s’il est correctement configuré et que les binaires nécessaires sont accessibles, MediaSPIP devrait fonctionner correctement avec le safe_mode activé.
    Modules spécifiques
    Il est nécessaire d’installer certains modules PHP spécifiques, via le gestionnaire de paquet de votre distribution ou manuellement : php5-mysql pour la connectivité avec la (...)

  • Les formats acceptés

    28 janvier 2010, par

    Les commandes suivantes permettent d’avoir des informations sur les formats et codecs gérés par l’installation local de ffmpeg :
    ffmpeg -codecs ffmpeg -formats
    Les format videos acceptés en entrée
    Cette liste est non exhaustive, elle met en exergue les principaux formats utilisés : h264 : H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 m4v : raw MPEG-4 video format flv : Flash Video (FLV) / Sorenson Spark / Sorenson H.263 Theora wmv :
    Les formats vidéos de sortie possibles
    Dans un premier temps on (...)

  • Les autorisations surchargées par les plugins

    27 avril 2010, par

    Mediaspip core
    autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs

Sur d’autres sites (7252)

  • Batch .SRT Rip Using FFMPEG

    12 mai 2020, par jaac

    I have this command using ffmpeg

    



    root@ubuntu-4cpu-8gb-sg-sin1:/home/jaac/torrents/rtorrent/dots# ffmpeg -i Title.NF.WEB-DL.DDP2.0.x264-Ao.mkv -map 0:7 indo16.srt


    



    That will rip 1 sub (Indonesia region)

    



    How to rip it in batch ? I have 17 files in dots folder

    



    Thanks

    


  • Merge commit ’51ca3cb604a7585a7cff35d4b954794508955c19’

    15 février 2015, par Michael Niedermayer
    Merge commit ’51ca3cb604a7585a7cff35d4b954794508955c19’
    

    * commit ’51ca3cb604a7585a7cff35d4b954794508955c19’ :
    xcbgrab : Use the correct geometry for the region highlight

    See : 0ae37e460c345a4c76e28256af56931e00c94cb5
    Merged-by : Michael Niedermayer <michaelni@gmx.at>

  • OpenCV - motion detection in large video files

    18 décembre 2023, par M9A

    I have large video files (over a few GB each) that I am trying detect motion on. I am using fairly basic OpenCV code in python with ROI to detect motion in a certain area of the video only. This works absolutely fine but takes absolutely ages to process large files. Is there any way to speed things up ? I am simply just checking to see which file has motion detected in it and will not be outputting a video. The moment the first motion is detected the rest of the file is not checked.

    &#xA;

    import sys&#xA;import cv2&#xA;&#xA;video_path = “video.mp4”&#xA;&#xA;capture = cv2.VideoCapture(video_path)&#xA;&#xA;# Set the first frame as the reference background&#xA;_, background = capture.read()&#xA;&#xA;# Define the region of interest (ROI)&#xA;x, y, w, h = 1468, 1142, 412, 385&#xA;roi = (x, y, x &#x2B; w, y &#x2B; h)&#xA;&#xA;while capture.isOpened():&#xA;    ret, frame = capture.read()&#xA;&#xA;    if not ret:&#xA;        break&#xA;&#xA;    # Extract the region of interest from the current frame&#xA;    frame_roi = frame[y:y &#x2B; h, x:x &#x2B; w]&#xA;&#xA;    # Calculate the absolute difference between the ROI and the background&#xA;    diff = cv2.absdiff(background[y:y &#x2B; h, x:x &#x2B; w], frame_roi)&#xA;    gray = cv2.cvtColor(diff, cv2.COLOR_BGR2GRAY)&#xA;    _, thresh = cv2.threshold(gray, 30, 255, cv2.THRESH_BINARY)&#xA;&#xA;    # Check if motion is detected in the ROI (adjust threshold as needed)&#xA;    if cv2.countNonZero(thresh) > 75:&#xA;        print("YES")&#xA;        break&#xA;&#xA;# Release the video capture object&#xA;capture.release()&#xA;

    &#xA;