faq.rst 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167
  1. FAQ
  2. ===
  3. .. note::
  4. This documentation is outdated. Please check at the DVB wiki
  5. at https://linuxtv.org/wiki for more updated info.
  6. Some very frequently asked questions about linuxtv-dvb
  7. 1. The signal seems to die a few seconds after tuning.
  8. It's not a bug, it's a feature. Because the frontends have
  9. significant power requirements (and hence get very hot), they
  10. are powered down if they are unused (i.e. if the frontend device
  11. is closed). The dvb-core.o module parameter "dvb_shutdown_timeout"
  12. allow you to change the timeout (default 5 seconds). Setting the
  13. timeout to 0 disables the timeout feature.
  14. 2. How can I watch TV?
  15. The driver distribution includes some simple utilities which
  16. are mainly intended for testing and to demonstrate how the
  17. DVB API works.
  18. Depending on whether you have a DVB-S, DVB-C or DVB-T card, use
  19. apps/szap/szap, czap or tzap. You must supply a channel list
  20. in ~/.[sct]zap/channels.conf. If you are lucky you can just copy
  21. one of the supplied channel lists, or you can create a new one
  22. by running apps/scan/scan. If you run scan on an unknown network
  23. you might have to supply some start data in apps/scan/initial.h.
  24. If you have a card with a built-in hardware MPEG-decoder the
  25. drivers create a video4linux device (/dev/v4l/video0) which
  26. you can use to watch TV with any v4l application. xawtv is known
  27. to work. Note that you cannot change channels with xawtv, you
  28. have to zap using [sct]zap. If you want a nice application for
  29. TV watching and record/playback, have a look at VDR.
  30. If your card does not have a hardware MPEG decoder you need
  31. a software MPEG decoder. Mplayer or xine are known to work.
  32. Newsflash: MythTV also has DVB support now.
  33. Note: Only very recent versions of Mplayer and xine can decode.
  34. MPEG2 transport streams (TS) directly. Then, run
  35. '[sct]zap channelname -r' in one xterm, and keep it running,
  36. and start 'mplayer - < /dev/dvb/adapter0/dvr0' or
  37. 'xine stdin://mpeg2 < /dev/dvb/adapter0/dvr0' in a second xterm.
  38. That's all far from perfect, but it seems no one has written
  39. a nice DVB application which includes a builtin software MPEG
  40. decoder yet.
  41. Newsflash: Newest xine directly supports DVB. Just copy your
  42. channels.conf to ~/.xine and start 'xine dvb://', or select
  43. the DVB button in the xine GUI. Channel switching works using the
  44. numpad pgup/pgdown (NP9 / NP3) keys to scroll through the channel osd
  45. menu and pressing numpad-enter to switch to the selected channel.
  46. Note: Older versions of xine and mplayer understand MPEG program
  47. streams (PS) only, and can be used in conjunction with the
  48. ts2ps tool from the Metzler Brother's dvb-mpegtools package.
  49. 3. Which other DVB applications exist?
  50. http://www.cadsoft.de/people/kls/vdr/
  51. Klaus Schmidinger's Video Disk Recorder
  52. http://www.metzlerbros.org/dvb/
  53. Metzler Bros. DVB development; alternate drivers and
  54. DVB utilities, include dvb-mpegtools and tuxzap.
  55. http://sourceforge.net/projects/dvbtools/
  56. Dave Chapman's dvbtools package, including
  57. dvbstream and dvbtune
  58. http://www.linuxdvb.tv/
  59. Henning Holtschneider's site with many interesting
  60. links and docs
  61. http://www.dbox2.info/
  62. LinuxDVB on the dBox2
  63. http://www.tuxbox.org/ and http://cvs.tuxbox.org/
  64. the TuxBox CVS many interesting DVB applications and the dBox2
  65. DVB source
  66. https://linuxtv.org/downloads
  67. DVB Swiss Army Knife library and utilities
  68. http://www.nenie.org/misc/mpsys/
  69. MPSYS: a MPEG2 system library and tools
  70. http://mplayerhq.hu/
  71. mplayer
  72. http://xine.sourceforge.net/ and http://xinehq.de/
  73. xine
  74. http://www.mythtv.org/
  75. MythTV - analog TV PVR, but now with DVB support, too
  76. (with software MPEG decode)
  77. http://dvbsnoop.sourceforge.net/
  78. DVB sniffer program to monitor, analyze, debug, dump
  79. or view dvb/mpeg/dsm-cc/mhp stream information (TS,
  80. PES, SECTION)
  81. 4. Can't get a signal tuned correctly
  82. If you are using a Technotrend/Hauppauge DVB-C card *without* analog
  83. module, you might have to use module parameter adac=-1 (dvb-ttpci.o).
  84. 5. The dvb_net device doesn't give me any packets at all
  85. Run tcpdump on the dvb0_0 interface. This sets the interface
  86. into promiscuous mode so it accepts any packets from the PID
  87. you have configured with the dvbnet utility. Check if there
  88. are any packets with the IP addr and MAC addr you have
  89. configured with ifconfig.
  90. If tcpdump doesn't give you any output, check the statistics
  91. which ifconfig outputs. (Note: If the MAC address is wrong,
  92. dvb_net won't get any input; thus you have to run tcpdump
  93. before checking the statistics.) If there are no packets at
  94. all then maybe the PID is wrong. If there are error packets,
  95. then either the PID is wrong or the stream does not conform to
  96. the MPE standard (EN 301 192, http://www.etsi.org/). You can
  97. use e.g. dvbsnoop for debugging.
  98. 6. The dvb_net device doesn't give me any multicast packets
  99. Check your routes if they include the multicast address range.
  100. Additionally make sure that "source validation by reversed path
  101. lookup" is disabled:
  102. .. code-block:: none
  103. $ "echo 0 > /proc/sys/net/ipv4/conf/dvb0/rp_filter"
  104. 7. What the hell are all those modules that need to be loaded?
  105. For a dvb-ttpci av7110 based full-featured card the following
  106. modules are loaded:
  107. - videodev: Video4Linux core module. This is the base module that
  108. gives you access to the "analog" tv picture of the av7110 mpeg2
  109. decoder.
  110. - v4l2-common: common functions for Video4Linux-2 drivers
  111. - v4l1-compat: backward compatibility layer for Video4Linux-1 legacy
  112. applications
  113. - dvb-core: DVB core module. This provides you with the
  114. /dev/dvb/adapter entries
  115. - saa7146: SAA7146 core driver. This is need to access any SAA7146
  116. based card in your system.
  117. - saa7146_vv: SAA7146 video and vbi functions. These are only needed
  118. for full-featured cards.
  119. - videobuf-dma-sg: capture helper module for the saa7146_vv driver. This
  120. one is responsible to handle capture buffers.
  121. - dvb-ttpci: The main driver for AV7110 based, full-featured
  122. DVB-S/C/T cards