Recherche avancée

Médias (2)

Mot : - Tags -/plugins

Autres articles (38)

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

  • Emballe médias : à quoi cela sert ?

    4 février 2011, par

    Ce plugin vise à gérer des sites de mise en ligne de documents de tous types.
    Il crée des "médias", à savoir : un "média" est un article au sens SPIP créé automatiquement lors du téléversement d’un document qu’il soit audio, vidéo, image ou textuel ; un seul document ne peut être lié à un article dit "média" ;

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

  • ffmpeg does not exit when pipe is closed ?

    9 juin 2024, par Thomas

    If this has already been brought up, I apologize. This is part of a software tuner package I am writing as a POC. It is used by Plex Media Server. For the most part, it works with good picture quality but leaves ffmpeg processes when the User clicks "Stop" or closes the browser, I assume plex is closing the socket and that ffmpeg is not erroring out, but I am not sure. this is part of a function where I pass in a TCP Client Network Stream.

    


    TCPListener waits for a call, when it accepts one, it passes the network stream off to this function below. When the TCP Client disconnects, ffmpeg never exits, waitforexit never returns.

    


    ffmpeg args :

    


    -hide_banner -loglevel error -i {0} -c copy -f mpegts pipe:1


    


    c#

    


     string Arguments = string.Format(ffmpegStreamOptions, URL,Overlay);
 Process p = new Process();
 p.StartInfo.UseShellExecute = false;
 p.StartInfo.RedirectStandardOutput = true;
 p.StartInfo.RedirectStandardError = true;
 p.StartInfo.CreateNoWindow = true;
 p.StartInfo.FileName = "ffmpeg.exe"; // Replace with your executable path
 p.StartInfo.Arguments = Arguments;
 
 p.Start();
 var errorMemoryStream = new MemoryStream();
 var programTask = Task.WhenAny(
     p.StandardOutput.BaseStream.CopyToAsync(client_stream


    


    ),
p.StandardError.BaseStream.CopyToAsync(errorMemoryStream)
) ;

    


     p.WaitForExit(); //stuck here after the connection is broken and never exits.


    


    Any help would be appreciated
Thanks !

    


  • avconv : fix handling attachments in init_output_stream

    23 mai 2016, par Anton Khirnov
    avconv : fix handling attachments in init_output_stream
    

    The current code assumes that encoding_needed is simply an inverse of
    stream_copy, which is not true for manually attached files (for which
    neither of those is true).

    • [DBH] avconv.c
  • How can i make the dashjs player respect the stream window ?

    6 mars 2021, par Octavia Kitsune

    I created the following command to i run on the serverside turn a source url into a cmaf dash stream :

    


    ffmpeg -loglevel error -re -i SOURCEURL -c copy -f dash -dash_segment_type mp4 -remove_at_exit 1 -seg_duration 2 -target_latency 1 -frag_type duration -frag_duration 0.1 -window_size 10 -extra_window_size 3 -streaming 1 -ldash 1 -use_template 1 -use_timeline 0 -index_correction 1 -tune zerolatency -fflags "+nobuffer+flush_packets" -format_options "movflags=cmaf" -adaptation_sets "id=0,streams=0 id=1,streams=1" -utc_timing_url "http://time.akamai.com/?iso&ms" stream/main.mpd


    


    And on the clientside i run a dashjs player with the following configuration :

    


      const video = document.getElementById('video')
  const player = dashjs.MediaPlayer().create()

  player.initialize(video, false, true)
  player.updateSettings({
    streaming: {
      stallThreshold: 0.05,
      lowLatencyEnabled: true,
      liveDelay: 1,
      liveCatchup: {
        minDrift: 1,
        playbackRate: 0.3,
        mode: 'liveCatchupModeDefault'
      },
      abr: {
        useDefaultABRRules: true,
        ABRStrategy: 'abrLoLP',
        fetchThroughputCalculationMode:
          'abrFetchThroughputCalculationMoofParsing'
      }
    }
  })


    


    My problem is, that dashjs loads a few segements and then tries to grab segments that error with a 404. It seems the segments it asks for fall out ot the window the stream defines.

    


    So i wonder how i can align my dashjs with my stream configuration so that it does respect the window defined by the stream, to basically simulate a livestream from any kind of videosource ?