[vlc] Re: ffmpeg, possible to re-mux transport-stream into program stream?

Måns Rullgård mru at inprovide.com
Fri Oct 27 20:56:00 CEST 2006


Andrea Venturi <a.venturi at cineca.it> writes:

> Ken wrote:
>> 
>> Sorry for seeming off topic. I was thinking that I wasn't able to play
>> it in VLC because it's splitter didn't support the m2ts container, and
>> so wanted to try remuxing it into a PS using ffmpeg, then playback in VLC.
>
> WRT the container, i just want to say that this file:
>
>   http://onnet.cc/20061022153649.m2ts
>
> has 4 bytes in advance of each TS packet (those 188 bytes beginning with
> 0x47 )
>
> maybe these 32 bits are a counter of the videocamera.. don't know
>
> anyway, if you want to remultiplex the stream using the usual MPEG ts
> tools, it could be better to strip these 4 bytes between the ts packets.

FFmpeg copes with those extra bytes.  Apparently they are commonly
produced by some types of cameras.  Or filter the file with Perl:

perl -e 'while(sysread(STDIN,$buf,192)>0){syswrite(STDOUT,$buf,188,4);}'

-- 
Måns Rullgård
mru at inprovide.com

-- 
This is the vlc mailing-list, see http://www.videolan.org/vlc/
To unsubscribe, please read http://www.videolan.org/support/lists.html



More information about the vlc mailing list