Recherche avancée

Médias (1)

Mot : - Tags -/artwork

Autres articles (60)

  • MediaSPIP version 0.1 Beta

    16 avril 2011, par

    MediaSPIP 0.1 beta est la première version de MediaSPIP décrétée comme "utilisable".
    Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
    Pour avoir une installation fonctionnelle, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
    Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...)

  • MediaSPIP 0.1 Beta version

    25 avril 2011, par

    MediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
    The zip file provided here only contains the sources of MediaSPIP in its standalone version.
    To get a working installation, you must manually install all-software dependencies on the server.
    If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...)

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

Sur d’autres sites (9650)

  • OpenCV4 (python 3.9) VideoCapture failing to open .mp4 file on osx

    15 juin 2021, par Ender

    I am trying to read an mp4 video frame-wise with OpenCV4 installed with brew. The following snippet, though, fails to open the file :

    


    v_path = os.path.join(v_dir, v_title + ".mp4")
v = cv2.VideoCapture(v_path)


    


    resulting in the following error :

    


    OpenCV: Couldn't read video stream from file []


    


    v_path is an absolute path. Some advise searching for the opencv_ffmpeg.dll file and copying it to the root python folder but its not in /usr/local/Cellar/opencv/4.5.2_4/lib and I would rather not download it directly from a site. If this is crucial, how should I reinstall opencv (ideally still using brew) ? The thing is brew include ffmpeg with the opencv installation. Others say converting to .avi with ffmpeg is the trick but there should be a solution for .mp4, right ? Other questions focus on issues where VideoCapture opens the video but is unable to load any frames, this seems like a less severe problem.

    


    brew doctor


    


    reveals no serious issues.

    


  • FFMPEG : audio unsynchronized, losing framerate and strange behavior when pavucontrol is open

    10 mars 2021, par Rik Ferreira

    I'm trying to record my desktop screen with internal audio and mic, but I'm noticing some issues with the output, according to this empirical scale :

    


      

    • If I record only the desktop, the output is GOOD.
    • 


    • If I record the desktop + mic, the output is GOOD.
    • 


    • If I record the desktop + internal audio only, the output is BAD.
    • 


    • If I record the desktop + mic + internal audio, the output is BAD.
    • 


    • If I record the desktop + mic + internal audio + open pavucontrol, the output is GOOD.
    • 


    


    Good means the two audio sources and the video are acceptably synchronized and bad means not synchronized at all.

    


    I recorded some samples to show what is going on :

    


    


    I'm snapping my fingers near the microphone when the Beep! message appears along with the sound.

    


    I'm using a simple script to play a sound and show a message in the terminal instead of using pavucontrol because it masks the problem.

    


    FFMPEG call

    


    Although the entire script is visible in the videos, here is the ffmpeg call in plain text :

    


    Dual audio

    


    ffmpeg -y \
    -f x11grab -s 1920x1080 -i :0.0 \
    -f pulse -i 0 \
    -f pulse -i 1 \
    -filter_complex amix=inputs=2 \
    output.mp4


    


    Only microphone

    


    ffmpeg -y \
    -f x11grab -s 1920x1080 -i :0.0 \
    -f pulse -i 1 \
    output.mp4


    


    Other info

    


    SO : Arch Linux

    


    When pavucontrol isn't open, pacmd list-source-outputs returns : 0 source output(s) available., but when pavucontrol is open :

    


    pacmd list-source-outputs | grep source

2 source output(s) available.
        source: 0 
                module-stream-restore.id = "source-output-by-application-id:org.PulseAudio.pavucontrol"
        source: 1 
                module-stream-restore.id = "source-output-by-application-id:org.PulseAudio.pavucontrol"


    


    What am I missing ? Why the ffmpeg works fine when pavucontrol is open ?

    


  • OpenCV : Cannot open camera with CAP_FFMPEG even though ffmpeg is installed

    24 février 2021, par cildiracagim

    Initializing a camera video capture using CAP_FFMPEG fails even though I have ffmpeg installed :

    


    cv::VideoCapture vcap;
vcap.open(0, cv::CAP_FFMPEG);

// After these, vcap.isOpened() returns false.


    


    However, it works perfectly when I open a file in the same way :

    


    cv::VideoCapture vcap;
vcap.open(argv[1], cv::CAP_FFMPEG);

/* Correctly opens the video file at path argv[1],
vcap.isOpened() returns true. */


    


    The problem occurs in both OpenCV versions installed in my system : 4.5.1 and 3.2.0. Version 3.2.0 came installed in my Linux distribution but I have compiled 4.5.1 myself. During compilation, I have verified that CMake succesfully recognized the ffmpeg installation in my system. I guess the problem is not related to OpenCV not recognizing ffmpeg since I can open and work on video files without any problems on both OpenCV versions.

    


    Any help is greatly appreciated.