Recherche avancée

Médias (3)

Mot : - Tags -/collection

Autres articles (49)

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

  • Participer à sa traduction

    10 avril 2011

    Vous pouvez nous aider à améliorer les locutions utilisées dans le logiciel ou à traduire celui-ci dans n’importe qu’elle nouvelle langue permettant sa diffusion à de nouvelles communautés linguistiques.
    Pour ce faire, on utilise l’interface de traduction de SPIP où l’ensemble des modules de langue de MediaSPIP sont à disposition. ll vous suffit de vous inscrire sur la liste de discussion des traducteurs pour demander plus d’informations.
    Actuellement MediaSPIP n’est disponible qu’en français et (...)

  • HTML5 audio and video support

    13 avril 2011, par

    MediaSPIP uses HTML5 video and audio tags to play multimedia files, taking advantage of the latest W3C innovations supported by modern browsers.
    The MediaSPIP player used has been created specifically for MediaSPIP and can be easily adapted to fit in with a specific theme.
    For older browsers the Flowplayer flash fallback is used.
    MediaSPIP allows for media playback on major mobile platforms with the above (...)

Sur d’autres sites (9216)

  • Live streaming and simultaneous local/server video saving with Insta360/Theta 360 camera [closed]

    13 août 2023, par Fornow

    I'm currently working on a project that involves live streaming video from a 360 camera, specifically the Insta360 and Theta models, while also saving the streamed video either locally or on a remote server. I'm relatively new to both live streaming and working with 360 cameras, so I'm seeking guidance on the best approach to achieve this.

    


    My primary goals are as follows :

    


      

    1. Live Streaming : I want to be able to stream the real-time video captured by the 360 camera to a web platform or application, allowing users to experience the immersive 360 content as it happens.

      


    2. 


    3. Simultaneous Video Saving : In addition to live streaming, I also need to save the streamed video. This can either be saved locally on the device running the streaming process or on a remote server. The saved video should ideally retain its 360 nature and high-quality resolution.

      


    4. 


    


    I've been researching various technologies and frameworks like WebRTC for live streaming, but I'm unsure about the compatibility and best practices when dealing specifically with 360 cameras like Insta360 and Theta. Additionally, I'm uncertain about the most efficient way to save the streamed video while maintaining its immersive properties.

    


    If anyone has experience with live streaming from 360 cameras and simultaneously saving the content, could you please provide insights into the following :

    


      

    • Recommended libraries, SDKs, or frameworks for live streaming 360 video from Insta360 or Theta cameras.
    • 


    • Tips for ensuring the streamed video retains its 360 attributes and high quality.
    • 


    • Best practices for saving the streamed video either locally or on a remote server while the live stream is ongoing.
    • 


    


    Any code examples, tutorials, or step-by-step guides would be greatly appreciated. Thank you in advance for your help !

    


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

  • Python FFmpeg Video Streaming : hls.output() does not work for live camera capture

    4 janvier 2023, par LUKA TADIĆ

    I am trying to capture camera live stream and make HLS stream from it. I am using Fantech Luminous C30 webcam. I get this error :

    &#xA;

    ERROR:root:ffmpeg failed to execute command: b&#x27;ffmpeg version 2022-12-11-git-c3e20f78b0-full_build-www.gyan.dev Copyright (c) 2000-2022 the FFmpeg developers\r\n  built with gcc 12.1.0 (Rev2, Built by MSYS2 project)\r\n &#xA; configuration: --enable-gpl --enable-version3 --enable-static --disable-w32threads --disable-autodetect --enable-fontconfig --enable-iconv --enable-gnutls --enable-libxml2 --enable-gmp --enable-bzlib --enable-lzma --enable-libsnappy --enable-zlib --enable-librist --enable-libsrt --enable-libssh --enable-libzmq --enable-avisynth --enable-libbluray --enable-libcaca --enable-sdl2 --enable-libaribb24 --enable-libdav1d --enable-libdavs2 --enable-libuavs3d --enable-libzvbi --enable-librav1e --enable-libsvtav1 --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs2 --enable-libxvid --enable-libaom --enable-libjxl --enable-libopenjpeg --enable-libvpx --enable-mediafoundation --enable-libass --enable-frei0r --enable-libfreetype --enable-libfribidi --enable-liblensfun --enable-libvidstab --enable-libvmaf --enable-libzimg --enable-amf --enable-cuda-llvm --enable-cuvid --enable-ffnvcodec --enable-nvdec --enable-nvenc --enable-d3d11va --enable-dxva2 --enable-libvpl --enable-libshaderc --enable-vulkan --enable-libplacebo --enable-opencl --enable-libcdio --enable-libgme --enable-libmodplug --enable-libopenmpt --enable-libopencore-amrwb --enable-libmp3lame --enable-libshine --enable-libtheora --enable-libtwolame --enable-libvo-amrwbenc --enable-libilbc --enable-libgsm --enable-libopencore-amrnb --enable-libopus --enable-libspeex --enable-libvorbis --enable-ladspa --enable-libbs2b --enable-libflite --enable-libmysofa --enable-librubberband --enable-libsoxr --enable-chromaprint\r\n  libavutil      57. 43.100 / 57. 43.100\r\n  libavcodec     59. 55.100 / 59. 55.100\r\n  libavformat    59. 34.102 / 59. 34.102\r\n  libavdevice    59.  8.101 / 59.  8.101\r\n  libavfilter     8. 52.100 /  8. 52.100\r\n  libswscale      6.  8.112 /  6.  8.112\r\n  libswresample   4.  9.100 /  4.  9.100\r\n  libpostproc    56.  7.100 / 56.  7.100\r\nFantech Luminous C30: No such file or directory\r\n&#x27;&#xA;Traceback (most recent call last):&#xA;  File "c:\Users\ltadic\Desktop\hls stream\camera_stream.py", line 12, in <module>&#xA;    hls.output(&#x27;C:\\Users\\ltadic\\Desktop\\camera_stream\\hls.m3u8&#x27;)&#xA;  File "C:\Users\ltadic\AppData\Local\Programs\Python\Python311\Lib\site-packages\ffmpeg_streaming\_media.py", line 93, in output&#xA;    self.run(ffmpeg_bin, monitor, **options)&#xA;  File "C:\Users\ltadic\AppData\Local\Programs\Python\Python311\Lib\site-packages\ffmpeg_streaming\_media.py", line 121, in run  &#xA;    asyncio.run(self.async_run(ffmpeg_bin, monitor, **options))&#xA;  File "C:\Users\ltadic\AppData\Local\Programs\Python\Python311\Lib\asyncio\runners.py", line 190, in run&#xA;    return runner.run(main)&#xA;           ^^^^^^^^^^^^^^^^&#xA;  File "C:\Users\ltadic\AppData\Local\Programs\Python\Python311\Lib\asyncio\runners.py", line 118, in run&#xA;    return self._loop.run_until_complete(task)&#xA;           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^&#xA;  File "C:\Users\ltadic\AppData\Local\Programs\Python\Python311\Lib\asyncio\base_events.py", line 650, in run_until_complete     &#xA;    return future.result()&#xA;           ^^^^^^^^^^^^^^^&#xA;  File "C:\Users\ltadic\AppData\Local\Programs\Python\Python311\Lib\site-packages\ffmpeg_streaming\_media.py", line 112, in async_run&#xA;    self._run(ffmpeg_bin, monitor, **options)&#xA;  File "C:\Users\ltadic\AppData\Local\Programs\Python\Python311\Lib\site-packages\ffmpeg_streaming\_media.py", line 106, in _run&#xA;    self.pipe, err = process.run()&#xA;                     ^^^^^^^^^^^^^&#xA;  File "C:\Users\ltadic\AppData\Local\Programs\Python\Python311\Lib\site-packages\ffmpeg_streaming\_process.py", line 122, in run&#xA;    raise RuntimeError(&#x27;ffmpeg failed to execute command: &#x27;, error)&#xA;RuntimeError: (&#x27;ffmpeg failed to execute command: &#x27;, "b&#x27;ffmpeg version 2022-12-11-git-c3e20f78b0-full_build-www.gyan.dev Copyright (c) 2000-2022 the FFmpeg developers\\r\\n  built with gcc 12.1.0 (Rev2, Built by MSYS2 project)\\r\\n  configuration: --enable-gpl --enable-version3 --enable-static --disable-w32threads --disable-autodetect --enable-fontconfig --enable-iconv --enable-gnutls --enable-libxml2 --enable-gmp --enable-bzlib --enable-lzma --enable-libsnappy --enable-zlib --enable-librist --enable-libsrt --enable-libssh --enable-libzmq --enable-avisynth --enable-libbluray --enable-libcaca --enable-sdl2 --enable-libaribb24 --enable-libdav1d --enable-libdavs2 --enable-libuavs3d --enable-libzvbi --enable-librav1e --enable-libsvtav1 --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs2 --enable-libxvid --enable-libaom --enable-libjxl --enable-libopenjpeg --enable-libvpx --enable-mediafoundation --enable-libass --enable-frei0r --enable-libfreetype --enable-libfribidi --enable-liblensfun --enable-libvidstab --enable-libvmaf --enable-libzimg --enable-amf --enable-cuda-llvm --enable-cuvid --enable-ffnvcodec --enable-nvdec --enable-nvenc --enable-d3d11va --enable-dxva2 --enable-libvpl --enable-libshaderc --enable-vulkan --enable-libplacebo --enable-opencl --enable-libcdio --enable-libgme --enable-libmodplug --enable-libopenmpt --enable-libopencore-amrwb --enable-libmp3lame --enable-libshine --enable-libtheora --enable-libtwolame --enable-libvo-amrwbenc --enable-libilbc --enable-libgsm --enable-libopencore-amrnb --enable-libopus --enable-libspeex --enable-libvorbis --enable-ladspa --enable-libbs2b --enable-libflite --enable-libmysofa --enable-librubberband --enable-libsoxr --enable-chromaprint\\r\\n  libavutil      57. 43.100 / 57. 43.100\\r\\n  libavcodec     59. 55.100 / 59. 55.100\\r\\n  libavformat    59. 34.102 / 59. 34.102\\r\\n  libavdevice    59.  8.101 / 59.  8.101\\r\\n  libavfilter     8. 52.100 /  8. 52.100\\r\\n  libswscale &#xA;     6.  8.112 /  6.  8.112\\r\\n  libswresample   4.  9.100 /  4.  9.100\\r\\n  libpostproc    56.  7.100 / 56.  7.100\\r\\nFantech Luminous C30: No such file or directory\\r\\n&#x27;")&#xA;</module>

    &#xA;

    This is my code :

    &#xA;

    import ffmpeg_streaming&#xA;from ffmpeg_streaming import Formats,Bitrate, Representation, Size &#xA;&#xA;video = ffmpeg_streaming.input(&#x27;Fantech Luminous C30&#x27;, capture = True)&#xA;&#xA;_360p  = Representation(Size(640, 360), Bitrate(276 * 1024, 128 * 1024))&#xA;_480p  = Representation(Size(854, 480), Bitrate(750 * 1024, 192 * 1024))&#xA;_720p  = Representation(Size(1280, 720), Bitrate(2048 * 1024, 320 * 1024))&#xA;&#xA;hls = video.hls(Formats.h264())&#xA;hls.representations(_360p, _480p, _720p)&#xA;hls.output(&#x27;C:\\Users\\ltadic\\Desktop\\camera_stream\\hls.m3u8&#x27;)&#xA;

    &#xA;