[FFmpeg-devel] ffmpeg or ffserver to stream?
Fri Aug 31 17:27:21 CEST 2007
2007/8/31, Luca Abeni <lucabe72 at email.it>:
> This is almost everything you need to do... The only other important
> thing is that you must send the frames at the correct time (look at the
> DTS). And remember to always pass a valid PTS to av_write_frame() (if
> you are reading frames from a file by using libavformat, you need the
> AVFMT_FLAG_GENPTS flag).
yes, VLC notify me some time-related errors in captured frame. This
must be my case.
But I don't understand why I must send frames in a different time, I
mean, if a read frames from a file or from other capture device in
real time (I want make both), it's not enough encode them and send in
the same order with its own pts sets by "pkt.pts=
video_st->time_base);" as in "output_example.c"?
I know that are "low-level question"...but I feel a little "dummy" in
thanks a lot for your help
More information about the ffmpeg-devel