[gst-devel] tar[dec,enc]

Luca Ognibene luogni at tin.it
Sun Feb 19 10:22:06 CET 2006

Il giorno dom, 19/02/2006 alle 18.45 +0100, Lutz Müller ha scritto:
> Hi!
> Using the tarenc element I just uploaded to bugzilla
> (http://bugzilla.gnome.org/show_bug.cgi?id=303975), you can now rip
> whole CDs and write the result to a tar file: 
> gst-launch cdiocddasrc mode=continuous ! audioconvert ! vorbisenc !
> oggmux ! tarenc ! filesink location=test.tar
> I've got two questions that I'd like to ask the GStreamer gurus on this
> list:
> (1) I need to know the file size that is going to be written to a tar
> archive upfront. But the oggmux element doesn't know the file size
> upfront. Therefore, I am writing the buffers to a temporary file and
> only pass the data along if the whole track has been received. That's no
> elegant solution. Can you think of a better one?

Is this info only stored in header? Do you know the offset in the file
of this info? If you know this you can send the whole file setting a
unspecified length and at eos you can send a seek event and a new header
buffer with correct informations (avimux should work like this). 


More information about the gstreamer-devel mailing list