Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place! |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
10-23-2008, 10:22 AM
|
#1
|
LQ Newbie
Registered: Oct 2008
Posts: 2
Rep:
|
Superimposing a bitmap on top of a live video stream
Hi everybody,
if OT, please point me to the right thread.
Briefly, I'm involved in a long run project which hunts for the following goal: one cheap general purpose x86 mother board with solid state storage media; a small Linux distro with X-window but without a desktop manager like GNOME or KDE; the ability to show an Ogg Theora encoded video stream; the ability to freeze the real time stream at a given frame and then superimpose some small bitmaps. Period.
I can code in C or other "close-enough-to-the-hardware" languages.
How could I face such a challenge in a consistent, possibly well defined, manner?
Thanks.
|
|
|
10-24-2008, 06:59 PM
|
#2
|
LQ Guru
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733
|
Video players shouldn't need Gnome or KDE. Superimposing graphics on a live stream sounds like a video switcher application. ( like Trinity, Video toaster, etc.) One of the ImageMagick programs can superimpose a graphic on a picture. Perhaps mplayer could save a snapshot at a certain point and ImageMagick could add the graphic. However, I don't think this would be instant. I'm not certain from your description if you just want this on the screen or if you want the result on it's own stream or saved to a file.
Read though the mplayer documentation. It may be able to do this. Look at the documentation for the gstreamer and MLT frameworks if you will need to roll your own application.
|
|
|
10-25-2008, 04:43 AM
|
#3
|
LQ Newbie
Registered: Oct 2008
Posts: 2
Original Poster
Rep:
|
Thanks jschiwal,
I don't need to save the result. My goal is to show some color graphics on top of a still background which comes from a video stream.
Imagine the inside working of a slot machine. At first, you see a still image of the three wheels, let's say an orange, a lemon and an apple.
When a player puts in a coin and gives the start signal, you see a live motion picture of the spinning wheels. After a random delay of few seconds, the movie freezes and shows a still image of two lemons and one apple. Please note that I'm NOT describing my real application. This is just an example. When the movie freezes, I have to superimpose some simple animated graphics on top of the wheels. For example, I could faint the apple from glow red to dark green, or squeeze the lemon. In case of a triple match (jackpot), I could turn the three apples to one big apple pie with a flashing 100 or 134 or 2612 or whatever else is the running score. I'm tempted to simply "hardwire" as still image each and every possible score, but I feel more viable to take a snapshot of ten single digits from 0 to 9, then arrange them in real time on top of a still background.
If possible, I would like to code one single executable which manages to read from some regular files, and painlessly write in real time to some virtual resource which represents the visible surface of the screen.
|
|
|
All times are GMT -5. The time now is 10:42 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|