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

**URL:** <https://casparcgforum.org/t/how-to-capture-v4l2-video-alsa-audio-using-ffmpeg-producer/2093>\
**Category:** General\
**Tags:** amcp, howto, server\
**Created:** [July 30, 2019, 11:10pm UTC](https://casparcgforum.org/t/how-to-capture-v4l2-video-alsa-audio-using-ffmpeg-producer/2093 "2019-07-30T23:10:45Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kad3nce](https://casparcgforum.org/letter_avatar_proxy/v4/letter/k/b3f665/32.png) [@kad3nce](https://casparcgforum.org/u/kad3nce)\
**Post date:** [July 30, 2019, 11:10pm UTC](https://casparcgforum.org/t/how-to-capture-v4l2-video-alsa-audio-using-ffmpeg-producer/2093/1 "2019-07-30T23:10:45Z")

</div>

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!
