Recherche avancée

Médias (1)

Mot : - Tags -/MediaSPIP

Autres articles (112)

  • Personnaliser en ajoutant son logo, sa bannière ou son image de fond

    5 septembre 2013, par

    Certains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;

  • Script d’installation automatique de MediaSPIP

    25 avril 2011, par

    Afin de palier aux difficultés d’installation dues principalement aux dépendances logicielles coté serveur, un script d’installation "tout en un" en bash a été créé afin de faciliter cette étape sur un serveur doté d’une distribution Linux compatible.
    Vous devez bénéficier d’un accès SSH à votre serveur et d’un compte "root" afin de l’utiliser, ce qui permettra d’installer les dépendances. Contactez votre hébergeur si vous ne disposez pas de cela.
    La documentation de l’utilisation du script d’installation (...)

  • Ajouter des informations spécifiques aux utilisateurs et autres modifications de comportement liées aux auteurs

    12 avril 2011, par

    La manière la plus simple d’ajouter des informations aux auteurs est d’installer le plugin Inscription3. Il permet également de modifier certains comportements liés aux utilisateurs (référez-vous à sa documentation pour plus d’informations).
    Il est également possible d’ajouter des champs aux auteurs en installant les plugins champs extras 2 et Interface pour champs extras.

Sur d’autres sites (8532)

  • build : Fine-grained link-time dependency settings

    22 janvier 2017, par Diego Biurrun
    build : Fine-grained link-time dependency settings
    

    Previously, all link-time dependencies were added for all libraries,
    resulting in bogus link-time dependencies since not all dependencies
    are shared across libraries. Also, in some cases like libavutil, not
    all dependencies were taken into account, resulting in some cases of
    underlinking.

    To address all this mess a machinery is added for tracking which
    dependency belongs to which library component and then leveraged
    to determine correct dependencies for all individual libraries.

    • [DBH] Makefile
    • [DBH] avbuild/common.mak
    • [DBH] avbuild/library.mak
    • [DBH] configure
    • [DBH] tests/checkasm/Makefile
  • Error in Splitting Educational Videos into Segments Using Python (ffmpeg issue) [closed]

    28 décembre 2024, par Yahia Mohamed Hanbal

    I created a Python project to split long educational videos into smaller segments, each focused on a single question. The program uses OCR to detect text on video frames, identifies the word "Question," extracts the number following it, and splits the video whenever the number increases.

    


    here is the video i am tring to split ((video))

    


    Here’s an example of the program’s output :

    


    Video loaded: 14071 frames at 60 FPS, duration: 234.52s  
Frame 480, Time 8.00s, Question: 6  
...  
Frame 12360, Time 206.00s, Question: 7  
Creating segment 1: 8.00s to 206.00s  
Error: module 'ffmpeg' has no attribute 'Error'


    


    I’ve shared the full code in a GitHub repository for reference : Automated Video Scene Cutting.

    


    What the Program Does

    


      

    • Input : A long educational video.
    • 


    • Processing :

        

      • Detects text in each frame using OCR.
      • 


      • Searches for the word "Question" followed by a number.
      • 


      • Monitors when the number increases to identify segment boundaries.
      • 


      


    • 


    • Output : Creates video segments corresponding to individual questions.
    • 


    


    The Problem

    


    The program detects the questions and timestamps correctly, but when it tries to create the segments, I encounter the following error :

    


    Error: module 'ffmpeg' has no attribute 'Error'


    


    What I’ve Tried

    


      

    • Verified the ffmpeg-python library is installed (pip show ffmpeg-python confirms the installation).
    • 


    • Ensured the ffmpeg binary is accessible from the command line.
    • 


    • Reviewed the library documentation to ensure the correct usage of ffmpeg.
    • 


    • Tested with different video files to rule out input-specific issues.
    • 


    


    Environment Details

    


      

    • OS : Windows 11
    • 


    • Python Version : 3.9.13
    • 


    • Key Libraries : ffmpeg-python
    • 


    


    If anyone has insights into resolving this issue or suggestions for alternative approaches to handle this use case, I’d greatly appreciate your help.

    


    Thank you !

    


  • Read frames from a h264 video in java

    19 octobre 2014, par Shashank Tulsyan

    I am making a tool which records the user’s screen.
    It records almost every activity of the user and saves it as a h264 video.

    I also make a note of the window names.
    Then I make charts out of this data, which tells me how much time the user (me) has spend on what activity. Now I want to take this one level further.
    I want to be able to see the filtered video as well.

    Let’s say, I know I have spend 4 hrs on Netbeans, I also want to see a video showing what all I did on netbeans.

    Some sample video files

    http://neembuu.com/testdir/sat_1413633155981_direct.mkv
    http://neembuu.com/testdir/fri_1413547843213_direct.264

    I am using x264 for encoding.

    These files might be corrupt. Because encoding stops when the user shutsdown the pc or close the program. There is no handling of abrupt program exit. EOF is not written properly. This is a design decision.

    Now the problem is, none of the libraries ( jcodec , h264j ) seem to be able to decode these files.
    I want individual frames.

    Problem with h264j

    • Doesn’t support seeking
    • Randomly doesn’t work for some files, although all files have been created using the same settings ( like the sample fri_1413547843213_direct.264 , h264j doesn’t work with it. )

    Problem with jcodec.

    • Can’t handle mkv
    • Not sure how to use with raw h264 streams (<<< help would be appreciated here, so far I couldn’t find a way to handle raw h264 streams in jcodec )
    • If I used the jcodec’s MP4 muxer ( org.jcodec.samples.mux.AVCMP4Mux ) it does generate a mp4 but it is not able to read the same mp4 which it only generated
    • JCodec handles externally generated mp4 files pretty well. Can seek to any random frame and renders the frame BufferedImage beautifully, but it seems I don’t have my videos in a format which jcodec can handle.

    The encoding settings which I am using.

    x264 - --keyint 240 --sar 1:1 --output "destinationFile" --stitchable --fps 1/1 --input-res 1280x800 --input-csp rgb

    Any tip/advice. How can I make this work ?
    Thanks :D

    Ref : This question is in continuation of this How to make video from images using Java + x264 ; cross platform solution required