Hello All,
   
  ==> Now I receive H.263+ data thr RTP. I parse RTP packet header, then parse 
payload header for P bit, if P=1, added 00 00 to data and keep the buffer until 
I get packet with Marker bit set. For intermedaite packets, payload header is 
00 00. So after that it shd be bitstream data.
   
  I passed it to ffmpeg decoder. It decoders well when there is no motion in 
the scene.
  But whenever there is motion, It displayes blocks in the scene. 
   
  Does anyone have solution?
  Please reply.
   
  Thanks,
  -Amol.

amol mahamuni <[EMAIL PROTECTED]> wrote:
  Thanks, I dont know how to use that and I dont have pre-compiled dll files 
that I can use on windows environment. Can anyone help in that way? Precompiled 
DLLs and .h + some sample code to start with.

Now, I have some results. I dont know whether its good or bad. The problem was 
that I was initializing ffmpeg for every frame. Now i do it once and things are 
pretty well.

Problem now is - it has considerable distortion when scene is dark. When scene 
has good amount of lighting, my video decodes very good except for the very few 
frames where it shows some distortion. 

Does anyone has anything for this problem???

Thanks for replies.
-Amol.

Stefano Sabatini wrote:
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



_______________________________________________
libav-user mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/libav-user


       
_______________________________________________
libav-user mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/libav-user

Reply via email to