Recherche avancée

Médias (2)

Mot : - Tags -/media

Autres articles (39)

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

  • List of compatible distributions

    26 avril 2011, par

    The table below is the list of Linux distributions compatible with the automated installation script of MediaSPIP. Distribution nameVersion nameVersion number Debian Squeeze 6.x.x Debian Weezy 7.x.x Debian Jessie 8.x.x Ubuntu The Precise Pangolin 12.04 LTS Ubuntu The Trusty Tahr 14.04
    If you want to help us improve this list, you can provide us access to a machine whose distribution is not mentioned above or send the necessary fixes to add (...)

  • Submit enhancements and plugins

    13 avril 2011

    If you have developed a new extension to add one or more useful features to MediaSPIP, let us know and its integration into the core MedisSPIP functionality will be considered.
    You can use the development discussion list to request for help with creating a plugin. As MediaSPIP is based on SPIP - or you can use the SPIP discussion list SPIP-Zone.

Sur d’autres sites (7014)

  • Improving Performance and Quality of Screen Streaming(Headless) with FFMPEG and NVIDIA Hardware Acceleration [closed]

    24 avril 2024, par Dhairya Verma

    I am attempting to stream my screen to an RTMP URL using FFMPEG with X11 for screen capture and NVIDIA's hardware acceleration to enhance performance. Despite using NVIDIA acceleration, the stream is still experiencing lags and low-quality output. I've noticed that FFMPEG is utilizing only about 100MB of GPU memory, which seems low. Here's the command I'm currently using :

    


    ffmpeg -hwaccel cuvid -f x11grab -s 1920x1080 -i :1 -f pulse -i VirtualSink.monitor -c:v h264_nvenc -preset:v p1 -b:v 2500k -maxrate 2500k -bufsize 5000k -vf "fps=30,crop=1280:720:320:180,format=yuv420p" -g 60 -c:a aac -b:a 128k -ar 44100 -f flv rtmps://[RTMP_URL]


    


    Questions :

    


      

    1. Are there any specific settings or tweaks I should consider to fully utilize the GPU for better performance and video quality ?

      


    2. 


    3. Is there a more optimal way to configure the bitrate or buffer size to improve the stream quality without increasing lag ?

      


    4. 


    5. Would adjusting the preset or using different ffmpeg flags help in reducing the load and improving the output ?

      


    6. 


    7. Any advice on optimizing FFMPEG for smoother streaming with hardware acceleration would be greatly appreciated !

      


    8. 


    


  • avformat/mpegts : keep track of PMT details in AVProgram/AVStream

    18 mai 2018, par Aman Gupta
    avformat/mpegts : keep track of PMT details in AVProgram/AVStream
    

    With these fields, the user has enough information to
    detect PMT changes and switch to new streams when the PMT
    is updated with new ES pids.

    To do so, the user would monitor the AVProgram they're interested
    in for changes to pmt_version. If the version changes, they would
    iterate over the program's streams to find new streams added with
    the updated version number.

    If new versions of streams are found, then the user would first try
    to replace existing streams where stream_identifier matched.
    If stream_identifier is not available, then the user would compare
    pmt_stream_idx instead to replace the stream that was previously
    at the same position within the PMT.

    Signed-off-by : Aman Gupta <aman@tmm1.net>

    • [DH] libavformat/mpegts.c
  • Python FFmpeg Video Streaming : how to capture multiple representations with camera

    17 janvier 2023, par LUKA TADIĆ

    I am trying to capture webcam stream and make HLS stream. I managed to create HLS stream for one Representation but when I try to create (hls.output) more than one, I get this error :

    &#xA;

    C:\Users\ltadic\Desktop\hls stream>C:/Users/ltadic/AppData/Local/Programs/Python/Python311/python.exe "c:/Users/ltadic/Desktop/hls stream/camera_stream.py"&#xA;ERROR:root:ffmpeg failed to execute command: b"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\nInput #0, dshow, from &#x27;video=Fantech Luminous C30&#x27;:\r\n  Duration: N/A, start: 1593.585118, bitrate: N/A\r\n  Stream #0:0: Video: mjpeg (Baseline) (MJPG / 0x47504A4D), yuvj420p(pc, bt470bg/bt709/unknown), 1920x1080, 25 fps, 25 tbr, 10000k tbn\r\n[dshow @ 0000018b1c4d4280] Could not run graph (sometimes caused by a device already in use by other application)\r\nvideo=Fantech Luminous C30: I/O error\r\n"&#xA;Traceback (most recent call last):&#xA;  File "c:\Users\ltadic\Desktop\hls stream\camera_stream.py", line 13, in <module>&#xA;    hls.output(&#x27;C:\\Users\\ltadic\\Desktop\\camera_stream\\hls1.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;</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(),hls_list_size=10, hls_time=5)&#xA;hls.flags(&#x27;delete_segments&#x27;)&#xA;hls.representations(_360p, _480p, _720p)&#xA;hls.output(&#x27;C:\\Users\\ltadic\\Desktop\\camera_stream\\hls1.m3u8&#x27;)&#xA;&#xA;

    &#xA;