Page 1 of 1

how to determine input container?

Posted: 09 May 2010 07:23
by miker00lz
is there a way for VLC to tell me what the encapsulation container of an input stream/file? i've written a VB6 utility to piggyback onto sopcast as an external player to record the raw data stream to a file. VLC does of course say what the video and audio codecs are, WMV3 and WMA2. i want to know the container though, so that i can add code to extract the two streams and remux them to another container more suited to being played as a file rather than a stream over a socket. maybe .avi or .asf.

obviously VLC can play back these saved stream files perfectly, it's annoying not to be able to properly seek through the videos. thanks for any help you can provide!

Re: how to determine input container?

Posted: 09 May 2010 10:15
by Jean-Baptiste Kempf
Maybe the easier is to fix .asf seeking in vlc, no?
Can you share the files?

Re: how to determine input container?

Posted: 11 May 2010 18:32
by miker00lz
Maybe the easier is to fix .asf seeking in vlc, no?
Can you share the files?
hi, j-b thanks for the reply sorry i took so long to respond. yes that would work, but i didn't think there is a way to reliably determine the total length in time of a video unless both audio and video are a constant bitrate or there is a header specifying the length? being a live stream, of course, sopcast feeds don't have anything like that.

here's a 3 MB sample i just recorded off a random sopcast channel - http://rubbermallet.org/sopcorder_sample.stream

i'm not sure if the raw stream uses ASF as a container or not. if it does it shouldn't be to big of a deal for me to write code to demux the audio and video from it into raw streams in realtime. i should be able to remux them into another container such as avi before writing the output to disk. i think anyway.