On date Wednesday 2008-08-06 03:36:25 -0700, amol mahamuni wrote: > Hello, > > I have a binary file which contains H.263 bitstream (at about 3 mins > streams). > I give all this to ffmpeg decoder. It decodes sucessfully. No problems in > that. > > Now, I want to pass data frame by frame - my situation is I have data in > real time. Data comes to me thr some fucntion. I look for 00 00 8X in that > (00 00 8X is start code for H.263 if I am not worng). I append data until i > get 00 00 8X again - which means previous packet was the last packet for the > frame. I fed this collected buffer to ffmpeg decoder (same function I used to > pass whole h.263 bitstram file to decode) - but I get intermittant data - > meaning data for some time and some time it just dont give anything. > > I tried above 3 mins file by splittin @ 00 00 8X and passing it to decoder, > but in this case it doesnt decode. Some distortion @ every some interval. > > Is above logic correct? Am I missing anything?
I think you're missing libavformat... ;-) No need to do that by hand, use instead the demuxing facilities provided by libavformat. > Question is - > To pass frame to ffmpeg h.263 decoder - what shd be logic. What shd be a > frame. > What shd I look to constitutes a frame? Regards. _______________________________________________ libav-user mailing list [email protected] https://lists.mplayerhq.hu/mailman/listinfo/libav-user
