English 中文(简体)
如何 to play
原标题:How To playback to memory with mplayer

I need to embed a video player into my program (C++) but I cannot use XEmbed, because I must do some postprocessing. Is it possible to write the output as a raw RGB to a buffer of memory like you can do with ffmpeg?

最佳回答

不幸的是,游乐器不能作为图书馆经营,但如果你愿意对游乐器的代码作一些改动,则可能有一个黑客解决办法。 这还应在Windows和MacOSX上开展工作,但需要一些变通。

页: 1 您可以将这一档案作为模板,并创建您自己的(请说)<代码>。 目的是创建共享记忆物体(man shmget)。 您可以随后使用同样的钥匙和<代码>shmget来查阅这一记忆。 在另一过程中,花角的电话显示六餐缓冲。 请注意,你可能至少应创造两个记忆缓冲,以便每次只使用一个缓冲器。 也许甚至三个或三个以上缓冲点都是最佳的。

也没有忘记将录象输出装置登记为不同名称。 页: 1 可在我可以看到的<代码>config.mak文档中加入建筑系统。

Good luck.

问题回答

暗中生物浓缩方案的一些参与者(IIRC:gimp-gap, k9copy等人)

我认为,共同办法是将儿童窗户从乐器右边带入你的X窗。 显然,在X11建筑结构方面比在窗户上更容易实现:

rel=“nofollow”>man mplayer:

 mplayer -wid <windowId>

 This tells the GUI to also use an X11 window 
 and stick itself to the bottom of the video, 
 which is useful to embed a mini-GUI in a browser 
 (with the mplayerplug-in for instance).

-wid <window id>

 This tells MPlayer to use a X11 window, which is useful 
 to embed MPlayer in a browser (with the plugger extension 
 for instance).

你可以(例如使用Qt应用程序)简单地使用

 mplayer -wid mywidget->winId();

因此,你们都需要的是:

  1. a installation dependency on mplayer
  2. man execve/man mplayer




相关问题
Undefined reference

I m getting this linker error. I know a way around it, but it s bugging me because another part of the project s linking fine and it s designed almost identically. First, I have namespace LCD. Then I ...

C++ Equivalent of Tidy

Is there an equivalent to tidy for HTML code for C++? I have searched on the internet, but I find nothing but C++ wrappers for tidy, etc... I think the keyword tidy is what has me hung up. I am ...

Template Classes in C++ ... a required skill set?

I m new to C++ and am wondering how much time I should invest in learning how to implement template classes. Are they widely used in industry, or is this something I should move through quickly?

Print possible strings created from a Number

Given a 10 digit Telephone Number, we have to print all possible strings created from that. The mapping of the numbers is the one as exactly on a phone s keypad. i.e. for 1,0-> No Letter for 2->...

typedef ing STL wstring

Why is it when i do the following i get errors when relating to with wchar_t? namespace Foo { typedef std::wstring String; } Now i declare all my strings as Foo::String through out the program, ...

C# Marshal / Pinvoke CBitmap?

I cannot figure out how to marshal a C++ CBitmap to a C# Bitmap or Image class. My import looks like this: [DllImport(@"test.dll", CharSet = CharSet.Unicode)] public static extern IntPtr ...

Window iconification status via Xlib

Is it possible to check with the means of pure X11/Xlib only whether the given window is iconified/minimized, and, if it is, how?

热门标签