After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 382631 - Can't seek in local FLV file
Can't seek in local FLV file
Status: RESOLVED DUPLICATE of bug 375534
Product: totem
Classification: Core
Component: GStreamer backend
2.17.x
Other Linux
: Normal normal
: ---
Assigned To: Maintainer alias for GStreamer component of Totem
Maintainer alias for GStreamer component of Totem
Depends on:
Blocks:
 
 
Reported: 2006-12-05 15:40 UTC by Bastien Nocera
Modified: 2007-05-05 22:11 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
get_video.flv (991.74 KB, application/octet-stream)
2006-12-05 15:42 UTC, Bastien Nocera
Details

Description Bastien Nocera 2006-12-05 15:40:43 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".
Comment 1 Bastien Nocera 2006-12-05 15:42:02 UTC
Created attachment 77734 [details]
get_video.flv
Comment 2 Jan Arne Petersen 2007-05-05 22:11:22 UTC
This is a gstreamer-ffmpeg bug.

*** This bug has been marked as a duplicate of 375534 ***