Recherche avancée

Médias (1)

Mot : - Tags -/biomaping

Autres articles (68)

  • Les tâches Cron régulières de la ferme

    1er décembre 2010, par

    La gestion de la ferme passe par l’exécution à intervalle régulier de plusieurs tâches répétitives dites Cron.
    Le super Cron (gestion_mutu_super_cron)
    Cette tâche, planifiée chaque minute, a pour simple effet d’appeler le Cron de l’ensemble des instances de la mutualisation régulièrement. Couplée avec un Cron système sur le site central de la mutualisation, cela permet de simplement générer des visites régulières sur les différents sites et éviter que les tâches des sites peu visités soient trop (...)

  • Mediabox : ouvrir les images dans l’espace maximal pour l’utilisateur

    8 février 2011, par

    La visualisation des images est restreinte par la largeur accordée par le design du site (dépendant du thème utilisé). Elles sont donc visibles sous un format réduit. Afin de profiter de l’ensemble de la place disponible sur l’écran de l’utilisateur, il est possible d’ajouter une fonctionnalité d’affichage de l’image dans une boite multimedia apparaissant au dessus du reste du contenu.
    Pour ce faire il est nécessaire d’installer le plugin "Mediabox".
    Configuration de la boite multimédia
    Dès (...)

  • Des sites réalisés avec MediaSPIP

    2 mai 2011, par

    Cette page présente quelques-uns des sites fonctionnant sous MediaSPIP.
    Vous pouvez bien entendu ajouter le votre grâce au formulaire en bas de page.

Sur d’autres sites (8215)

  • ffmpeg concat multiple files into pipe

    1er août 2023, par Jacob Lambert

    I'm trying to get ffmpeg to concat 2 files and output the result to a pipe but the command never completes. If I output directly to a .mp4 file, the command does complete. The command I am using is :

    


    ffmpeg -f concat -safe 0 -protocol_whitelist file,https,tls,tcp -i /tmp/parts.txt -c copy -video_track_timescale 600 -map 0 -movflags frag_keyframe+empty_moov -f mp4 pipe:1 -y


    


    The sources in /tmp/parts.txt are presigned AWS S3 urls. As this does work when outputting directly to a .mp4, I do not believe the part files to be the issue.

    


    I think the issue may arise from needing to specify -f twice. Once for the concat and again to indicate what format to output on pipe:1.

    


    What could be the issue for this command just hanging ?

    


    Edit :

    


    Adding verbose gives a lot of logs with :

    


    [mp4 @ 0x11ae0a260] pts has no value


    


  • Golang : ffmpeg Pipe Input Error when Processing MOV Files

    18 septembre 2023, par BJKang

    I'm working on a project in Golang where I'm trying to process video files using ffmpeg through pipes. However, I'm encountering issues when I try to use a pipe for the input stream.

    


    Here's a snippet of the code :

    


    func main() {
    inputPath := "video.MOV"
    fileOutput := "output.mp4"

    fileBytes, err := os.Open(inputPath)
    if err != nil {
        fmt.Println(err)
        return
    }

    outFile, err := os.Create(fileOutput)
    if err != nil {
        fmt.Println(err)
        return
    }
    defer outFile.Close()

    cmd := exec.Command(
        "ffmpeg",
        "-y",
        "-i", "pipe:0", // It is not works.
        "-vf", fmt.Sprintf("scale=-1:%s", "480"),
        "-c:v", "libx264",
        "-crf", "23", // You can adjust this value for desired quality
        "-c:a", "aac", // Assumes the audio codec to be aac, change as needed
        "-strict", "experimental",
        "-f", "mp4",
        "-movflags", "empty_moov",
        "pipe:1",
    )
    cmd.Stderr = os.Stderr
    cmd.Stdin = fileBytes
    stdout, err := cmd.StdoutPipe()
    if err != nil {
        fmt.Println(err)
        return
    }

    if err := cmd.Start(); err != nil {
        fmt.Println(err)
    }

    if _, err := io.Copy(outFile, stdout); err != nil {
        fmt.Println(err)
        return
    }

    if err := cmd.Wait(); err != nil {
        fmt.Println(err)
    }
}



    


    When running the above code, I get the following error :

    


    


    [mov,mp4,m4a,3gp,3g2,mj2 @ 0000025c65c5eb00] stream 1, offset 0x24 : partial file
[mov,mp4,m4a,3gp,3g2,mj2 @ 0000025c65c5eb00] Could not find codec parameters for stream 0 (Video : h264 (avc1 / 0x31637661), none(smpte170m/smpte432/bt709), 1920x1440, 19882 kb/s) : unspecified pixel format
Consider increasing the value for the 'analyzeduration' (0) and 'probesize' (5000000) options
Guessed Channel Layout for Input Stream #0.1 : mono

    


    ...
[mov,mp4,m4a,3gp,3g2,mj2 @ 0000025c65c5eb00] stream 1, offset 0x24 : partial file
Error demuxing input file 0 : Invalid data found when processing input
pipe:0 : Invalid data found when processing input
Cannot determine format of input stream 0:0 after EOF
Error marking filters as finished

    


    


    Interestingly, this error only occurs when I use the input pipe. When using a direct file path (-i inputPath), everything works fine.

    


    Has anyone encountered similar issues when piping inputs to ffmpeg in Golang ? Any insights or solutions would be greatly appreciated.

    


    Thank you !

    


  • Pipe Input Error when Processing MOV Files

    18 septembre 2023, par BJKang

    I'm working on a project in Go where I'm trying to process video files using ffmpeg through pipes. However, I'm encountering issues when I try to use a pipe for the input stream.

    


    Here's a snippet of the code :

    


    func main() {
    inputPath := "video.MOV"
    fileOutput := "output.mp4"

    fileBytes, err := os.Open(inputPath)
    if err != nil {
        fmt.Println(err)
        return
    }

    outFile, err := os.Create(fileOutput)
    if err != nil {
        fmt.Println(err)
        return
    }
    defer outFile.Close()

    cmd := exec.Command(
        "ffmpeg",
        "-y",
        "-i", "pipe:0", // It is not works.
        "-vf", fmt.Sprintf("scale=-1:%s", "480"),
        "-c:v", "libx264",
        "-crf", "23", // You can adjust this value for desired quality
        "-c:a", "aac", // Assumes the audio codec to be aac, change as needed
        "-strict", "experimental",
        "-f", "mp4",
        "-movflags", "empty_moov",
        "pipe:1",
    )
    cmd.Stderr = os.Stderr
    cmd.Stdin = fileBytes
    stdout, err := cmd.StdoutPipe()
    if err != nil {
        fmt.Println(err)
        return
    }

    if err := cmd.Start(); err != nil {
        fmt.Println(err)
    }

    if _, err := io.Copy(outFile, stdout); err != nil {
        fmt.Println(err)
        return
    }

    if err := cmd.Wait(); err != nil {
        fmt.Println(err)
    }
}



    


    When running the above code, I get the following error :

    


    


    [mov,mp4,m4a,3gp,3g2,mj2 @ 0000025c65c5eb00] stream 1, offset 0x24 : partial file
[mov,mp4,m4a,3gp,3g2,mj2 @ 0000025c65c5eb00] Could not find codec parameters for stream 0 (Video : h264 (avc1 / 0x31637661), none(smpte170m/smpte432/bt709), 1920x1440, 19882 kb/s) : unspecified pixel format
Consider increasing the value for the 'analyzeduration' (0) and 'probesize' (5000000) options
Guessed Channel Layout for Input Stream #0.1 : mono

    


    ...
[mov,mp4,m4a,3gp,3g2,mj2 @ 0000025c65c5eb00] stream 1, offset 0x24 : partial file
Error demuxing input file 0 : Invalid data found when processing input
pipe:0 : Invalid data found when processing input
Cannot determine format of input stream 0:0 after EOF
Error marking filters as finished

    


    


    Interestingly, this error only occurs when I use the input pipe. When using a direct file path (-i inputPath), everything works fine.

    


    Has anyone encountered similar issues when piping inputs to ffmpeg in Go ?