views:

205

answers:

1

So in H264 we have something like this as a time line A sequence of video frames, consisting of two keyframes, one forward-predicted frame and one bi-directionally predicted frame. (supposing we all know what I P B frames are but if we do not look here (Wikipedia)) Here "I" frames are compressed fully, "P" frames inharit from ones they follow, "B" frames can inherit from ones they follow and ones that are after them...

So my question is if there is any way (better open source program written in any language) that could somehow convert H264 to xml + images (images = any format=))?

so it could contain something like this or anything similar:

   <frame base="1.jpg"/>
   <frame>
     <base>
       1.jpg
     </base> 
     <change content='2.jpg' x='150' y='150'/>
   </frame>
A: 

I can't help you with the XML but that should be easy enough to produce. For video editing, FFMpeg is one of the biggest household names. It can deal with H.264. This discussion should get you started extracting single frames.

Pekka
sory but no - i do not need single frames. i need whole video structured as it is in h264
Blender
Ahh I see now. If nothing else turns up here, I think FFMpeg, the associated tools and the community around it are still your best bet for finding something.
Pekka
Yes i know - if they can get the whole frame it means they know how to get all its parts and so modifying that for all frames we probably know is every structure of every frame but... but it will not give us 'change' parts as separate images...
Blender
Asking in ffmpeg specialist forums/communities may turn up some obscure development tool that does exactly that, or possibly somebody can at least point you in the right direction. Not everybody who is active there is necessarily active here.
Pekka