Recherche avancée
Autres articles (69)
-
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. -
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 (...) -
HTML5 audio and video support
13 avril 2011, parMediaSPIP uses HTML5 video and audio tags to play multimedia files, taking advantage of the latest W3C innovations supported by modern browsers.
The MediaSPIP player used has been created specifically for MediaSPIP and can be easily adapted to fit in with a specific theme.
For older browsers the Flowplayer flash fallback is used.
MediaSPIP allows for media playback on major mobile platforms with the above (...)
Sur d’autres sites (9916)
-
ffmpeg capture single window screen freezes with only mouse working
2 septembre 2015, par Saad AbdullahScenario and Problem :
I have two machines with windows 8.1 installed. On one computer, every thing works fine with video recording by using gdigrab to capture a window by title. But on the other pc, the desktop recording works fine, but when it comes to capture single window by title, the video freezes with only mouse working. (to be exact, if i play webcam or images in the window being captured, it records the content too, but when some video is played it starts showing black screen or freezed at first frame.Commandline :
here is the commandline argsffmpeg -f gdigrab -framerate 30 -i title="Video - VLC media player" germ.flvWhat can be the issue on the other pc ?
-
Pointers returned by xlib don't match any existing window IDs
1er septembre 2022, par KroltanI'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.


This notation seems somewhat standard, as it is returned by programs like
xwininfoorwmctrl. 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 :

$ xwininfo

xwininfo: Please select the window about which you
 would like information by clicking the
 mouse in that window.

xwininfo: Window id: 0x2800014 "Desktop — Plasma"

$ ffmpeg -f x11grab -window_id 0x2800014 -i :0+0,0 -f apng -vframes 1 out.png
# works fine


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


var root = Window.None;
var parent = Window.None;
Xlib.XQueryTree(_display, Xlib.XDefaultRootWindow(_display), ref root, ref parent, out var children);

var ids = children
 .Select(ptr => $"0x{(ulong) ptr:x}")
 .ToArray();


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

$ ffmpeg -f x11grab -window_id 0x4400003 -i :0+0,0 -f apng -vframes 1

# snipped for brevity

Trailing option(s) found in the command: may be ignored.
[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.
[x11grab @ 0x55b811a8da40] Continuing without shared memory.
[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.
Input #0, x11grab, from ':0+0,0':
 Duration: N/A, bitrate: 38361 kb/s
 Stream #0:0: Video: rawvideo (BGR[0] / 0x524742), bgr0, 200x200, 38361 kb/s, 29.97 fps, 1000k tbr, 1000k tbn
At least one output file must be specified


So I must conclude my guess that they are hex pointers is incorrect, or that the
Windowtype 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 ?

-
How to play videos inside pygtk3 window using ffmpeg plugin ?
1er octobre 2018, par JinTrying to play videos inside pygtk3 windows using ffmpeg plugin.added the code for Gtk window , need help with code on how to make video appear inside the window , Im tryin to create a simple video player for a class project , requirements > should be done using the open source ffmpeg plugin. Any help would be much appreciated.
import gi
gi.require_version('Gtk','3.0')
from gi.repository import Gtk
class app(Gtk.Window):
def __init__(self):
Gtk.Window.__init__(self,title='TODAYS TEST & GREAT !!!')
self.set_default_size(500,20)
#Setting a BOX
box=Gtk.Box()
self.add(box)
menubar=Gtk.MenuBar()
# File
filemenu=Gtk.Menu()
filemenudrop=Gtk.MenuItem('FILE')
file_open=Gtk.MenuItem('Open')
file_open.connect('activate',self.fileopen)
file_new=Gtk.MenuItem('New')
filemenudrop.set_submenu(filemenu)
filemenu.append(file_open)
filemenu.append(file_new)
#Edit
editmenu=Gtk.Menu()
editmenudrop=Gtk.MenuItem('EDIT')
edit_cut=Gtk.MenuItem('Cut')
edit_copy=Gtk.MenuItem('Copy')
editmenudrop.set_submenu(editmenu)
editmenu.append(edit_cut)
editmenu.append(edit_copy)
#Mainmenu final appends & packing to box
menubar.append(filemenudrop)
menubar.append(editmenudrop)
box.pack_start(menubar,True,True,0)
# Setting functions for menuabar items (Naturally created after menubar and its better that way ....1)
def fileopen(self,widget):
print('hello')
window=app()
window.connect('destroy',Gtk.main_quit)
window.show_all()
Gtk.main()