Recherche avancée

Médias (1)

Mot : - Tags -/musée

Autres articles (112)

  • 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

  • Les autorisations surchargées par les plugins

    27 avril 2010, par

    Mediaspip core
    autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs

  • Les formats acceptés

    28 janvier 2010, par

    Les commandes suivantes permettent d’avoir des informations sur les formats et codecs gérés par l’installation local de ffmpeg :
    ffmpeg -codecs ffmpeg -formats
    Les format videos acceptés en entrée
    Cette liste est non exhaustive, elle met en exergue les principaux formats utilisés : h264 : H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 m4v : raw MPEG-4 video format flv : Flash Video (FLV) / Sorenson Spark / Sorenson H.263 Theora wmv :
    Les formats vidéos de sortie possibles
    Dans un premier temps on (...)

Sur d’autres sites (12679)

  • Scrolling Effect of an Image using FFmpeg [closed]

    5 juin, par neeebzz

    I want to create an mp4 video of 40 seconds where an image just floats from top to bottom and vice versa.

    


    I am using the following ffmpeg command :

    


    ffmpeg 
    -loop 1 
    -t 40 
    -i ./input.jpg 
    -filter_complex [0]scale=800:-1[s0];[s0]crop=h=450:w=800:x=0:y=(ih-450)*(3*pow(t/40.241\,2) - 2*pow(t/40\,3))[s1];[s1]scale=800:400[s2] 
    -map [s2] 
    -pix_fmt yuv420p 
    -preset medium 
    -r 30 
    -vcodec libx264 
    ./output.mp4 -y


    


    The animation is working as expected however the motion is very jerky. How can I smooth it out ?

    


    Ffmpeg version :

    


    ffmpeg version 5.1.6-0+deb12u1 Copyright (c) 2000-2024 the FFmpeg developers


    


  • How can use ffmpeg in AWS Lambda to clip hls trasnsimision to .mp4

    15 novembre 2024, par Bruno Munné

    The ffmpeg input is through the public url of the bucket, I want to save the output in a tmp.mp4 file and I want to upload this file to the bucket. Locally the ffmpeg command works perfectly, lasting no more than 3 seconds and the output file weighs less than 1MB

    


    export const handler = async (event) => {
    try {
        const { m3u8, offset, duration, signedURL } = event;

        const clipKey = `clip_output.mp4`;
        const clipFilePath = path.join('/tmp', clipKey);

        execSync(`/opt/ffmpeglib/ffmpeg -i ${process.env.URL_CLOUDFLARE}/${m3u8} -ss ${offset} -t ${duration} -c copy -f mp4 ${clipFilePath}`)

        const fileContent = fs.readFileSync(clipFilePath);
        const resSign = await fetch(signedURL, {
            method: "PUT",
            headers: {
                "Content-Type": "application/octet-stream",
            },
            body: fileContent,
        });

        if (!resSign.ok) throw new Error(`Failed to upload file to S3: ${resSign.statusText}`);

        fs.unlinkSync(clipFilePath);

        return {
            statusCode: 200,
            body: JSON.stringify({
                message: 'Clip procesado y subido correctamente',
                clipKey: path.basename(clipFilePath)
            }),
        };
    } catch (error) {
        console.error("Error al procesar el clip:", error);
        return {
            statusCode: 500,
            body: JSON.stringify({ error: error.message }),
        };
    }
};


    


    The error it shows me is the following

    


     at genericNodeError (node:internal/errors:984:15)&#xA;    at wrappedFn (node:internal/errors:538:14)&#xA;    at checkExecSyncError (node:child_process:891:11)&#xA;    at execSync (node:child_process:963:15)&#xA;    at Runtime.handler (file:///var/task/index.js:16:3)&#xA;    at Runtime.handleOnceNonStreaming (file:///var/runtime/index.mjs:1173:29) {&#xA;  status: null,&#xA;  signal: &#x27;SIGSEGV&#x27;,&#xA;  output: [&#xA;    null,&#xA;    <buffer>,&#xA;    <buffer 66="66" 6d="6d" 70="70" 65="65" 67="67" 20="20" 76="76" 72="72" 73="73" 69="69" 6f="6f" 6e="6e" 4e="4e" 2d="2d" 37="37" 31="31" 30="30" 36="36" 34="34" 64="64" 35="35" 33="33" 63="63" 74="74" 61="61" 68="68" 3a="3a" 2f="2f" 1194="1194" more="more" bytes="bytes">&#xA;  ],&#xA;  pid: 13,&#xA;  stdout: <buffer>,&#xA;  stderr: <buffer 66="66" 6d="6d" 70="70" 65="65" 67="67" 20="20" 76="76" 72="72" 73="73" 69="69" 6f="6f" 6e="6e" 4e="4e" 2d="2d" 37="37" 31="31" 30="30" 36="36" 34="34" 64="64" 35="35" 33="33" 63="63" 74="74" 61="61" 68="68" 3a="3a" 2f="2f" 1194="1194" more="more" bytes="bytes">&#xA;}&#xA;ffmpeg version N-71064-gd5e603ddc0-static https://johnvansickle.com/ffmpeg/  Copyright (c) 2000-2024 the FFmpeg developers&#xA;built with gcc 8 (Debian 8.3.0-6)&#xA;configuration: --enable-gpl --enable-version3 --enable-static --disable-debug --disable-ffplay --disable-indev=sndio --disable-outdev=sndio --cc=gcc --enable-fontconfig --enable-frei0r --enable-gnutls --enable-gmp --enable-libgme --enable-gray --enable-libaom --enable-libfribidi --enable-libass --enable-libvmaf --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-librubberband --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libvorbis --enable-libopus --enable-libtheora --enable-libvidstab --enable-libvo-amrwbenc --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libdav1d --enable-libxvid --enable-libzvbi --enable-libzimg&#xA;libavutil      59. 27.100 / 59. 27.100&#xA;libavcodec     61.  9.100 / 61.  9.100&#xA;libavformat    61.  4.100 / 61.  4.100&#xA;libavdevice    61.  2.100 / 61.  2.100&#xA;libavfilter    10.  2.102 / 10.  2.102&#xA;libswscale      8.  2.100 /  8.  2.100&#xA;libswresample   5.  2.100 /  5.  2.100&#xA;libpostproc    58.  2.100 / 58.  2.100&#xA;END RequestId: 2fc8c51e-66c6-4c74-aa9c-fa10c11207a0&#xA;REPORT RequestId: 2fc8c51e-66c6-4c74-aa9c-fa10c11207a0  Duration: 164.82 ms Billed Duration: 165 ms Memory Size: 2048 MB    Max Memory Used: 88 MB  Init Duration: 185.19 ms&#xA;</buffer></buffer></buffer></buffer>

    &#xA;

    Help to resolve it please

    &#xA;

  • Converting HLS Stream to stream supported by old radio

    29 novembre 2024, par Alberto Faenza

    I have an old internet radio that does not support HLS streams.&#xA;Therefore I cannot listen to my favourite radio at this url :&#xA;https://streamcdnf31-4c4b867c89244861ac216426883d1ad0.msvdn.net/radiodeejay/radiodeejay/master_ma.m3u8

    &#xA;

    I found a solution using a paid software https://minimradio.com/ which is based on minimserver and minimstreamer.

    &#xA;

    This solution works if I install mininmserver and minimstreamer on a local computer and use the internet radio to point to the converter stream but I will have to pay if I want to use this.

    &#xA;

    Checking the documentation of minimradio and ministreamer I can see the following :

    &#xA;

    *Some internet radios can play the previous AAC ADTS streams but can't play these new HLS streams&#xA;...

    &#xA;

    If the network stream URL points to an HLS .m3u8 master playlist or media playlist file, MinimStreamer reads this file and uses the HLS protocol to read the stream audio data and send it to the music player as a conventional HTTP stream. This makes the stream playable on music players that don't support the HLS protocol. The audio data in the stream must be encoded in AAC format.*&#xA;and not a single destination receiver I should use a streaming (broadcasting) server. What can I use to do that ?

    &#xA;

    My question is the following :&#xA;Is there a way to replicate what minimstreamer is doing using ffmpeg ?&#xA;I have tried this :

    &#xA;

    &#xA;

    ffmpeg -re -i https://streamcdnf31-4c4b867c89244861ac216426883d1ad0.msvdn.net/radiodeejay/radiodeejay/master_ma.m3u8 -c copy -listen 1 -f mpegts http://192.168.1.9:10000

    &#xA;

    &#xA;

    which is playing corrctly in local vlc on the same computer. But when I stop VLC is got this error in ffmpeg :

    &#xA;

    [https @ 00000291de047400] Cannot reuse HTTP connection for different host: StreamCdnG20-4c4b867c89244861ac216426883d1ad0.msvdn.net:-1 != 4c4b867c89244861ac216426883d1ad0.msvdn.net:-1&#xA;[hls @ 00000291dd96d140] keepalive request failed for &#x27;https://4c4b867c89244861ac216426883d1ad0.msvdn.net/radiodeejay/radiodeejay/play1.m3u8&#x27; with error: &#x27;Invalid argument&#x27; when parsing playlist&#xA;[hls @ 00000291dd96d140] Opening &#x27;https://4c4b867c89244861ac216426883d1ad0.msvdn.net/radiodeejay/radiodeejay/play1.m3u8&#x27; for reading&#xA;[hls @ 00000291dd96d140] Skip (&#x27;#EXT-X-DISCONTINUITY-SEQUENCE:0&#x27;)&#xA;[hls @ 00000291dd96d140] Skip (&#x27;#EXT-X-PROGRAM-DATE-TIME:2024-11-29T06:36:56.926Z&#x27;)&#xA;[hls @ 00000291dd96d140] Skip (&#x27;#EXT-X-PROGRAM-DATE-TIME:2024-11-29T06:37:07.314Z&#x27;)&#xA;[hls @ 00000291dd96d140] Skip (&#x27;#EXT-X-PROGRAM-DATE-TIME:2024-11-29T06:37:17.571Z&#x27;)&#xA;[https @ 00000291de4e00c0] Opening &#x27;https://StreamCdnG20-4c4b867c89244861ac216426883d1ad0.msvdn.net/radiodeejay/radiodeejay/20240722T095729_p1s_001086632.ts&#x27; for reading&#xA;[aost#0:0/copy @ 00000291de1c4f40] Error submitting a packet to the muxer: Error number -10054 occurred&#xA;    Last message repeated 1 times&#xA;[out#0/mpegts @ 00000291deaa7e40] Error muxing a packet&#xA;[out#0/mpegts @ 00000291deaa7e40] Task finished with error code: -10054 (Error number -10054 occurred)&#xA;[out#0/mpegts @ 00000291deaa7e40] Terminating thread with return code -10054 (Error number -10054 occurred)&#xA;[out#0/mpegts @ 00000291deaa7e40] Error writing trailer: Error number -10054 occurred&#xA;[http @ 00000291de8870c0] URL read error: Error number -10054 occurred&#xA;[out#0/mpegts @ 00000291deaa7e40] Error closing file: Error number -10054 occurred&#xA;[out#0/mpegts @ 00000291deaa7e40] video:0KiB audio:797KiB subtitle:0KiB other streams:0KiB global headers:0KiB muxing overhead: 21.849292%&#xA;size=     971KiB time=00:00:50.98 bitrate= 156.0kbits/s speed=1.01x&#xA;Conversion failed!&#xA;

    &#xA;

    And if I try to connect from my internet radio I immediately got this error :

    &#xA;

    [aost#0:0/copy @ 0000027081584a40] Error submitting a packet to the muxer: Error number -10053 occurred&#xA;    Last message repeated 1 times&#xA;[out#0/mpegts @ 0000027081e684c0] Error muxing a packet&#xA;[out#0/mpegts @ 0000027081e684c0] Task finished with error code: -10053 (Error number -10053 occurred)&#xA;[out#0/mpegts @ 0000027081e684c0] Terminating thread with return code -10053 (Error number -10053 occurred)&#xA;[out#0/mpegts @ 0000027081e684c0] Error writing trailer: Error number -10053 occurred&#xA;[http @ 0000027081c47680] URL read error: Error number -10053 occurred&#xA;[out#0/mpegts @ 0000027081e684c0] Error closing file: Error number -10053 occurred&#xA;[out#0/mpegts @ 0000027081e684c0] video:0KiB audio:46KiB subtitle:0KiB other streams:0KiB global headers:0KiB muxing overhead: 13.917515%&#xA;size=      52KiB time=00:00:02.94 bitrate= 145.1kbits/s speed= 1.2x&#xA;Conversion failed!&#xA;

    &#xA;

    What is the correct way to stream this one locally in order to be listened in my internet radio ?&#xA;Shall I use ffmpeg or can be done directly with ngnix ? Or shall I use both ?

    &#xA;