Hi Ionel,

Ionel POP wrote:
> I work on two encoders (hardware) which are sending MPEG4 and H264 over  
> RTSP. I recover MPEG4/H264 data using live555 and I passed it to  
> av_decode_video. In both cases, I-frames are well decoded, but I notice  
> some problems while decoding P frames. avcodec_decode_video return no  
> error, but the objects leave a trail behind while moving.

Is ffplay able to correctly play the "rtsp://..." URL? If yes, then there
is some problem in your code.


> I don't know if this change something: in the case of MPEG4, I received no  
> information in fmtp_config. For H264, I got some data in  
> fmtp_spropparametersets. I transform this data (similar to the mechanism  
> used in VLC) and treat it then like any other input data.

I think this is wrong, and you should put it in extradata instead.


> VLC display both video without problem. If I save raw MPEG4/H264 data to a  
> file (in case of H264, spropparametersets are also saved), the file is  
> displayed by VLC and both I- and P- frames are decoded properly.
> 
> I think I miss something in the configuration of the codec or context, but  
> I don't see what.

If ffplay is able to receive the stream, you can have a look at its code...


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

Reply via email to