Hi,
Currently, I am trying to write a code that takes Mp4 video files and can create gifs from it. I am doing it just for fun.
I was wondering how on a MP4 file format I can extract the following information:
1. Width/Height of the video file
2. RBC Color Space
3. Image JIF
I am not sure if this is the right place for the thread but it is worth a shot to see what people think.
Try StreamFab Downloader and download from Netflix, Amazon, Youtube! Or Try DVDFab and copy Blu-rays! or rip iTunes movies!
+ Reply to Thread
Results 1 to 7 of 7
Thread
-
-
MP4 file format specification preview:
http://webstore.iec.ch/preview/info_isoiec14496-14%7Bed1.0%7Den.pdf
The full document costs about US$100. -
Define code?
The mediainfo dll is free, and simple enough that even I can access it... Assuming you're using an actual Programming Language and not a script.
-edit- How will you be decoding the images? I doubt you'll be writing your own codecs... DirectShow, or whatever it's called now-a-days? -
To be able to read a video frame, you may possibly use libav libraries in your application. They contain functions to open the MP4 container, read attributes, and decode the contained video stream. I wonder if ffmpeg can already do most of the desired functionality. At least it will be able to extract frames to images, I just doubt it will write (animated?) GIFs.
-
I hope you aren't doing this to just re-invent the wheel, because Virtualdub - with an MP4 input plugin - can already output to GIFs.
Scott