ffshare icon indicating copy to clipboard operation
ffshare copied to clipboard

Debugging FFShare, Error compressing media

Open EmiliaTheGoddess opened this issue 2 years ago • 8 comments

Sharing a media to FFShare causes it to give an error(Error compressing media). Sharing it a second time works for some reason. How do I get debug logs?

EmiliaTheGoddess avatar Oct 27 '22 05:10 EmiliaTheGoddess

yea I am pretty sure this is due to files that are too short. I have tested this extensively and it only gets errors when a file is too short, because it is setting the buffer and the bitrate to massive sizes, and crashes it.

When the file is longer, the bitrate and buffers drop, and the ffshare never crashes. my assumption anyway, at least on my phone this is the case, I just leave the video running for no reason if I need to share it and I can size it down after it's a minute long

G2G2G2G avatar Nov 02 '22 21:11 G2G2G2G

yea I am pretty sure this is due to files that are too short. I have tested this extensively and it only gets errors when a file is too short, because it is setting the buffer and the bitrate to massive sizes, and crashes it.

Can confirm, just tried it with 3 second and 30 second videos. 30 seconds work fine but 3 crashes. Maybe a feature like creating custom profiles for video lengths would help?

EmiliaTheGoddess avatar Nov 03 '22 04:11 EmiliaTheGoddess

I also forgot about the resolution (was just messing with it more) for me, SOME videos work when setting the max res to 480p, so that doesn't change the bit rate.. but it does change several other aspects of encoding.

perhaps the crash is related to resolution * bitrate being too high for something RAM related? not sure

G2G2G2G avatar Nov 03 '22 07:11 G2G2G2G

It seems arbitrary which combinations work. I was only able to get this 30mb video to work with no filesize limit and 1080p resolution. It would be great if we could see ffmpeg's output.

sevmonster avatar Nov 20 '22 21:11 sevmonster

Happens to me too with a 3 minutes long video 1.2 GiB in size (Android screen record) when compressing to anything beyond 360p cr 30 or 480p cr 40.

tsilvs avatar Nov 22 '22 19:11 tsilvs

For some reason 480p and 1080p work but 720p doesn't (crf 28, video is about 15s long)

edit: when it doesn't work it doesn't even after many tries

hhirtz avatar Dec 08 '22 10:12 hhirtz

For an 11s-long video, I fixed the problem by just setting a maximum size (previously set to "Unlimited", the default), to 50MB. The original video is 61MB (3840x2160, recorded from phone's camera).

Reylak avatar Jan 09 '23 09:01 Reylak

after the last update I haven't had it crash or error anymore

G2G2G2G avatar Jan 14 '23 23:01 G2G2G2G