Doctv Presentation

Embed Size (px)

Citation preview

  • 8/4/2019 Doctv Presentation

    1/34

    Digital Television via IP

    Multicast

    By

    Pradeep Patel&

    Vidhi Patel

  • 8/4/2019 Doctv Presentation

    2/34

    Project Summary

    Allow networked PCs in the Department ofComputing to receive and display television

    programmes. Take Television channels from a Digital

    Terrestrial Television (DVB-T) reception card.

  • 8/4/2019 Doctv Presentation

    3/34

    Background Information

    MPEG-2 Transport Streams

    Digital Television (DVB)

    IP MulticastExisting Solutions

  • 8/4/2019 Doctv Presentation

    4/34

    MPEG-2 Transport Streams

    Consists of a number of sub-streams, eachidentified by a number (its PID).

    Can contain audio, video and other data for asingle programme, synchronised to one timebase (a Single Programme TS or SPTS).

    Transport Streams can be multiplexed

    together to form a Multi-Programme TS (orMPTS).

    Each Transport Stream contains informationabout the PIDs and types of each audio, video

    or data stream.

  • 8/4/2019 Doctv Presentation

    5/34

    Digital Television (DVB)

    Digital Terrestrial Television in the UKfollows the DVB-T standard.

    Multiple channels are broadcast on aparticular frequency, in the form of anMPEG-2 Transport Stream.

    The entire Transport Stream is processed by

    the receiver and the required channelextracted.

    Additional information is included in theTransport Stream to provide channel names,

    subtitles, digital teletext etc.

  • 8/4/2019 Doctv Presentation

    6/34

    IP MulticastOnly one copy of thedata is sent to the nextlevel down in the tree,reducing networktraffic

    Data is only sent whereit is required

  • 8/4/2019 Doctv Presentation

    7/34

    Existing Solutions

    VideoLAN

    Streaming of DVB channels, MPEG files, MPEG

    encoder card feeds. DigiTV

    Streaming of DVB channels.

    Digiguide

    Provides 2 weeks listings and scheduled reminderson a subscription basis. Co-operates with otherprogrammes to allow scheduled recordings.

  • 8/4/2019 Doctv Presentation

    8/34

    Our Solution

    Lee Howes

  • 8/4/2019 Doctv Presentation

    9/34

    Our Feature List

    Distribution of Digital Terrestrial TV channelsover IP multicast.

    Selection of channels to broadcast. Multiple TV cards.

    Client Programme Guide.

    Accumulation of usage statistics. Programme recording and pausing of live TV

    Programme reminders.

  • 8/4/2019 Doctv Presentation

    10/34

    Client Software

    ListingsDisplay

    Main UIMPEGDemux/Display

    Structure of Proposed

    Solution

    Listings Data

    Config

    DVB Mux

    DVB OtherSources

    Main Transmission Server

    Transmission (Slave) Server

    Master Server

    ListingsSource

    ListingsServer

    MasterConfiguration

    StatsDatabase

    Statistics

    HardwareInterface

  • 8/4/2019 Doctv Presentation

    11/34

    Transmission Server

    Ashley Brown

  • 8/4/2019 Doctv Presentation

    12/34

    TX Server Architecture

    TRANSMISSION

    SERVERHTTP, STORED FILES

    NETWORK

  • 8/4/2019 Doctv Presentation

    13/34

    DVB Hardware Interface

    The server uses a Java wrapper around the CLinuxTV API for DVB devices.

    The API allows the card to be tuned and

    MPEG2 data (in particular a full DVBMultiplexed Transport Stream) to be readfrom a device.

    Support for hardware acceleration of MPEG-2

    TS demultiplexing has been included,although is not used at present. A similar interface could be provided under

    Windows.

  • 8/4/2019 Doctv Presentation

    14/34

    Configuration

    James Robinson

  • 8/4/2019 Doctv Presentation

    15/34

    Configuration What configuration?

    Schedule

    Permissions

    etc.

    Required for various modules

    Publish on web server

    Can use Apache authentication and SSL security

    XML Files Configuration tool

    Creates main configuration files

    Web based

  • 8/4/2019 Doctv Presentation

    16/34

    Configuration - Demo

    http://doctv.doc.ic.ac.uk/admin/http://doctv.doc.ic.ac.uk/admin/
  • 8/4/2019 Doctv Presentation

    17/34

    Listings Server

    Lee Howes

  • 8/4/2019 Doctv Presentation

    18/34

    Listings Server

    XML Source

    XML Source

    docTV

    XML Parser

    Web Server

    ScheduleTree

    InternalStructure

    XMLTV

    XML Parser

    XMLTV

    XML Source

    SystemConfig.

    ChannelSelection

  • 8/4/2019 Doctv Presentation

    19/34

    MPEG Decoder

    Jay Cornwall

  • 8/4/2019 Doctv Presentation

    20/34

    MPEG Decoder

    Java Media Framework (JMF) providesaudio/visual playback support.

    MPEG 2 video decoding not supported. Lack of documentation and examples.

    A different approach to audio/visual

    decoding was taken.

  • 8/4/2019 Doctv Presentation

    21/34

    MPEG Decoder

    Java Client

    Decoding Component(Java AWT widget)

    Video Decoder Audio Decoder

    LibMPEG2

    (native library)

    FFMPEG

    (native library)

  • 8/4/2019 Doctv Presentation

    22/34

    MPEG Decoder

    720 x 576 x 32 bit: ~30% load on anAthlon XP-M 2400+.

    Supports MPEG 2 video and MPEG 1 /2 audio.

    Potential for further codec support.

    But a loss of portability. Restrictions on native access prevent

    aspect ratio correction under Linux.

  • 8/4/2019 Doctv Presentation

    23/34

    Client

    Lyndon Leggate

  • 8/4/2019 Doctv Presentation

    24/34

    Client

    FeaturesWatch live TV (if available & permitted)

    Pause live feeds & resume from that point Record programmes (scheduled or live)

    Playback pre-recorded programmes

    Programme reminders & auto-tune

    View full TV programme listings

    Usage statistics

  • 8/4/2019 Doctv Presentation

    25/34

    Statistics

    Simon Fothergill

  • 8/4/2019 Doctv Presentation

    26/34

    Statistics

    General reasons and motivation for statistics

    Within this project: Simply, but extensibly

    Whens popular? Whats popular?

    Client

    HTTPCGI

    PHPSQL

    PHPSQL

    Stats DatabaseStats Manager Stats Collector

  • 8/4/2019 Doctv Presentation

    27/34

    Putting it Together

    Lee Howes

  • 8/4/2019 Doctv Presentation

    28/34

    Integration and Testing

    Tested interfaces between interactingcomponents

    Tested and integrated in stages ascomponents developed (usingVideoLAN Client initially to test the

    server) Transmission test to VLC in mid

    November

  • 8/4/2019 Doctv Presentation

    29/34

    Integration and Testing 2

    Multiple DVB cards

    General tests of listings such as

    behaviour with bad date formats

    Long distance unicast radio feed tohome ADSL from Transmission Server

  • 8/4/2019 Doctv Presentation

    30/34

    A Few Problems

    Initially IP multicast appearednot to work on all switches.

    A change of multicast address

    range solved this. Towards the end of the project,

    some faulty code resulted in theserver saturating its connection.

    A faulty switch flooded thenetwork with traffic, upsettingother services.

  • 8/4/2019 Doctv Presentation

    31/34

    Evaluation

    A good start for further progress

    System is flexible in design allowing for

    future expansion

    Substantial problems with Java/Nativeinterface for video could be avoided

    with a purely native client

  • 8/4/2019 Doctv Presentation

    32/34

    Shortcomings

    Control channel not encrypted, anyonecould refresh server.

    Java event thread overcrowding causinglack of GUI responsiveness.

    Current reliance on XML TV

    radiotimes.com changed website formatshortly before the presentation.

  • 8/4/2019 Doctv Presentation

    33/34

    General Future Improvements

    DVB streaming under Windows

    Digital Radio streaming (DAB)

    Streaming from an MPEG encoder Server time-shifting of channels

    More configuration options

    Fast, Native client, possibly using GTK to

    keep cross platform Full use of JMF to make Java client work

    efficiently not a problem in Windows, moreof an issue in Linux

  • 8/4/2019 Doctv Presentation

    34/34

    Feature Comparison Matrix

    (Server)VideoLAN DigiTV docTV

    OS

    DVB Yes No Yes Yes Not Yet2

    NoUDP No No No Yes Yes YesMPEGEncoder

    Yes No No Not Yet1 Not Yet2 No

    StoredMPEG

    PS Yes3 Yes3 Nearly4 Yes3 Yes3 Yes3TS Yes Yes Yes Yes Yes Yes

    Audio No No No Yes Yes YesHTTPSources

    No No No Yes Yes Yes