You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-06-14 22:15:12 +02:00
compat
doc
libavcodec
libavdevice
Makefile
alldevices.c
alsa.c
alsa.h
alsa_dec.c
alsa_enc.c
avdevice.c
avdevice.h
avdeviceres.rc
avfoundation.m
bktr.c
caca.c
decklink_common.cpp
decklink_common.h
decklink_common_c.h
decklink_dec.cpp
decklink_dec.h
decklink_dec_c.c
decklink_enc.cpp
decklink_enc.h
decklink_enc_c.c
dshow.c
dshow_capture.h
dshow_common.c
dshow_crossbar.c
dshow_enummediatypes.c
dshow_enumpins.c
dshow_filter.c
dshow_pin.c
dv1394.c
dv1394.h
fbdev_common.c
fbdev_common.h
fbdev_dec.c
fbdev_enc.c
file_open.c
gdigrab.c
iec61883.c
internal.h
jack.c
lavfi.c
libavdevice.v
libcdio.c
libdc1394.c
openal-dec.c
opengl_enc.c
opengl_enc_shaders.h
oss.c
oss.h
oss_dec.c
oss_enc.c
pulse_audio_common.c
pulse_audio_common.h
pulse_audio_dec.c
pulse_audio_enc.c
qtkit.m
sdl.c
sndio.c
sndio.h
sndio_dec.c
sndio_enc.c
timefilter.c
timefilter.h
utils.c
v4l.c
v4l2-common.c
v4l2-common.h
v4l2.c
v4l2enc.c
version.h
vfwcap.c
x11grab.c
xcbgrab.c
xv.c
libavfilter
libavformat
libavresample
libavutil
libpostproc
libswresample
libswscale
presets
tests
tools
.gitattributes
.gitignore
COPYING.GPLv2
COPYING.GPLv3
COPYING.LGPLv2.1
COPYING.LGPLv3
CREDITS
Changelog
INSTALL.md
LICENSE.md
MAINTAINERS
Makefile
README.md
RELEASE
arch.mak
cmdutils.c
cmdutils.h
cmdutils_common_opts.h
cmdutils_opencl.c
common.mak
configure
ffmpeg.c
ffmpeg.h
ffmpeg_dxva2.c
ffmpeg_filter.c
ffmpeg_opt.c
ffmpeg_vda.c
ffmpeg_vdpau.c
ffplay.c
ffprobe.c
ffserver.c
ffserver_config.c
ffserver_config.h
library.mak
version.sh
Example to capture video clip at 1080i50 10 bit: ffmpeg -bm_v210 1 -f decklink -i 'UltraStudio Mini Recorder@11' -acodec copy -vcodec copy output.avi Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
56 lines
2.1 KiB
C
56 lines
2.1 KiB
C
/*
|
|
* Blackmagic DeckLink output
|
|
* Copyright (c) 2014 Deti Fliegl
|
|
*
|
|
* This file is part of FFmpeg.
|
|
*
|
|
* FFmpeg is free software; you can redistribute it and/or
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
* License as published by the Free Software Foundation; either
|
|
* version 2.1 of the License, or (at your option) any later version.
|
|
*
|
|
* FFmpeg is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
* Lesser General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
* License along with FFmpeg; if not, write to the Free Software
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
|
*/
|
|
|
|
#include "libavformat/avformat.h"
|
|
#include "libavutil/opt.h"
|
|
|
|
#include "decklink_common_c.h"
|
|
#include "decklink_dec.h"
|
|
|
|
#define OFFSET(x) offsetof(struct decklink_cctx, x)
|
|
#define DEC AV_OPT_FLAG_DECODING_PARAM
|
|
|
|
static const AVOption options[] = {
|
|
{ "list_devices", "list available devices" , OFFSET(list_devices), AV_OPT_TYPE_INT , { .i64 = 0 }, 0, 1, DEC },
|
|
{ "list_formats", "list supported formats" , OFFSET(list_formats), AV_OPT_TYPE_INT , { .i64 = 0 }, 0, 1, DEC },
|
|
{ "bm_v210", "v210 10 bit per channel" , OFFSET(v210), AV_OPT_TYPE_INT , { .i64 = 0 }, 0, 1, DEC },
|
|
{ NULL },
|
|
};
|
|
|
|
static const AVClass decklink_demuxer_class = {
|
|
.class_name = "Blackmagic DeckLink demuxer",
|
|
.item_name = av_default_item_name,
|
|
.option = options,
|
|
.version = LIBAVUTIL_VERSION_INT,
|
|
.category = AV_CLASS_CATEGORY_DEVICE_VIDEO_INPUT,
|
|
};
|
|
|
|
AVInputFormat ff_decklink_demuxer = {
|
|
.name = "decklink",
|
|
.long_name = NULL_IF_CONFIG_SMALL("Blackmagic DeckLink input"),
|
|
.flags = AVFMT_NOFILE | AVFMT_RAWPICTURE,
|
|
.priv_class = &decklink_demuxer_class,
|
|
.priv_data_size = sizeof(struct decklink_cctx),
|
|
.read_header = ff_decklink_read_header,
|
|
.read_packet = ff_decklink_read_packet,
|
|
.read_close = ff_decklink_read_close,
|
|
};
|