Recherche avancée

Médias (91)

Autres articles (85)

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

  • ANNEXE : Les plugins utilisés spécifiquement pour la ferme

    5 mars 2010, par

    Le site central/maître de la ferme a besoin d’utiliser plusieurs plugins supplémentaires vis à vis des canaux pour son bon fonctionnement. le plugin Gestion de la mutualisation ; le plugin inscription3 pour gérer les inscriptions et les demandes de création d’instance de mutualisation dès l’inscription des utilisateurs ; le plugin verifier qui fournit une API de vérification des champs (utilisé par inscription3) ; le plugin champs extras v2 nécessité par inscription3 (...)

  • Multilang : améliorer l’interface pour les blocs multilingues

    18 février 2011, par

    Multilang est un plugin supplémentaire qui n’est pas activé par défaut lors de l’initialisation de MediaSPIP.
    Après son activation, une préconfiguration est mise en place automatiquement par MediaSPIP init permettant à la nouvelle fonctionnalité d’être automatiquement opérationnelle. Il n’est donc pas obligatoire de passer par une étape de configuration pour cela.

Sur d’autres sites (4378)

  • Decoding H.264 individual nal units

    1er juin 2015, par madprogrammer2015

    I am currently sending individual NAL units across a network. These NAL units are generated by x264. Now is it possible to feed these NAL units individually into avcodec_decode_video2 ?

    Or do I have to concatenate the nal units until they represent the same frame ? If thats the case then how is that done ?

    I have also read that I might be able to receive the SPS and PPS packets. Then wait for at least one packet, and attempt to decode. Is this correct ?

    Any advice that can be offered would be greatly appreciated

  • Decoding H.264 individual nal units

    1er juin 2015, par madprogrammer2015

    I am currently sending individual NAL units across a network. These NAL units are generated by x264. Now is it possible to feed these NAL units individually into avcodec_decode_video2 ?

    Or do I have to concatenate the nal units until they represent the same frame ? If thats the case then how is that done ?

    I have also read that I might be able to receive the SPS and PPS packets. Then wait for at least one packet, and attempt to decode. Is this correct ?

    Any advice that can be offered would be greatly appreciated

  • Can't read mp4 or avi in opencv ubuntu

    15 novembre 2016, par Diederik

    I’m trying to read in a .mp4 (or .avi) file using this script :

    import cv2
    import math
    import sys
    import numpy as np

    class VideoAnalysis:

       def __init__(self, mp4_video):
           self.video = mp4_video
           self.pos_frame = self.video.get(cv2.cv.CV_CAP_PROP_POS_FRAMES)

       def run(self):
           while True:
               flag, frame = self.video.read()
               if flag:
                   cv2.imshow("frame",frame)
                   self.pos_frame = self.video.get(cv2.cv.CV_CAP_PROP_POS_FRAMES)
                   print(str(self.pos_frame)+" frames")
               else:
                   # The next frame is not ready, so we try to read it again
                   self.video.set(cv2.cv.CV_CAP_PROP_POS_FRAMES, self.pos_frame-1)
                   print("frame is not ready")
                   # It is better to wait for a while for the next frame to be ready
                   cv2.waitKey(1000)
               if cv2.waitKey(1) & 0xFF == ord('q'):
                   break

    cap = cv2.VideoCapture("opdracht.mp4")
    while not cap.isOpened():
       cap = cv2.VideoCapture("opdracht.mp4")
       print("Wait for the header")

    video_analyse = VideoAnalysis(cap)
    video_analyse.run()

    I started of by just using python 2.7 and opencv. At that moment it kept spinning in the loop ’waiting for header’, after some research I learned that I had to install ffmpeg, so I tried using sudo apt-get install ffmpeg and it installed but then the script came to be stuck in the loop "frame not ready". After some reading I learned that maybe I had to recompile both ffmpeg and opencv from source, so I did. I now run ffmpeg 3.2 and OpenCV 2.4.13 but still opencv can’t read a single frame from my video (which is in the same folder as the script).

    I really don’t understand what I am doing wrong.