ammen99 / wf-recorder

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cannot send videos recordered with wf-recorder through FB Messenger

cpouldev opened this issue · comments

commented

Hi, thanks for the app!

As the title says, I can't send any videos through FB Messenger (browser & android). Tried already on 2 different machines.

Strangely, the only videos I can send are the very short ones (eg 2-6 sec). For larger ones, facebook's dev console threw 500 http error on upload.php network call. You can (maybe?) replicate it by trying to send a 30s or 1m video via browser.

Screencasts from a Gnome session using its native recorder can be uploaded without any issues.

The command I use is this one

wf-recorder -g "$(slurp)" -t -f ~/Videos/screen_$(date +%Y-%m-%d_%H-%M-%S).mp4

--

I checked past issues (#152) and the only thing that comes into my mind is the graceful termination of wf-recorder. Tried already the relevant PR but the issue still exists.

This is the only thing that keeps me back from using Sway as daily driver, any help will be deeply appreciated!

Not sure if related, but kdenlive refuses to load recording.mp4 created by wf-recorder:
screen_window_dom_12:17:41_

For kdenlive this makes no diff, same message.

commented

same for the messenger. Can't play the video on android either. Here is a sample video file

screen_2022-10-09_17-39-32.mp4

Perhaps this is the same as #175 and the -t option will help?

commented

I have the -t option already

[edit]
this video is not with the -t option (my bad, I uploaded the wrong video).

I just tried a new one with the -t option and I still cannot upload it / play it on mobile

@cpouldev if you can, try to build the #190 and see if it fixes your issues, I would recommend specifying -r 30/60 or whatever your desired framerate is.

commented

@Quackdoc thanks for your recommendation. I just built it and tried it but unfortunately the issue still persists.

If you have fb messenger, could you please try and send a full screen video (more than 40-50sec)? As I see it, the failing videos are bigger than 10MB and 30s+ long.

Or at least someone with fb messenger could try and replicate that issue

I dont have fb meseneger, another potential issue could be the odd resolution you can try doing the below command and testing it (if you use my build you will need to rebuild it since I had a woops in the filter syntax)

the below commands should force it to record to a very "generic" output video

--codec=libx264 -p preset=veryfast -D -r 30 -F scale=1920x1080

commented

Could you post another sample with -t or a build from master? As far as I can see, the only problem with your sample video is that it is yuv444p

wf-recorder used to ignore -x in the current release but has since been fixed (and -t removed because it's redundant) e751257

commented

Sorry I forgot about that issue till I updated wf-recorder today using the master branch and magically everything works as expected. No more errors. Either facebook fixed their uploader or wf-recorder, idk but it works now, without any flags.