Recherche avancée

Médias (91)

Autres articles (55)

  • Publier sur MédiaSpip

    13 juin 2013

    Puis-je poster des contenus à partir d’une tablette Ipad ?
    Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir

  • Initialisation de MediaSPIP (préconfiguration)

    20 février 2010, par

    Lors de l’installation de MediaSPIP, celui-ci est préconfiguré pour les usages les plus fréquents.
    Cette préconfiguration est réalisée par un plugin activé par défaut et non désactivable appelé MediaSPIP Init.
    Ce plugin sert à préconfigurer de manière correcte chaque instance de MediaSPIP. Il doit donc être placé dans le dossier plugins-dist/ du site ou de la ferme pour être installé par défaut avant de pouvoir utiliser le site.
    Dans un premier temps il active ou désactive des options de SPIP qui ne le (...)

  • Supporting all media types

    13 avril 2011, par

    Unlike most software and media-sharing platforms, MediaSPIP aims to manage as many different media types as possible. The following are just a few examples from an ever-expanding list of supported formats : images : png, gif, jpg, bmp and more audio : MP3, Ogg, Wav and more video : AVI, MP4, OGV, mpg, mov, wmv and more text, code and other data : OpenOffice, Microsoft Office (Word, PowerPoint, Excel), web (html, CSS), LaTeX, Google Earth and (...)

Sur d’autres sites (12435)

  • closing goroutine spawned by fiber endpoint

    30 mai 2023, par Nitin

    I have a program that is rtsp cameras to hls format using ffmpeg for streaming.
creating goroutines for each rtsp link as ffmpeg runs in background

    


    Streams are added by following code.

    


    func StreamProcess(data <-chan StreamData, ctx context.Context) {
for v := range data {
    ctx, _ := context.WithCancel(ctx)
    go func() {
        if !getStreams(v.camera_id) {
            var stream StreamState
            stream.camera_id = v.camera_id
            stream.state = true
            go Stream(v, ctx)
            wg.Wait()
        } else {
            return
        }
    }()
}   


    


    }

    


    Streaming function which runs ffmpeg command.

    


    func Stream(meta StreamData, ctx context.Context) error {
    log.Println("Started Streaming")
    ffmpegCmd := exec.Command("ffmpeg", "-i", meta.rtsp, "-pix_fmt", "yuv420p", "-c:v", "libx264", "-preset", "ultrafast", "-b:v", "600k", "-c:a", "aac", "-b:a", "160k", "-f", "rtsp", fmt.Sprintf("rtsp://localhost:8554/%s", meta.camera_id))
    output, _ := ffmpegCmd.CombinedOutput()

    log.Println(string(output))

    for {
        select {
        case <-ctx.Done():
           log.Println("killing process")
           ffmpegCmd.Process.Kill()
           return nil
        }
    }}


    


    my Goal is to stop each os.exec process (ffmpeg command) or at least close all goroutines that are under ffmpeg commands without closing fiber server.

    


    ** help required new to golang **

    


  • Is it possible to read streaming response body using fiber ?

    2 novembre 2023, par MHM

    I have a streaming server(ffmpeg) that send data through HTTP.
I sent the stream to my fiber backend but I only have access to c.body() when the stream server(ffmpeg) is terminated.
Is there any way to capture streamed data in real-time in fiber ?

    


    here is my sample code :

    


    package main

import "github.com/gofiber/fiber/v2"

func main() {
  app := fiber.New()
  
app.Post("/", func(c *fiber.Ctx) error {
    golang        // real-time reading streamed data in c.body() and send it to fiber websocket
        return c.SendStatus(200)

}


    


  • How to retrieve data from GPU ? (Via SDI cable)

    17 juillet 2019, par Pofke1

    I have a camera that’s connected to my GPU via SDI cable. I need somehow to capture live video information from that camera and be able to transfer it to SDL_Surface in my SDL2 program later (It would be enough to just get RGB of the pixels). The question is how should I do this or what other libraries should I use ? Is something like FFmpeg is correct way to do this ? Also maybe I should use another input from camera ?