JustDvb-It Recipes

From Wikibooks, the open-content textbooks collection

Jump to: navigation, search

A book of recipes about JustDvb-It.


JustDVB-IT is a free and open source MPEG2 transport stream data generator and packet manipulator. For more information check the CINECA Web Site

Contents

[edit] Main concepts

Check the readme.txt file provided by the people of JustDVB-It.

read about MPEG transport stream.

[edit] How JustDVb-It works

1- Generate the psi tables.

2- Generate events and carrusels.

3- Muxes elementary streams, carrusels and psi tables to obtain a transport stream.

4- Plays the generated transport stream.

[edit] Recipes

[edit] Quickstart

Buy a DTA-110T board and download the JustDvb-It live cd at CINECA web site.

[edit] Adding applications

Edit psi-config.py placed in bash-config folder

1- Follow application3 by this

myNewApplication = application_loop_item( # <<<<<<<<<<<<
        organisation_id = 10, 
        application_id = 1003, 
        application_control_code = 2, # PRESENT
        application_descriptors_loop = [
            transport_protocolB_ds,
            app_ds_b,
            application_name_descriptor(application_name = "My new application"),
            dvb_j_application_descriptor(parameters = ["dvb://1/sample9"]),
            dvb_j_application_location_descriptor(
    		base_directory = "/",
		class_path_extension = "",
 		initial_class = "myNewApplicationFileClassName", 
    	    ),
            ]
        )

2- Add new application to the AIT

ait = application_information_section(
        application_type = DVB_J_application_type,
        common_descriptor_loop = [],
        application_loop = [ # <<<<<<<<<<<<
	    application1,
	    application2,
	    application3,
            myNewApplication,
   	]
        )

3- Place in ocdir1 a myNewApplication.class file which implements an Xlet

4- Excecute transport-generator.sh

[edit] Adding audio and video

[edit] Creatting channels

- Add another PMT and some (elementary stream)

- Link it to PAT

- Add in the SDT the service name

- Add a couple of "tsloop" in the transport-generator.sh file

[edit] Setup asynchronous and synchronous events