patrickmatte / scroll-capture

18 stars 5 forks source link

Error Generating Video #39

Closed ZOTUPsrl closed 1 month ago

ZOTUPsrl commented 5 months ago

Some website doesn't let me complete and download the video. Most of the website are done on Laravel

ZOTUPsrl commented 5 months ago

I see this: sample_video.webm: Invalid data found when processing input

FFMPEG_END

patrickmatte commented 5 months ago

Do you have any urls that you can share so I can try to reproduce this? Also, if you can copy and paste here the complete output, that could also be helpful. Thanks!

ZOTUPsrl commented 5 months ago

https://www.gfstudio.com Screenshot 2024-03-18 alle 17 14 38 Screenshot 2024-03-18 alle 17 14 55 Screenshot 2024-03-18 alle 17 14 49

patrickmatte commented 5 months ago

I tried your URL, the error shows up in the javascript console

Refused to load media from 'blob:https://www.gfstudio.com/5dca48ab-1062-4f08-9d8d-96120d2c4cf8' because it violates the following Content Security Policy directive: "default-src 'self'". Note that 'media-src' was not explicitly set, so 'default-src' is used as a fallback.

First time I see this error. I'm not sure how to fix it. I also see this other error in the console when I loaded your URL Error with Feature-Policy header: Some features are specified in both Feature-Policy and Permissions-Policy header: accelerometer, camera, geolocation, gyroscope, magnetometer, microphone, payment, usb. Values defined in Permissions-Policy header will be used.

Maybe it's those policy header on your server that are blocking the blob from loading. I don't know, I'm not very familiar with that kind of stuff, servers, content-security policies etc...

prowhiz commented 5 months ago

I have the same issue on this page: https://freedom.lightspuncreative.com In the console, this is the error I get:

image

prowhiz commented 5 months ago

I have the same issue on this page: https://freedom.lightspuncreative.com In the console, this is the error I get:

image

[UPDATE] I had been trying to capture on an incognito window (I'm using microsoft edge chromium Version 122.0.2365.92 (Official build) (64-bit))

Now I tried it on a regular window and the website was captured and video saved successfully

patrickmatte commented 5 months ago

@prowhiz Thanks for reporting this, I had never tried to use the extension inside an incognito window. At first I didn't even see the extension button, I had to go to the extension settings to manually enable the extension for incognito mode. And you are right, I'm afraid the video capture fails for ay website viewed inside an incognito window. I will need to investigate. It is a different issue from the one above so I created another issue issue. https://github.com/patrickmatte/scroll-capture/issues/42

patrickmatte commented 1 month ago

@ZOTUPsrl The issue with websites using strict content security policies is now fixed.