help with decklink

IamTrying iamtrying.test at gmail.com
Sat Apr 28 00:39:53 PDT 2012


Do not use 60fps. You will have camera frame drop. The plugin writer left
bugs for you to fix. Try always 30fps or 50fps to have balanced fame
capture.

To install it: 

1) 


# blackmagic 
if [ ! -d "${pkgdirectory}/blackmagic" ]; then
  mkdir ${pkgdirectory}/blackmagic
  cd ${pkgdirectory}/blackmagic
  wget
http://www.blackmagic-design.com/media/3397912/Blackmagic_Desktop_Video_Linux_9.2.tar.gz
  #wget
http://www.blackmagic-design.com/media/2404825/Blackmagic_Desktop_Video_Linux_8.6.1.tar.gz
  #tar xvfz Blackmagic_Desktop_Video_Linux_8.6.1.tar.gz
  tar xvfz Blackmagic_Desktop_Video_Linux_9.2.tar.gz
  #dpkg -i desktopvideo-8.6.1-amd64.deb
  dpkg -i desktopvideo-9.2-amd64.deb
  modprobe blackmagic
else
  cd ${pkgdirectory}/blackmagic
  sudo apt-get remove desktopvideo
  #dpkg -i desktopvideo-8.6.1-amd64.deb
  #modprobe blackmagic
  dpkg -i desktopvideo-9.2-amd64.deb
  modprobe blackmagic
fi


2) $ BlackmagicFirmwareUpdater 
Usage: BlackmagicFirmwareUpdater [COMMAND] [ARGUMENTS]...

COMMANDS:
	status               Check if any cards needs its firmware upgraded
	update [card_id]     Update firmware versions

3) $ BlackmagicFirmwareUpdater status
	blackmagic0 [DeckLink SDI]	0x1c	OK


4) $ gst-inspect decklinksrc
Factory Details:
  Long name:	Decklink source
  Class:	Source/Video
  Description:	DeckLink Source
  Author(s):	David Schleef <ds at entropywave.com>
  Rank:		none (0)

Plugin Details:
  Name:			decklink
  Description:		Blackmagic Decklink plugin
  Filename:		/usr/lib/gstreamer-0.10/libgstdecklink.so
  Version:		0.10.22.1
  License:		LGPL
  Source module:	gst-plugins-bad
  Source release date:	2012-01-15 22:04 (UTC)
  Binary package:	GStreamer Bad Plug-ins
  Origin URL:		http://www.ubuntu.org/

GObject
 +----GstObject
       +----GstElement
             +----GstDecklinkSrc

Pad Templates:
  SRC template: 'audiosrc'
    Availability: Always
    Capabilities:
      audio/x-raw-int
                  width: 16
                  depth: 16
               channels: 2
                   rate: 48000

  SRC template: 'videosrc'
    Availability: Always
    Capabilities:
      video/x-raw-yuv
                 format: UYVY
                  width: 720
                 height: 486
              framerate: 30000/1001
             interlaced: true
        pixel-aspect-ratio: 10/11
           color-matrix: sdtv
            chroma-site: mpeg2
      video/x-raw-yuv
                 format: UYVY
                  width: 720
                 height: 486
              framerate: 24000/1001
             interlaced: true
        pixel-aspect-ratio: 10/11
           color-matrix: sdtv
            chroma-site: mpeg2
      video/x-raw-yuv
                 format: UYVY
                  width: 720
                 height: 576
              framerate: 25/1
             interlaced: true
        pixel-aspect-ratio: 12/11
           color-matrix: sdtv
            chroma-site: mpeg2
      video/x-raw-yuv
                 format: UYVY
                  width: 720
                 height: 486
              framerate: 30000/1001
             interlaced: false
        pixel-aspect-ratio: 10/11
           color-matrix: sdtv
            chroma-site: mpeg2
      video/x-raw-yuv
                 format: UYVY
                  width: 720
                 height: 576
              framerate: 25/1
             interlaced: false
        pixel-aspect-ratio: 12/11
           color-matrix: sdtv
            chroma-site: mpeg2
      video/x-raw-yuv
                 format: UYVY
                  width: 1920
                 height: 1080
              framerate: 24000/1001
             interlaced: false
        pixel-aspect-ratio: 1/1
           color-matrix: hdtv
            chroma-site: mpeg2
      video/x-raw-yuv
                 format: UYVY
                  width: 1920
                 height: 1080
              framerate: 24/1
             interlaced: false
        pixel-aspect-ratio: 1/1
           color-matrix: hdtv
            chroma-site: mpeg2
      video/x-raw-yuv
                 format: UYVY
                  width: 1920
                 height: 1080
              framerate: 25/1
             interlaced: false
        pixel-aspect-ratio: 1/1
           color-matrix: hdtv
            chroma-site: mpeg2
      video/x-raw-yuv
                 format: UYVY
                  width: 1920
                 height: 1080
              framerate: 30000/1001
             interlaced: false
        pixel-aspect-ratio: 1/1
           color-matrix: hdtv
            chroma-site: mpeg2
      video/x-raw-yuv
                 format: UYVY
                  width: 1920
                 height: 1080
              framerate: 30/1
             interlaced: false
        pixel-aspect-ratio: 1/1
           color-matrix: hdtv
            chroma-site: mpeg2
      video/x-raw-yuv
                 format: UYVY
                  width: 1920
                 height: 1080
              framerate: 25/1
             interlaced: true
        pixel-aspect-ratio: 1/1
           color-matrix: hdtv
            chroma-site: mpeg2
      video/x-raw-yuv
                 format: UYVY
                  width: 1920
                 height: 1080
              framerate: 30000/1001
             interlaced: true
        pixel-aspect-ratio: 1/1
           color-matrix: hdtv
            chroma-site: mpeg2
      video/x-raw-yuv
                 format: UYVY
                  width: 1920
                 height: 1080
              framerate: 30/1
             interlaced: true
        pixel-aspect-ratio: 1/1
           color-matrix: hdtv
            chroma-site: mpeg2
      video/x-raw-yuv
                 format: UYVY
                  width: 1920
                 height: 1080
              framerate: 50/1
             interlaced: false
        pixel-aspect-ratio: 1/1
           color-matrix: hdtv
            chroma-site: mpeg2
      video/x-raw-yuv
                 format: UYVY
                  width: 1920
                 height: 1080
              framerate: 30000/1001
             interlaced: false
        pixel-aspect-ratio: 1/1
           color-matrix: hdtv
            chroma-site: mpeg2
      video/x-raw-yuv
                 format: UYVY
                  width: 1920
                 height: 1080
              framerate: 60/1
             interlaced: false
        pixel-aspect-ratio: 1/1
           color-matrix: hdtv
            chroma-site: mpeg2
      video/x-raw-yuv
                 format: UYVY
                  width: 1280
                 height: 720
              framerate: 50/1
             interlaced: false
        pixel-aspect-ratio: 1/1
           color-matrix: hdtv
            chroma-site: mpeg2
      video/x-raw-yuv
                 format: UYVY
                  width: 1280
                 height: 720
              framerate: 60000/1001
             interlaced: false
        pixel-aspect-ratio: 1/1
           color-matrix: hdtv
            chroma-site: mpeg2
      video/x-raw-yuv
                 format: UYVY
                  width: 1280
                 height: 720
              framerate: 60/1
             interlaced: false
        pixel-aspect-ratio: 1/1
           color-matrix: hdtv
            chroma-site: mpeg2


Element Flags:
  no flags set

Element Implementation:
  Has change_state() function: gst_decklink_src_change_state
  Has custom save_thyself() function: gst_element_save_thyself
  Has custom restore_thyself() function: gst_element_restore_thyself

Clocking Interaction:
  element requires a clock
  element is supposed to provide a clock but returned NULL

Indexing capabilities:
  element can do indexing
Element has no URI handling capabilities.

Pads:
  SRC: 'videosrc'
    Implementation:
      Has getrangefunc(): gst_decklink_src_video_src_getrange
      Has custom eventfunc(): gst_decklink_src_video_src_event
      Has custom queryfunc(): gst_decklink_src_video_src_query
      Has custom iterintlinkfunc(): gst_decklink_src_video_src_iterintlink
      Has getcapsfunc(): gst_decklink_src_video_src_getcaps
      Has setcapsfunc(): gst_decklink_src_video_src_setcaps
      Has acceptcapsfunc(): gst_decklink_src_video_src_acceptcaps
      Has fixatecapsfunc(): gst_decklink_src_video_src_fixatecaps
    Pad Template: 'videosrc'
  SRC: 'audiosrc'
    Implementation:
      Has getrangefunc(): gst_decklink_src_audio_src_getrange
      Has custom eventfunc(): gst_decklink_src_audio_src_event
      Has custom queryfunc(): gst_decklink_src_audio_src_query
      Has custom iterintlinkfunc(): gst_decklink_src_audio_src_iterintlink
      Has getcapsfunc(): gst_decklink_src_audio_src_getcaps
      Has setcapsfunc(): gst_decklink_src_audio_src_setcaps
      Has acceptcapsfunc(): gst_decklink_src_audio_src_acceptcaps
      Has fixatecapsfunc(): gst_decklink_src_audio_src_fixatecaps
    Pad Template: 'audiosrc'

Element Properties:
  name                : The name of the object
                        flags: readable, writable
                        String. Default: "decklinksrc0"
  mode                : Mode
                        flags: readable, writable
                        Enum "GstDecklinkModes" Default: 0, "NTSC SD 60i"
                           (0): NTSC SD 60i      - ntsc
                           (1): NTSC SD 60i (24 fps) - ntsc2398
                           (2): PAL SD 50i       - pal
                           (3): NTSC SD 60p      - ntsc-p
                           (4): PAL SD 50p       - pal-p
                           (5): HD1080 23.98p    - 1080p2398
                           (6): HD1080 24p       - 1080p24
                           (7): HD1080 25p       - 1080p25
                           (8): HD1080 29.97p    - 1080p2997
                           (9): HD1080 30p       - 1080p30
                           (10): HD1080 50i       - 1080i50
                           (11): HD1080 59.94i    - 1080i5994
                           (12): HD1080 60i       - 1080i60
                           (13): HD1080 50p       - 1080p50
                           (14): HD1080 59.94p    - 1080p5994
                           (15): HD1080 60p       - 1080p60
                           (16): HD720 50p        - 720p50
                           (17): HD720 59.94p     - 720p5994
                           (18): HD720 60p        - 720p60
  connection          : Connection
                        flags: readable, writable
                        Enum "GstDecklinkConnection" Default: 0, "SDI"
                           (0): SDI              - sdi
                           (1): HDMI             - hdmi
                           (2): Optical SDI      - optical-sdi
                           (3): Component        - component
                           (4): Composite        - composite
                           (5): S-Video          - svideo
  audio-input         : Audio Input Connection
                        flags: readable, writable
                        Enum "GstDecklinkAudioConnection" Default: 0,
"Automatic"
                           (0): Automatic        - auto
                           (1): SDI/HDMI embedded audio - embedded
                           (2): AES/EBU input    - aes
                           (3): Analog input     - analog
  subdevice           : Subdevice
                        flags: readable, writable
                        Integer. Range: 0 - 3 Default: 0 


5) $ gst-launch -v decklinksrc mode=18 connection=0 ! ffmpegcolorspace !
xvimagesink sync =false
Setting pipeline to PAUSED ...
ERROR: Pipeline doesn't want to pause.
ERROR: from element /GstPipeline:pipeline0/GstXvImageSink:xvimagesink0:
Could not initialise Xv output
Additional debug info:
xvimagesink.c(1806): gst_xvimagesink_xcontext_get ():
/GstPipeline:pipeline0/GstXvImageSink:xvimagesink0:
Could not open display
Setting pipeline to NULL ...
Freeing pipeline ...


Thats it! will work if still do not work grab the code and build from source
please.



--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/help-with-decklink-tp4585467p4594365.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.


More information about the gstreamer-devel mailing list