
Recherche avancée
Médias (1)
-
La conservation du net art au musée. Les stratégies à l’œuvre
26 mai 2011
Mis à jour : Juillet 2013
Langue : français
Type : Texte
Autres articles (40)
-
Submit bugs and patches
13 avril 2011Unfortunately 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, parLes 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, parLors 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 GaneshTrying 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.




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 karnconst 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>


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


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


so I doing this :-


const child_process = require('child_process');

 var Streaming = function (chunk, Rtmp_Uri) {

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

}



when I run this Streaming function nothing happens.


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 ?


Thanks in Advance.


-
Stream Chunks data to Rtmp server using ffmpeg with nodejs ?
26 septembre 2024, par ashutosh karnconst 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>


`<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>


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

so I doing this :-


const child_process = require('child_process');

 var Streaming = function (chunk, Rtmp_Uri) {

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

}



when I run this
Streaming function
nothing happens.

so can anyone tell me how to stream the
Chunk
data to theRtmp server
? or anyFFmpeg command
that streamChunk
data to rtmp server ?

Thanks in Advance.