Skip to main content

Controls a local dvbstreamer

Project description

dvbctrl

starting

from dvbctrl.dvbstreamer import DVBStreamer

adapter = 0
dvbs = DVBStreamer(adapter)
running = dvbs.start()
if not running:
    raise Exception(f"Failed to start dvbstreamer on adapter {adapter}")

stopping

from dvbctrl.dvbstreamer import DVBStreamer

adapter = 0
dvbs = DVBStreamer(adapter)

...

if dvbs.isRunning():
    dvbs.stop()

commands

from dvbctrl.commands import DVBCommand

kwargs = {
    "adapter": 0,
    "host": "127.0.0.1"
    "pass": "dvbctrl"
    "user": "dvbctrl"
}
dvbc = DVBCommand(**kwargs)

# services (channels)
chans = dvbc.lsservices()

dvbctrl commands

  1.   select - Select a new service to stream.
    
  2.   setmrl - Set the MRL of the primary service filter.
    
  3.   getmrl - Get the primary service filter MRL.
    
  4.    addsf - Add a service filter.
    
  5.     rmsf - Remove a service filter.
    
  6.    lssfs - List all service filters.
    
  7.    setsf - Set the service to be filtered by a service filter.
    
  8.    getsf - Get the service to stream to a secondary service output.
    
  9. setsfmrl - Set the service filter's MRL.
    
  10. getsfmrl - Get the service filter's MRL.
    
  11. setsfavsonly - Enable/disable streaming of Audio/Video/Subtitles only.
  12. getsfavsonly - Get whether Audio/Video/Subtitles only streaming is enabled.
  13. lsservices - List all services or for a specific multiplex.
  14.  lsmuxes - List multiplexes.
    
  15.   lspids - List the PIDs for a specified service.
    
  16. serviceinfo - Display information about a service.
  17.  muxinfo - Display information about a mux.
    
  18.    stats - Display the stats for the PAT,PMT and service PID filters.
    
  19. festatus - Displays the status of the tuner.
    
  20.     scan - Scan the specified multiplex(es) for services.
    
  21. cancelscan - Cancel the any scan that is in progress.
  22.    lslcn - List the logical channel numbers to services.
    
  23.  findlcn - Find the service for a logical channel number.
    
  24. selectlcn - Select the service from a logical channel number.
  25.  current - Print out the service currently being streamed. (NOT IMPLEMENTED)
    
  26. feparams - Get current frontend parameters. (NOT IMPLEMENTED)
    
  27.  lsprops - List available properties. (NOT IMPLEMENTED)
    
  28.  getprop - Get the value of a property. (NOT IMPLEMENTED)
    
  29.  setprop - Set the value of a property. (NOT IMPLEMENTED)
    
  30. propinfo - Display information about a property. (NOT IMPLEMENTED)
    
  31.  dumptsr - Dump information from the TSReader (NOT IMPLEMENTED)
    
  32.   lslnbs - List known LNBs (NOT IMPLEMENTED)
    
  33.  epgdata - Register to receive EPG data in XML format. (NOT IMPLEMENTED)
    
  34.     date - Display the last date/time received. (NOT IMPLEMENTED)
    
  35. enabledsmcc - Enable DSM-CC data download for the specified service filter. (NOT IMPLEMENTED)
  36. disabledsmcc - Disable DSM-CC data download for the specified service filter. (NOT IMPLEMENTED)
  37. dsmccinfo - Display DSM-CC info for the specified service filter. (NOT IMPLEMENTED)
  38. epgcaprestart - Starts or restarts the capturing of EPG content. (NOT IMPLEMENTED)
  39. epgcapstart - Starts the capturing of EPG content. (NOT IMPLEMENTED)
  40. epgcapstop - Stops the capturing of EPG content. (NOT IMPLEMENTED)
  41.      now - Display the current program on the specified service. (NOT IMPLEMENTED)
    
  42.     next - Display the next program on the specified service. (NOT IMPLEMENTED)
    
  43. addlistener - Add a destination to send event notification to. (NOT IMPLEMENTED)
  44. rmlistener - Remove a destination to send event notification to. (NOT IMPLEMENTED)
  45. lslisteners - List all registered event listener (NOT IMPLEMENTED)
  46. addlistenevent - Add an internal event to monitor. (NOT IMPLEMENTED)
  47. rmlistenevent - Remove an internal event to monitor (NOT IMPLEMENTED)
  48. lslistenevents - List all registered event listener (NOT IMPLEMENTED)
  49.    addmf - Add a new destination for manually filtered PIDs. (NOT IMPLEMENTED)
    
  50.     rmmf - Remove a destination for manually filtered PIDs. (NOT IMPLEMENTED)
    
  51.    lsmfs - List current filters.
    
  52. setmfmrl - Set the filter's MRL. (NOT IMPLEMENTED)
    
  53. addmfpid - Adds a PID to a filter. (NOT IMPLEMENTED)
    
  54.  rmmfpid - Removes a PID from a filter. (NOT IMPLEMENTED)
    
  55. lsmfpids - List PIDs for filter. (NOT IMPLEMENTED)
    
  56. addoutput - Add a new output. (NOT IMPLEMENTED)
  57. rmoutput - Remove an output. (NOT IMPLEMENTED)
    
  58. enablesicap - Enable the capture of PSI/SI data. (NOT IMPLEMENTED)
  59. disablesicap - Disable the capture of PSI/SI data. (NOT IMPLEMENTED)
  60. lsplugins - List loaded plugins. (NOT IMPLEMENTED)
  61. plugininfo - Display the information about a plugin. (NOT IMPLEMENTED)
  62.      who - Display current control connections. (NOT IMPLEMENTED)
    
  63.     auth - Login to control dvbstreamer. (NOT IMPLEMENTED)
    
  64.   logout - Close the current control connection. (NOT IMPLEMENTED)
    
  65.     quit - Exit the program. (NOT IMPLEMENTED)
    
  66.     help - Display the list of commands or help on a specific command. (NOT IMPLEMENTED)
    

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dvbctrl-0.3.2.tar.gz (21.4 kB view hashes)

Uploaded Source

Built Distribution

dvbctrl-0.3.2-py3-none-any.whl (34.1 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page