LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 07-08-2005, 02:50 PM   #1
mrobertson
Member
 
Registered: May 2005
Posts: 275

Rep: Reputation: 30
overlaying text to a video image


I have four files with text that I need to overlay to a vidoe image. Can anybody help me as to what would be the easiest and most efficient way to do this. The files are updated each second so the code to overlay the text would have to take into account reading and printing a file each second. Can anybody help with this????
 
Old 07-20-2005, 02:22 PM   #2
traene
Member
 
Registered: Jan 2005
Distribution: Archlinux, Debian, Centos
Posts: 219

Rep: Reputation: 33
You may use an opengl rendering. For the files you can create an
glRect in the size of your video image. This can be made transparent, so
that the video image is shown. The text may be written with glText to the
glRect and updated every second.

If you have another way to display your video images, maybe there are
capabilities for adding images, text to the rendering contex.t.
 
Old 07-20-2005, 02:37 PM   #3
mrobertson
Member
 
Registered: May 2005
Posts: 275

Original Poster
Rep: Reputation: 30
would it be possible for you to give me some coding example for how to do that type of thing?
 
Old 07-21-2005, 01:11 PM   #4
traene
Member
 
Registered: Jan 2005
Distribution: Archlinux, Debian, Centos
Posts: 219

Rep: Reputation: 33
Sorry, not really. However, SGI has the glut library (for c / c++) which
provides some framework for creating open gl rendering context. You would need OpenGL support and the glut library installed.

There are some examples provided on there site. This one:
http://www.sgi.com/products/software.../source/abgr.c

Image:
http://www.sgi.com/products/software...mages/abgr.jpg

creates a image and displays it in ABGR AND RGBA modes. However, it will
not be very easy to understand, when you have no ideas about open gl. And this does not solves the text drawing problem for now.

Maybe you can find some more information in open GL forums.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Combine text to forms image carstenson Linux - Software 0 12-15-2004 05:56 PM
Centering text on an image using ImageMagick barisdemiray Linux - Software 2 09-20-2004 12:07 PM
Creating a postscript output from a image and text rdfoerster Linux - Software 3 08-31-2004 11:26 AM
How to Add Text to An Image? VorlonInfoTech Linux - Software 1 02-01-2004 10:23 PM
Image dump / Text-to-bin utility ugenn Linux - Software 4 11-13-2003 01:19 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 11:18 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration