Recherche avancée

Médias (0)

Mot : - Tags -/auteurs

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

Autres articles (58)

  • (Dés)Activation de fonctionnalités (plugins)

    18 février 2011, par

    Pour gérer l’ajout et la suppression de fonctionnalités supplémentaires (ou plugins), MediaSPIP utilise à partir de la version 0.2 SVP.
    SVP permet l’activation facile de plugins depuis l’espace de configuration de MediaSPIP.
    Pour y accéder, il suffit de se rendre dans l’espace de configuration puis de se rendre sur la page "Gestion des plugins".
    MediaSPIP est fourni par défaut avec l’ensemble des plugins dits "compatibles", ils ont été testés et intégrés afin de fonctionner parfaitement avec chaque (...)

  • Soumettre bugs et patchs

    10 avril 2011

    Un logiciel n’est malheureusement jamais parfait...
    Si vous pensez avoir mis la main sur un bug, reportez le dans notre système de tickets en prenant bien soin de nous remonter certaines informations pertinentes : le type de navigateur et sa version exacte avec lequel vous avez l’anomalie ; une explication la plus précise possible du problème rencontré ; si possibles les étapes pour reproduire le problème ; un lien vers le site / la page en question ;
    Si vous pensez avoir résolu vous même le bug (...)

  • Installation en mode standalone

    4 février 2011, par

    L’installation de la distribution MediaSPIP se fait en plusieurs étapes : la récupération des fichiers nécessaires. À ce moment là deux méthodes sont possibles : en installant l’archive ZIP contenant l’ensemble de la distribution ; via SVN en récupérant les sources de chaque modules séparément ; la préconfiguration ; l’installation définitive ;
    [mediaspip_zip]Installation de l’archive ZIP de MediaSPIP
    Ce mode d’installation est la méthode la plus simple afin d’installer l’ensemble de la distribution (...)

Sur d’autres sites (7142)

  • fate : Modify a random h264 test to also test the -framerate option

    20 mars 2016, par Michael Niedermayer
    fate : Modify a random h264 test to also test the -framerate option
    

    Signed-off-by : Michael Niedermayer <michael@niedermayer.cc>

    • [DH] tests/fate/h264.mak
    • [DH] tests/ref/fate/h264-conformance-ba1_ft_c
  • Firebase and FFmpeg : Download URL error for videos longer than one hour

    11 août 2024, par braunlich

    Summary of the problem : I'm developing a video processing feature in a React application that uses Firebase as the backend. The video file uploads to Firebase Storage without issues. However, when attempting to use FFmpeg to extract the audio as a FLAC file, the process works for videos under an hour but fails for longer videos, producing the error : "Error : File could not be read ! Code=-1".

    &#xA;

    Code context : The issue occurs during the process of grabbing the video URL from Firebase Storage and extracting audio using FFmpeg. Here is the code snippet :

    &#xA;

    try {&#xA;const videoDownloadURL = await getDownloadURL(uploadTask.snapshot.ref);&#xA;console.log(&#x27;Video file available at&#x27;, videoDownloadURL);&#xA;&#xA;await ffmpeg.load();&#xA;await ffmpeg.writeFile(file.name, await fetchFile(file));&#xA;await ffmpeg.exec([&#x27;-i&#x27;, file.name, &#x27;-q:a&#x27;, &#x27;0&#x27;, &#x27;-map&#x27;, &#x27;a&#x27;, &#x27;-ac&#x27;, &#x27;1&#x27;, &#x27;output.flac&#x27;]); // Ensuring mono channel&#xA;const audioData = await ffmpeg.readFile(&#x27;output.flac&#x27;);&#xA;const audioBlob = new Blob([audioData.buffer], { type: &#x27;audio/flac&#x27; });&#xA;const audioStorageRef = ref(storage, `${user.uid}/${videoId}.flac`);&#xA;const audioUploadTask = uploadBytesResumable(audioStorageRef, audioBlob, {&#xA;    contentType: &#x27;audio/flac&#x27;,&#xA;    customMetadata: {&#xA;        uploadedBy: user.uid,&#xA;        videoId: videoId&#xA;    }&#xA;});&#xA;&#xA;audioUploadTask.on(&#x27;state_changed&#x27;,&#xA;    (snapshot) => {&#xA;        const audioProgress = Math.round((snapshot.bytesTransferred / snapshot.totalBytes) * 100 * 0.1);&#xA;        setUploadProgress(Math.round(videoProgress &#x2B; audioProgress));&#xA;        console.log(`Audio upload progress: ${Math.round(audioProgress)}%`);&#xA;    },&#xA;    (error) => {&#xA;        console.error("Audio upload error:", error);&#xA;    },&#xA;    async () => {&#xA;        try {&#xA;            const audioDownloadURL = await getDownloadURL(audioUploadTask.snapshot.ref);&#xA;            console.log(&#x27;Audio file available at&#x27;, audioDownloadURL);&#xA;            audioUploadComplete = true;&#xA;        } catch (error) {&#xA;            console.error("Audio download URL error:", error);&#xA;        }&#xA;    }&#xA;);&#xA;&#xA;} catch (error) { console.error("Download URL error:", error); }&#xA;

    &#xA;

    Issue description : The above code successfully extracts audio from videos shorter than one hour. However, for videos around two to three hours long, the code breaks with the following error message :&#xA;error code

    &#xA;

    I suspect this might be related to FFmpeg or Firebase's handling of larger files, but I'm not sure how to debug this further or what adjustments to make.

    &#xA;

    Research and attempts :

    &#xA;

    I've confirmed that the video files are successfully uploaded to Firebase Storage.

    &#xA;

    The issue appears to be related to either the FFmpeg processing or the retrieval of the download URL for larger files.

    &#xA;

    I've searched for similar issues but haven't found a solution specific to handling larger video files with FFmpeg and Firebase.

    &#xA;

    Request for help :

    &#xA;

    Any insights on why this error might be occurring for larger files ? Suggestions for debugging or modifying the code to handle larger videos efficiently.

    &#xA;

  • How to correctly close a console application using the youtube-dl process to download Twitch stream whenever I want

    24 juin 2023, par ElPavlillo

    The test program has the following code :

    &#xA;

    string url = "https://www.twitch.tv/ricoy";&#xA;string outputPath = @"D:\ruta_del_archivo_salida.mp4";&#xA;&#xA;ProcessStartInfo startInfo = new ProcessStartInfo&#xA;{&#xA;    FileName = "youtube-dl",&#xA;    Arguments = $"-f best -o \"{outputPath}\" \"{url}\"",&#xA;    //RedirectStandardOutput = true,&#xA;    UseShellExecute = false,&#xA;    CreateNoWindow = true&#xA;};&#xA;&#xA;using (Process process = new Process())&#xA;{&#xA;    process.StartInfo = startInfo;&#xA;    process.Start();&#xA;&#xA;    //var output = process.StandardOutput.ReadToEnd();&#xA;    //process.WaitForExit();&#xA;&#xA;    Console.Read();&#xA;    KillProcessAndChildren(process.Id);&#xA;}&#xA;&#xA;static void KillProcessAndChildren(int pid)&#xA;{&#xA;    // Cannot close &#x27;system idle process&#x27;.&#xA;    if (pid == 0)&#xA;    {&#xA;        return;&#xA;    }&#xA;    ManagementObjectSearcher searcher = new ManagementObjectSearcher&#xA;            ("Select * From Win32_Process Where ParentProcessID=" &#x2B; pid);&#xA;    ManagementObjectCollection moc = searcher.Get();&#xA;    foreach (ManagementObject mo in moc)&#xA;    {&#xA;        KillProcessAndChildren(Convert.ToInt32(mo["ProcessID"]));&#xA;    }&#xA;    try&#xA;    {&#xA;        Process proc = Process.GetProcessById(pid);&#xA;        proc.Kill();&#xA;    }&#xA;    catch (ArgumentException)&#xA;    {&#xA;        // Process already exited.&#xA;    }&#xA;}&#xA;

    &#xA;

    The problem is that when I press de key in the console the youtube-dl process gets kill and also de ffmpeg but the file is left with .part extension and does not work.

    &#xA;

    I was expecting the code to left a .mp4 file but for reason it does not.

    &#xA;