Thank you very much. You rock.......
got success to combine the videos from two files into one. :)
Now, I have to combine(mix) audios as well. Will you please guide me
On Apr 19, 8:33 pm, DroidMunkey <
kinkymun...@gmail.com> wrote:
> more like - they are working on one that would do everything for
> you. the current APIs would let you do this- you just have to do all
> the hard stuff like syncing the two streams yourself
>
> right now- you have to open the two files- read them both in (which
> will give you raw pictures) then combine the two pictures in java and
> write them out to another file (so, two decoders and one encoder)
>
> also you have to pay attention to the timestamps on each video frame
> if you need to keep the two videos in sync (one could be 10 frames per
> second, the other could be 30 fps - so 1 frame in the first video will
> need to be shown for 3 frames in the other video) the easy way would
> be to figure out which one had a higher FPS (higher time resolution)
> and use that.
>
> Read A (1)
> Read B (1)
> Read A (2)
> Read B (2)
> if (b2 timestamp > a2 timestamp) show b1 again otherwise show b2 and
> read b3)
> Read A (3)
> if (this b > this a) show last b, otherwise show this B and increment
>