Log in

View Full Version : Batch Script HDMI Capture


Zeranoe
16th December 2012, 01:58
I would like to create a script that captures from my Blackmagic Intensity Pro for X seconds. Basscially, double click on a .bat file and it will record the input that the card is receiving for X seconds.

So far I tried creating a Graphedit GRF file and feed that to an Avisynth file, and then finally feed that avs file into FFmpeg.

That worked, for video, but for the audio I ran into problems.

The WDM driver for the card keeps both video and audio capture in the same filter. So I was unable to record the audio because Avisynth requires two inputs for GRF files. The driver or filter cannot be open twice at the same time, so the video OR audio was all I could capture at one time.

I wish Avisynth could accept both audio and video input from the same GRF file.

Does anyone know a possible workaround for this, or have any ideas how I could do this?

Blue_MiSfit
17th December 2012, 00:30
I'd suggest skipping Avisynth, and looking into doing DirectShow encoding. I'm no expert, but I'm fairly certain this is how professional applications do things.

Zeranoe
17th December 2012, 00:39
Do you know of an application that can directly record directshow capture devices?

I can capture with Blackmagic's software and with Adobe Premiere Pro, but I can't script those applications.

I would prefer something that is CLI.

filler56789
17th December 2012, 03:15
I wish Avisynth could accept both audio and video input from the same GRF file.

I think you can use 2 different GRF files in the same AVS script.
GRF #1 = audio-only, GRF #2 = video-only,
then do an AudioDub().

Zeranoe
17th December 2012, 03:45
I think you can use 2 different GRF files in the same AVS script.
GRF #1 = audio-only, GRF #2 = video-only,
then do an AudioDub().

I need the AVS script to read both video and audio from the same GRF file. Otherwise the driver reports as busy and it wont allow to be opened twice.

Blue_MiSfit
17th December 2012, 03:54
direct264 or VLC maybe?

Zeranoe
17th December 2012, 03:59
I tired VLC and it is unable to read DirectShow audio support from a video source.

I think Direct264 only records video input right? I would be unable to record the audio then if the video is being record at that time.

filler56789
17th December 2012, 04:07
Now I see, apologies for the misunderstanding.

pandy
18th December 2012, 11:25
What with ffmpeg? Two independent instances as 2 separate threads - one for audio and second for video?