Kamaelia

Nuts & Bolts | Components | Tools | Cookbook | Systems
wiki:( guest720929, Dev Console, Index, Recent, Edit )


Home, News
Dev Console

How, Why
Project Blog
Summer of Code

Documentation
Download
SVN (web)
Sourceforge page

Project Admin
License

Contact Us

  Page Tags

No tags are defined for this page yet - how would you classify/think of this page? Add your notes below!

Cookbook : Recording a whole DVB broadcast

Find the code for this here:
/Code/Python/Kamaelia/Examples/DVB_Systems/TransportStreamCapture.py

This simple example shows how to record a whole broadcast DVB multiplex at a frequency of 505.83MHz, with specific parameters to help the tuner:

    from Kamaelia.Device.DVB.Core import DVB_Multiplex
    from Kamaelia.Chassis.Pipeline import Pipeline
    from Kamaelia.File.Writing import SimpleFileWriter
    
    import dvb3
    
    freq = 505.833330 # 529.833330   # 505.833330
    feparams = {
        "inversion" : dvb3.frontend.INVERSION_AUTO,
        "constellation" : dvb3.frontend.QAM_16,
        "coderate_HP" : dvb3.frontend.FEC_3_4,
        "coderate_LP" : dvb3.frontend.FEC_3_4,
    }
    
    Pipeline(
       DVB_Multiplex(freq, [0x2000],feparams), # BBC Multiplex 1, whole transport stream
       SimpleFileWriter("BBC_MUX_1.ts"),
    ).run()

The DVB_Multiplex component is the simplest and easiest to use combined tuner and demultiplexer component - you simply specify the frequency, a list of packet IDs to demultiplex, and an optional dictionary of tuner control parameters.

By specifying the special PID of 0x2000 the demultiplexer outputs all packets. However, not that not all DVB hardware supports this.


Your tags for this page: If you had set UserPreferences (name & email) and validated them (simple single click in your email), you would be able to define personal tags

Versions: current , 1 , 2 , 3 , 4


(C) 2005 Kamaelia Contributors, including the British Broadcasting Corporation, All Rights Reserved,
This is an ongoing community based development site. As a result the contents of this page is the opinions of the contributors of the pages involved not the organisations involved. Specificially, this page may contain personal views which are not the views of the BBC.