[vlc-devel] Adding all streams at start when transcoding

Laurent Aimar fenrir at via.ecp.fr
Tue Aug 4 22:19:33 CEST 2009


On Tue, Aug 04, 2009, ogg.k.ogg.k at googlemail.com wrote:
> Hi,
> 
> I'm hitting a problem here:
> 
> - I have added a subtitles encoder
> - I transcode a file with subtitles to Ogg
> - When transcoding, my encoder gets open partway through, when the
> first subtitle happens
> - This causes the Ogg muxer to chain another stream
> 
> This is suboptimal, as I'd rather my encoder to be opened when the transcoding
> starts, so as to avoid the chained stream, as chained stream support
> is very poor
> in a variety of software.
> 
> I've looked at the code, but I must say I'm lost. Any idea/pointers on:
> - whether it's what VLC should be doing
 Yes, it is what the code is supposed to do.
 It is controlled by DecoderProcessSout in src/input/decoder.c
 The stream output is created only upon reception of the first data
from the packetizer. It's the only way (at the moment) to know when the 
ES format is valid/complete.
 It should not be too difficult to modify this behaviour to create the
output as soon as we know we have a complete format. I will try to look at
it but cannot say when.

-- 
fenrir



More information about the vlc-devel mailing list