[vls-devel] Patch for disabling unknown PIDs
Marian Durkovic
md at bts.sk
Mon Oct 7 09:50:47 CEST 2002
> Actually, the ZDF transpoder is one of the bundles where I run into problems
> with this. The vls includes PIDs 910, 955, 956, 960, 961, 962, 963 into all
> multicasted channels, which eats a lot of CPU and network bandwidth.
> Broadcasting all channels from this transpoder creates a network stream of
> 80 Mbps. I think it would be very useful to have some way to either specify
> PIDs by hand or automatically discard PIDs unknown to vlc.
It's enough not to transmit PIDs with TS_TYPE_MPEG2_PRIVATE or higher.
Now the ZDF transpoder gives only 35 Mbps a east only half of the CPU time.
So the patch looks like this:
--- dvbinput.cpp Mon Oct 7 09:44:41 2002
+++ dvbinput.cpp.my Mon Oct 7 09:49:19 2002
@@ -271,6 +271,8 @@
if(i < 64)
{
+ if(iType < TS_TYPE_MPEG2_PRIVATE)
+ {
int iFd = open(m_strDemux.GetString(), O_RDWR|O_NONBLOCK);
if(iFd < 0)
Log(m_hLog, LOG_ERROR, "Unable to open demux");
@@ -323,6 +325,11 @@
m_iDemuxes[2 * i + 1] = iFd;
}
}
+ }
+ else
+ {
+ LogDbg(m_hLog, C_String("Demux filter not started for PID ")
+ + iPid + C_String(" ES type: ") + iType);
}
}
else
With kind regards,
M.
--------------------------------------------------------------------------
---- ----
---- Marian Durkovic network manager ----
---- ----
---- Slovak Technical University Tel: +421 2 524 51 301 ----
---- Computer Centre, Nam. Slobody 17 Fax: +421 2 524 94 351 ----
---- 812 43 Bratislava, Slovak Republic E-mail: md at bts.sk ----
---- ----
--------------------------------------------------------------------------
--
This is the vls-devel mailing-list, see http://www.videolan.org/vls-devel/
To unsubscribe, please read http://www.videolan.org/lists.html
If you are in trouble, please contact <postmaster at videolan.org>
More information about the vls-devel
mailing list