[vlc-devel] [PATCH] fix mux functionality, avoid dumping all ES in first PMT

Laurent Aimar fenrir at via.ecp.fr
Sun Aug 3 23:27:08 CEST 2008


On Thu, Jul 24, 2008, Marnik Vander Elst wrote:
> description:
> Look for the ID specified in config in the PMT map, not for the
> original incoming PID.
 I am not sure that this patch is needed. If you use --sout-ts-es-id-pid
it should already do what you ask:

  if ( p_sys->b_es_id_pid )
     p_stream->i_pid = p_input->p_fmt->i_id & 0x1fff;
  else
    p_stream->i_pid = AllocatePID( p_sys, p_input->p_fmt->i_cat );

So could you explain what problems your patch fix when you use --sout-ts-es-id-pid ?

> setup stream1 output
> #duplicate{dst=bridge-out{id=1000},select=video,dst=bridge-out{id=1100},select=audio}
> setup stream2 output
> #duplicate{dst=bridge-out{id=2000},select=video,dst=bridge-out{id=2100},select=audio}
> setup stream3 output
> #duplicate{dst=bridge-out{id=2000},select=video,dst=bridge-out{id=2100},select=audio}:bridge-in:duplicate{dst=display,dst=std{access=udp{ttl=5},mux=ts,dst=225.1.1.211:1234}
 There is your error, it should be (for example):
#duplicate{dst=bridge-out{id=2000}:bridge-in:duplicate{dst=display,dst=std{access=udp{ttl=5},mux=ts,dst=225.1.1.211:1234},select=video,dst=bridge-out{id=2100},select=audio}
 (You should be able to append bridge-in:... to any dst= from any duplicate, or
you can even use a dedicated dst=)

duplicate{} does not have the normal output (ie duplicate{}:...) as data go
through each dst=...

-- 
fenrir




More information about the vlc-devel mailing list