1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Creating videos from a series of images? (ffmpeg/php/c#)

Discussion in 'General Programming Chat' started by gnote, May 6, 2011.

  1. gnote

    gnote Registered Member

    Joined:
    Mar 10, 2009
    Messages:
    80
    Likes Received:
    6
    Occupation:
    Programmer
    Location:
    USA
    I am trying to accomplish encoding a video file from a series of images, or even a single image, with an mp3 audio track programmatially. I have tried ffmpeg a billion times in both linux/windows and can't seem to get it to operate the way i want.

    i found this little gem
    Code:
    ffmpeg -r 10 -b 1800 -i %03d.jpg test1800.mp4
    which is suposed to create a video from a series of images. it works, but the video looks like it converted the images to negatives. i tried a bunch of tweaks from reading ffmpeg FAQ but still no success really in getting a good quality video.

    I have also searched endlessly for some kind of class to help me with this but I can't seem to get anything to work (that's free)

    I am looking to do this in either C# or PHP if I have to. It would be nice to not have to read the entire documentation of ffmpeg to figure this out. The problem is I don't know a ton about video, so I'd have to research half of the documentation to figure out what the hell everything means.

    Hoping some BH programmers might be able to clue me into something.
     
  2. panoet

    panoet Regular Member

    Joined:
    Jun 26, 2010
    Messages:
    243
    Likes Received:
    56
    Windows Movie Maker?
     
  3. proxified

    proxified Junior Member

    Joined:
    Aug 16, 2009
    Messages:
    194
    Likes Received:
    389
    Occupation:
    still exploring
    Location:
    India
    Use windows movie maker, camtasia studio, animoto, jing and there are endless tools for creating videos.
     
  4. WizGizmo

    WizGizmo Super Moderator Staff Member Moderator Jr. VIP Premium Member

    Joined:
    Mar 28, 2008
    Messages:
    4,046
    Likes Received:
    55,713
  5. proxified

    proxified Junior Member

    Joined:
    Aug 16, 2009
    Messages:
    194
    Likes Received:
    389
    Occupation:
    still exploring
    Location:
    India
    I forgot to mention ProShow in my post :rolleyes:
     
  6. SeLecTeD

    SeLecTeD Regular Member

    Joined:
    Mar 21, 2010
    Messages:
    258
    Likes Received:
    37
    I can build 25+ different videos with pictures(and changed pixels) for 10$/30 copies of 1 pack of images(maximum 50). Who want's PM me
     
    Last edited: May 6, 2011
  7. gnote

    gnote Registered Member

    Joined:
    Mar 10, 2009
    Messages:
    80
    Likes Received:
    6
    Occupation:
    Programmer
    Location:
    USA
    I appreciate the replies, but I posted this in the programming section because I want to do this programmatically. Software that can do this without any sort of API is of no help to me.
     
  8. newkid...

    newkid... Jr. VIP Jr. VIP

    Joined:
    Jan 13, 2010
    Messages:
    984
    Likes Received:
    575
    Location:
    Planet Earth
    Home Page:
    or if you want very easy and fast conversion, you may try video spin blaster. Will take only a minute ... i think software is available over this forum under buy and sell section
     
  9. gnote

    gnote Registered Member

    Joined:
    Mar 10, 2009
    Messages:
    80
    Likes Received:
    6
    Occupation:
    Programmer
    Location:
    USA
  10. Refoops

    Refoops Newbie

    Joined:
    Jul 21, 2009
    Messages:
    1
    Likes Received:
    0
    You can convert images to video with imagemagick like this:
    Code:
    convert -delay 600 adv.png adv.mpg
    This is only 1 image, but I suppose it can convert several images too.
     
  11. TheEditor

    TheEditor Regular Member

    Joined:
    Aug 20, 2007
    Messages:
    425
    Likes Received:
    206
    Not sure about this, but I think ffmpeg is at least included in the imagemagick package.

     
  12. AshBash13

    AshBash13 Newbie

    Joined:
    Dec 20, 2012
    Messages:
    15
    Likes Received:
    0
    Very easy to do in MATLAB or Octave (free). There is a function called movie2avi() that will do exactly that.