Recherche avancée
Médias (39)
-
Le Tigre - Fake French
15 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
Thievery Corporation - DC 3000
15 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
Dan the Automator - Relaxation Spa Treatment
15 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
Gilberto Gil - Oslodum
15 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
Spoon - Revenge !
15 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
My Morning Jacket - One Big Holiday
15 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
Autres articles (12)
-
MediaSPIP Init et Diogène : types de publications de MediaSPIP
11 novembre 2010, parÀ l’installation d’un site MediaSPIP, le plugin MediaSPIP Init réalise certaines opérations dont la principale consiste à créer quatre rubriques principales dans le site et de créer cinq templates de formulaire pour Diogène.
Ces quatre rubriques principales (aussi appelées secteurs) sont : Medias ; Sites ; Editos ; Actualités ;
Pour chacune de ces rubriques est créé un template de formulaire spécifique éponyme. Pour la rubrique "Medias" un second template "catégorie" est créé permettant d’ajouter (...) -
MediaSPIP Player : les contrôles
26 mai 2010, parLes contrôles à la souris du lecteur
En plus des actions au click sur les boutons visibles de l’interface du lecteur, il est également possible d’effectuer d’autres actions grâce à la souris : Click : en cliquant sur la vidéo ou sur le logo du son, celui ci se mettra en lecture ou en pause en fonction de son état actuel ; Molette (roulement) : en plaçant la souris sur l’espace utilisé par le média (hover), la molette de la souris n’exerce plus l’effet habituel de scroll de la page, mais diminue ou (...) -
Ajouter notes et légendes aux images
7 février 2011, parPour pouvoir ajouter notes et légendes aux images, la première étape est d’installer le plugin "Légendes".
Une fois le plugin activé, vous pouvez le configurer dans l’espace de configuration afin de modifier les droits de création / modification et de suppression des notes. Par défaut seuls les administrateurs du site peuvent ajouter des notes aux images.
Modification lors de l’ajout d’un média
Lors de l’ajout d’un média de type "image" un nouveau bouton apparait au dessus de la prévisualisation (...)
Sur d’autres sites (515)
-
FFmpeg gdigrab failed to capture image
1er février 2023, par Marek SpišiakHi I am trying to capture desktop with ffmpeg gdigrab. I am using SSH connection to remotely use admin cmd on windows 10 pc. When i execute this command normally it works but remotely it doesnt.


ffmpeg -f gdigrab -framerate 30 -i desktop output.mkv


error message


ffmpeg version 4.4-essentials_build-www.gyan.dev Copyright (c) 2000-2021 the FFmpeg developers
 built with gcc 10.2.0 (Rev6, 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-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-libass --enable-libfreetype --enable-libfribidi --enable-libvidstab --enable-libvmaf --enable-libzimg --enable-amf --enable-cuda-llvm --enable-cuvid --enable-ffnvcodec --enable-nvdec --enable-nvenc --enable-d3d11va --enable-dxva2 --enable-libmfx --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 56. 70.100 / 56. 70.100
 libavcodec 58.134.100 / 58.134.100
 libavformat 58. 76.100 / 58. 76.100
 libavdevice 58. 13.100 / 58. 13.100
 libavfilter 7.110.100 / 7.110.100
 libswscale 5. 9.100 / 5. 9.100
 libswresample 3. 9.100 / 3. 9.100
 libpostproc 55. 9.100 / 55. 9.100
[gdigrab @ 000001f3e781e600] Capturing whole desktop as 1024x768x32 at (0,0)
[gdigrab @ 000001f3e781e600] Failed to capture image (error 5)
[gdigrab @ 000001f3e781e600] Could not find codec parameters for stream 0 (Video: bmp, none, 754987 kb/s): unspecified size
Consider increasing the value for the 'analyzeduration' (15000000) and 'probesize' (70000000) options
Input #0, gdigrab, from 'desktop':
 Duration: N/A, bitrate: 754987 kb/s
 Stream #0:0: Video: bmp, none, 754987 kb/s, 30 fps, 1000k tbr, 1000k tbn, 1000k tbc
Output #0, matroska, to 'pipe:':
Output file #0 does not contain any stream



I tried to increase analyzeduration and probesize to max integer but it doesnt help.


-
FFMPEG - gdigrab startup delay with nodejs child_process
7 août 2022, par Tair CohenI am using the following command for screen recording :


ffmpeg -rtbufsize 100M -f gdigrab -framerate 5 -probesize 10M -draw_mouse 1 -show_region 0 -i desktop -y -c:v libx264 -r 5 -tune zerolatency -g 75 -crf 35 -pix_fmt yuv420p -map 0 -segment_time 60 -f segment -segment_format mp4 -vf pad=ceil(iw/2)*2:ceil(ih/2)*2 C :\Users\tairc\AppData\Roaming\ScreenAgent\recordings\fdfe10c0-9bb2-47d4-bfc1-ebee8b1f6e18\1659869590658_%03d.mp4


This is the code where I spawn the FFmpeg command :


_spawnFfmpeg() {
 let commandArgs = this._generateArgs();
 this.ffmpegProcess = child_process.spawn(process.env.FFMPEG_PATH, commandArgs);
 console.log("after spawn"); // A

 this.ffmpegProcess.stderr.setEncoding('utf8');

 this.ffmpegProcess.on('error', (err => {
 return this.emit('error', err);
 }));

 this.ffmpegProcess.stderr.once('data', () => {
 console.log("first data"); // B
 return this.emit('start', `ffmpeg ${commandArgs.join(' ')}`);
 });

 this.ffmpegProcess.stderr.on('data', data => {
 return this.emit('stderr', data);
 });
}



I have a startup delay of 8 seconds (delay between A to B).


Can anyone please assist with improving the command ?


-
FFMPEG screen recording by gdigrab "can't find input device." on Windows 10
7 juillet 2021, par Mateusz BugajI need to implement screen recording in my software but I have a problem with getting gdigrab in windows 10. This code return




"can't find input device." (av_find_input_format("gdigrab") return NULL).




If I try to record desktop by ffmpeg.exe using
ffmpeg -f gdigrab -i desktop out.avi
, the desktop is recording correctly.

#define _CRT_SECURE_NO_WARNINGS
#include 

extern "C"
{
#include "ffmpeg-x86-4.4/include/libavcodec/avcodec.h" 
#include "ffmpeg-x86-4.4/include/libavformat/avformat.h"
#include "ffmpeg-x86-4.4/include/libswscale/swscale.h"
#include "ffmpeg-x86-4.4/include/libavdevice/avdevice.h"
#include "ffmpeg-x86-4.4/include/libavutil/imgutils.h"
#include "ffmpeg-x86-4.4/include/libavutil/dict.h"
#include "SDL2/include/SDL.h"
}


#define OUTPUT_YUV420P 1
#define OUTPUT_H264 1

int main(int argc, char* argv[])
{
 AVFormatContext* pFormatCtx;
 AVStream* videoStream;
 AVCodecContext* pCodecCtx;
 AVCodec* pCodec;
 AVFrame* pFrame, * pFrameYUV;
 AVPacket* pPacket;
 SwsContext* pImgConvertCtx;

 int videoIndex = -1;
 unsigned int i = 0;

 SDL_Window* screen;
 SDL_Renderer* sdlRenderer;
 SDL_Texture* sdlTexture;
 SDL_Rect sdlRect;

 int screen_w = 0;
 int screen_h = 0;

 printf("Starting...\n");



 //AVInputFormat* p = NULL;

 //register device
 avdevice_register_all();
 
 //use gdigrab
 AVInputFormat* ifmt = av_find_input_format("gdigrab");

 if (!ifmt)
 {
 printf("can't find input device.\n");
 return -1;
 }

 AVDictionary* options = NULL;
 if (avformat_open_input(&pFormatCtx, "desktop", ifmt, &options) != 0)
 {
 printf("can't open input stream.\n");
 return -1;
 }

 if (avformat_find_stream_info(pFormatCtx, NULL) < 0)
 {
 printf("can't find stream information.\n");
 return -1;
 }