Page 1 of 1

Tutorial: Scheduled recording Decklink SDI

Posted: Thu Dec 05, 2024 7:51 pm
by emcodem
OK, here my Christmas present to you guys!

So i use this in production for scheduled recording on a Decklink Quad.
Regarding reliability: FFMPEG does a pretty good job, we record up to 2x xdcamhd in paralell on a 6 core I5 processor, each stream takes about 2 cores. There was audio clicking in one of a few hundred recordings, i did set the power options of the machine to high performance, cpu state always 100%, this seemed to fix the issue.
emcodem_webui_decklink_recording_.json
(24.94 KiB) Downloaded 76 times
Note, that for mp4 recording, we set the codec to intel quicksync hardware encoding. If you want to change that e.g. because you do not have quicksync, in the populate variables after the encode processors you find a line like:

Code: Select all

$regreplace("%s_encode_config%",'libx264', 'h264_qsv')
To change it, you can replace the term h264_qsv by either h264_nvenc to use nvidia or libx264 to use cpu.

This workflow uses webui Variables, explained here:
https://www.youtube.com/watch?v=aPlX4yXPdYY&t=8s

If you have a different Decklink Card that has different Channel names, you will need to go to the ffastrans admin Symbol in webint -> Variables and edit the s_webui_decklink_card variable, e.g. change the select options it shows. Another way, shortcut is to "hardcode" the name of your decklink in the first populate variables processor.

For using this workflow, you can set up a scheduled job as shown in the screenshot for example.
decklink_webui.png
decklink_webui.png (125.86 KiB) Viewed 1105 times

This could be much simpler to just showcase simple decklink recording but it would not be fun that way ;-)

Enjoy and let me know any questions.

Re: Tutorial: Scheduled recording Decklink SDI

Posted: Fri Dec 06, 2024 9:51 am
by DCCentR
emcodem,

Wow cool, thanks ;)
Looks like ff was unable to correctly import this json due to a syntax error here:
Снимок экрана 2024-12-06 123910.png
Снимок экрана 2024-12-06 123910.png (2.13 KiB) Viewed 1065 times
Снимок экрана 2024-12-06 115352.png
Снимок экрана 2024-12-06 115352.png (59.43 KiB) Viewed 1065 times
This "\" fixes it:
Снимок экрана 2024-12-06 125033.png
Снимок экрана 2024-12-06 125033.png (1.72 KiB) Viewed 1065 times

Re: Tutorial: Scheduled recording Decklink SDI

Posted: Fri Dec 06, 2024 10:55 am
by emcodem
Damn, thats because i replaced the path manually before uploading in the json.
Thanks a lot buddy, i corrected it in the original download link.

Re: Tutorial: Scheduled recording Decklink SDI

Posted: Sun Dec 08, 2024 11:05 pm
by FranceBB
-> Decklink 8K Pro PCI-Express Cards
-> Encodes XDCAM-50 files

That's emcodem hahaahahahaha

Jokes aside, I use the Blackmagic Decklink cards too (albeit a much older version) to capture analog supports the likes of 1 Inch Type C, U-Matic, BetaCAM etc which go through TBC (Time Based Correction) and then end up in the blackmagic decklink card and are losslessly saved locally as v210 video + PCM 24bit 48000Hz audio in an .avi container. FFAStrans then picks those up, does some heavy Avisynth filtering and then lastly re-encodes to XDCAM-50 (yes, I'm guilty of using XDCAM-50 too, but I'm not proud of it :P ).
It's been working reliably well over the years. :)