[Libav-user] How to handle dynamically changing streams / parameters / codecs?
Carl Eugen Hoyos
cehoyos at ag.or.at
Sun Nov 4 20:36:42 CET 2012
Andrea3000 <andrea3000 at ...> writes:
>
> >> file1: https://dl.dropbox.com/u/11879013/file1.m2ts
> >>
> >> file2: https://dl.dropbox.com/u/11879013/file2.m2ts
> >
> > I also tested cat file1.m2ts file1.m2ts >test1.ts and
> > cat file2.m2ts file2.m2ts >test2.ts (and WMP) and it
> > could be possible that this cannot be supported due
> > to different encoding parameters.
>
> I don't understand if "cat file1.m2ts file1.m2ts >test1.ts"
> and "cat file2.m2ts file2.m2ts >test2.ts"
> do work for you.
> I can play them correctly.
test1.ts and test2.ts work for me and I therefore believe
it is possible that your original problem cannot be (easily)
fixed. But that doesn't mean you cannot open a ticket on trac.
> > If you know that the stream changes, you can always
> > close and reopen the decoder.
>
> Is it possibile to update the AVCodecContext or
AVFormatContext instead of closing and re-opening the
> decoder?
> Or is the decoder close and reopen fast enough to
> provide a smooth playback upon stream change?
Perhaps you should test this...
Carl Eugen
More information about the Libav-user
mailing list