sim0n00ps / OF-DL

C# console app to download all of the media from Onlyfans accounts with DRM video downloading support
672 stars 60 forks source link

FFmpeg failed to download Exception caught: Could not find file #466

Open oppppppay opened 1 month ago

oppppppay commented 1 month ago

I can only download photos but not videos. How can I solve this problem? Please help me. All are already the latest version

FFmpeg failed to download https://cdn3.onlyfans.com/dash/files/d/de/de671313d63ebbb8553ef83922d3def9/0ho4atqwrhddb3j6332ua.mpd Exception caught: Could not find file 'E:\OF\of1\jiniphee\Posts\Free\Videos\0ho4atqwrhddb3j6332ua_source.mp4'.

StackTrace: at System.IO.FileInfo.get_Length() at OF_DL.Helpers.DownloadHelper.DownloadDrmMedia(String user_agent, String policy, String signature, String kvp, String sess, String url, String decryptionKey, String folder, DateTime lastModified, Int64 media_id, String api_type, ProgressTask task, String customFileName, String filename, String path) at OF_DL.Helpers.DownloadHelper.DownloadPostDRMVideo(String policy, String signature, String kvp, String url, String pe, ProgressTask task, String filename

image

kaine1973 commented 1 month ago

Same here, don't know how to solve this problem.

截屏2024-07-15 16 57 46
melithine commented 1 month ago

Can you upgrade to the new release, change logging level to debug or verbose, and attach the log file?

kaine1973 commented 1 month ago

Can you upgrade to the new release, change logging level to debug or verbose, and attach the log file?

I am using the latest release. I changed loglevel to verbose. you can check the log: OFDL20240715.txt

melithine commented 1 month ago

This seems to be an access denied issue:

2024-07-15 17:06:52.510 +08:00 [ERR] ffmpeg version 6.1.1-essentials_build-www.gyan.dev Copyright (c) 2000-2023 the FFmpeg developers
...
[Snipped ffmpeg compilation details]
...
[https @ 000002f0524acd80] HTTP error 403 Forbidden
[in#0 @ 000002f0524ac640] Error opening input: Server returned 403 Forbidden (access denied)
Error opening input file https://cdn3.onlyfans.com/dash/files/1/1c/1c1d14c4b18885bf532c0485beb57615/0hen3egn05uf5w5vnmvv4.mpd.
Error opening input files: Server returned 403 Forbidden (access denied)

2024-07-15 17:06:52.511 +08:00 [ERR] Exception caught: Could not find file 'F:\OFDL\danielmoura\Posts\Free\Videos\0hen3egn05uf5w5vnmvv4_source.mp4'.

It can't find the file because ffmpeg got a 403 when requesting the DASH file from OnlyFans. We've seen this behavior before, but it was always unclear what was causing it. Hopefully the new logs will be able to shed further light on the cause of the issue. Tagging @sim0n00ps to take a look when he has some time.

sim0n00ps commented 1 month ago

I think we need to revisit where it generates the headers it passes to ffmpeg as 403 would indicate that the session info is malformed/incorrect

banjobbw commented 1 month ago

Having the same issue

dash/files/8/84/84f9fd016fc827a8ab550a2bca389901/0hmgb282we2ssvod43ua1.mpd
Exception caught: Could not find file 'Z:\111111111111111111111111\OFDLV1.7.68\__user_data__\sites\OnlyFans\dulcenalgass\Posts\Free\Videos\0hmgb282we2ssvod43ua1_source.mp4'.

                                                     StackTrace:    at System.IO.FileInfo.get_Length()
   at OF_DL.Helpers.DownloadHelper.DownloadDrmMedia(String user_agent, String policy, String signature, String kvp, String sess, String url, String decryptionKey, String folder, DateTime lastModified, Int64 media_id, String api_type, ProgressTask task, String customFileName, String filename, String path)
   at OF_DL.Helpers.DownloadHelper.DownloadPostDRMVideo(String policy, String signature, String kvp, String url, String                                                                      String api_type, ProgressTask task, String filename
Downloading 2741 Posts ----------------------------------------   4% users)
melithine commented 4 weeks ago

I consolidated all the various related issues into this thread so we can keep better track of it.

twist3dimages commented 2 weeks ago

Same error message with Verbose and Debug

Verbose:

image

Debug:

image
whoisty14 commented 2 weeks ago

I get this code based off the VPN location that I use

sim0n00ps commented 2 weeks ago

Same error message with Verbose and Debug

Verbose:

image

Debug:

image

Are you able to upload the log file, it should be in the logs folder

twist3dimages commented 2 weeks ago

OFDL20240809.zip

Weirdly, i saw someone's comment about using a VPN. I was able to download the posts with no problem when I wasn't using a VPN.

melithine commented 2 weeks ago

Onlyfans blocks some VPNs, so there's not much we can do about that.

melithine commented 2 weeks ago

Another thought for people affected by this... Try installing Docker Desktop from https://www.docker.com/products/docker-desktop/ and start it up.

Then open a Powershell window and run it like so: docker run -it -v /f/onlyfans/data/:/data -v /f/onlyfans/config/:/config ghcr.io/sim0n00ps/of-dl:latest

Adjust /f/onlyfans/config and /f/onlyfans/data to wherever you're storing the files. Mine are in F:/onlyfans/, so make sure the path is using forward slashes and you're not using a colon after the drive letter. The config folder should be wherever you have auth.json and the cdm directory, the data folder is wherever you want the files saved.

I'm curious if you still see the 403 issues under Docker.

dagr8boy commented 2 weeks ago

I wanted to add some context since I created #518. For me it looks like an error getting the PSSH (GetDRMMPDPSSH) and it's just one post from one creator that has DRM enabled; none of the recent posts from another creator that has DRM enabled caused this issue. I think if you added some error handling for individual posts/messages and not cause the app to exit, users could skip the offending item and move along.

bezaaas commented 1 week ago

I've noticed that on next runs, the script downloads these files without any issues.

Smackdab69 commented 5 days ago

I see some references to "DRM" here, I assume the offending videos have some additional protection hence why they're failing?

twist3dimages commented 1 day ago

Another thought for people affected by this... Try installing Docker Desktop from https://www.docker.com/products/docker-desktop/ and start it up.

Then open a Powershell window and run it like so: docker run -it -v /f/onlyfans/data/:/data -v /f/onlyfans/config/:/config ghcr.io/sim0n00ps/of-dl:latest

Adjust /f/onlyfans/config and /f/onlyfans/data to wherever you're storing the files. Mine are in F:/onlyfans/, so make sure the path is using forward slashes and you're not using a colon after the drive letter. The config folder should be wherever you have auth.json and the cdm directory, the data folder is wherever you want the files saved.

I'm curious if you still see the 403 issues under Docker.

Do you still want me to try? And do you want me to still be on the VPN? (Using Docker)

twist3dimages commented 1 day ago

I see some references to "DRM" here, I assume the offending videos have some additional protection hence why they're failing?

I have no issues with DRM personally. Just a few posts from one model