[FFmpeg-trac] #10114(ffmpeg:new): audio sync lags while recording x11grab

FFmpeg trac at avcodec.org
Wed Dec 21 07:56:57 EET 2022


#10114: audio sync lags while recording x11grab
---------------------------------+---------------------------------------
             Reporter:  betlog   |                     Type:  defect
               Status:  new      |                 Priority:  normal
            Component:  ffmpeg   |                  Version:  unspecified
             Keywords:  x11grab  |               Blocked By:
             Blocking:           |  Reproduced by developer:  0
Analyzed by developer:  0        |
---------------------------------+---------------------------------------
 Summary of the bug:
 When recording desktop using x11grab the audio is several seconds behind
 the video
 -effects Kubuntu 22.04
 -does not effect Kubuntu 20.04
 How to reproduce:
 {{{
 ffmpeg -v 9 -loglevel 99 \
          -hwaccel cuvid \
          -c:v h264_cuvid \
          -f pulse \
                  -acodec pcm_f32le  \
                  -probesize 32 \
                  -i $(pactl list sources short|grep
 'analog.*stereo.*monitor'|awk '{print $2}') \
          -f x11grab \
                  -framerate 60.00 \
                  -video_size 1920x1080 \
                  -i :0.0+0,0 \
                  -g 60 \
          -map 1:v \
          -map 0:a \
          -c:v h264_nvenc -qp 18 \
          -c:a aac -ac 2 -channel_layout stereo -b:a 128k -r:a 48000  \
          "/media/user/video12/$(date +%Y-%m-%d--%H-%M-%S)_TEST.mkv"


 ffmpeg version 4.4.2-0ubuntu0.22.04.1 Copyright (c) 2000-2021 the FFmpeg
 developers
   built with gcc 11 (Ubuntu 11.2.0-19ubuntu1)
 }}}
-- 
Ticket URL: <https://trac.ffmpeg.org/ticket/10114>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list