Decklink Mini Recorder Ubuntu

Do you have questions about Desktop Video, Converters, Routers and Monitoring?
  • Author
  • Message
Offline

Leonard

  • Posts: 5
  • Joined: Sun Jun 09, 2013 8:05 pm

Decklink Mini Recorder Ubuntu

PostSat Aug 10, 2013 5:47 pm

So I've been trying to get ffmpeg + bmdtools to give me a stream to a WoWza server. However, when I try to compile the bmdtools I keep getting the same compiler error message over and over.
Code: Select all
make[1]: Entering directory `/home/suser/BMD_SDK/Linux/Samples/bmdtools-master'
g++ -o bmdcapture bmdcapture.cpp ../../include/DeckLinkAPIDispatch.cpp `pkg-config --cflags libavcodec libavformat libswscale` -D__STDC_CONSTANT_MACROS -Wno-multichar -I ../../include -fno-rtti -g `pkg-config --libs libavcodec libavformat libswscale` -lm -ldl -lpthread
bmdcapture.cpp:66: error: use of enum âAVSampleFormatâ without previous declaration
bmdcapture.cpp:66: error: invalid type in declaration before â=â token
bmdcapture.cpp:66: error: âAV_SAMPLE_FMT_S16â was not declared in this scope
bmdcapture.cpp:194: error: use of enum âAVCodecIDâ without previous declaration
bmdcapture.cpp: In function âAVStream* add_audio_stream(AVFormatContext*, int)â:
bmdcapture.cpp:200: error: âavformat_new_streamâ was not declared in this scope
bmdcapture.cpp:207: error: invalid conversion from âintâ to âCodecIDâ
bmdcapture.cpp:208: error: âAVMEDIA_TYPE_AUDIOâ was not declared in this scope
bmdcapture.cpp:211: error: invalid conversion from âintâ to âSampleFormatâ
bmdcapture.cpp:226: error: âavcodec_open2â was not declared in this scope
bmdcapture.cpp: At global scope:
bmdcapture.cpp:234: error: use of enum âAVCodecIDâ without previous declaration
bmdcapture.cpp: In function âAVStream* add_video_stream(AVFormatContext*, int)â:
bmdcapture.cpp:240: error: âavformat_new_streamâ was not declared in this scope
bmdcapture.cpp:247: error: invalid conversion from âintâ to âCodecIDâ
bmdcapture.cpp:248: error: âAVMEDIA_TYPE_VIDEOâ was not declared in this scope
bmdcapture.cpp:264: error: âAV_CODEC_ID_V210â was not declared in this scope
bmdcapture.cpp:279: error: âavcodec_open2â was not declared in this scope
bmdcapture.cpp: In member function âvirtual HRESULT DeckLinkCaptureDelegate::VideoInputFrameArrived(IDeckLinkVideoInputFrame*, IDeckLinkAudioInputPacket*)â:
bmdcapture.cpp:393: error: âAV_PKT_FLAG_KEYâ was not declared in this scope
bmdcapture.cpp:428: error: âAV_PKT_FLAG_KEYâ was not declared in this scope
bmdcapture.cpp: In function âint main(int, char**)â:
bmdcapture.cpp:689: error: âAV_SAMPLE_FMT_S16â was not declared in this scope
bmdcapture.cpp:692: error: âAV_SAMPLE_FMT_S32â was not declared in this scope
bmdcapture.cpp:710: error: âPIX_FMT_YUV422P10â was not declared in this scope
bmdcapture.cpp:729: error: âav_guess_formatâ was not declared in this scope
bmdcapture.cpp:840: error: âav_guess_formatâ was not declared in this scope
bmdcapture.cpp:869: error: âAV_CODEC_ID_RAWVIDEOâ was not declared in this scope
bmdcapture.cpp:869: error: âAV_CODEC_ID_V210â was not declared in this scope
bmdcapture.cpp:870: error: âAV_SAMPLE_FMT_S16â was not declared in this scope
bmdcapture.cpp:870: error: âAV_CODEC_ID_PCM_S16LEâ was not declared in this scope
bmdcapture.cpp:870: error: âAV_CODEC_ID_PCM_S32LEâ was not declared in this scope
bmdcapture.cpp:876: error: âAVIO_FLAG_WRITEâ was not declared in this scope
bmdcapture.cpp:876: error: âavio_openâ was not declared in this scope
bmdcapture.cpp:902: error: âavformat_write_headerâ was not declared in this scope
bmdcapture.cpp:949: error: âavio_closeâ was not declared in this scope
make[1]: *** [bmdcapture] Error 1
make[1]: Leaving directory `/home/suser/BMD_SDK/Linux/Samples/bmdtools-master'
make: *** [all] Error 2


I've tried on Ubuntu 12.04.2 Server and Ubuntu 10.04.4 (10.04.4 because it was the most recent version of Ubuntu that the ReadMe.txt file in the 9.7.7 linux driver package mentioned that the drivers were tested on AND was available for download from the official Ubuntu site.)

I tried to apply the patch mentioned in this thread but it gives me errors when I try to patch it. I've downloaded the latest bmdtools source from this URL: https://github.com/lu-zero/bmdtools


My ultimate goal is to both stream and record to the HDD the live feed coming in on the SDI port (being fed by an ATEM 1) of the Decklink Mini Recorder on a headless, keyboard-less, mouse-less server. One that I can, after getting the streaming to work, setup with a web-based interface that even a monkey can start/stop.

The other sample files compile and work and I was able to confirm that the card works with the Capture example from the SDK. Unplugging and plugging back in the SDI cable changed the output from the Capture example so I know at least that the card works and the SDK and drivers work.

Please help, I've been banging my head on the counter for about 3 days on this now. My head really hurts...
Offline
User avatar

Roman Pytkin Pekarek

  • Posts: 2615
  • Joined: Tue Oct 30, 2012 1:11 pm
  • Location: SVK

Re: Decklink Mini Recorder Ubuntu

PostSat Aug 10, 2013 10:31 pm

do U use latest Libav ?
http://audioatem.com
http://tally.pytkin.sk
http://www.stonepp.tv
http://www.media-planet.sk
Offline

Leonard

  • Posts: 5
  • Joined: Sun Jun 09, 2013 8:05 pm

Re: Decklink Mini Recorder Ubuntu

PostSat Aug 10, 2013 10:42 pm

Pytkin wrote:do U use latest Libav ?


I'm installing it from apt-get. If that's not the right one, where should I download/get it from?
Offline
User avatar

Roman Pytkin Pekarek

  • Posts: 2615
  • Joined: Tue Oct 30, 2012 1:11 pm
  • Location: SVK

Re: Decklink Mini Recorder Ubuntu

PostSun Aug 11, 2013 1:18 pm

Use latest beta .. Libav.org
http://audioatem.com
http://tally.pytkin.sk
http://www.stonepp.tv
http://www.media-planet.sk
Offline
User avatar

wieshka

  • Posts: 7
  • Joined: Mon Feb 04, 2013 2:39 pm
  • Location: Riga, Latvia

Re: Decklink Mini Recorder Ubuntu

PostMon Sep 09, 2013 2:49 pm

Exclude bmdplay from compilation and you should be fine with compiling.

Return to Post Production

Who is online

Users browsing this forum: No registered users and 26 guests