Problem when seeking with oggmux/vorbisenc

Thiago Santos thiago.sousa.santos at collabora.com
Thu Feb 13 11:24:41 PST 2014


On 02/13/2014 02:16 PM, Tiago Katcipis wrote:
> Hi,

Oi,

>
> I don't know if this is a problem or if I'm missing something. All I'm 
> trying to do is to transcode audio, from any format (thanks to 
> decodebin :-) to OGG/Vorbis. Just doing this for an entire file is 
> pretty straightforward and the example code I'm providing already does 
> that.
>
> But when i try to extend it to seek to a specific position of the 
> audio, and then transcoding, then i get some problems.
>
> When i perform a non-flushing seek... the seek call hangs forever. If 
> i perform a flushing seek everything goes "ok", but i end up with a 
> messed up OGG file :-(.
>
> When i transcode the entire file:
>
> ./ogg-seek-test <audio-src-file>
> file /tmp/test.ogg
> /tmp/test.ogg: Ogg data, Vorbis audio, mono, 8000 Hz, ~22400 bps, 
> created by: Xiph.Org libVorbis I
>
> play /tmp/test.ogg
> /tmp/test.ogg:
>  File Size: 369k      Bit Rate: 23.4k
>   Encoding: Vorbis
>   Channels: 1 @ 16-bit
> Samplerate: 8000Hz
> Replaygain: off
>   Duration: 00:02:06.14
>
> When i try to seek, to transcode only a part of the file:
>
> ./ogg-seek-test <audio-src> 10
>
> file /tmp/test.ogg
> /tmp/test.ogg: Ogg data
>
> play /tmp/test.ogg
> play FAIL formats: can't open input file `/tmp/test.ogg': Input not an 
> Ogg Vorbis audio stream
>
> The source code is here:
> https://gitorious.org/katcipis-playground/playground/source/dfa5c8849e73ba15d15ea9dc11c1913d2685f5e0:c/gstreamer/oggmux-seek-test/ogg-seek-test.c
>
>
> Any help is deeply appreciated.

There was a bug in oggmux regarding proper flushing when handling a seek.

Just got fixed with commit a6890ec7ef69f34b38ae2c600f136b43574102e7 in 
gst-plugins-base git master.

Please report if it still doesn't work for you.

--
Cheers,
Thiago

>
> Best regards,
> Tiago Katcipis
>
>
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20140213/b3215495/attachment-0001.html>


More information about the gstreamer-devel mailing list