Opened 6 years ago

Last modified 3 years ago

#4703 new defect

Audio cut off in screencast

Reported by: hendry Owned by:
Priority: normal Component: undetermined
Version: unspecified Keywords:
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no


Summary of the bug: Last second or two of audio is cut off during a screencast:

How to reproduce:

% ffmpeg -v warning -f x11grab -video_size 1920x1080 -i :0 -f alsa -i pulse -acodec pcm_s16le -c:v libx264 /tmp/cutoff.mkv &>> /tmp/r2d2.log &
ffmpeg version 2.7.1
built on Archlinux

When i kill ffmpeg during a screencast, my voice is cut off
Here is the log

Regular kill and kill -INT $pid has the same problem.

Source of my script:

Change History (8)

comment:1 Changed 6 years ago by hendry

I can confirm the bug with the pulse audio line from ffmpeg -video_size 1024x768 -framerate 25 -f x11grab -i :0.0+100,200 -f pulse -ac 2 -i default output.mkv

comment:2 Changed 6 years ago by cehoyos

First steps to make this a valid ticket are to test current FFmpeg git head and provide the command line that allows to reproduce the issue together with the complete, uncut console output here on the bug tracker.
Is the issue also reproducible if you press "q"?

comment:3 Changed 6 years ago by hendry

I just built from git head ffmpeg version N-73452-g80e4238 and the problem exists.

Yes, I pressed "q" to stop the video after saying five.

comment:4 Changed 6 years ago by richardpl

Does it also happens if you only record audio without video?

comment:5 Changed 6 years ago by hendry

It does not happen when I record just with audio: with ffmpeg -f pulse -i default sound-only.mkv.

I believe this to be a fairly recent (last two months?) regression, but I don't have time to bisect atm.

comment:6 Changed 5 years ago by copypaste

This is happening to me as well. The last few seconds of my voice get cut off. Arch Linux as well.

comment:7 Changed 4 years ago by richardpl

Happens also on Fedora 23, as reported by rhn on irc.

comment:8 Changed 3 years ago by zarac

Same on Arch x86_64 Linux 4.12.8.

Note: See TracTickets for help on using tickets.