How to capture V4l2 video + ALSA audio using FFMPEG producer?

howto
amcp
server

#1

Greetings! I am attempting to capture audio+video from an AJA USB capture device on Ubuntu 18.04 with Caspar 2.2.

I read through all the other threads on this forum which mention ALSA, and haven’t found any examples to accomplish this.

With the below ffmpeg command, I am able to write out an MP4 file containing both video and audio coming from the AJA capture device:

ffmpeg -thread_queue_size 512 -f v4l2 -i /dev/video0 -thread_queue_size 1024 -f alsa -ac 2 -i hw:1,0 -force_key_frames 00:00:00.000 -r 29.97 -acodec libfdk_aac -b:a 128k -vf format=yuv420p -vcodec libx264 capture-test.mp4

Aside from the outputting to MP4 portion of the command (I realize that would be handled by a Caspar consumer), how would one translate the above to an equivalent FFMPEG Producer AMCP command? Is it even possible?

Thanks in advance for any direction or guidance!