Have u checkd it with openRTSP ???

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Dario
Sent: Thursday, November 06, 2008 1:16 PM
To: [email protected]
Subject: [libav-user] Movement leaves pixel trails on decoded MPEG4 stream

Hi all.
I will try to define my problem as best I can.
Definition: 
I'm currently streaming mpeg4 stream via RTSP using live555 library.
I modifed the lib so I devert received frames directly into
avcodec_decode_video.
Settings of codec and codeccontext are all set to CODEC_ID_MPEG4 and
resolution is set to CIF.
My picture renderer class is set to work in SDL with yuv420 pixel format.
I'm also using swscale for conversion. These 2 sw* functions are declared
like this:
pswsctx =
sws_getContext(w_,h_,PIX_FMT_YUV420P,w_,h_,PIX_FMT_YUV420P,2,NULL,NULL,NULL)
;

is declared in initialization, while: 

sws_scale(pswsctx, frame->data, frame->linesize, 0, h_, pict.data,
pict.linesize);

is used for conversion, where frame is pointer to AVFrame containing the
decoded frame.

Problem:
When decoding and displaying MPEG4 image decoded in YUV420 pixel format,
delata values of each frame get
distorted as something moves in fron of camera.
In other words, when person move in front of the camera, there is a trail of
blured pixel boxes where the movement was. And it clears in few movements.
(Probably on every I frame)The same thing doesn't happen if movement is slow
enough. 
I don't think that this is because these frames are lost, or the UDP packets
are lost in transport, because I saved tje stream, directly to disk, and
when viewing the video, everything is ok.
I also tried streaming MJPEG type of stream from the same camera, and in
that case everything is stramed fine.

My geuss is falty codec/swContext settings but don't know where.





ELMA Kurtalj d.o.o. (ELMA Kurtalj ltd.)
Vitezićeva 1a, 10000 Zagreb, Hrvatska (Viteziceva 1a, 10000 Zagreb, Croatia)
Tel: 01/3035555, Faks: 01/3035599 (Tel: ++385-1-3035555, Fax:
++385-1-3035599 )

Www:
www.elma.hr; shop.elma.hr

E-mail:
[EMAIL PROTECTED] ([EMAIL PROTECTED])
[EMAIL PROTECTED] ([EMAIL PROTECTED])
[EMAIL PROTECTED] ([EMAIL PROTECTED])
[EMAIL PROTECTED] ([EMAIL PROTECTED])
[EMAIL PROTECTED] ([EMAIL PROTECTED])
[EMAIL PROTECTED] ([EMAIL PROTECTED])
[EMAIL PROTECTED] ([EMAIL PROTECTED])
_______________________________________________
libav-user mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/libav-user

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.


No virus found in this incoming message.
Checked by AVG. 
Version: 7.5.549 / Virus Database: 270.8.6 - Release Date: 11/3/2008 12:00
AM
 

No virus found in this outgoing message.
Checked by AVG. 
Version: 7.5.549 / Virus Database: 270.8.6 - Release Date: 11/3/2008 12:00
AM
 

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

Reply via email to