Hi Carl, The following is how I seek a frame backward: AVStream *stream =
m_format_ctx->streams[m_video_index]; int64_t time_av_time_base = 1 *
AV_TIME_BASE / stream->avg_frame_rate.num; int64_t frame_span =
av_rescale_q(time_av_time_base, AV_TIME_BASE_Q, stream->time_base); int64_t
timestamp =
xftzg writes:
> I want to perform a 'Step Forwards/Backwards' operation in my player
This is not a trivial task.
I believe there are two main approaches:
You can cache as many frames as you believe the user will want
to step backwards or you seek backwards to the next keyframe
and decode (agai
Hello,
I know it is using the PTS of the frame to seek to frames.
I want to perform a 'Step Forwards/Backwards' operation in my player, but the
problem is that the seeking to frames are not always working as I expected.
int64_t time_stamp = 0;
time_stamp = current_pts - frame_span;//