ffshare
ffshare copied to clipboard
Debugging FFShare, Error compressing media
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?
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
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?
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
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.
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.
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
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).
after the last update I haven't had it crash or error anymore