# Issues in audio and video recording to files

**URL:** <https://discourse.gstreamer.org/t/issues-in-audio-and-video-recording-to-files/1433>\
**Category:** General Discussion\
**Created:** [April 22, 2024, 6:22pm UTC](https://discourse.gstreamer.org/t/issues-in-audio-and-video-recording-to-files/1433 "2024-04-22T18:22:27Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Joe](https://discourse.gstreamer.org/letter_avatar_proxy/v4/letter/j/b9e5f3/32.png) [@Joe](https://discourse.gstreamer.org/u/Joe)\
**Post date:** [April 22, 2024, 6:22pm UTC](https://discourse.gstreamer.org/t/issues-in-audio-and-video-recording-to-files/1433/1 "2024-04-22T18:22:27Z")

</div>

If x264enc and videoconvert with audio encoder(rtpg722depay+avdec\_g722) are applied in audio/video recording, no issues.

However, when x264env and videoconvert are replaced with vapostproc + vah264enc(hardware acceleration), video is ok, but the audio is very choppy. Any replacements for rtpg722depay+avdec\_g722 in va-api? Does audio encoding need hardware acceleration at the same time?

---

<div class="post-metadata">

**Author:** ![Joe](https://discourse.gstreamer.org/letter_avatar_proxy/v4/letter/j/b9e5f3/32.png) [@Joe](https://discourse.gstreamer.org/u/Joe)\
**Post date:** [April 22, 2024, 7:04pm UTC](https://discourse.gstreamer.org/t/issues-in-audio-and-video-recording-to-files/1433/2 "2024-04-22T19:04:27Z")

</div>

How to sync audio and video recording when video encoding is accelerated with va-api?
