[vlc-devel] [PATCH 1/1] udp: support packets dump in access_out module

Rémi Denis-Courmont remi at remlab.net
Sun Jul 28 10:33:46 CEST 2013


	Hello,

Le dimanche 28 juillet 2013 16:18:25 Tzu-Jung Lee a écrit :
> > The demuxer should not drop anything. The muxer is likely at fault. The
> > UDP
> > output will drop data write buffer fills up in kernel side; but your patch
> > cannot detect this.
> > 
> > To be honest, I don't really fancy reinventing the file output inside the
> > UDP output... I would rather suggest, either of:
> > - adding multiple output to the existing stream_out_standard plugin,
> > or
> > - creating a "duplicate" access output plugin teeing to multiple outputs.
> > 
> > First though, you could simply try to duplicate the muxer, e.g.:
> > '#duplicate{dst=std{mux=ts,access=file,file=output.ts},dst=std{mux=ts,acce
> > ss=udp,dst=192.168.1.1}}'
> The duplicate output.ts is not necessarily exactly the same as what
> UDP access_out sent.
> For example, the UDP access_out discard packets when it think they are
> too late to be sent.
> 
> I'm interested in your suggestion above, could you help elaborate how
> to do it, or where I can start with?

Nah, nevermind, it wouldn't solve the too late problem. The UDP access output 
indeed has some non-trivial internal processing. That said, you still have the 
problem of the kernel dropping packets anyway.

-- 
Rémi Denis-Courmont
http://www.remlab.net/




More information about the vlc-devel mailing list