[FFmpeg-user] Unsync between Audio and Video and other Issues

Rudolf Schmidt info at rudolfschmidt.com
Sat Sep 21 07:33:30 EEST 2019


Hi,

I try to find a way to record my screen with income (mic) and outcome
audio to record video calls with people

I use the script:

FILE="screencast$(date +%Y%m%d%H%M%S)"
FFREPORT=file=/home/rs/screencasts/$FILE.log:level=32 \
ffmpeg \
    -f pulse -ac 2 -ar 48000 -i
alsa_output.pci-0000_0d_00.3.analog-stereo.monitor \
    -f pulse -ac 2 -ar 48000 -i alsa_input.pci-0000_0d_00.3.analog-stereo \
    -filter_complex amix=inputs=2 \
    -thread_queue_size 65536 -f x11grab -s $(xdpyinfo|grep
dimensions|awk '{print $2}') -framerate 30 -r 30 -i :0.0 \
    -vcodec libx264 -preset veryfast -crf 18 -pix_fmt yuv420p \
    -acodec libmp3lame -ac 2 -ar 48000 \
    ~/screencasts/$FILE.mp4


Beside some weird warnings my major problem is that my audio sometimes
become corrupt. After 1-2 minutes its start to be faster, but not
always, depending on the length of the video file, but even it does not
get shorter or kind of "compressed" it gets unsynced with the video.
Sometimes even the video itself or the record of the screen becomes
faster and it also lead to unsync with the audio. I do not know what is
going on, its more than weird, tried to figure it out with people from
#ffmpeg at freenode but not able to get to the bottom of the ground,
assumed it could be a problem with pulseaudio.

-- 
Best Regards,
Mit freundlichen Grüßen,
Rudolf Schmidt

-------------- next part --------------
A non-text attachment was scrubbed...
Name: screencast20190921062700.log
Type: text/x-log
Size: 30395 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-user/attachments/20190921/dc5dd0cb/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-user/attachments/20190921/dc5dd0cb/attachment.sig>


More information about the ffmpeg-user mailing list