MaartenBaert / ssr

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

SSR "Cannot Write Frame to Muxer" on certain instances #876

Open domo5581 opened 3 years ago

domo5581 commented 3 years ago
uname -r
5.10.19-1-MANJARO
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

When recording Minecraft, after about the 10 minutes 42-second mark, ssr outputs this error:

2021-03-20 16:29:22.287 (E) [Muxer::MuxerThread] Error: Can't write frame to muxer!
2021-03-20 16:29:22.430 (E) [Muxer::MuxerThread] Exception 'LibavException' in muxer thread.

When I try to record something else, like my desktop, it works perfectly fine, being able to go over 15 minutes with no sign of this problem. Could anyone help? I am recording as a MKV H.264. This same issue happens in MP4 too.

MaartenBaert commented 3 years ago

Did you get any other warnings or system messages before that error?

The error usually indicates that SSR was unable to write the video data to the output file, which can happen for example if your hard disk is full, or if you are using a file system with a 2GB file size limitation and you have hit the maximum file size.

domo5581 commented 3 years ago

This should not be an issue, since I am writing to a USB 3.0 Stick with more than 12GB free. The Recording hits 4gb before stopping.

domo5581 commented 3 years ago

I am using Dolphin on Manjaro with a drive formatted in vFAT

MaartenBaert commented 3 years ago

vFAT has a 4GB file size limit. You should use a different file system if you need larger files.

domo5581 commented 3 years ago

Oh ok. Is there a way to recduce the filesize of recordings and stll record 15-20 minutes of video without sacrificing quality?

memeruiz commented 1 year ago

This happens to me, but I managed to narrow more down the conditions when this happens:

The problem goes away when recording an entire screen.

In my case the error is as follows:

[Muxer::MuxerThread] Error: Can't write frame to muxer! [matroska @ 0x55dd6e223740] pts (9167) < dts (9233) in stream 0 [Muxer::MuxerThread] Exception 'LibavException' in muxer thread.

There is no problem when avoiding nvenc encoding.

Maybe this helps to find the bug.

Info: simplescreenrecorder --version SimpleScreenRecorder 0.4.4 Compiled with GCC 11.3.0 Qt: header 5.15.4, lib 5.15.2 libavformat: header 59.16.100, lib 59.27.100 libavcodec: header 59.18.100, lib 59.37.100 libavutil: header 57.17.100, lib 57.28.100 libswscale: header 6.4.100, lib 6.7.100

Other possibly related issues:

535

799