Extracting random frames

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jnorris
    Junior Member
    Junior Member
    • Dec 2002
    • 17

    Extracting random frames

    I want to extract 50 frames from a VCD and save them as JPG. Not like the first 50, but by taking total frames/50, so I get 50 snapshots throughout the whole run time of the VCD.

    I could extract ALL the frames using TMGEnc and filter out the 50 I want using PHP (I've already written the script) but it takes like 2 hours to extract all the frames.

    Is there software that will take a certain number of frames from a movie and export them as JPG? I tried Random Frame 1.2 (which is awesome for AVI), but it doesn't seem to work for me when I try MPEG.

    Little help please?
  • setarip
    Retired
    • Dec 2001
    • 24955

    #2
    Load the file into VirtualDubMod

    Move the slider to the desired frame

    Select "Copy to clipboard"

    Run a "paint" or graphics program and select "Paste"

    Save image

    Repeat as necessary...

    Comment

    • jnorris
      Junior Member
      Junior Member
      • Dec 2002
      • 17

      #3
      I would just LOVE to do that 50 times for all my videos. I hope you'll pardon me if I keep looking for a real solution

      I'm looking at using COM objects or Quicktime with Java to do this since this doesn't exist.

      Comment

      • jnorris
        Junior Member
        Junior Member
        • Dec 2002
        • 17

        #4
        OK, I learned how to use Sylia (VirtualDub's scripting language), and I'm using a PHP script to generate the .job files I need. I guess this will do for now.

        Thanks for the reply.

        Comment

        • setarip
          Retired
          • Dec 2001
          • 24955

          #5
          "I would just LOVE to do that 50 times for all my videos. I hope you'll pardon me if I keep looking for a real solution"

          "OK, I learned how to use Sylia (VirtualDub's scripting language), and I'm using a PHP script to generate the .job files I need."

          "I guess this will do for now."

          "Thanks for the reply."


          Somehow, the last statement seems to lack sincerity ;>}

          Comment

          • jnorris
            Junior Member
            Junior Member
            • Dec 2002
            • 17

            #6
            Well, I wasn't expecting somebody to say "just copy it 50 times retard"

            Comment

            • setarip
              Retired
              • Dec 2001
              • 24955

              #7
              Your original post spoke of ONE VCD - "I want to extract 50 frames from a VCD and save them as JPG." - and NOT "I would just LOVE to do that 50 times for all my videos." mentioned in your subsequent post.

              You indicated that your concern was inordinate time required by your then-present methodology - "I could extract ALL the frames using TMGEnc and filter out the 50 I want using PHP (I've already written the script) but it takes like 2 hours to extract all the frames."

              It takes about 20 minutes to use the unscripted methodology I suggested for your requested ONE-TIME task. By this somewhat rusty programmer's calculation, that represents a savings of 83 1/3% of time consumed.


              "Well, I wasn't expecting somebody to say 'just copy it 50 times retard'"

              You're exposing a bit too much of your psyche...

              EOF

              Comment

              • jnorris
                Junior Member
                Junior Member
                • Dec 2002
                • 17

                #8
                If you were really trying to help, then thanks.

                Comment

                • The Edge
                  Digital Video Expert
                  Digital Video Expert
                  • Jan 2003
                  • 610

                  #9
                  Random Frame 1.2 (which is awesome for AVI), but it doesn't seem to work for me when I try MPEG.
                  Create a avs script and feed it to your Random Frame program.

                  Something simple like:

                  Directshowsource("c:\temp\my_movie.mpg")

                  See what happens.

                  AviSynth

                  Edge
                  "…I know the industry is formally opposed to that kind of thing [bootlegging] but I'm not. I don't have a problem with it at all." -- Paul McGuiness"

                  Comment

                  • jnorris
                    Junior Member
                    Junior Member
                    • Dec 2002
                    • 17

                    #10
                    I'm using this:

                    DirectShowSource("d:\movie.mpg")

                    And I always get an Unrecognized Exception.

                    AVIFileSource() seems to work to load avi's though.

                    Sounds like it could work.
                    Last edited by jnorris; 16 May 2003, 07:10 AM.

                    Comment

                    Working...