Page 1 of 1

1fps mpeg4 decoding issue

Posted: 08 Jun 2011 14:04
by marranxo
Hi,

I'm encoding one video stream at 1fps with mpeg4 (libavcodec). When I try to decode that video the player just displays the first frame (vlc player) but windows media player displays it succesfully.

Encoding parameters are:
width = 640
height = 480
codec_id = CODEC_ID_MPEG4
codec_type = AVMEDIA_TYPE_VIDEO
pix_fmt = PIX_FMT_YUV420P
time_base = { 1, 1 }
me_method = ME_EPZS
gop_size = 250
b_frame_strategy = 1
qmin = 10
qmax = 51

Any idea?

Re: 1fps mpeg4 decoding issue

Posted: 08 Jun 2011 14:57
by Jean-Baptiste Kempf
VLC has issues playing low fps videos

Re: 1fps mpeg4 decoding issue

Posted: 08 Jun 2011 15:31
by marranxo
Thanks Kempf for your reply.

It has the same behaviour as timebase = {1,2}, {10,11}... but it seems to play/decode properly with timebase {1,3} and greater divisor values.