Recherche avancée

Médias (1)

Mot : - Tags -/blender

Autres articles (50)

  • 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

  • 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

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

Sur d’autres sites (8027)

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

    26 septembre 2024, 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 which is continuously giving buffer data like this :-

    


    ( actually this a Chunk 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 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;

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

    13 février 2023, 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;  };&#xA;

    &#xA;

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

    &#xA;

    &#xA;

    ( actually this a buffer of .MP4 file.)

    &#xA;

    &#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 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;

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

    &#xA;

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

    &#xA;

      &#xA;
    • 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.
    • &#xA;

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

    &#xA;

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

    &#xA;

      &#xA;
    • create a stream and store it into PIPE.stdout
    • &#xA;

    &#xA;

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

    &#xA;

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

      &#xA;

      ffmpeg_Command_send_stream = [&#x27;ffmpeg&#x27;,&#x27;-i&#x27;,pipe.stdout,&#x27;-f&#x27;,&#x27;flv&#x27;,RTMPURL_YOUTUBE]

      &#xA;

    • &#xA;

    &#xA;

    Update Trying to Explain it a little more :

    &#xA;

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

    &#xA;

    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.

    &#xA;

    enter image description here

    &#xA;

    sorry for bad explaination

    &#xA;

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

    &#xA;

    any help would be greatly appreciated

    &#xA;