📄 readme
字号:
DVBstream - v0.5----------------INTRODUCTIONDVBstream is based on the ts-rtp package available athttp://www.linuxtv.org. It broadcasts a (subset of a) DVB transportstream over a LAN using the rtp protocol. There were a couple ofsmall bugs in the original ts-rtp application, which I have fixedhere.v0.4pre2 of dvbstream introduced the "-ps" option which performson-the-fly conversion of the stream to a PS before either streaming itor writing it to stdout. However, this option is not needed withrecent versions of MPlayer and xine - they have native TransportStream support.REQUIREMENTSThis software requires Linux, a supported DVB card, the Linux DVBdrivers from www.linuxtv.org and a kernel with Multicast networkingenabled. See the Multicasting HOWTO for more information on multicasting. Inbrief, just set CONFIG_IP_MULTICAST=y (the default on my SuSE 7.1installation) and recompile your kernel (if required). You can thenset up the "route" using a command like:/sbin/route add -net 224.0.0.0 netmask 240.0.0.0 dev eth0INSTALLATIONJust type "make" to compile (you may need to change the path to theDVB include files in the first line of the Makefile).If you are using dvbtune for DVB-T in Finland, you should replace the"make" command with "make FINLAND=1". or "make FINLAND2=1" (see thecomments in the dvb_defaults.h file for details).USAGE - SERVERIf you wanted to broadcast TVC International from Astra 19E, you wouldtype the following command:dvbstream -f 12441 -p v -s 27500 512 660You can specify up to 8 PIDs on the command-line to include in themulticasted transport stream. A 10MBit/s network should be able tohandle one video and one audio stream, or eight audio streams.If you also want to view the TV channel on the TV-OUT of your DVB-Scard (or using xawtv or similar), then you can use the "-v" and "-a"flags before the video and audio PIDs respectively:dvbstream -f 12441 -p v -s 27500 -v 512 -a 660dvbstream also has the ability to map PIDS to different values beforeyou stream it. For example, if you type dvbstream -f 12441 -p v -s 27500 -v 512:1 -a 660:2then the video stream will become "PID 1" and the audio stream willbecome "PID 2".Also, with driver versions from October 2001 onwards, you canbroadcast the entire transport stream (if you are using a budget card)with the command:dvbstream 81928192 is a "dummy PID" (legal PIDS are in the range 0-8191) and thedriver interprets this to mean the entire TS. Obviously, it wouldmake no sense to use the map feature on this "pid".USAGE - CLIENTTo receive the stream on any other machine on your LAN, use thedumprtp utility (from ts-rtp). An slightly improved version isincluded in this archive. e.g.dumprtp > received.tsIf you have a DVB card on the second machine, you can use the rtpfeedcommand to decode the stream. Type "rtpfeed -h" for usageinformation. rtpfeed was written by Guenter Wildmann<a8909020@unet.univie.ac.at> - please address any bugs or comments toGuenter.If you don't have a DVB card on the client machine, You can use mpg123and the mpegtools provided with the DVB driver for live audiodecoding:dumprtp | ts2es apid | mpg123 -This command line is included with dvbstream as the "rtpradio.sh" script.If you only want audio, you can run dvbstream with eight audio PIDs,and then your clients can choose which PID to play.For live TV channel playing, the best solution I have found is mplayer(http://www.mplayerhq.hu). Please install the latest CVS version -mplayer is being rapidly improved.You can then view TV being streamed over the network using thefollowing command:mplayer -cache 2048 rtp://224.0.1.2:5004/TELNET INTERFACEFrom v0.4 onwards, DVBstream incorporates a "telnet" interface toallow you to remotely start and stop the streaming, and tune the cardto a different channel.The following commands are supported:TUNE freq pol srateSTOPADDV pid[:map]ADDA pid[:map]ADDT pid[:map]ADD pid[:map]QUITSTOP closes down all PIDs and stops the streaming. The other commandsshould be self-explanatory. See the scripts in the TELNET directoryfor example usage.CONTRIBUTORSThe ts2ps conversion is taken from the "mpegtools" package distributedwith the linuxtv.org DVB driver. This code is (C) 2000, 2001 MarcusMetzler for Convergence Integrated Media Gmbh and released under theGNU GPL.rtp.c is a slightly modified version of the sendrtp_ts.c file includedwith the "ts-rtp" package (also from linuxtv.org). It was writen byDavid Podeur for Convergence Integrated Media Gmbh and released underthe GNU GPL.Stephen Davies <steve@daviesfam.org> for the implementation of the"-o" and "-t" switches.COPYRIGHT NOTICEThis program is free software; you can redistribute it and/or modifyit under the terms of the GNU General Public License as published bythe Free Software Foundation; either version 2 of the License, or(at your option) any later version.This program is distributed in the hope that it will be useful,but WITHOUT ANY WARRANTY; without even the implied warranty ofMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See theGNU General Public License for more details.You should have received a copy of the GNU General Public Licensealong with this program; if not, write to the Free SoftwareFoundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -