[FFmpeg-devel] Blackmagic DeckLink indev

Richard Buteau rbuteau at rgbnetworks.com
Fri Jun 15 21:26:35 CEST 2012



> -----Original Message-----
> From: ffmpeg-devel-bounces at ffmpeg.org [mailto:ffmpeg-devel-
> bounces at ffmpeg.org] On Behalf Of Dave Rice
> Sent: Friday, June 15, 2012 1:34 PM
> To: FFmpeg development discussions and patches
> Subject: Re: [FFmpeg-devel] Blackmagic DeckLink indev
> 
> Hey joolz,
> I've added a bunch of blackmagic cards to my setup and want to try your patch.
> Is the attachment from your March 29, 2012 still the most recent. I looked for
> your patches online but couldn't find them hosted anywhere.
> Dave

Dave, When do you plan to use it?

Joolz sent me his patch last month I have been added features since then . (format auto detection,  port selection, and card selection and fix few minor bugs in error case)
I have a couple thing I want to add before I submit it back is the sdi audio channel map and I would like to try to get the card to pass AC3 over the embedded audio if possible.

I thinking of doing the following
Add -sdi_audio_channel_map or -sdi_acm for short
The command would use a line of a string of hex character with a separator for the codec name
I am thinking of have 
a command like this -sdi_acm 012345 -sdi_acm 67 -sdi_acm 89 -sdi_acm AB -sdi_acm CD -sdi_acm EF

this would map :
channels 1-6 in respective order to ffmpeg input stream 1
channels 7-8 in respective order to ffmpeg input stream 2
channels 9-10 in respective order to ffmpeg input stream 4
channels 11-12 in respective order to ffmpeg input stream 5
channels 13-14 in respective order to ffmpeg input stream 5
channels 15-16 in respective order to ffmpeg input stream 6

As example if you need to swap two channel (left by the right)
you would just need to flip the numbers. -sdi_acm 012345 would become -sdi_acm 102345

if you don't want to use hex we could use actual channel number but we would need separator.

For non pcm embedded audio:
I could add codec for decode -sdi_acm 012345:PCM or  -sdi_acm 012345:AC3, this would default to PCM as it seems more common.
(assuming we can get a software autodetection mode) We could -sdi_acm 012345:auto  or make that the default.
Or we could use a separate command like -acodec for the codecs but I am not sure how that would behave with the indev as it's not a codec.
I am not sure any of the non-pcm audio would work with decklink cards. Is there anyone that tried that?
Richard

> 
> On Mar 29, 2012, at 5:27 AM, JULIAN GARDNER wrote:
> 
> > Code from the Blackmagic/Decklink WIP
> >
> > As posted before, problem is that one a 1080i50 it works, but on a 720p59.94 i
> get 0.06 fps as the frame rate.
> >
> > Ive added a couple of command
> >
> > To get the correct input format
> > ffmpeg -f decklink -list_formats 1 -i ""
> >
> > then from this list
> > ffmpeg -f decklink -input_format xx -i "" .......
> >
> >
> joolz<declink><decklink.cc>__________________________________________
> _____
> > ffmpeg-devel mailing list
> > ffmpeg-devel at ffmpeg.org
> > http://ffmpeg.org/mailman/listinfo/ffmpeg-devel
> 
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-devel


More information about the ffmpeg-devel mailing list