
Recherche avancée
Médias (2)
-
SPIP - plugins - embed code - Exemple
2 septembre 2013, par
Mis à jour : Septembre 2013
Langue : français
Type : Image
-
Publier une image simplement
13 avril 2011, par ,
Mis à jour : Février 2012
Langue : français
Type : Video
Autres articles (39)
-
Des sites réalisés avec MediaSPIP
2 mai 2011, parCette 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, parThe 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 2011If 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 VermaI 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 :


- 

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


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


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


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












-
-
avformat/mpegts : keep track of PMT details in AVProgram/AVStream
18 mai 2018, par Aman Guptaavformat/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>
-
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 :


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"
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 
 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 'video=Fantech Luminous C30':\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"
Traceback (most recent call last):
 File "c:\Users\ltadic\Desktop\hls stream\camera_stream.py", line 13, in <module>
 hls.output('C:\\Users\\ltadic\\Desktop\\camera_stream\\hls1.m3u8')
 File "C:\Users\ltadic\AppData\Local\Programs\Python\Python311\Lib\site-packages\ffmpeg_streaming\_media.py", line 93, in output
 self.run(ffmpeg_bin, monitor, **options)
 File "C:\Users\ltadic\AppData\Local\Programs\Python\Python311\Lib\site-packages\ffmpeg_streaming\_media.py", line 121, in run 
 asyncio.run(self.async_run(ffmpeg_bin, monitor, **options))
 File "C:\Users\ltadic\AppData\Local\Programs\Python\Python311\Lib\asyncio\runners.py", line 190, in run
 return runner.run(main)
 ^^^^^^^^^^^^^^^^
 File "C:\Users\ltadic\AppData\Local\Programs\Python\Python311\Lib\asyncio\runners.py", line 118, in run
 return self._loop.run_until_complete(task)
 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 File "C:\Users\ltadic\AppData\Local\Programs\Python\Python311\Lib\asyncio\base_events.py", line 650, in run_until_complete
 return future.result()
 ^^^^^^^^^^^^^^^
 File "C:\Users\ltadic\AppData\Local\Programs\Python\Python311\Lib\site-packages\ffmpeg_streaming\_media.py", line 112, in async_run
 self._run(ffmpeg_bin, monitor, **options)
 File "C:\Users\ltadic\AppData\Local\Programs\Python\Python311\Lib\site-packages\ffmpeg_streaming\_media.py", line 106, in _run
 self.pipe, err = process.run()
</module>


This is my code :


import ffmpeg_streaming
from ffmpeg_streaming import Formats,Bitrate, Representation, Size 

video = ffmpeg_streaming.input('Fantech Luminous C30', capture = True)

_360p = Representation(Size(640, 360), Bitrate(276 * 1024, 128 * 1024))
_480p = Representation(Size(854, 480), Bitrate(750 * 1024, 192 * 1024))
_720p = Representation(Size(1280, 720), Bitrate(2048 * 1024, 320 * 1024))

hls = video.hls(Formats.h264(),hls_list_size=10, hls_time=5)
hls.flags('delete_segments')
hls.representations(_360p, _480p, _720p)
hls.output('C:\\Users\\ltadic\\Desktop\\camera_stream\\hls1.m3u8')