MaartenBaert / ssr

SimpleScreenRecorder, a screen recorder for Linux
http://www.maartenbaert.be/simplescreenrecorder/
GNU General Public License v3.0
2.5k stars 287 forks source link

Sometimes happen that the recorded video start lagging (~2 frames per second) #873

Open slrslr opened 3 years ago

slrslr commented 3 years ago

Hello,

numerous times (i would guess maybe 2/5 times) when i have recorded video and then played it, i have found that after some time it start lagging and the playback is like 2 frames per second. Audio plays without problem.

$ uname -r 5.10.19-1-MANJARO (Linux)

$ simplescreenrecorder --version

SimpleScreenRecorder 0.4.3
Compiled with GCC 10.2.0
Qt: header 5.15.2, lib 5.15.2
libavformat: header 58.45.100, lib 58.45.100
libavcodec: header 58.91.100, lib 58.91.100
libavutil: header 56.51.100, lib 56.51.100
libswscale: header 5.7.100, lib 5.7.100

Lagged video properties:

General

Complete name                            : /file.mkv
Format                                   : Matroska
Format version                           : Version 4
File size                                : 205 MiB
Duration                                 : 1 h 57 min
Overall bit rate mode                    : Variable
Overall bit rate                         : 244 kb/s
Writing application                      : Lavf58.45.100
Writing library                          : Lavf58.45.100
ErrorDetectionType                       : Per level 1

Video
ID                                       : 1
Format                                   : VP8
Codec ID                                 : V_VP8
Duration                                 : 1 h 57 min
Bit rate                                 : 111 kb/s
Width                                    : 640 pixels
Height                                   : 480 pixels
Display aspect ratio                     : 4:3
Frame rate mode                          : Constant
Frame rate                               : 25.000 FPS
Color space                              : YUV
Compression mode                         : Lossy
Bits/(Pixel*Frame)                       : 0.015
Stream size                              : 93.5 MiB (46%)
Default                                  : Yes
Forced                                   : No
Color range                              : Limited
Color primaries                          : BT.709
Transfer characteristics                 : BT.709
Matrix coefficients                      : BT.709
DURATION                                 : 01:57:19,041000000

Audio
ID                                       : 2
Format                                   : Vorbis
Format settings, Floor                   : 1
Codec ID                                 : A_VORBIS
Duration                                 : 1 h 57 min
Bit rate mode                            : Variable
Bit rate                                 : 128 kb/s
Channel(s)                               : 2 channels
Sampling rate                            : 48.0 kHz
Compression mode                         : Lossy
Delay relative to video                  : -1 ms
Stream size                              : 107 MiB (52%)
Writing application                      : Lavc58.91.100
Writing library                          : libVorbis (Reducing Environment) (20200704 (Reducing Environment))
Default                                  : Yes
Forced                                   : No
DURATION                                 : 01:57:19,097000000

Screenshot_2021-03-17_23-33-45-2

Log shows:

[SimpleSynth::Init] Warning: Buffer size 2048 is not supported, using 3072 instead. This is not a problem.
[SimpleSynth::SynthThread] Synth thread started.
[MakeThreadHighPriority] Warning: Can't increase the thread priority.

Also when my disk was highly utilized the video had audio gaps (millisecond short no audio breaks).

Is there anything i can do to help discover the cause? Thank you

MaartenBaert commented 3 years ago

You are using VP8, which is a rather slow codec. Can you try with H.264 instead? You may need to install some extra packages if it is not available yet.