Recherche avancée

Médias (1)

Mot : - Tags -/musée

Autres articles (40)

  • Submit bugs and patches

    13 avril 2011

    Unfortunately a software is never perfect.
    If you think you have found a bug, report it using our ticket system. Please to help us to fix it by providing the following information : the browser you are using, including the exact version as precise an explanation as possible of the problem if possible, the steps taken resulting in the problem a link to the site / page in question
    If you think you have solved the bug, fill in a ticket and attach to it a corrective patch.
    You may also (...)

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

  • Initialisation de MediaSPIP (préconfiguration)

    20 février 2010, par

    Lors de l’installation de MediaSPIP, celui-ci est préconfiguré pour les usages les plus fréquents.
    Cette préconfiguration est réalisée par un plugin activé par défaut et non désactivable appelé MediaSPIP Init.
    Ce plugin sert à préconfigurer de manière correcte chaque instance de MediaSPIP. Il doit donc être placé dans le dossier plugins-dist/ du site ou de la ferme pour être installé par défaut avant de pouvoir utiliser le site.
    Dans un premier temps il active ou désactive des options de SPIP qui ne le (...)

Sur d’autres sites (9254)

  • FFMPEG multi livestream - recorded stream send to different services like YT and Twitch at different time (on different button clicks )

    4 octobre 2022, par Ganesh

    Trying for the last 10 days and still no success, I am creating a python application that will accept the URL and visit that URL using chromium, capture that screen and send that real-time screen recording to different live stream acceptors as youtube live, twitch Twitter, Facebook live or some other sources and many of these could be multiple.

    


    There are two challenges (both challenges depend on a user action like different button clicks) -

    


      

    • The time of starting the Livestream we know only one Livestream acceptor and other acceptors could be sent via another API at any time or may not be sent on the whole live stream.
    • 


    • Any of the streams could be stopped at any moment including the first one which started the original live streaming service
    • 


    


    To Solve these challenges I am trying the following process (i took mp4 as a source for simplifying)

    


      

    • create a stream and store it into PIPE.stdout
    • 


    


    ffmpeg_Command_get_stream = 'ffmpeg -re -i test.mp4 -f flv pipe:1'
ffmpeg_Command_get_stream=ffmpeg_Command_get_stream.split()
pipe = sp.Popen(ffmpeg_Command_get_stream,
            stdout=sp.PIPE,
            stderr=sp.PIPE,
            bufsize=8000000,
            shell=True,
            universal_newlines=True
            )
out,err = pipe.communicate()


    


      

    • and send that stream with the help of FFMPEG to the Livestream acceptor with the click of the youtube Livestream button

      


      ffmpeg_Command_send_stream = ['ffmpeg','-i',pipe.stdout,'-f','flv',RTMPURL_YOUTUBE]

      


    • 


    


    Update Trying to Explain it a little more :

    


    step 1 - I need a real-time stream from the first command, so I used -re in FFMPEG

    


    step 2 - Use above stream as an input for other command and send that as an output as a Livestream to youtube (or twitch/Facebook), But the second step would happen only when the user click on the button "YT LiveStream", Here the tricky thing is there are multiple buttons (YT LiveStream, Twitch LiveStream, Facebook LiveStream) and user can click any time on any of button, also can click on all button one by one.

    


    enter image description here

    


    sorry for bad explaination

    


    what I am doing wrong ? , Is this Possible ? or need to go with another process,

    


    any help would be greatly appreciated

    


  • live streaming Buffer data to Rtmp server using ffmpeg with nodejs ?

    13 février 2023, par ashutosh karn
    const ondata = chunk => {
    
    console.log(chunk) //Giving - Buffer 00 00 00 1c 66 74 79 70 64 61..........

    Streaming(chunk,"rtmps://live-api-s.facebook.com:443/rtmp/FB-108963845678778")

    //Streaming function is given below in the next Block.

   
    
  };


    


    i have a function named ondata. who is continuously giving buffer data like this :-

    


    


    ( actually this a buffer of .MP4 file.)

    


    


    <buffer 00="00" 1c="1c" 66="66" 74="74" 79="79" 70="70" 64="64" 61="61" 73="73" 68="68" 69="69" 6f="6f" 36="36" 76="76" 63="63" 31="31" 6d="6d" 34="34" 02="02" ca="ca" 6c="6c" df="df" e2="e2" 16334="16334" more="more" bytes="bytes"></buffer>

    &#xA;

    <buffer 14="14" 75="75" dd="dd" ea="ea" 7a="7a" 72="72" ef="ef" df="df" 4f="4f" 24="24" cb="cb" 83="83" c3="c3" 85="85" a3="a3" 17="17" 60="60" 26="26" 87="87" 74="74" 0b="0b" 49="49" e4="e4" 6f="6f" 09="09" 65="65" ae="ae" c8="c8" 6c="6c" 7d="7d" 0e="0e" 02="02" b1="b1" 6b="6b" 4a="4a" 63="63" 61="61" ab="ab" d9="d9" 44="44" 22="22" 62="62" 3c="3c" f6="f6" 0d="0d" 8c="8c" c9="c9" b7="b7" 16334="16334" more="more" bytes="bytes"></buffer>

    &#xA;

    Now I want to stream this buffer data to RTMP Server using FFMPEG

    &#xA;

    so I doing this :-

    &#xA;

    const child_process = require(&#x27;child_process&#x27;);&#xA;&#xA;   var Streaming = function (chunk, Rtmp_Uri) {&#xA;&#xA;     ffmpeg_process = child_process.spawn(&#x27;ffmpeg&#x27;, [&#xA;        &#xA;         &#x27;-re&#x27;,&#xA;         &#x27;-i&#x27;, `${chunk}`,  //Buffer 00 00 00 1c 66 74 79 70 64 61..........&#xA;         &#x27;-stream_loop&#x27;,&#x27;-1&#x27;,&#xA;        &#x27;-f&#x27;, &#x27;flv&#x27;,&#xA;         &#x27;-profile:v&#x27;, &#x27;baseline&#x27;,&#xA;         &#x27;-pix_fmt&#x27;, &#x27;yuv420p&#x27;,&#xA;         &#x27;-c:a&#x27;, &#x27;aac&#x27;,&#xA;         &#x27;-acodec&#x27;, &#x27;mp3&#x27;,&#xA;        &#x27;-ar&#x27;, &#x27;44100&#x27;,&#xA;         &#x27;-b:a&#x27;, &#x27;128k&#x27;,&#xA;         &#x27;-vcodec&#x27;, &#x27;libx264&#x27;,&#xA;         &#x27;-bufsize&#x27;, &#x27;600k&#x27;,&#xA;         &#x27;-vb&#x27;, &#x27;400k&#x27;, &#xA;        &#x27;-maxrate&#x27;, &#x27;3000k&#x27;,&#xA;         &#x27;-preset&#x27;, &#x27;ultrafast&#x27;,&#xA;         &#x27;-r&#x27;, &#x27;30&#x27;,&#xA;         &#x27;-g&#x27;, &#x27;30&#x27;,&#xA;        Rtmp_Uri       //"rtmps://live-api-s.facebook.com:443/rtmp/FB-1089638456787788-0..&#xA;                          AbzJ3chy775fhjjjkW2";&#xA;     ]);&#xA;     return ffmpeg_process;&#xA;&#xA;}&#xA;

    &#xA;

    when I run this Streaming function nothing happens.

    &#xA;

    so can anyone tell me how to stream the buffer to the Rtmp server ? or any FFmpeg command that stream buffer data to rtmp server ?

    &#xA;

    Thanks in Advance.

    &#xA;

  • Stream Chunks data to Rtmp server using ffmpeg with nodejs ?

    26 septembre 2024, par ashutosh karn
    const ondata = (chunk) => {   &#xA;&#xA;console.log(chunk) //Giving - Buffer 00 00 00 1c 66 74 79 70 64 61.......... &#xA;&#xA;Streaming(chunk,"rtmps://live-api-s.facebook.com:443/rtmp/FB-108963845678778")&#xA;&#xA;//Streaming function is given below in the next Block};&#xA;&#xA;}&#xA;

    &#xA;

    i have a function named ondata which is continuously giving buffer data like this :-

    &#xA;

    ( actually this a Chunk of .MP4 file.)

    &#xA;

    `<buffer 00="00" 1c="1c" 66="66" 74="74" 79="79" 70="70" 64="64" 61="61" 73="73" 68="68" 69="69" 6f="6f" 36="36" 76="76" 63="63" 31="31" 6d="6d" 34="34" 02="02" ca="ca" 6c="6c" df="df" e2="e2" 16334="16334" more="more" bytes="bytes">`</buffer>

    &#xA;

    `<buffer 14="14" 75="75" dd="dd" ea="ea" 7a="7a" 72="72" ef="ef" df="df" 4f="4f" 24="24" cb="cb" 83="83" c3="c3" 85="85" a3="a3" 17="17" 60="60" 26="26" 87="87" 74="74" 0b="0b" 49="49" e4="e4" 6f="6f" 09="09" 65="65" ae="ae" c8="c8" 6c="6c" 7d="7d" 0e="0e" 02="02" b1="b1" 6b="6b" 4a="4a" 63="63" 61="61" ab="ab" d9="d9" 44="44" 22="22" 62="62" 3c="3c" f6="f6" 0d="0d" 8c="8c" c9="c9" b7="b7" 16334="16334" more="more" bytes="bytes">`</buffer>

    &#xA;

    Now I want to stream this Chunk data to `RTMP Server using FFMPEG

    &#xA;

    so I doing this :-

    &#xA;

    const child_process = require(&#x27;child_process&#x27;);&#xA;&#xA; var Streaming = function (chunk, Rtmp_Uri) {&#xA;&#xA;     ffmpeg_process = child_process.spawn(&#x27;ffmpeg&#x27;, \[&#xA;    &#xA;     &#x27;-re&#x27;,&#xA;     &#x27;-i&#x27;, \`${chunk}\`,  //Buffer 00 00 00 1c 66 74 79 70 64 61..........&#xA;     &#x27;-stream_loop&#x27;,&#x27;-1&#x27;,&#xA;    &#x27;-f&#x27;, &#x27;flv&#x27;,&#xA;     &#x27;-profile:v&#x27;, &#x27;baseline&#x27;,&#xA;     &#x27;-pix_fmt&#x27;, &#x27;yuv420p&#x27;,&#xA;     &#x27;-c:a&#x27;, &#x27;aac&#x27;,&#xA;     &#x27;-acodec&#x27;, &#x27;mp3&#x27;,&#xA;    &#x27;-ar&#x27;, &#x27;44100&#x27;,&#xA;     &#x27;-b:a&#x27;, &#x27;128k&#x27;,&#xA;     &#x27;-vcodec&#x27;, &#x27;libx264&#x27;,&#xA;     &#x27;-bufsize&#x27;, &#x27;600k&#x27;,&#xA;     &#x27;-vb&#x27;, &#x27;400k&#x27;, &#xA;    &#x27;-maxrate&#x27;, &#x27;3000k&#x27;,&#xA;     &#x27;-preset&#x27;, &#x27;ultrafast&#x27;,&#xA;     &#x27;-r&#x27;, &#x27;30&#x27;,&#xA;     &#x27;-g&#x27;, &#x27;30&#x27;,&#xA;    Rtmp_Uri       //"rtmps://live-api-s.facebook.com:443/rtmp/FB-1089638456787788-0..&#xA;                      AbzJ3chy775fhjjjkW2";&#xA; \]);&#xA; return ffmpeg_process;&#xA;&#xA;}&#xA;

    &#xA;

    when I run this Streaming function nothing happens.

    &#xA;

    so can anyone tell me how to stream the Chunk data to the Rtmp server ? or any FFmpeg command that stream Chunk data to rtmp server ?

    &#xA;

    Thanks in Advance.

    &#xA;