
Recherche avancée
Autres articles (72)
-
Supporting all media types
13 avril 2011, parUnlike most software and media-sharing platforms, MediaSPIP aims to manage as many different media types as possible. The following are just a few examples from an ever-expanding list of supported formats : images : png, gif, jpg, bmp and more audio : MP3, Ogg, Wav and more video : AVI, MP4, OGV, mpg, mov, wmv and more text, code and other data : OpenOffice, Microsoft Office (Word, PowerPoint, Excel), web (html, CSS), LaTeX, Google Earth and (...)
-
Support audio et vidéo HTML5
10 avril 2011MediaSPIP utilise les balises HTML5 video et audio pour la lecture de documents multimedia en profitant des dernières innovations du W3C supportées par les navigateurs modernes.
Pour les navigateurs plus anciens, le lecteur flash Flowplayer est utilisé.
Le lecteur HTML5 utilisé a été spécifiquement créé pour MediaSPIP : il est complètement modifiable graphiquement pour correspondre à un thème choisi.
Ces technologies permettent de distribuer vidéo et son à la fois sur des ordinateurs conventionnels (...) -
Le profil des utilisateurs
12 avril 2011, parChaque utilisateur dispose d’une page de profil lui permettant de modifier ses informations personnelle. Dans le menu de haut de page par défaut, un élément de menu est automatiquement créé à l’initialisation de MediaSPIP, visible uniquement si le visiteur est identifié sur le site.
L’utilisateur a accès à la modification de profil depuis sa page auteur, un lien dans la navigation "Modifier votre profil" est (...)
Sur d’autres sites (5283)
-
Open cv.VideoCapture(index) - ffmpeg list camera names - How to match ?
15 novembre 2024, par Chris Pdef fetch_camera_input_settings(self):
 try:
 self.database_functions = database_functions

 self.camera_input_device_name = database_functions.read_setting("camera_input_device_name")["value"]
 self.camera_input_device_number = int(self.database_functions.read_setting("camera_input_device_number")["value"])

 self.camera_input_devices = [[0,-1,"Καμία συσκευή κάμερας"]]
 self.available_cameras = [{"device_index":-1,"device_name":"Καμία συσκευή κάμερας"}]

 # FFmpeg command to list video capture devices on Windows
 cmd = ["ffmpeg", "-list_devices", "true", "-f", "dshow", "-i", "dummy"]
 result = subprocess.run(cmd, stderr=subprocess.PIPE, stdout=subprocess.PIPE, text=True)
 output = result.stderr # FFmpeg sends device listing to stderr

 # Updated regular expression to capture both video and audio devices
 device_pattern = re.compile(r'\[dshow @ .+?\] "(.*?)" \(video\)')
 cameras = device_pattern.findall(output)
 counter = 0
 for camera in cameras:
 counter += 1
 self.camera_input_devices.append([counter,counter-1,camera])
 self.available_cameras.append({"device_index": counter-1, "device_name": camera})

 self.to_emitter.send({"type":"available_devices","devices":self.camera_input_devices,"device_index":self.camera_input_device_number})
 except:
 error_message = traceback.format_exc()
 self.to_emitter.send({"type":"error","error_message":error_message})




How to match ffmpeg camera device names output with cv2.VideoCapture which wants camera index as input ?


-
How can i list all the audio devices on my pc using ffmpeg ? [closed]
12 octobre 2024, par Daniel LipI'm using ffmpeg version : 2024-07-10


I tried this cmd command after running the cmd as admin.


ffmpeg -list_devices true -f dshow -i dummy



but the result is :


D:\>ffmpeg -list_devices true -f dshow -i dummy
ffmpeg version 2024-07-10-git-1a86a7a48d-essentials_build-www.gyan.dev Copyright (c) 2000-2024 the FFmpeg developers
 built with gcc 13.2.0 (Rev5, Built by MSYS2 project)
 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-zlib --enable-libsrt --enable-libssh --enable-libzmq --enable-avisynth --enable-sdl2 --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --enable-libaom --enable-libopenjpeg --enable-libvpx --enable-mediafoundation --enable-libass --enable-libfreetype --enable-libfribidi --enable-libharfbuzz --enable-libvidstab --enable-libvmaf --enable-libzimg --enable-amf --enable-cuda-llvm --enable-cuvid --enable-dxva2 --enable-d3d11va --enable-d3d12va --enable-ffnvcodec --enable-libvpl --enable-nvdec --enable-nvenc --enable-vaapi --enable-libgme --enable-libopenmpt --enable-libopencore-amrwb --enable-libmp3lame --enable-libtheora --enable-libvo-amrwbenc --enable-libgsm --enable-libopencore-amrnb --enable-libopus --enable-libspeex --enable-libvorbis --enable-librubberband
 libavutil 59. 28.100 / 59. 28.100
 libavcodec 61. 10.100 / 61. 10.100
 libavformat 61. 5.101 / 61. 5.101
 libavdevice 61. 2.100 / 61. 2.100
 libavfilter 10. 2.102 / 10. 2.102
 libswscale 8. 2.100 / 8. 2.100
 libswresample 5. 2.100 / 5. 2.100
 libpostproc 58. 2.100 / 58. 2.100
[dshow @ 000001c1e700f200] Could not enumerate video devices (or none found).
[dshow @ 000001c1e700f200] Could not enumerate audio only devices (or none found).
[in#0 @ 000001c1e700ee00] Error opening input: Immediate exit requested
Error opening input file dummy.



-
How to parse ffmpeg -list_options output to get complete list of formats ?
9 octobre 2024, par gaamaaOn my Windows 10, application I use VB6 and ffmpeg.exe to capture video from USB capture device.
I need to show complete list of supported formats by this capture card.


When I use below command I get some list.
But its looks incomplete for me.



 ffmpeg -f dshow -list_options true -i video="USB3. 0 capture"




Result :


USB3. 0 capture:
 Q:\FFMpeg VB6\f2>ffmpeg -f dshow -list_options true -i video="USB3. 0 capture"
[dshow @ 087d7480] DirectShow video device options (from video devices)
[dshow @ 087d7480] Pin "Capture" (alternative pin name "0")
vcodec=mjpeg min s=1920x1080 fps=10 max s=1920x1080 fps=60.0002
vcodec=mjpeg min s=1920x1080 fps=10 max s=1920x1080 fps=60.0002
vcodec=mjpeg min s=1600x1200 fps=10 max s=1600x1200 fps=60.0002
vcodec=mjpeg min s=1600x1200 fps=10 max s=1600x1200 fps=60.0002
vcodec=mjpeg min s=1360x768 fps=10 max s=1360x768 fps=60.0002
vcodec=mjpeg min s=1360x768 fps=10 max s=1360x768 fps=60.0002
vcodec=mjpeg min s=1280x1024 fps=10 max s=1280x1024 fps=60.0002
vcodec=mjpeg min s=1280x1024 fps=10 max s=1280x1024 fps=60.0002
vcodec=mjpeg min s=1280x960 fps=10 max s=1280x960 fps=60.0002
vcodec=mjpeg min s=1280x960 fps=10 max s=1280x960 fps=60.0002
vcodec=mjpeg min s=1280x720 fps=10 max s=1280x720 fps=60.0002
vcodec=mjpeg min s=1280x720 fps=10 max s=1280x720 fps=60.0002
vcodec=mjpeg min s=1024x768 fps=10 max s=1024x768 fps=60.0002
vcodec=mjpeg min s=1024x768 fps=10 max s=1024x768 fps=60.0002
vcodec=mjpeg min s=800x600 fps=10 max s=800x600 fps=60.0002
vcodec=mjpeg min s=800x600 fps=10 max s=800x600 fps=60.0002
vcodec=mjpeg min s=720x576 fps=10 max s=720x576 fps=60.0002
vcodec=mjpeg min s=720x576 fps=10 max s=720x576 fps=60.0002
vcodec=mjpeg min s=720x480 fps=10 max s=720x480 fps=60.0002
vcodec=mjpeg min s=720x480 fps=10 max s=720x480 fps=60.0002
vcodec=mjpeg min s=640x480 fps=10 max s=640x480 fps=60.0002
vcodec=mjpeg min s=640x480 fps=10 max s=640x480 fps=60.0002
pixel_format=yuyv422 min s=1280x720 fps=10 max s=1280x720 fps=10
pixel_format=yuyv422 min s=1280x720 fps=10 max s=1280x720 fps=10
pixel_format=yuyv422 min s=1920x1080 fps=5 max s=1920x1080 fps=5
pixel_format=yuyv422 min s=1920x1080 fps=5 max s=1920x1080 fps=5
pixel_format=yuyv422 min s=1600x1200 fps=5 max s=1600x1200 fps=5
pixel_format=yuyv422 min s=1600x1200 fps=5 max s=1600x1200 fps=5
pixel_format=yuyv422 min s=1360x768 fps=8 max s=1360x768 fps=8
pixel_format=yuyv422 min s=1360x768 fps=8 max s=1360x768 fps=8
pixel_format=yuyv422 min s=1280x1024 fps=8 max s=1280x1024 fps=8
pixel_format=yuyv422 min s=1280x1024 fps=8 max s=1280x1024 fps=8
pixel_format=yuyv422 min s=1280x960 fps=8 max s=1280x960 fps=8
pixel_format=yuyv422 min s=1280x960 fps=8 max s=1280x960 fps= 8
pixel_format=yuyv422 min s=1024x768 fps=10 max s=1024x768 fps=10
pixel_format=yuyv422 min s=1024x768 fps=10 max s=1024x768 fps=10
pixel_format=yuyv422 min s=800x600 fps=5 max s=800x600 fps=20
pixel_format=yuyv422 min s=800x600 fps=5 max s=800x600 fps=20
pixel_format=yuyv422 min s=720x576 fps=5 max s=720x576 fps=25
pixel_format=yuyv422 min s=720x576 fps=5 max s=720x576 fps=25
pixel_format=yuyv422 min s=720x480 fps=5 max s=720x480 fps=30
pixel_format=yuyv422 min s=720x480 fps=5 max s=720x480 fps=30
pixel_format=yuyv422 min s=640x480 fps=5 max s=640x480 fps=30
pixel_format=yuyv422 min s=640x480 fps=5 max s=640x480 fps=30



My question is :


How to get the proper list in-between min and max ?


Eg :
Please see the below 4 lines.


vcodec=mjpeg min s=1920x1080 fps=10 max s=1920x1080 fps=60.0002
 vcodec=mjpeg min s=1920x1080 fps=10 max s=1920x1080 fps=60.0002
 vcodec=mjpeg min s=1600x1200 fps=10 max s=1600x1200 fps=60.0002
 vcodec=mjpeg min s=1600x1200 fps=10 max s=1600x1200 fps=60.0002



It says
min fps=10
max fps=60.0002


Actually it supports below fps :


fps=10.00,
fps=20.00,
fps=25.00,
fps=30.00,
fps=50.00,
fps=60.00



How to guess and get the hidden list like : 20, 25, 30 and 50 ?
If I blindly make a list from guessed values,
Some format doesn't have fps=25 on the list and ffmpeg throw error !


Note :
I can not use C++ or .NET to dig further.
Please suggest me some trick to get the proper list from ffmpeg commands only.
Or any universal guess !