
Recherche avancée
Autres articles (67)
-
Problèmes fréquents
10 mars 2010, parPHP et safe_mode activé
Une des principales sources de problèmes relève de la configuration de PHP et notamment de l’activation du safe_mode
La solution consiterait à soit désactiver le safe_mode soit placer le script dans un répertoire accessible par apache pour le site -
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. -
Récupération d’informations sur le site maître à l’installation d’une instance
26 novembre 2010, parUtilité
Sur le site principal, une instance de mutualisation est définie par plusieurs choses : Les données dans la table spip_mutus ; Son logo ; Son auteur principal (id_admin dans la table spip_mutus correspondant à un id_auteur de la table spip_auteurs)qui sera le seul à pouvoir créer définitivement l’instance de mutualisation ;
Il peut donc être tout à fait judicieux de vouloir récupérer certaines de ces informations afin de compléter l’installation d’une instance pour, par exemple : récupérer le (...)
Sur d’autres sites (10029)
-
Problem to capture a video in 4K with FFmpeg
16 mars 2020, par Ale7I am a new user of FFmpeg. I am trying to capture a ten minutes video in mp4 format, on 4 4K’s slot and 4 FHD’s slot with cards video Pro Capture by Magewell.
My machine has the following characteristics :- OS : Windows Server 2012
- RAM : 64 GB
- CPU : 2 processors Intel Xeon E5-2640 v3 @ 2.60 GHz
The FFmpeg script, for slot 4K (I change resolution for FHD), used is the following :
ffmpeg -rtbufsize 2048M -re -y -thread_queue_size 20384 -pix_fmt yuv420p -f dshow -video_size 3840x2160 -r 50 -i video="Video (05-0 Pro Capture HDMI 4K+)" -codec:v libx264 -preset ultrafast -threads 8 -pix_fmt yuv420p -tune fastdecode -bufsize 2048M output.mp4
This command is the best solution found at the moment, but the CPU goes up to 100% and the buffer fills up quickly and starts to drop the frames.
So, my question : Is there a way to improve it or is a limit, principally, of the my machine ?
If it is a machine limit, you would indicate me the minium requirments to do that.Thanks in advance to everyone.
-
Record Webcam as single JPG files [on hold]
2 décembre 2016, par clicI have to record a Windows Directshow Webcam video stream (UHD, 30fps, yuyv422) as single JPG images. Performance is important, so preferably by using NVIDIA GPU acceleration via CUDA or something..
What is the most simple but powerful solution, without having to buy proprietary software ?
I had a look at ffmpeg, by recording as MJPEG and then using something like jpegtran to get the JPGs. I tried :
ffmpeg -f dshow -video_size 1920x1080 -framerate 50 -vcodec mjpeg -i video="XI100DUSB-HDMI Video" out.avi
But it results in an I/O error saying ’Could not set video options’. Maybe because of the yuyv422 pixel format of my Magewell USB dongles..
Or is ffmpeg able to record as single JPGs directly somehow ?
If someone has any other idea/solution besides ffmpeg, please let me know too ! Thanks !
EDIT :
I was now able to save JPGs directly, using
webcamimg%04d.jpg
instead ofout.avi
. But it’s always claiming about full real-time buffer. Raising thertbufsize
parameter doesn’t really help..ffmpeg console output :
ffmpeg version 3.2 Copyright (c) 2000-2016 the FFmpeg developers
built with gcc 5.4.0 (GCC)
configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-dxva2 --enable-libmfx --enable-nvenc --enable-avisynth --enable-bzlib --enable-libebur128 --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenh264 --enable-li
bopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-libzimg --enable-lzma --enable-decklink --enable-zlib
libavutil 55. 34.100 / 55. 34.100
libavcodec 57. 64.100 / 57. 64.100
libavformat 57. 56.100 / 57. 56.100
libavdevice 57. 1.100 / 57. 1.100
libavfilter 6. 65.100 / 6. 65.100
libswscale 4. 2.100 / 4. 2.100
libswresample 2. 3.100 / 2. 3.100
libpostproc 54. 1.100 / 54. 1.100
[dshow @ 0000000001c628a0] Could not set video options
video=XI100DUSB-HDMI Video: I/O errorOutput of : ffmpeg -list_options true -f dshow -i video="XI100DUSB-HDMI Video"
[dshow @ 00000000004d71e0] DirectShow video device options (from video devices)
[dshow @ 00000000004d71e0] Pin "Capture" (alternative pin name "0")
[dshow @ 00000000004d71e0] pixel_format=yuyv422 min s=1920x1080 fps=15 max s=1920x1080 fps=59.9999
[dshow @ 00000000004d71e0] pixel_format=yuyv422 min s=1920x1080 fps=15 max s=1920x1080 fps=59.9999
[dshow @ 00000000004d71e0] pixel_format=yuyv422 min s=640x360 fps=15 max s=640x360 fps=59.9999
[dshow @ 00000000004d71e0] pixel_format=yuyv422 min s=640x360 fps=15 max s=640x360 fps=59.9999
[dshow @ 00000000004d71e0] pixel_format=yuyv422 min s=640x480 fps=15 max s=640x480 fps=59.9999
[dshow @ 00000000004d71e0] pixel_format=yuyv422 min s=640x480 fps=15 max s=640x480 fps=59.9999
[dshow @ 00000000004d71e0] pixel_format=yuyv422 min s=720x480 fps=15 max s=720x480 fps=59.9999
[dshow @ 00000000004d71e0] pixel_format=yuyv422 min s=720x480 fps=15 max s=720x480 fps=59.9999
[dshow @ 00000000004d71e0] pixel_format=yuyv422 min s=720x576 fps=15 max s=720x576 fps=59.9999
[dshow @ 00000000004d71e0] pixel_format=yuyv422 min s=720x576 fps=15 max s=720x576 fps=59.9999
[dshow @ 00000000004d71e0] pixel_format=yuyv422 min s=768x576 fps=15 max s=768x576 fps=59.9999
[dshow @ 00000000004d71e0] pixel_format=yuyv422 min s=768x576 fps=15 max s=768x576 fps=59.9999
[dshow @ 00000000004d71e0] pixel_format=yuyv422 min s=800x600 fps=15 max s=800x600 fps=59.9999
[dshow @ 00000000004d71e0] pixel_format=yuyv422 min s=800x600 fps=15 max s=800x600 fps=59.9999
[dshow @ 00000000004d71e0] pixel_format=yuyv422 min s=856x480 fps=15 max s=856x480 fps=59.9999
[dshow @ 00000000004d71e0] pixel_format=yuyv422 min s=856x480 fps=15 max s=856x480 fps=59.9999
[dshow @ 00000000004d71e0] pixel_format=yuyv422 min s=960x540 fps=15 max s=960x540 fps=59.9999
[dshow @ 00000000004d71e0] pixel_format=yuyv422 min s=960x540 fps=15 max s=960x540 fps=59.9999
[dshow @ 00000000004d71e0] pixel_format=yuyv422 min s=1024x576 fps=15 max s=1024x576 fps=59.9999
[dshow @ 00000000004d71e0] pixel_format=yuyv422 min s=1024x576 fps=15 max s=1024x576 fps=59.9999
[dshow @ 00000000004d71e0] pixel_format=yuyv422 min s=1024x768 fps=15 max s=1024x768 fps=59.9999
[dshow @ 00000000004d71e0] pixel_format=yuyv422 min s=1024x768 fps=15 max s=1024x768 fps=59.9999
[dshow @ 00000000004d71e0] pixel_format=yuyv422 min s=1280x720 fps=15 max s=1280x720 fps=59.9999
[dshow @ 00000000004d71e0] pixel_format=yuyv422 min s=1280x720 fps=15 max s=1280x720 fps=59.9999
[dshow @ 00000000004d71e0] pixel_format=yuyv422 min s=1280x800 fps=15 max s=1280x800 fps=59.9999
[dshow @ 00000000004d71e0] pixel_format=yuyv422 min s=1280x800 fps=15 max s=1280x800 fps=59.9999
[dshow @ 00000000004d71e0] pixel_format=yuyv422 min s=1280x960 fps=15 max s=1280x960 fps=59.9999
[dshow @ 00000000004d71e0] pixel_format=yuyv422 min s=1280x960 fps=15 max s=1280x960 fps=59.9999
[dshow @ 00000000004d71e0] pixel_format=yuyv422 min s=1280x1024 fps=15 max s=1280x1024 fps=59.9999
[dshow @ 00000000004d71e0] pixel_format=yuyv422 min s=1280x1024 fps=15 max s=1280x1024 fps=59.9999
[dshow @ 00000000004d71e0] pixel_format=yuyv422 min s=1368x768 fps=15 max s=1368x768 fps=59.9999
[dshow @ 00000000004d71e0] pixel_format=yuyv422 min s=1368x768 fps=15 max s=1368x768 fps=59.9999
[dshow @ 00000000004d71e0] pixel_format=yuyv422 min s=1440x900 fps=15 max s=1440x900 fps=59.9999
[dshow @ 00000000004d71e0] pixel_format=yuyv422 min s=1440x900 fps=15 max s=1440x900 fps=59.9999
[dshow @ 00000000004d71e0] pixel_format=yuyv422 min s=1600x1200 fps=15 max s=1600x1200 fps=59.9999
[dshow @ 00000000004d71e0] pixel_format=yuyv422 min s=1600x1200 fps=15 max s=1600x1200 fps=59.9999
[dshow @ 00000000004d71e0] pixel_format=yuyv422 min s=1680x1050 fps=15 max s=1680x1050 fps=59.9999
[dshow @ 00000000004d71e0] pixel_format=yuyv422 min s=1680x1050 fps=15 max s=1680x1050 fps=59.9999
[dshow @ 00000000004d71e0] pixel_format=yuyv422 min s=1920x1200 fps=15 max s=1920x1200 fps=59.9999
[dshow @ 00000000004d71e0] pixel_format=yuyv422 min s=1920x1200 fps=15 max s=1920x1200 fps=59.9999
[dshow @ 00000000004d71e0] unknown compression type 0xE436EB7D min s=1920x1080 fps=15 max s=1920x1080 fps=59.9999
[dshow @ 00000000004d71e0] unknown compression type 0xE436EB7D min s=1920x1080 fps=15 max s=1920x1080 fps=59.9999
[dshow @ 00000000004d71e0] unknown compression type 0xE436EB7D min s=640x360 fps=15 max s=640x360 fps=59.9999
[dshow @ 00000000004d71e0] unknown compression type 0xE436EB7D min s=640x360 fps=15 max s=640x360 fps=59.9999
[dshow @ 00000000004d71e0] unknown compression type 0xE436EB7D min s=640x480 fps=15 max s=640x480 fps=59.9999
[dshow @ 00000000004d71e0] unknown compression type 0xE436EB7D min s=640x480 fps=15 max s=640x480 fps=59.9999
[dshow @ 00000000004d71e0] unknown compression type 0xE436EB7D min s=720x480 fps=15 max s=720x480 fps=59.9999
[dshow @ 00000000004d71e0] unknown compression type 0xE436EB7D min s=720x480 fps=15 max s=720x480 fps=59.9999
[dshow @ 00000000004d71e0] unknown compression type 0xE436EB7D min s=720x576 fps=15 max s=720x576 fps=59.9999
[dshow @ 00000000004d71e0] unknown compression type 0xE436EB7D min s=720x576 fps=15 max s=720x576 fps=59.9999
[dshow @ 00000000004d71e0] unknown compression type 0xE436EB7D min s=768x576 fps=15 max s=768x576 fps=59.9999
[dshow @ 00000000004d71e0] unknown compression type 0xE436EB7D min s=768x576 fps=15 max s=768x576 fps=59.9999
[dshow @ 00000000004d71e0] unknown compression type 0xE436EB7D min s=800x600 fps=15 max s=800x600 fps=59.9999
[dshow @ 00000000004d71e0] unknown compression type 0xE436EB7D min s=800x600 fps=15 max s=800x600 fps=59.9999
[dshow @ 00000000004d71e0] unknown compression type 0xE436EB7D min s=856x480 fps=15 max s=856x480 fps=59.9999
[dshow @ 00000000004d71e0] unknown compression type 0xE436EB7D min s=856x480 fps=15 max s=856x480 fps=59.9999
[dshow @ 00000000004d71e0] unknown compression type 0xE436EB7D min s=960x540 fps=15 max s=960x540 fps=59.9999
[dshow @ 00000000004d71e0] unknown compression type 0xE436EB7D min s=960x540 fps=15 max s=960x540 fps=59.9999
[dshow @ 00000000004d71e0] unknown compression type 0xE436EB7D min s=1024x576 fps=15 max s=1024x576 fps=59.9999
[dshow @ 00000000004d71e0] unknown compression type 0xE436EB7D min s=1024x576 fps=15 max s=1024x576 fps=59.9999
[dshow @ 00000000004d71e0] unknown compression type 0xE436EB7D min s=1024x768 fps=15 max s=1024x768 fps=59.9999
[dshow @ 00000000004d71e0] unknown compression type 0xE436EB7D min s=1024x768 fps=15 max s=1024x768 fps=59.9999
[dshow @ 00000000004d71e0] unknown compression type 0xE436EB7D min s=1280x720 fps=15 max s=1280x720 fps=59.9999
[dshow @ 00000000004d71e0] unknown compression type 0xE436EB7D min s=1280x720 fps=15 max s=1280x720 fps=59.9999
[dshow @ 00000000004d71e0] unknown compression type 0xE436EB7D min s=1280x800 fps=15 max s=1280x800 fps=59.9999
[dshow @ 00000000004d71e0] unknown compression type 0xE436EB7D min s=1280x800 fps=15 max s=1280x800 fps=59.9999
[dshow @ 00000000004d71e0] unknown compression type 0xE436EB7D min s=1280x960 fps=15 max s=1280x960 fps=59.9999
[dshow @ 00000000004d71e0] unknown compression type 0xE436EB7D min s=1280x960 fps=15 max s=1280x960 fps=59.9999
[dshow @ 00000000004d71e0] unknown compression type 0xE436EB7D min s=1280x1024 fps=15 max s=1280x1024 fps=59.9999
[dshow @ 00000000004d71e0] unknown compression type 0xE436EB7D min s=1280x1024 fps=15 max s=1280x1024 fps=59.9999
[dshow @ 00000000004d71e0] unknown compression type 0xE436EB7D min s=1368x768 fps=15 max s=1368x768 fps=59.9999
[dshow @ 00000000004d71e0] unknown compression type 0xE436EB7D min s=1368x768 fps=15 max s=1368x768 fps=59.9999
[dshow @ 00000000004d71e0] unknown compression type 0xE436EB7D min s=1440x900 fps=15 max s=1440x900 fps=59.9999
[dshow @ 00000000004d71e0] unknown compression type 0xE436EB7D min s=1440x900 fps=15 max s=1440x900 fps=59.9999
[dshow @ 00000000004d71e0] unknown compression type 0xE436EB7D min s=1600x1200 fps=15 max s=1600x1200 fps=59.9999
[dshow @ 00000000004d71e0] unknown compression type 0xE436EB7D min s=1600x1200 fps=15 max s=1600x1200 fps=59.9999
[dshow @ 00000000004d71e0] unknown compression type 0xE436EB7D min s=1680x1050 fps=15 max s=1680x1050 fps=59.9999
[dshow @ 00000000004d71e0] unknown compression type 0xE436EB7D min s=1680x1050 fps=15 max s=1680x1050 fps=59.9999
[dshow @ 00000000004d71e0] unknown compression type 0xE436EB7D min s=1920x1200 fps=15 max s=1920x1200 fps=59.9999
[dshow @ 00000000004d71e0] unknown compression type 0xE436EB7D min s=1920x1200 fps=15 max s=1920x1200 fps=59.9999
video=XI100DUSB-HDMI Video: Immediate exit requested -
How to find higest bitrate in mp4 file and extract jpg ?
10 octobre 2018, par Igor PetevI im using ffmpeg and have mp4 file that is in size around 50MB and duration 2m7sec.I need to write batch script for windows that will read whole mp4 file find position in seconds where higest bitrate is there and extract jpg image from that position.
For example, i have mp4 trailer file that i would like to extract cover, using above script where i define time to extract jpg i get on some mp4 trailers black screen...so using above idea to find higet bitrate for shure will not be black screen, will be picture of some scene.
Here is windows batch code that extract jpg dfrom mp4 using user defined time :
@ECHO OFF
SET oldName=
SET newName=
FOR %%A IN (*.mp4) DO (
SET oldName=%%A
SET newName=%%A
CALL :MAKEJPG
)
:MAKEJPG
SET newName=%newName:mp4=jpg%
IF NOT EXIST %newName% (
START /B /WAIT D:\www\ffmpeg.exe -i "%oldName%" -ss 00:00:17.30 -vcodec mjpeg -vframes 1 -f image2 "%newName%"
EXIT
)