Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. insert text in video

insert text in video

Scheduled Pinned Locked Moved C / C++ / MFC
helptutorialquestion
7 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G Offline
    G Offline
    Game point
    wrote on last edited by
    #1

    Hello Sirs how to insert text into an avi file? there's a filter that does this, aware motion ... something, but i wanted to know how to do something like that, any help would be very ... um, Confused ... helpfull thanks

    :~ Failure is Success If we learn from it!!:~

    C 1 Reply Last reply
    0
    • G Game point

      Hello Sirs how to insert text into an avi file? there's a filter that does this, aware motion ... something, but i wanted to know how to do something like that, any help would be very ... um, Confused ... helpfull thanks

      :~ Failure is Success If we learn from it!!:~

      C Offline
      C Offline
      Code o mat
      wrote on last edited by
      #2

      I'll assume you mean you want to do that programatically using (V)C++, otherwise you wouldn't be asking here. Imho take a look at writing directshow filters[^] for starters, i hope that will help.

      > The problem with computers is that they do what you tell them to do and not what you want them to do. < > Sometimes you just have to hate coding to do it well. <

      G 1 Reply Last reply
      0
      • C Code o mat

        I'll assume you mean you want to do that programatically using (V)C++, otherwise you wouldn't be asking here. Imho take a look at writing directshow filters[^] for starters, i hope that will help.

        > The problem with computers is that they do what you tell them to do and not what you want them to do. < > Sometimes you just have to hate coding to do it well. <

        G Offline
        G Offline
        Game point
        wrote on last edited by
        #3

        Thanks for your replay ! i need to split I frames and P-frames in avi file and how to insert text into avi file.So please help me ..

        :~ Failure is Success If we learn from it!!:~

        C 1 Reply Last reply
        0
        • G Game point

          Thanks for your replay ! i need to split I frames and P-frames in avi file and how to insert text into avi file.So please help me ..

          :~ Failure is Success If we learn from it!!:~

          C Offline
          C Offline
          Code o mat
          wrote on last edited by
          #4

          I don't know what I and P frames are, sorry, i'm not much into video editing in details. To insert text i would write my own filter which takes the incoming frame, writes its text on it and then passes it along the graph (so it would have 1 input pin for incoming video frames and 1 output pin which passes the frame along after writing text onto it), i think video frames are (usually) passed as DIBs (Device Independent Bitmaps), so you should be able to use GDI (or GDI+) functions to write text onto these before letting them continue their journey. [edit] And of course, insert my filter into the filter graph by building the graph "manually". [/edit]

          > The problem with computers is that they do what you tell them to do and not what you want them to do. < > Sometimes you just have to hate coding to do it well. <

          modified on Tuesday, February 16, 2010 6:15 AM

          G 1 Reply Last reply
          0
          • C Code o mat

            I don't know what I and P frames are, sorry, i'm not much into video editing in details. To insert text i would write my own filter which takes the incoming frame, writes its text on it and then passes it along the graph (so it would have 1 input pin for incoming video frames and 1 output pin which passes the frame along after writing text onto it), i think video frames are (usually) passed as DIBs (Device Independent Bitmaps), so you should be able to use GDI (or GDI+) functions to write text onto these before letting them continue their journey. [edit] And of course, insert my filter into the filter graph by building the graph "manually". [/edit]

            > The problem with computers is that they do what you tell them to do and not what you want them to do. < > Sometimes you just have to hate coding to do it well. <

            modified on Tuesday, February 16, 2010 6:15 AM

            G Offline
            G Offline
            Game point
            wrote on last edited by
            #5

            thanks for your thoughts .. this is I frames and Pframe FYI : http://en.wikipedia.org/wiki/Video_compression_picture_types[^] **do u have any samples for insert text into frames ...?**

            :~ Failure is Success If we learn from it!!:~

            C 1 Reply Last reply
            0
            • G Game point

              thanks for your thoughts .. this is I frames and Pframe FYI : http://en.wikipedia.org/wiki/Video_compression_picture_types[^] **do u have any samples for insert text into frames ...?**

              :~ Failure is Success If we learn from it!!:~

              C Offline
              C Offline
              Code o mat
              wrote on last edited by
              #6

              I don't know of any samples, but google is your friend...

              > The problem with computers is that they do what you tell them to do and not what you want them to do. < > Sometimes you just have to hate coding to do it well. <

              G 1 Reply Last reply
              0
              • C Code o mat

                I don't know of any samples, but google is your friend...

                > The problem with computers is that they do what you tell them to do and not what you want them to do. < > Sometimes you just have to hate coding to do it well. <

                G Offline
                G Offline
                Game point
                wrote on last edited by
                #7

                Thanks :-O

                :~ Failure is Success If we learn from it!!:~

                1 Reply Last reply
                0
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                • Login

                • Don't have an account? Register

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • World
                • Users
                • Groups