[ create a new paste ] login | about

Link: http://codepad.org/rNxlmrIp    [ raw code | fork ]

C, pasted on Apr 23:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
printf("Stream time_base=%d/%d\n", video_stream->time_base.num, video_stream->time_base.den);
printf("Stream duration =%llu\n", video_stream->duration);

TIME_START("Seek");
int64_t pos = video_stream->duration - 100000;

int errnum = av_seek_frame(fmt_ctx, video_stream_idx, pos, 0);
printf("Seek result : %s\n", av_err2str(errnum));

TIME_END;

/*
Stream time_base=1/90000
Stream duration =647986752
Seek result : Success
Seek took 39 microseconds;
*/


Create a new paste based on this one


Comments: