Recherche avancée

Médias (0)

Mot : - Tags -/xmlrpc

Aucun média correspondant à vos critères n’est disponible sur le site.

Autres articles (105)

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

  • Dailymotion Video Url to Audio Downloader

    27 août 2020, par Maisum Abbas

    I am trying to create Dailymotion Video URL to Audio Downloader. Since I have to deploy it on Firebase, I will have to use JavaScript, hence node.js. I have tried various approaches by following different links but didn't find anything that works for me. Most of them are based on terminal from where they can run which I don't require including ffmpeg. One ffmpeg tutorial I found was based on uploading videos and then converting it to audio which didn't work with the URL. Also, I didn't find any code from where I can use or read to manage ffmpeg in code, just found the guide of how to use it in terminal. So can anyone guide me where I can get a useful link that can help me. I have tried on GitHub as well. Really hoping to get help from here.

    


  • How to kill command Exec in difference Function in Golang

    26 juillet 2022, par Tammam

    i'm making screen record web based using command exec to run FFMPEG. here I created a startRecording function but I am still confused about stopping the command process in the stopRecording function, because the command is executed in the startRecording function. How to stop a process that is already running in the srartRecording function in the stopRecording function ?

    


    here my code

    


    //Handler to create room/start record
func RoomCreate(c *fiber.Ctx) error {
    fileName := "out.mp4"
    fmt.Println(fileName)
    if len(os.Args) > 1 {
        fileName = os.Args[1]
    }

    

    errCh := make(chan error, 2)
    ctx, cancelFn := context.WithCancel(context.Background())
    // Call to function startRecording
    go func() { errCh <- startRecording(ctx, fileName) }()

    go func() {
        errCh <- nil
    }()
    err := <-errCh
    cancelFn()
    if err != nil && err != context.Canceled {
        log.Fatalf("Execution failed: %v", err)
    }
    
    return c.Redirect(fmt.Sprintf("/room/%s", guuid.New().String()))
}



//Function to run command FFMPEG
func startRecording(ctx context.Context, fileName string) error {
    ctx, cancelFn := context.WithCancel(ctx)
    defer cancelFn()
    // Build ffmpeg
    ffmpeg := exec.Command("ffmpeg",
        "-f", "gdigrab",
        "-framerate", "30",
        "-i", "desktop",
        "-f", "mp4",
        fileName,
    )
    // Stdin for sending data
    stdin, err := ffmpeg.StdinPipe()
    if err != nil {
        return err
    }
    //var buf bytes.Buffer
    defer stdin.Close()
    // Run it in the background
    errCh := make(chan error, 1)

    go func() {
        fmt.Printf("Executing: %v\n", strings.Join(ffmpeg.Args, " "))
        
        if err := ffmpeg.Run(); err != nil {
            return
        }
        //fmt.Printf("FFMPEG output:\n%v\n", string(out))
        errCh <- err
    }()
    // Just start sending a bunch of frames
    for {
        
        // Check if we're done, otherwise go again
        select {
        case <-ctx.Done():
            return ctx.Err()
        case err := <-errCh:
            return err
        default:
        }
    }
}

//Here function to stop Recording
func stopRecording(ctx context.Context) error {
//Code stop recording in here
} 


    


    Thanks for advance

    


  • whats the difference between “&” and multiple terminals in Linux Multiprocessing [closed]

    11 mai 2022, par Ma XIaoyu

    I am using Linux for multi-task processing. Specifically, calling ffmpeg multiple times to transcoding multi source videos.

    


    Strangely, when I am using :
“
ffmpeg-cmds01 &
ffmpeg-cmds02 &
ffmpeg-cmds03 &
……
”
The ffmpeg process often get errors and stop after a few hours.

    


    However, if I open several terminals and using each terminal for only one ffmpeg cmd( i.e., terminal#1 only run ffmpeg-cmd01 ; ternimal#2 only for ffmpeg-cmd02, etc.) The transcoding procedure can last for dozens of days and no errors are reported.

    


    Could anyone kindly help us to analysis what’s there differences ? Opening multiple terminals is too difficult for managing especially when the number of video streams are up to 300+.

    


    Thanks a lot for help !