Answers.Body: <p>I know this is pretty old BUT as far as I know ffmpeg and Blackmagic Gear, you will have to set your input options according to the Stream it gets from the H-264 encoder.</p>
  
  <p>So you need to tell ffmpeg that it gets H-264 encoded video and AAC encoded audio - then it should work.</p>
  
  <p>This is not an issue with the DeckLink cards as they output raw video data.
  You might give it a shot...</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-08-11T07:18:39.937Z
Answers.Text: As far as I know, there in no direct support for BM H264Pro in ffmpeg "decklink" input device. They just support decklink pci cards with raw video production. I should first retrieve H264 output in some way the pipe it to ffmpeg for processing and transcoding.
Answers.UserDisplayName: Dave_A
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-08-01T12:43:46.263Z
Answers.LastActivityDate: 2016-08-01T12:43:46.263Z
Answers.UserDisplayName: hegoe
Answers.Body: <p>It seems that Ffmpeg has a dedicated input mechanism for decklink devices, maybe give that a shot?</p>
  
  <p><a href="https://www.ffmpeg.org/ffmpeg-devices.html#decklink" rel="nofollow">https://www.ffmpeg.org/ffmpeg-devices.html#decklink</a></p>
  
  <p>Sounds as if it might be necessary to recompile Ffmpeg with decklink support though.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-03-14T14:02:34.917Z
Answers.Text: Also see this thread where someone mentions you need to additionally specify the exact input format since it doesn't seem to be auto detected: https://ffmpeg.zeranoe.com/forum/viewtopic.php?t=1126
Answers.UserDisplayName: Hans Meiser
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-06-11T04:59:26.680Z
Answers.Text: I will try to compile last ffmpeg version with decklink support but all current static versions have(support) this option now. I also tried the link you mentioned and there was a compiled version [here](https://drive.google.com/file/d/0By6-Pyq4RKZQXzFyb01XV2RqX1k/view?pli=1) but the result is same as before.
Answers.UserDisplayName: Dave_A
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-03-14T13:54:47.983Z
Answers.LastActivityDate: 2016-03-14T13:54:47.983Z
Answers.UserDisplayName: Hans Meiser
Body: <p>I want to use blackmagic cards with ffmpeg to stream their input but there is a problem.</p>
  
  <p>When I use "H264 Pro" Encoder as a "decklink" or "dshow" input, I see this error in command line output of ffmpeg. Device is ok and I can Use it with other applications like MXPTiny or MXLight.</p>
  
  <p>Here is the command and output:</p>
  
  <pre><code>ffmpeg -f dshow -list_devices true -i dummy -hide_banner
  [dshow @ 0000000004efa5a0] DirectShow video devices (some may be both video and audio devices)
  [dshow @ 0000000004efa5a0]  "Integrated Webcam"
  [dshow @ 0000000004efa5a0]     Alternative name "@device_pnp_\\?\usb#vid_0c45&amp;pid_641d&amp;mi_00#7&amp;11c87d18&amp;0&amp;0000#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\global"
  [dshow @ 0000000004efa5a0]  "Decklink Video Capture"
  [dshow @ 0000000004efa5a0]     Alternative name "@device_sw_{860BB310-5D01-11D0-BD3B-00A0C911CE86}\{44A8B5C7-13B6-4211-BD40-35B629D9E6DF}"
  [dshow @ 0000000004efa5a0] DirectShow audio devices
  [dshow @ 0000000004efa5a0]  "Microphone (2- High Definition Audio Device)"
  [dshow @ 0000000004efa5a0]     Alternative name "@device_cm_{33D9A762-90C8-11D0-BD43-00A0C911CE86}\wave_{11A03288-DE6D-4A21-A66E-DC9303E838FA}"
  [dshow @ 0000000004efa5a0]  "Decklink Audio Capture"
  [dshow @ 0000000004efa5a0]     Alternative name "@device_sw_{33D9A762-90C8-11D0-BD43-00A0C911CE86}\{AAA22F7E-5AA0-49D9-8C8D-B52B1AA92EB7}"
  dummy: Immediate exit requested
  </code></pre>
  
  <p>and when I use "Decklink Audio Capture" to identify its options, here is the output:</p>
  
  <pre><code>ffmpeg -f dshow -list_options true -i video="Decklink Video Capture" -hide_banner
  [dshow @ 000000000388a660] Unable to BindToObject for Decklink Video Capture
  [dshow @ 000000000388a660] Could not find video device with name [Decklink Video Capture] among source devices of type video.
  video=Decklink Video Capture: Input/output error
  </code></pre>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2016-03-14T14:33:58.990Z
Comments.Text: Which binary are you using?
Comments.UserDisplayName: Gyan
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2016-05-20T07:55:32.920Z
Comments.Text: Did you tried it with the UUID? ffmpeg -f dshow -list_options true -i video=@device_sw_{860BB310-5D01-11D0-BD3B-00A0C911CE86}\{44A8B5C7-13B6-4211-BD40-35B629D9E6DF} Also, are you sure that you installed the blackmagic drivers?
Comments.UserDisplayName: Gergely Lukacsy
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2016-06-11T04:32:55.473Z
Comments.Text: @Mulvya I used static builds which are downloadable on [link](http://ffmpeg.org). 
  @ Gergely Lukacsy I tried UUID of devices and result is the same. I also installed blackmagic drives because I can use it by MXPTiny as i mentioned in my question !
Comments.UserDisplayName: Dave_A
Tags: <ffmpeg><streaming><video-recording><video-capture>
Title: Using ffmpeg to stream to or from Blackmagic Decklink Card
UserDisplayName: Dave_A
ThreadText: # Using ffmpeg to stream to or from Blackmagic Decklink Card
  
  (Asked by: username_0 on 2016-03-14)
  
  I want to use blackmagic cards with ffmpeg to stream their input but there is a problem.
  
  When I use "H264 Pro" Encoder as a "decklink" or "dshow" input, I see this error in command line output of ffmpeg. Device is ok and I can Use it with other applications like MXPTiny or MXLight.
  
  Here is the command and output:
  
  ```
  ffmpeg -f dshow -list_devices true -i dummy -hide_banner
  [dshow @ 0000000004efa5a0] DirectShow video devices (some may be both video and audio devices)
  [dshow @ 0000000004efa5a0]  "Integrated Webcam"
  [dshow @ 0000000004efa5a0]     Alternative name "@device_pnp_\\?\usb#vid_0c45&pid_641d&mi_00#7&11c87d18&0&0000#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\global"
  [dshow @ 0000000004efa5a0]  "Decklink Video Capture"
  [dshow @ 0000000004efa5a0]     Alternative name "@device_sw_{860BB310-5D01-11D0-BD3B-00A0C911CE86}\{44A8B5C7-13B6-4211-BD40-35B629D9E6DF}"
  [dshow @ 0000000004efa5a0] DirectShow audio devices
  [dshow @ 0000000004efa5a0]  "Microphone (2- High Definition Audio Device)"
  [dshow @ 0000000004efa5a0]     Alternative name "@device_cm_{33D9A762-90C8-11D0-BD43-00A0C911CE86}\wave_{11A03288-DE6D-4A21-A66E-DC9303E838FA}"
  [dshow @ 0000000004efa5a0]  "Decklink Audio Capture"
  [dshow @ 0000000004efa5a0]     Alternative name "@device_sw_{33D9A762-90C8-11D0-BD43-00A0C911CE86}\{AAA22F7E-5AA0-49D9-8C8D-B52B1AA92EB7}"
  dummy: Immediate exit requested
  
  ```
  
  and when I use "Decklink Audio Capture" to identify its options, here is the output:
  
  ```
  ffmpeg -f dshow -list_options true -i video="Decklink Video Capture" -hide_banner
  [dshow @ 000000000388a660] Unable to BindToObject for Decklink Video Capture
  [dshow @ 000000000388a660] Could not find video device with name [Decklink Video Capture] among source devices of type video.
  video=Decklink Video Capture: Input/output error
  
  ```
  
  **Tags:** ffmpeg, streaming, video-recording, video-capture
  
  > **Comments:**
  > **username_1**: Which binary are you using?  
  > **username_2**: Did you tried it with the UUID? ffmpeg -f dshow -list_options true -i video=@device_sw_{860BB310-5D01-11D0-BD3B-00A0C911CE86}\{44A8B5C7-13B6-4211-BD40-35B629D9E6DF} Also, are you sure that you installed the blackmagic drivers?  
  > **username_0**: @Mulvya I used static builds which are downloadable on [link](http://ffmpeg.org).  @ username_2 username_2 I tried UUID of devices and result is the same. I also installed blackmagic drives because I can use it by MXPTiny as i mentioned in my question !  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_3 on 2016-08-01. Score: 1
  
  I know this is pretty old BUT as far as I know ffmpeg and Blackmagic Gear, you will have to set your input options according to the Stream it gets from the H-264 encoder.
  
  So you need to tell ffmpeg that it gets H-264 encoded video and AAC encoded audio - then it should work.
  
  This is not an issue with the DeckLink cards as they output raw video data.
  You might give it a shot...
  
  > **Comments:**
  > **username_0**: As far as I know, there in no direct support for BM H264Pro in ffmpeg "decklink" input device. They just support decklink pci cards with raw video production. I should first retrieve H264 output in some way the pipe it to ffmpeg for processing and transcoding.  
  
  ---
  
  ### Answer by username_4 on 2016-03-14. Score: 0
  
  It seems that Ffmpeg has a dedicated input mechanism for decklink devices, maybe give that a shot?
  
  <https://www.ffmpeg.org/ffmpeg-devices.html#decklink>
  
  Sounds as if it might be necessary to recompile Ffmpeg with decklink support though.
  
  > **Comments:**
  > **username_4**: Also see this thread where someone mentions you need to additionally specify the exact input format since it doesn't seem to be auto detected: https://ffmpeg.zeranoe.com/forum/viewtopic.php?t=1126  
  > **username_0**: I will try to compile last ffmpeg version with decklink support but all current static versions have(support) this option now. I also tried the link you mentioned and there was a compiled version [here](https://drive.google.com/file/d/0By6-Pyq4RKZQXzFyb01XV2RqX1k/view?pli=1) but the result is same as before.  
  
  ---
  
  