[FFmpeg-devel] Decklink question
ffmpeg at dx9s.net
ffmpeg at dx9s.net
Fri Sep 29 05:22:04 EEST 2017
> I will continue to do testing..
ffmpeg -format_code Hp59 -f decklink -video_input hdmi -audio_input
embedded -raw_format argb -i 'DeckLink Studio 4K' -acodec pcm_s16le
-vcodec dnxhd -vf scale=1920x1080,fps=60000/1001,format=yuv422p10 -b:v
440M out.mov
(mediainfo dump):
General
Complete name : out.mov
Format : MPEG-4
Format profile : QuickTime
Codec ID : qt 0000.02 (qt )
File size : 2.75 GiB
Duration : 53 s 487 ms
Overall bit rate mode : Constant
Overall bit rate : 442 Mb/s
Writing application : Lavf57.82.102
Video
ID : 1
Format : VC-3
Format version : Version 1
Format profile : HD at HQX
Codec ID : AVdn
Codec ID/Info : Avid DNxHD
Duration : 53 s 487 ms
Bit rate mode : Constant
Bit rate : 440 Mb/s
Width : 1 920 pixels
Height : 1 080 pixels
Display aspect ratio : 16:9
Frame rate mode : Constant
Frame rate : 59.940 (60000/1001) FPS
Color space : YUV
Chroma subsampling : 4:2:2
Bit depth : 10 bits
Scan type : Progressive
Bits/(Pixel*Frame) : 3.540
Stream size : 2.74 GiB (100%)
Language : English
Audio
ID : 2
Format : PCM
Format settings : Little / Signed
Format settings, Endianness : Little
Format settings, Sign : Signed
Codec ID : sowt
Duration : 53 s 487 ms
Bit rate mode : Constant
Bit rate : 1 536 kb/s
Channel(s) : 2 channels
Channel positions : Front: L R
Sampling rate : 48.0 kHz
Bit depth : 16 bits
Stream size : 9.79 MiB (0%)
Language : English
Default : Yes
Alternate group : 1
This works and captures full range (data levels, but the captured data
happens to be video levels 64-940) to the output file and the out.mov
file looks good/clean. Not sure how to flag (metadata) output color
space and levels, but can always force it in most programs (KDEnlive,
Resolve).
... audio (16 bits, don't see option for 24-bits) .. probably will look
though code sometime a week out and see out the reference code from BMD
gets 24-bits and (if I can figure it out) look into seeing if it can be
added with a patch. Sometimes the audio is heard during capture via the
capture output (but seems to always be captured), so the audio code
needs reviewing in any case.
On a side note: SDI supports data levels 0-1023 but the first 4 and last
for color values (0-3 1020-1023 are reserved) whereas the full range can
be used in HDMI. I am curious as to what people know about this?
Assuming any converter will clip the color values.
--Doug (dx9s)
(sorry too wordy again)
More information about the ffmpeg-devel
mailing list