Recherche avancée

Médias (17)

Mot : - Tags -/wired

Autres articles (75)

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

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

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

  • ffmpeg continue streaming to twitch use case

    11 juin 2023, par Hassan M. Amin

    So I have a weird use case that I'm struggling with. Here's the situation :

    


    I have 2 video files, each 1 hour long. I want to stream the first file to twitch in a process, and when that file ends, the ffmpeg process will end and then I want to pickup the other video and continue the stream with that one.

    


    Why should the process end ? because after the first video ends, I need to check via code if the 2nd video is available to be streamed, otherwise I'll re-stream the first video again.

    


    I understand that this can be done via concatenating the two videos, but again, the 2nd video might not be available just yet so we need to end the process right after the 1st video ends streaming and check if it's there.

    


    This works great on YouTube, but the issue I'm facing is that Twitch specifically, when we start streaming the 2nd video, thinks that it's a totally new live stream and resets the live duration counter.

    


    Here's the million dollar question : How can we make twitch think that the data being sent from the 2nd video is the remainder of the first video ? I think it has something to do with the timestamps being sent ? any pointers or other way to look at this ?

    


    Tried updating the pts to be the previous video length + current pts

    


  • avformat/matroskadec : Move WEBVTT code to mkv_parse_subtitle_codec()

    3 septembre 2023, par Andreas Rheinhardt
    avformat/matroskadec : Move WEBVTT code to mkv_parse_subtitle_codec()
    

    and also perform the remainder of the subtitle parsing directly
    after mkv_parse_subtitle_codec().

    Signed-off-by : Andreas Rheinhardt <andreas.rheinhardt@outlook.com>

    • [DH] libavformat/matroskadec.c
  • ffmpeg seek by position, not timestep [closed]

    23 octobre 2023, par user112346

    I'm implementing an application which requires extracting, say, 100 frames from a video stream, processing them, then extracting the next 100 and repeating this process until the end of the video.

    &#xA;

    I've been doing this using :

    &#xA;

    ffmpeg -i input.mkv -vf "select=gt(n\,$MYMIN_MINUS_ONE)*lt(n\,$MYMAX_PLUS_ONE)" -vsync 0 frames/frame%08d.png&#xA;

    &#xA;

    However, this approach encodes everything unnecessarily and is slow. I'm not sure if ffmpeg can seek based on the sequential frame position. Therefore, I changed the code to use timesteps by first doing :

    &#xA;

    ffmpeg -itsscale $FRAME_RATE -i input.mkv -vf "fps=1" -q:v 1 -vsync vfr -c:v libx265 input_stretched.mkv&#xA;

    &#xA;

    Which stretches the input such that each frame in the original sequence corresponds to a different second. Then frame access is done by using :

    &#xA;

    ffmpeg -ss $MYMIN -i input_stretched.mkv -frames:v $NFRAMES frames/frame%08d.png&#xA;

    &#xA;

    This solution seems to work and, after the initial encoding, access is much faster than using the filtergraph. I can probably alternatively divide the timestamps when accessing, instead of stretching the video, although I have not yet tested this.

    &#xA;

    I'd like to know if there is a less "hacky" way of doing this, such as to use the frame sequence numbers directly, instead of converting to timesteps.

    &#xA;