[gst-devel] gst-ffmpeg and problems with seeking
Michael Smith
msmith at xiph.org
Sat Nov 7 00:36:56 CET 2009
On Fri, Nov 6, 2009 at 3:19 PM, Baek Chang <baeksan at ccrma.stanford.edu> wrote:
> Hi,
>
> I seem to be having a problem with using gst-ffmpeg and trying to do seeks
> with mp3 playback. I've debugged gst-ffmpeg slightly and noticed that the
> duration and filesize that is returned from parsing the stream info seems to
> be incorrect.
>
> The mp3 I am trying to play has a length of 6:52, and file size of 6.3MB
>
> gst-ffmpeg is returning the following:
> 0:00:52.358563334 6566 0x11faf0 DEBUG ffmpeg
> gstffmpeg.c:87:gst_ffmpeg_av_find_stream_info: Duration: 00:00:03.51
> 0:00:52.361220000 6566 0x11faf0 DEBUG ffmpeg
> gstffmpeg.c:95:gst_ffmpeg_av_find_stream_info: Start time: 0.000000
>
>
>
> Having the incorrect file size and duration of the file could cause problems
> with seeking outside of the range. When I try to seek, it always goes back
> to the beginning of the file. Is this a known problem with gst-ffmpeg,
> reporting the incorrect duration and file size?
You shouldn't use ffdec_mp3 at all, probably. However, if you do, you
should use mp3parse beforehand - and that applies to any other mp3
decoder as well. mp3parse should be capable of reporting accurate
durations, and seeking properly, in almost all cases.
Mike
More information about the gstreamer-devel
mailing list