
Recherche avancée
Médias (3)
-
GetID3 - Bloc informations de fichiers
9 avril 2013, par
Mis à jour : Mai 2013
Langue : français
Type : Image
-
GetID3 - Boutons supplémentaires
9 avril 2013, par
Mis à jour : Avril 2013
Langue : français
Type : Image
-
Collections - Formulaire de création rapide
19 février 2013, par
Mis à jour : Février 2013
Langue : français
Type : Image
Autres articles (53)
-
Dépôt de média et thèmes par FTP
31 mai 2013, parL’outil MédiaSPIP traite aussi les média transférés par la voie FTP. Si vous préférez déposer par cette voie, récupérez les identifiants d’accès vers votre site MédiaSPIP et utilisez votre client FTP favori.
Vous trouverez dès le départ les dossiers suivants dans votre espace FTP : config/ : dossier de configuration du site IMG/ : dossier des média déjà traités et en ligne sur le site local/ : répertoire cache du site web themes/ : les thèmes ou les feuilles de style personnalisées tmp/ : dossier de travail (...) -
Encodage et transformation en formats lisibles sur Internet
10 avril 2011MediaSPIP transforme et ré-encode les documents mis en ligne afin de les rendre lisibles sur Internet et automatiquement utilisables sans intervention du créateur de contenu.
Les vidéos sont automatiquement encodées dans les formats supportés par HTML5 : MP4, Ogv et WebM. La version "MP4" est également utilisée pour le lecteur flash de secours nécessaire aux anciens navigateurs.
Les documents audios sont également ré-encodés dans les deux formats utilisables par HTML5 :MP3 et Ogg. La version "MP3" (...) -
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 (...)
Sur d’autres sites (8579)
-
avformat/matroskaenc : Fix memleak upon encountering bogus chapter
27 avril 2020, par Andreas Rheinhardt -
Using ffmpeg inside C/C++ code to record a window or rectangular portion of it
5 janvier 2016, par jsterI’m trying to use ffmpeg within my code to record a window or a rectangular portion of that window into a video file (e.g. whole Windows Media Player window or say just the outline of the YouTube player embedded in a web page).
The code I have records the whole screen into a video file successfully. I wanna make it record just a window (not the whole screen). I think I’m passing the right hWnd into an avformat_open_input() call (see code fragment below), but the video file comes out looking blank and black.
When I switch to recording the whole screen again, the same code works fine. The screen is captured and the video file looks good.(the hWnd passed in is NULL).
Testing
I’m using Windows Media Player to play out a stored video file (screen cap here) and recording a rectangular portion of the Windows Media Player window to create the output video file. I notice that when I record a browser window, it records fine.. I’m puzzled why it doesn’t work for WMP ?!
I’ve tried Hardcoding window handles
I’ve used Winlister & Spy++ to look for all associated window handles associated with Windows Media Player and tried hardcoding the window handle passed into avformat_open_input(). I’ve tried all the window handles one-by-one to no avail. The video file comes out blank no matter which WMP-associated window handle I use.
Code fragment below :-
`AVDictionary* options = NULL;
char s[128];
AVInputFormat* ifmt = av_find_input_format("gdigrab2");
if(ifmt == NULL){
break;
}
snprintf(s, sizeof(s), "%lu", (unsigned long)ul_FrameRate);
av_dict_set(&options, "framerate", s, 0);
snprintf(s, sizeof(s), "%lu", (unsigned long)ul_OffsetX);
av_dict_set(&options, "offset_x", s, 0);
snprintf(s, sizeof(s), "%lu", (unsigned long)ul_OffsetY);
av_dict_set(&options, "offset_y", s, 0);
if(ulWidth != 0 && ulHeight != 0){
snprintf(s, sizeof(s), "%lux%lu", (unsigned long)ulWidth, (unsigned long)ulHeight);
av_dict_set(&options, "video_size", s, 0);
}
snprintf(s, sizeof(s), "hwnd=0x%.08X", hWnd);
if(avformat_open_input(&pVideoSource, s, ifmt, &options) < 0){
dprintf("failed to open video capture source\n");
break;
}`
What might I be doing wrong ? Any help would be appreciated. Thanks.
PS : I must add that when the code boots up, it starts recording the whole screen.. ie. the window handle passed to the ffmpeg screen recording code is 0x00000000.
To record a window, the code allows the user to use a rectangular selection tool to retrieve a rectangular selection from which it extracts a RECT and uses WindowFromPoint() to retrieve the Window handle, then uses ::GetAncestor(hWnd, GA_ROOTOWNER) to retrieve the owner window handle..which gets passed into avformat_open_input().
POINT pt{r.left, r.top}; // r is a CRect.
HWND hWnd = WindowFromPoint(pt);
HWND hWndRoot = ::GetAncestor(hWnd, GA_ROOTOWNER);
if (hWndRoot != NULL)
hWnd = hWndRoot;
// ...snip...
// ...snip...
// ...snip...
snprintf(s, sizeof(s), "hwnd=0x%.08X", hWnd);
if(avformat_open_input(&pVideoSource, s, ifmt, &options) < 0){
dprintf("failed to open video capture source\n");
break;
} -
FFMPEG : is it possible to record 1920x1080 screen with DSHOW ?
25 avril 2020, par nxt_zombieI am currently working on a screen recorder in VB.net and i need ffmpeg to record my screen. I have the following ffmpeg code now :



ffmpeg.exe -f dshow -framerate 30 -i video="UScreenCapture":audio="Stereo Mix (Realtek High Definition Audio)" -filter_complex amix=inputs=1 -vcodec libx264 -pix_fmt yuv420p -preset ultrafast -acodec pcm_s16le "output result file.mkv"




This works fine, but it only records a part of my screen. I already tried the registry keys (They weren't made, so i made them myself), but it also didn't work. Does anyone know how to do it ?



thanks in advance for helping me.