Creating mp4 videos, tuts or docs?

Discussion in 'Mac Programming' started by larswik, Jul 14, 2015.

  1. larswik macrumors 68000

    Joined:
    Sep 8, 2006
    #1
    I'm looking for docs and tutorials on creating mp4 video files from still images. I wrote a program I use weekly that I select 4 images, add text data to it and then it creates a new image context that is 5120 x 720 pixels. The photos and text are added to the context and the final step is the app creates a .tif file.

    I take this final tif file to Adobe After Affects where I animate it and output a mp4 file. here is an example of the final product. http://www.larsapps.com/videos/anim_sample.mov

    My goal is to make my app an all-in-one program. I would like to do the animation and export to and mp4 format. I have goggled but most everything I find is for playing videos, not creating them.

    Any help on finding documents or tutorials would be greatly appreciated.
     
  2. barbu macrumors regular

    barbu

    Joined:
    Jul 8, 2013
    Location:
    ott.on.ca
    #2
    Does searching around the ffmpeg project turn up anything? I found this after a ten second search, i am not sure if that is what you are after though...
     
  3. larswik thread starter macrumors 68000

    Joined:
    Sep 8, 2006
    #3
    I have seen ffmpeg before but I think it is a stand alone applications. I am looking at making my OSX program a 1 app solution. My basic idea is this.

    1. Create the 5120 x 720 tif image Which is does right now called TIF.
    2. Create a new 1280 x 720 context (the size of the screen it will play on).
    3. Final video will be 15 seconds consisting 450 images.
    4 Manipulate the X and Y coordinates of the TIF image in the context for the screen, then save that context as an NSImage to an NSMutableArray. It would iterate 450 times to generate all the images fro the animation.
    5. Use this Array of images to create an mp4 video file using AVFoundation framework I am guessing.
     
  4. barbu macrumors regular

    barbu

    Joined:
    Jul 8, 2013
    Location:
    ott.on.ca
    #4
    I am certainly no programmer but i do know that ffmpeg is a OSS library which you should be able to incorporate into your app if you found it worked for you... and i see what you are trying to do and it seems simple enough but i'm sorry, i am out of my depth!
     
  5. larswik thread starter macrumors 68000

    Joined:
    Sep 8, 2006
    #5
    Thanks for your input. This can be done and I am guessing with AVFoundations framework. If anyone else has any links I could research, would appreciate it.
     
  6. xStep macrumors 68000

    Joined:
    Jan 28, 2003
    Location:
    Less lost in L.A.
    #6
  7. larswik thread starter macrumors 68000

    Joined:
    Sep 8, 2006
    #7
    That book could be a good edition to my e-library. I will spend some time reading through AV Foundations Docs tonight. Thanks.
     

Share This Page