GNOME Bugzilla – Bug 382631
Can't seek in local FLV file
Last modified: 2007-05-05 22:11:22 UTC
gstreamer-ffmpeg-0.10.1-4.lvn6 File attached below. When using a local file, it should be possible to get duration information and seek, using the ffmpeg FLV demuxer: static int flv_read_header(AVFormatContext *s, AVFormatParameters *ap) { int offset, flags, size; s->ctx_flags |= AVFMTCTX_NOHEADER; //ok we have a header but theres no fps, codec type, sample_rate, ... <snip> if(!url_is_streamed(&s->pb)){ const int fsize= url_fsize(&s->pb); url_fseek(&s->pb, fsize-4, SEEK_SET); size= get_be32(&s->pb); url_fseek(&s->pb, fsize-3-size, SEEK_SET); if(size == get_be24(&s->pb) + 11){ s->duration= get_be24(&s->pb) * (int64_t)AV_TIME_BASE / 1000; } } <snip> Right now, it just shows "Streaming".
Created attachment 77734 [details] get_video.flv
This is a gstreamer-ffmpeg bug. *** This bug has been marked as a duplicate of 375534 ***