Recherche avancée

Médias (1)

Mot : - Tags -/Rennes

Autres articles (93)

  • Personnaliser les catégories

    21 juin 2013, par

    Formulaire de création d’une catégorie
    Pour ceux qui connaissent bien SPIP, une catégorie peut être assimilée à une rubrique.
    Dans le cas d’un document de type catégorie, les champs proposés par défaut sont : Texte
    On peut modifier ce formulaire dans la partie :
    Administration > Configuration des masques de formulaire.
    Dans le cas d’un document de type média, les champs non affichés par défaut sont : Descriptif rapide
    Par ailleurs, c’est dans cette partie configuration qu’on peut indiquer le (...)

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

  • Création définitive du canal

    12 mars 2010, par

    Lorsque votre demande est validée, vous pouvez alors procéder à la création proprement dite du canal. Chaque canal est un site à part entière placé sous votre responsabilité. Les administrateurs de la plateforme n’y ont aucun accès.
    A la validation, vous recevez un email vous invitant donc à créer votre canal.
    Pour ce faire il vous suffit de vous rendre à son adresse, dans notre exemple "http://votre_sous_domaine.mediaspip.net".
    A ce moment là un mot de passe vous est demandé, il vous suffit d’y (...)

Sur d’autres sites (6681)

  • j2kdec : merge length==0 check from jpeg2000

    30 mai 2013, par Michael Niedermayer
    j2kdec : merge length==0 check from jpeg2000
    

    Signed-off-by : Michael Niedermayer <michaelni@gmx.at>

    • [DH] libavcodec/j2kdec.c
  • When downloading HLS video with FFMPEG it does not download the audio

    3 août 2021, par Thiago Franklin

    I have a problem, when I try to download an HLS video with FFMPEG, it downloads the video track, but it doesn't find the AUDIO. When running the HLS .m3u8 file in a player, it plays normally, audio and video, but when trying to download, it shows an error message saying that the audio cannot be found.

    &#xA;

    I'm running the following command :

    &#xA;

    ffmpeg.exe -i "https://teste-etv.espiritismo.tv/437602.m3u8" -codec:a libmp3lame -b:a 96k teste-hls.mp3

    &#xA;

    Displays the following error when trying to download the audio :

    &#xA;

    [hls @ 0000021b5d9ad940] Skip (&#x27;#EXT-X-VERSION:3&#x27;)&#xA;[hls @ 0000021b5d9ad940] Skip (&#x27;#EXT-X-INDEPENDENT-SEGMENTS&#x27;)&#xA;[hls @ 0000021b5d9ad940] Opening &#x27;https://appsetv.b-cdn.net/hls/437602/437602-1080p.m3u8&#x27; for reading&#xA;[hls @ 0000021b5d9ad940] Skip (&#x27;#EXT-X-VERSION:3&#x27;)&#xA;[https @ 0000021b5e10ee00] Opening &#x27;https://appsetv.b-cdn.net/hls/437602/437602-720p.m3u8&#x27; for reading&#xA;[hls @ 0000021b5d9ad940] Skip (&#x27;#EXT-X-VERSION:3&#x27;)&#xA;[https @ 0000021b5e10ee00] Opening &#x27;https://appsetv.b-cdn.net/hls/437602/437602-540p.m3u8&#x27; for reading&#xA;[hls @ 0000021b5d9ad940] Skip (&#x27;#EXT-X-VERSION:3&#x27;)&#xA;[https @ 0000021b5e10ee00] Opening &#x27;https://appsetv.b-cdn.net/hls/437602/437602-360p.m3u8&#x27; for reading&#xA;[hls @ 0000021b5d9ad940] Skip (&#x27;#EXT-X-VERSION:3&#x27;)&#xA;[hls @ 0000021b5d9ad940] Opening &#x27;https://appsetv.b-cdn.net/hls/437602/437602-1080p_00001.ts&#x27; for reading&#xA;[hls @ 0000021b5d9ad940] Opening &#x27;https://appsetv.b-cdn.net/hls/437602/437602-1080p_00002.ts&#x27; for reading&#xA;[hls @ 0000021b5d9ad940] Opening &#x27;https://appsetv.b-cdn.net/hls/437602/437602-720p_00001.ts&#x27; for reading&#xA;[hls @ 0000021b5d9ad940] Opening &#x27;https://appsetv.b-cdn.net/hls/437602/437602-720p_00002.ts&#x27; for reading&#xA;[hls @ 0000021b5d9ad940] Opening &#x27;https://appsetv.b-cdn.net/hls/437602/437602-540p_00001.ts&#x27; for reading&#xA;[hls @ 0000021b5d9ad940] Opening &#x27;https://appsetv.b-cdn.net/hls/437602/437602-540p_00002.ts&#x27; for reading&#xA;[hls @ 0000021b5d9ad940] Opening &#x27;https://appsetv.b-cdn.net/hls/437602/437602-360p_00001.ts&#x27; for reading&#xA;[hls @ 0000021b5d9ad940] Opening &#x27;https://appsetv.b-cdn.net/hls/437602/437602-360p_00002.ts&#x27; for reading&#xA;[hls @ 0000021b5d9ad940] Could not find codec parameters for stream 1 (Audio: aac ([15][0][0][0] / 0x000F), 0 channels, fltp): unspecified sample rate&#xA;Consider increasing the value for the &#x27;analyzeduration&#x27; and &#x27;probesize&#x27; options&#xA;[hls @ 0000021b5d9ad940] Could not find codec parameters for stream 3 (Audio: aac ([15][0][0][0] / 0x000F), 0 channels, fltp): unspecified sample rate&#xA;Consider increasing the value for the &#x27;analyzeduration&#x27; and &#x27;probesize&#x27; options&#xA;[hls @ 0000021b5d9ad940] Could not find codec parameters for stream 5 (Audio: aac ([15][0][0][0] / 0x000F), 0 channels, fltp): unspecified sample rate&#xA;Consider increasing the value for the &#x27;analyzeduration&#x27; and &#x27;probesize&#x27; options&#xA;[hls @ 0000021b5d9ad940] Could not find codec parameters for stream 7 (Audio: aac ([15][0][0][0] / 0x000F), 0 channels, fltp): unspecified sample rate&#xA;Consider increasing the value for the &#x27;analyzeduration&#x27; and &#x27;probesize&#x27; options&#xA;Input #0, hls, from &#x27;https://appsetv.b-cdn.net/hls/437602/437602.m3u8&#x27;:&#xA;  Duration: 00:01:41.00, start: 2.083333, bitrate: 0 kb/s&#xA;  Program 0&#xA;    Metadata:&#xA;      variant_bitrate : 2509173&#xA;    Stream #0:0: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 24 fps, 24 tbr, 90k tbn, 48 tbc&#xA;    Metadata:&#xA;      variant_bitrate : 2509173&#xA;    Stream #0:1: Audio: aac ([15][0][0][0] / 0x000F), 0 channels, fltp&#xA;    Metadata:&#xA;      variant_bitrate : 2509173&#xA;  Program 1&#xA;    Metadata:&#xA;      variant_bitrate : 1205957&#xA;    Stream #0:2: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], 24 fps, 24 tbr, 90k tbn, 48 tbc&#xA;    Metadata:&#xA;      variant_bitrate : 1205957&#xA;    Stream #0:3: Audio: aac ([15][0][0][0] / 0x000F), 0 channels, fltp&#xA;    Metadata:&#xA;      variant_bitrate : 1205957&#xA;  Program 2&#xA;    Metadata:&#xA;      variant_bitrate : 1165600&#xA;    Stream #0:4: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p, 960x540 [SAR 1:1 DAR 16:9], 24 fps, 24 tbr, 90k tbn, 48 tbc&#xA;    Metadata:&#xA;      variant_bitrate : 1165600&#xA;    Stream #0:5: Audio: aac ([15][0][0][0] / 0x000F), 0 channels, fltp&#xA;    Metadata:&#xA;      variant_bitrate : 1165600&#xA;  Program 3&#xA;    Metadata:&#xA;      variant_bitrate : 656245&#xA;    Stream #0:6: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p, 640x360 [SAR 1:1 DAR 16:9], 24 fps, 24 tbr, 90k tbn, 48 tbc&#xA;    Metadata:&#xA;      variant_bitrate : 656245&#xA;    Stream #0:7: Audio: aac ([15][0][0][0] / 0x000F), 0 channels, fltp&#xA;    Metadata:&#xA;      variant_bitrate : 656245&#xA;Output #0, mp3, to &#x27;teste-hls.mp3&#x27;:&#xA;Output file #0 does not contain any stream&#xA;

    &#xA;

  • 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;