Recherche avancée

Médias (91)

Autres articles (3)

  • Submit bugs and patches

    13 avril 2011

    Unfortunately a software is never perfect.
    If you think you have found a bug, report it using our ticket system. Please to help us to fix it by providing the following information : the browser you are using, including the exact version as precise an explanation as possible of the problem if possible, the steps taken resulting in the problem a link to the site / page in question
    If you think you have solved the bug, fill in a ticket and attach to it a corrective patch.
    You may also (...)

  • Le plugin : Gestion de la mutualisation

    2 mars 2010, par

    Le plugin de Gestion de mutualisation permet de gérer les différents canaux de mediaspip depuis un site maître. Il a pour but de fournir une solution pure SPIP afin de remplacer cette ancienne solution.
    Installation basique
    On installe les fichiers de SPIP sur le serveur.
    On ajoute ensuite le plugin "mutualisation" à la racine du site comme décrit ici.
    On customise le fichier mes_options.php central comme on le souhaite. Voilà pour l’exemple celui de la plateforme mediaspip.net :
    < ?php (...)

  • MediaSPIP : Modification des droits de création d’objets et de publication définitive

    11 novembre 2010, par

    Par défaut, MediaSPIP permet de créer 5 types d’objets.
    Toujours par défaut les droits de création et de publication définitive de ces objets sont réservés aux administrateurs, mais ils sont bien entendu configurables par les webmestres.
    Ces droits sont ainsi bloqués pour plusieurs raisons : parce que le fait d’autoriser à publier doit être la volonté du webmestre pas de l’ensemble de la plateforme et donc ne pas être un choix par défaut ; parce qu’avoir un compte peut servir à autre choses également, (...)

Sur d’autres sites (796)

  • FFMPEG is not recording the whole window

    25 mai 2021, par John

    I'm using FFMPEG to record a window as illustrated in the figure below. In all cases, the right hand side of the recorded window is cropped. The command I'm giving is

    &#xA;&#xA;

    ffmpeg -f gdigrab -i title="example.txt - Notepad&#x2B;&#x2B;" output.mkv&#xA;

    &#xA;&#xA;

    Any suggestion on how to fix this problem is much appreciated.

    &#xA;&#xA;

    Using FFMPEG to record a window

    &#xA;&#xA;

    Here are some additional info :

    &#xA;&#xA;

      &#xA;
    • Running Windows 10
    • &#xA;

    • Using ffmpeg-20181215-011c911-win64-static, but I have the same issue using other versions of FFMPEG
    • &#xA;

    • Desktop resolution is 3200x1800 (dpi scaling issue ?)
    • &#xA;

    &#xA;&#xA;

    This is what the recorded area looks like in the example above

    &#xA;&#xA;

    FFMPEG cropping right hand side of window

    &#xA;&#xA;

    Update 1 :

    &#xA;&#xA;

    Recording the whole desktop works fine, however, when recording a region using x and y offsets, the region captured is correct, but the region indicated is wrong. I illustrate this in the image below that shows a screen capture of the desktop during recording. The background image is a grid and the taskbar has been hidden.

    &#xA;&#xA;

    enter image description here

    &#xA;&#xA;

    The size of the area to capture is specified to 1280x720, but the region indicated is 1600x900. Also, the x offset is specified to 400px, but the region indicted starts at 500px.

    &#xA;&#xA;

    The area recorded is correct ! The image below shows a screenshot of the recording during playback in vlc, note that the "misplaced" region indicator can be seen

    &#xA;&#xA;

    enter image description here

    &#xA;&#xA;

    Update 2 :

    &#xA;&#xA;

    I noticed that the cursor, the mouse, is not correctly placed when capturing from the desktop, see recording below. Everything looks fine during recording, but at playback the cursor is misplaced.

    &#xA;&#xA;

    enter image description here

    &#xA;&#xA;

    The command issued for the recording above was :

    &#xA;&#xA;

    ffmpeg -f gdigrab -framerate 30 -offset_x 1820 -offset_y 100 -video_size 1280x720 -i desktop output5.mkv&#xA;

    &#xA;&#xA;

    Windows 10 / ffmpeg-20181215-011c911-win64-static

    &#xA;

  • Pointers returned by xlib don't match any existing window IDs

    1er septembre 2022, par Kroltan

    I'm using some X11 bindings to query some window information and later pass it to FFmpeg. FFmpeg expects a "window ID" given in hexadecimal notation.

    &#xA;

    This notation seems somewhat standard, as it is returned by programs like xwininfo or wmctrl. I haven't found much information about it, but it seems to just be the hexadecimal representation of the window pointer ? If I take the ID string given by these programs and give it to FFmpeg, it is able to capture the window correctly :

    &#xA;

    $ xwininfo&#xA;&#xA;xwininfo: Please select the window about which you&#xA;          would like information by clicking the&#xA;          mouse in that window.&#xA;&#xA;xwininfo: Window id: 0x2800014 "Desktop — Plasma"&#xA;&#xA;$ ffmpeg -f x11grab -window_id 0x2800014 -i :0&#x2B;0,0 -f apng -vframes 1 out.png&#xA;# works fine&#xA;

    &#xA;

    However, if I try listing all the windows in code :

    &#xA;

    var root = Window.None;&#xA;var parent = Window.None;&#xA;Xlib.XQueryTree(_display, Xlib.XDefaultRootWindow(_display), ref root, ref parent, out var children);&#xA;&#xA;var ids = children&#xA;    .Select(ptr => $"0x{(ulong) ptr:x}")&#xA;    .ToArray();&#xA;

    &#xA;

    I don't see 0x2800014 in the results (even disregardingleading zeroes), and if I try running FFmpeg on one of those results, it fails terribly :

    &#xA;

    $ ffmpeg -f x11grab -window_id 0x4400003 -i :0&#x2B;0,0 -f apng -vframes 1&#xA;&#xA;# snipped for brevity&#xA;&#xA;Trailing option(s) found in the command: may be ignored.&#xA;[x11grab @ 0x55b811a8da40] Cannot get the image data event_error: response_type:0 error_code:8 sequence:10 resource_id:167772160 minor_code:4 major_code:130.&#xA;[x11grab @ 0x55b811a8da40] Continuing without shared memory.&#xA;[x11grab @ 0x55b811a8da40] Cannot get the image data event_error: response_type:0 error_code:8 sequence:11 resource_id:71303171 minor_code:0 major_code:73.&#xA;Input #0, x11grab, from &#x27;:0&#x2B;0,0&#x27;:&#xA;  Duration: N/A, bitrate: 38361 kb/s&#xA;  Stream #0:0: Video: rawvideo (BGR[0] / 0x524742), bgr0, 200x200, 38361 kb/s, 29.97 fps, 1000k tbr, 1000k tbn&#xA;At least one output file must be specified&#xA;

    &#xA;

    So I must conclude my guess that they are hex pointers is incorrect, or that the Window type is not the pointer itself, but then the question stands, how can I get the actual window IDs so I can pass them to FFmpeg ?

    &#xA;

  • Seek function of HTML5 video and Maximum Keyframe Interval in video encoding compression

    20 décembre 2019, par Sanxofon

    This is a very specific question about how the seek function (of an HTML5 video element) interprets a video, in this case one in WEBM format and what specific relationship it has with the Maximum Keyframe Interval in the process of coding of said video.

    I’ve made this fiddle to show what I mean :

    https://jsfiddle.net/sanxofon/hctuxo3e/

    What it does : The idea is to control the position of a paused video with the scroll wheel of the mouse ... in addition, each frame of the video is copied to a canvas element, but I think that has no relation. I mention it just in case.

    What to watch : In Chrome (v66) and slightly less in Firefox (v59) the scrolling looks pretty good when the video is encoded with a Maximum Keyframe Interval of 6 or less, but jumps are appreciated when the interval is every 24 frames or more. This is noticeable in the video and even more on the canvas.

    FFMPEG : When encoding a video with FFMPEG this is achieved with the option -g6 or -g24 of Maximum Keyframe Interval. However, the file becomes heavier as we decrease the interval. It can be seen that there is no difference between both formats when the video is in play.

    You can switch the video in the snippet with the buttons.

    • Case 1 : When we use the video encoded with -g 6 the video scrolling is acceptable but the size increases : 6.229 Mb.

    FFMPEG string used :

    ffmpeg -i INPUT.MOV -c: v libvpx -qmin 0 -deadline best -qmax 50 -crf 1 -b: v 100K -g 6 test / video_g6.webm
    • Case 2 : When we use the video encoded with -g 24 the displacement is not smooth and suffers from jumps but the size decreases : 4,477 Mb.

    FFMPEG string used :

    ffmpeg -i INPUT.MOV -c: v libvpx -qmin 0 -deadline best -qmax 50 -crf 1 -b: v 100K -g 24 test / video_g24.webm

    Why does this happen ?

    What about -keyint_min or -force_key_frames ? Do they have any positive effect ? Is it better to use something like cgop (closed gop) ?

    I would appreciate some reference of consultation on this subject or a more or less detailed explanation of this relationship for both the WEBM container and for MP4 and OGG video.

    I am not looking so much for a magical ffmpeg chain (although I would appreciate it) but rather an explanation of how this relationship between the keyframes and the seek of a javascript video works.

    Thank you very much for reading here.

    P.S. One more thing, if the seek function only stops in a keyframe, is it possible that this frame has more quality than the others so that the quality increases when the video stops ?