Opened 4 years ago

Closed 3 years ago

#4991 closed enhancement (fixed)

feature request: advanced options for decklink devices

Reported by: lvqier Owned by:
Priority: wish Component: avdevice
Version: git-master Keywords: DeckLink
Cc: lvqier@gmail.com, cus@passwd.hu Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

Summary of the bug:
I can not use ffmpeg to capture HDMI signal using DeckLink? Mini Recorder while there's no way to set bmdDeckLinkConfigVideoInputConnection and bmdDeckLinkConfigAudioInputConnection.

But bmdcapture can.

How to reproduce:

List of input formats:

#./ffmpeg -f decklink -list_formats 1 -i 'DeckLink Mini Recorder'ffmpeg version 2.8.1 Copyright (c) 2000-2015 the FFmpeg developers
  built with gcc 4.9.2 (Debian 4.9.2-10)
  configuration: --prefix=../build --enable-gpl --enable-version3 --enable-decklink --disable-filter=showcqt --enable-libx264 --enable-libvo_aacenc --extra-cflags=-I../../include/ --extra-libs=-ldl
  libavutil      54. 31.100 / 54. 31.100
  libavcodec     56. 60.100 / 56. 60.100
  libavformat    56. 40.101 / 56. 40.101
  libavdevice    56.  4.100 / 56.  4.100
  libavfilter     5. 40.101 /  5. 40.101
  libswscale      3.  1.101 /  3.  1.101
  libswresample   1.  2.101 /  1.  2.101
  libpostproc    53.  3.100 / 53.  3.100
[decklink @ 0x31e8380] Supported formats for 'DeckLink Mini Recorder':
[decklink @ 0x31e8380] 	1	720x486 at 30000/1001 fps (interlaced, lower field first)
[decklink @ 0x31e8380] 	2	720x486 at 24000/1001 fps
[decklink @ 0x31e8380] 	3	720x576 at 25000/1000 fps (interlaced, upper field first)
[decklink @ 0x31e8380] 	4	720x486 at 60000/1001 fps
[decklink @ 0x31e8380] 	5	720x576 at 50000/1000 fps
[decklink @ 0x31e8380] 	6	1920x1080 at 24000/1001 fps
[decklink @ 0x31e8380] 	7	1920x1080 at 24000/1000 fps
[decklink @ 0x31e8380] 	8	1920x1080 at 25000/1000 fps
[decklink @ 0x31e8380] 	9	1920x1080 at 30000/1001 fps
[decklink @ 0x31e8380] 	10	1920x1080 at 30000/1000 fps
[decklink @ 0x31e8380] 	11	1920x1080 at 25000/1000 fps (interlaced, upper field first)
[decklink @ 0x31e8380] 	12	1920x1080 at 30000/1001 fps (interlaced, upper field first)
[decklink @ 0x31e8380] 	13	1920x1080 at 30000/1000 fps (interlaced, upper field first)
[decklink @ 0x31e8380] 	14	1280x720 at 50000/1000 fps
[decklink @ 0x31e8380] 	15	1280x720 at 60000/1001 fps
[decklink @ 0x31e8380] 	16	1280x720 at 60000/1000 fps

But ffmpeg complains with No input signal detected by selecting whichever format:

#./ffmpeg -f decklink -i 'DeckLink Mini Recorder@15' -acodec libvo_aacenc -vcodec libx264 -pix_fmt yuv420p b.mp4
ffmpeg version 2.8.1 Copyright (c) 2000-2015 the FFmpeg developers
  built with gcc 4.9.2 (Debian 4.9.2-10)
  configuration: --prefix=../build --enable-gpl --enable-version3 --enable-decklink --disable-filter=showcqt --enable-libx264 --enable-libvo_aacenc --extra-cflags=-I../../include/ --extra-libs=-ldl
  libavutil      54. 31.100 / 54. 31.100
  libavcodec     56. 60.100 / 56. 60.100
  libavformat    56. 40.101 / 56. 40.101
  libavdevice    56.  4.100 / 56.  4.100
  libavfilter     5. 40.101 /  5. 40.101
  libswscale      3.  1.101 /  3.  1.101
  libswresample   1.  2.101 /  1.  2.101
  libpostproc    53.  3.100 / 53.  3.100
[decklink @ 0x2578420] Found Decklink mode 1280 x 720 with rate 59.94
[decklink @ 0x2578420] Frame received (#1) - No input signal detected - Frames dropped 1
Guessed Channel Layout for  Input Stream #0.0 : stereo
Input #0, decklink, from 'DeckLink Mini Recorder@15':
  Duration: N/A, start: 0.000000, bitrate: 1536 kb/s
    Stream #0:0: Audio: pcm_s16le, 48000 Hz, 2 channels, s16, 1536 kb/s
    Stream #0:1: Video: rawvideo (UYVY / 0x59565955), uyvy422, 1280x720, -10 kb/s, 59.94 tbr, 1000k tbn, 59.94 tbc
[libx264 @ 0x25814e0] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX
[decklink @ 0x2578420] Frame received (#2) - Input returned - Frames dropped 2
[libx264 @ 0x25814e0] profile High, level 3.2
[libx264 @ 0x25814e0] ....

Change History (5)

comment:1 Changed 4 years ago by lvqier

I have tested with the latest DeckLink? SDK, the Configuration interface is not needed for audio and video input connections the Configuration interface is still needed. But not sure for other options.

Last edited 4 years ago by lvqier (previous) (diff)

comment:2 Changed 4 years ago by cehoyos

  • Priority changed from normal to wish
  • Type changed from defect to enhancement

comment:3 Changed 3 years ago by astroza

Hi, I fixed that issue of lacking of options here

https://github.com/FFmpeg/FFmpeg/pull/212

you could help me leaving positive comments in pull request :D

comment:4 Changed 3 years ago by cehoyos

Please send patches made with git format-patch to the development mailing list, pull requests are usually ignored.

comment:5 Changed 3 years ago by cus

  • Cc cus@passwd.hu added
  • Resolution set to fixed
  • Status changed from new to closed

Support for selecting audio and video input connection, as well as duplex mode has been added to git master. Reopen if something still does not work.

Note: See TracTickets for help on using tickets.