View Full Version : Decklink x264
leoenc
22nd September 2011, 09:54
Is there any way to run x264 as a DirectShow filter, to encode real-time from a Blackmagic Decklink card?
BTW, I noticed the Direct264 project but that's still a CLI x264.exe and not a filter I could use in GraphEdit.
LoRd_MuldeR
22nd September 2011, 11:17
I think Monogram has a DirectShow encoding filter based on x264 code:
http://blog.monogram.sk/janos/2008/11/27/monogram-x264-encoder-1010/
(However it looks like that one isn't updated frequently)
leoenc
22nd September 2011, 13:23
Thanks, I'll have a look.
Blue_MiSfit
23rd September 2011, 02:32
If you can get the card to work right in VFW, you can use VirtualDub :)
Ugly, but it does work :devil:
Derek
roozhou
23rd September 2011, 02:41
Hi leoenc,
How does your card work in directshow? Does it connect to the video renderer? If it does, you can use direct264 (http://forum.doom9.org/showthread.php?t=141441). Build the graph in graphedit, keep the video renderer, make sure it outputs YV12 or NV12, and save the graph to a .grf file. Then encode the .grf file with x264.exe.
leoenc
23rd September 2011, 07:37
@Blue_MiSfit,
But then I'm forced to put the x264 output in an AVI container, right?
@roozhou,
Decklink comes with DS filters for video and audio captures. It connects to the video renderer.
Do you mean capturing and then encoding, in 2 separate processes? Because that is what I'm currently doing.
I would like to encode the incoming stream in real-time.
nm
23rd September 2011, 10:05
@Blue_MiSfit,
But then I'm forced to put the x264 output in an AVI container, right?
x264vfw can write the output directly to MKV and MP4 files.
Decklink comes with DS filters for video and audio captures. It connects to the video renderer.
Do you mean capturing and then encoding, in 2 separate processes?
No, roozhou means real-time encoding with a defined graph.
Blue_MiSfit
24th September 2011, 02:50
@leoenc: as nm says, x264vfw has some nice hackery that lets it output just a placeholder avi, and use its own output modules to write mkv or mp4. I think it does other formats too, like elementary streams, flv, etc...
Derek
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.