bbc/gst-audiodescription

Name: gst-audiodescription

Owner: BBC

Description: Barely functional gstreamer elements for decoding WHP198 audio-description data

Created: 2016-10-05 11:55:32.0

Updated: 2017-12-05 17:41:45.0

Pushed: 2017-01-28 22:03:01.0

Homepage:

Size: 42

Language: C

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

Gstreamer elements implementing some suport for rendering Audio Description.

The elements are,

               +-------------+
WHP 198 signal |             |
+-------------->  whp198dec  |
               |             |
               +-------------+
                      |
                      | AD_descriptors
                      |
               +------v------+
Main audio     |             |  Main audio (with fade)
+-------------->  adcontrol  +--------------->
               |             |
               +-------------+
                                Description audio
+-------------------------------------------->
Limitations
Example pipeline

Given a test.wav contains description in the left stereo channel, and the WHP 198 control data in the right channel, this pipeline plays the description track using a noise test signal for the main audio, as a basic demo of the control over the main audio's volume level.

gst-launch-1.0 \
  filesrc location=test.wav \
    ! wavparse \
    ! deinterleave name=d \
  d.src_1 \
    ! queue max-size-time=100000000 \
    ! audioconvert \
    ! audio/x-raw,format=S16LE,rate=48000,channels=1 \
    ! whp198dec \
    ! ad. \
  d.src_0 \
    ! queue max-size-time=100000000 \
    ! audioconvert \
    ! audio/x-raw,format=S16LE,rate=48000,channels=1 \
    ! mix. \
  audiotestsrc wave=red-noise volume=0.3 \
    ! audio/x-raw,format=S16LE,rate=48000,channels=1 \
    ! adcontrol name=ad \
    ! mix. \
  audiomixer name=mix \
    ! autoaudiosink

This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.