Recherche avancée

Médias (1)

Mot : - Tags -/framasoft

Autres articles (33)

  • Dépôt de média et thèmes par FTP

    31 mai 2013, par

    L’outil MédiaSPIP traite aussi les média transférés par la voie FTP. Si vous préférez déposer par cette voie, récupérez les identifiants d’accès vers votre site MédiaSPIP et utilisez votre client FTP favori.
    Vous trouverez dès le départ les dossiers suivants dans votre espace FTP : config/ : dossier de configuration du site IMG/ : dossier des média déjà traités et en ligne sur le site local/ : répertoire cache du site web themes/ : les thèmes ou les feuilles de style personnalisées tmp/ : dossier de travail (...)

  • Personnaliser les catégories

    21 juin 2013, par

    Formulaire de création d’une catégorie
    Pour ceux qui connaissent bien SPIP, une catégorie peut être assimilée à une rubrique.
    Dans le cas d’un document de type catégorie, les champs proposés par défaut sont : Texte
    On peut modifier ce formulaire dans la partie :
    Administration > Configuration des masques de formulaire.
    Dans le cas d’un document de type média, les champs non affichés par défaut sont : Descriptif rapide
    Par ailleurs, c’est dans cette partie configuration qu’on peut indiquer le (...)

  • HTML5 audio and video support

    13 avril 2011, par

    MediaSPIP uses HTML5 video and audio tags to play multimedia files, taking advantage of the latest W3C innovations supported by modern browsers.
    The MediaSPIP player used has been created specifically for MediaSPIP and can be easily adapted to fit in with a specific theme.
    For older browsers the Flowplayer flash fallback is used.
    MediaSPIP allows for media playback on major mobile platforms with the above (...)

Sur d’autres sites (7132)

  • 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