[vlc-devel] [PATCH] mux: ts: set p_sys->first_dts to lowest dts recieved

Ray Tiley raytiley at gmail.com
Wed Jun 11 15:10:21 CEST 2014


On Wed, Jun 11, 2014 at 4:22 AM, Francois Cartegnie <fcvlcdev at free.fr> wrote:
> Didn't watch ts muxer's code yet, but it seems it suffers the same
> problems as the mp4 muxer on discontinuity or gathered streams.
>
> I've added discontinuity flag on sout gatherer block on stream boundary
> to correctly hint muxers.

I agree that my fix is a bit hacky. I am a novice at most of this
stuff, just trying to track down an issue I was seeing. In my scenario
I'm trying to transcode a live capture from directshow. When the
stream starts the x264 warns a few times about invalid dts but then
starts working properly. These initial "bad dts" packets cause the
first_dts to be set so high that all future packets get discarded as
invalid.

Hopefully this patch shines some light on the issue. If anyone can
offer a better way to resolve this issue I'm willing to put some more
work into it.

Thanks

-ray



More information about the vlc-devel mailing list