Giter VIP home page Giter VIP logo

snapcamerapreservation's Introduction

January 15th, 2024 Update

It's been a little over a year now since this project got started; when I first set off to develop this, I only thought a few hundred people would be interested; as of my last count, we had over 1 million unique users end up patching and using this project/server in some way. When I first built this, we were in a bit of a rush as the servers were shutting down, and unfortunately for me, I was sick with the flu at the time. So the solution put in place for Windows was good, but the MacOS implementation could have been better if I had more time to research. So the update to this project today brings a better solution to MacOS users, which should overall be easier for users and should be able to last for as long as MacOS can run the Snap Camera application.

I've recently been coding an update to this entire project that will make setup for all users to configure and setup, as well as bring new and old features back to the application. I have been live-streaming some of the developments on my Twitch channel. I'll share more info here and update the images in the Snap Camera app as I make progress. I do plan to have some features that require payment in the new app, as I have spent much of my time and resources on this project in the last year, and overall, it has cost me more than I have received from those who have tipped. While tipping is not required, if you received support from me, made a living, or just want to help support a developer making cool stuff, please consider tipping at one of these links. http://ko-fi.com/jaku, http://paypal.me/jaku, http://venmo.com/thejaku, and http://cash.app/thejaku. If you are unable to tip, that is okay too! Just remember, you can always follow me on https://twitter.com/jaku or https://twitch.tv/jaku to show support as well. Thank you.

Many MacOS users who have had their Snap Camera working since last year with my patch will break in the next few days, so be sure to follow the newly posted MacOS instructions below to get started. These new steps should work with any version of the application on MacOS. If you do have issues, though, please create a ticket here, and I will try to help.

Notice

As of January 26th, 2023, the domain Snap Camera normally uses is now offline. We will not be able to recover any lenses that are missing, please do not create issues looking for lenses or message me about it. If I find a way to bring the missing lenses I will make an update, but as of now, we do not have the ability to do this.

Installer

If you do not have 1.21.0 installed for Windows, you can search for the installer, be careful though some installers may have extra software packed in with them. You can check the installer is the original one from Snap Camera by uploading your installer to https://emn178.github.io/online-tools/md5_checksum.html. If you get an MD5 of anything other than ec0816368314db8a35ddf06784ffadfe I recommend finding a site with the installer.

SnapCameraPreservation

The purpose of this project is to allow users to still use and find snap chat lenses with the snap camera application after the Jan 25th, 2023 shutdown.

This project uses a modified version of the 1.21.0 version of Snap Chat for Windows. Be sure to install that one before following the instructions on this page.

Instructions for PC

Head over to https://snapchatreverse.jaku.tv/snap/ and make sure you have 1.19.0 or 1.21.0 installed. Provide the site with your 1.19.0 or 1.21.0 version of "Snap Camera.exe" located at the default install location of "C:\Program Files\Snap Inc\Snap Camera". Do not patch the installer.

Make sure the correct patch file for your version is selected on the site before applying the patch.

After applying the patch, you NEED to replace the original "Snap Camera.exe" file with the newly created patched file, you will need to remove/rename the original file and then rename the patched file to "Snap Camera.exe" when neither one is running. Check Task Manager to kill the original Snap Camera process to ensure this goes smoothly.

Open a folder to "C:\Program Files\Snap Inc\Snap Camera", find the same "Snap Camera" or "Snap Camera.exe" file you used on the website, rename it to "Snap Camera - org", and now take the downloaded patched file and put it in this folder. Rename the patched file to just be "Snap Camera" or "Snap Camera.exe" if your original file had the .exe do not add the .exe if you didn't already have it.

Now you can run the file from there, and everything should be working as expected.

If you have issues, make sure you don't have any Adblock or things blocking the patch site and that you are patching the correct version. Additionally, make sure that the original Snap Camera application is stopped and not running at all. I recommend checking your task manager, searching for "Snap Camera" and closing it there to be sure. If it is running, you will not be able to replace its file with mine.

I cannot host the EXE due to copyright, but I can patch it if you provide the original exe.

You'll know you are communicating with my server because a new category will be listed in the app called "Jaku Snap Backup".

If you see the above, go ahead and click on each of your saved lenses and activate them once to ensure they are backed up. After that, you are free to sit back and relax.

Instructions for Mac 2024 and beyond

We changed how we handle the MacOS setup for Snap Camera, using terminal to download and run a single script file, this will handle the setup for everything. You will no longer need to worry about the certificate from expiring as we are patching the application similar to how we do on Windows.

Simply open up Terminal on your Mac; if you are not sure how to do this, you can follow these steps from Apple. https://support.apple.com/guide/terminal/open-or-quit-terminal-apd5265185d-f365-44cb-8b09-71a064a42125

Once you have Terminal open, copy and paste the following command in, exactly as it is typed here.

One thing to note: after pasting the line in and hitting enter, it will ask for your password. You will not see any indication that you are typing it in. You will get a password error if it is incorrect; just try again.

sudo /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/jaku/SnapCameraPreservation/main/mac.sh)"

After about a minute, it should complete, and you can now open the application. You should be good to go from this point.

Unlock Lenses?

The below will no longer work now that they shut down the servers.

Since starting this project, I learned that some lenses are not available in the search of Snap Camera and instead must be directly searched for by their URL in the search box. I'm happy to report that these also work on this project, and as an extra bonus I made it so that you can use links like https://lens.snapchat.com/81f476238cf84615ba349efe82b36c27 instead of the https://www.snapchat.com/unlock/?type=SNAPCODE&uuid=81f476238cf84615ba349efe82b36c27&metadata=01 style links.

The above will no longer work now that they shut down the servers.

How does this work?

I've modified the Snap Camera.exe (for Windows) to use my servers instead of the Snap Chat servers. This was done with a hex editor, and 2 modifications were made. Instead of communicating with studio-app.snapchat.com it now communicates with snapchatreverse.jaku.tv.For Mac users, we aren't changing the host but instead telling it that the host's IP is something else and installing a self-signed certificate. By doing so my server then communicates to the Snap servers to get the lens data as if you were accessing it directly and downloads the lenses to an S3 bucket on Amazon.

I then wrote a server that relays the information from the camera app to the Snap Camera servers (for now), which downloads the lenses separately and communicates back to the app in the way it expects.

Where is the code?

The server code can be found in the server folder. You can see how the server worked by relaying the information from the Snap Chat servers when the servers were online. I also created a reference folder that contains all the known endpoints and their expected responses.

Who are you, and why are you doing this?

I am Jaku. If you're familiar with the software on Twitch called Crowd Control, then you're already familiar with some of my work as I run the company behind that. Or maybe you were an Animal Crossing fan and played in 2020 and used https://turnip.exchange, I, along with another friend (Ross), built that. You can find more about me at https://about.me/jaku, but overall I just like to build things and have been building things for Twitch streamers, gamers, and others for over seven years now. I have a background that allows for this stuff, and I enjoy working on them.

I have more questions or comments.

Feel free to submit an issue on Github with questions or message me on Twitter at https://twitter.com/jaku, but please be sure to read this page first as I cannot help with recovering missing lenses.

snapcamerapreservation's People

Contributors

erjanmx avatar jaku avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

snapcamerapreservation's Issues

Changing the Camera Name "Snap Camera"

Hi,

I'm looking into changing the driver name of snap camera to another name
it seems to be working changing in registry editor, but the application does not export video correctly,
also when I changed the camera name, in device manager > cameras, "Snap Camera" kept its name without changing

what am I missing?
any information would be helpful, I really need to change its name since its flagged as "virtual camera" in many websites and can only be used using OBS.

New filters?

Is it possible to read the new filters being uploaded to snapchat? Or anyway to allow new filters being used in the patched Snapcamera?

Block while gaming

Hi! I don't know if it's my PC, the game I've just opened after applying the patch or the patch itself. I was sharing cam on Discord and as soon as I opened the game my camera froze for a couple of seconds and then showed the Snap Cam logo. If I switch tabs, the camera goes back to normal. But as soon as I click on the game, it freezes again.

This is going to fix snapcamera on pc forever?

Hi Jaku, thanks for your help. Damn I couldn't make a living otherwise. So I must use SNAP camera and I m worried if after we patched the program this meant (post firewall block also) we can use it forever? I m not in coding lol, I paid a company to install it. So what you think? I must think other way or I can relax that after your suggestions I got SNAP for years? Thankssssss

Mac approach on Windows

Great work, love it!

Would it be possible to use the same approach with the certificate + modifying the hosts file on Windows as well?

if no: why?
if yes: could you list the steps needed?

Mac what am I doing wrong?

Sorry to bother you Jaku but maybe you can help me figure out what i'm doing wrong. I downloaded the cert file then changed it to always trust and finally I copy pasted the code into my terminal. When i open the app everything is still blank but oddly enough i can access some of my filters that i saved in favorites although i have to randomly guess which ones they are because they all look like blanks.

Thanks for your time and concern Jaku
sincerely, a computer noob :(

Screenshot 2023-02-16 at 11 30 40 PM

Screenshot 2023-02-16 at 11 31 13 PM

Screenshot 2023-02-16 at 11 32 28 PM

Lenses doesnt work properly

Hi.

I'm getting some issues, and right after 5 uninstall / install, i would like some help.

Instead of all filters, i got a red rectangle on my face.. And i dont see how to solve this issue..

Do you got any advices ?

Thanks a lot...

New Lens

Hi,

  • is it possible to get some lens that were stored on a computer cache (but that were not backuped) to the new (backup) server?
  • is there any way to still create new lens and somehow put them on the new (backup) server for us to use?
    Regards

MD5 for mac

Do you have the proper hash for the pkg file for mac?

Thank you

[Thought] Seems the web is exposing some lenses

It seems you can search them, but not all of them have "try lens" on the web.
https://lens.snapchat.com/924f374625604452a5d1273dad9d9726

I'm not sure if this is the endpoint you'd need that it fetches from that page after clicking the "try lens"
https://api-kit.snapchat.com/com.snap.camerakit.v3.Lenses/groups/5823ca90-5e1a-44b4-a007-644cab5c6e64/lenses/59752180963
You cannot directly navigate there as there are authentication headers that are required.

It returns something like the following; I imagine the lnsUrl is the filter?
https://bolt-gcdn.sc-cdn.net/3/4TrFy6k6nrG8zHOWHNtwY?bo=EhgaABoAMgF9OgEEQgYIw73ZmgZIAlASYAE%3D&uc=18

Ultimately it seems like they're still figuring out their rough web launch as not all lenses have the Try Lens on the web, and the current snap web seems to only have a small subset of lenses if I'm seeing it correctly?

{
  "lens": {
    "id": "59752180963",
    "name": "Crying",
    "vendorData": {},
    "content": {
      "lnsUrl": "https://bolt-gcdn.sc-cdn.net/3/4TrFy6k6nrG8zHOWHNtwY?bo=EhgaABoAMgF9OgEEQgYIw73ZmgZIAlASYAE%3D&uc=18",
      "lnsSha256": "27DF4AF94CFDEACA8FC6FAF5E76E419FB9DDA6C6D64800691DAEA10E022BC12E",
      "iconUrl": "https://cf-st.sc-cdn.net/aps/bolt/aHR0cHM6Ly9ib2x0LWdjZG4uc2MtY2RuLm5ldC8zL0dTbEg0ZVk0aFBuc01MbEYwUGNaOD9ibz1FaGdhQUJvQU1nRjlPZ0VFUWdZSXc3M1ptZ1pJQWxBU1lBRSUzRCZ1Yz0xOA._FMpng",
      "preview": {
        "imageUrl": "https://lens-preview-storage.storage.googleapis.com/previewmedia/preview_thumbnail/2237191d-e6df-432b-b222-cb9a4bceed2c_360_640.webp"
      },
      "assetManifest": [
        {
          "type": "DEVICE_DEPENDENT_ASSET_UNSET",
          "id": "LENSCORE_DEFAULT_RETOUCH_ASSET",
          "requestTiming": "REQUIRED",
          "assetUrl": "",
          "assetChecksum": ""
        },
        {
          "type": "DEVICE_DEPENDENT_ASSET_UNSET",
          "id": "LENSCORE_CAMEO_STATIC_EMOTION_CRYING_WEAKER",
          "requestTiming": "REQUIRED",
          "assetUrl": "",
          "assetChecksum": ""
        }
      ],
      "defaultHintId": "UNKNOWN_LENS_HINT",
      "hintTranslations": {},
      "lnsUrlBolt": "https://bolt-gcdn.sc-cdn.net/3/4TrFy6k6nrG8zHOWHNtwY?bo=EhgaABoAMgF9OgEEQgYIw73ZmgZIAlASYAE%3D&uc=18",
      "iconUrlBolt": "https://bolt-gcdn.sc-cdn.net/3/GSlH4eY4hPnsMLlF0PcZ8?bo=EhgaABoAMgF9OgEEQgYIw73ZmgZIAlASYAE%3D&uc=18"
    },
    "isThirdParty": false,
    "cameraFacingPreference": "CAMERA_FACING_UNSET",
    "featureMetadata": [],
    "lensCreator": { "displayName": "Snapchat" }
  }
}

Snap Camera doesnt open..

patched 121, and checked checksum, all is well but when I start snap camera it just opens in task manager and then closes.
I turned off bit defender. Im on Windows 11 Home Insider preview.
Any suggestions?

Operating System
Windows 11 Home Insider Preview 64-bit
CPU
AMD Ryzen 7 3700X 56 °C
Matisse 7nm Technology
RAM
40.0GB Single-Channel DDR4 @ 1156MHz (17-17-17-39)
Motherboard
LENOVO 3716 (AM4) 37 °C
Graphics
LG ULTRAGEAR (1920x1080@144Hz)
S23C350 (1920x1080@60Hz)
ASM-156FC (1920x1080@60Hz)
4095MB NVIDIA GeForce RTX 3060 (Gigabyte) 49 °C
Storage
931GB NVMe CT1000P5SSD8 (Unknown (SSD))
931GB Seagate ST1000DM003-1SB102 (SATA ) 36 °C
238GB SKHynix_HFS256GD9TNI-L2B0B (Unknown (SSD))
Optical Drives
No optical disk drives detected
Audio
Realtek High Definition Audio

MacOS version doesn't show lens backups

I had to wipe my machine recently and re-installed SnapCamera from the installer I already had for v1.21.0. I was also able to restore the list of my favorite lenses from a Time Machine backup. None of the lenses load, though, even with the Certificate installed and set to Always Trust and the hosts file modified to that IP address. Is there anything else that needs to happen? Is that IP address still valid?

On the Mac how to run Snap Camera once file is patched

On the latest operating system of MacOS, you cannot run Snap Camera once you patch the Snap Camera executable file as the patched file is not executable.

Here is how you make the file executable once it's patched and copied into the MacOS folder (overwriting the old version)

Run Terminal and type the following:

chmod 755 /Applications/Snap\ Camera.app/Contents/MacOS/Snap\ Camera

It may tell you in a popup that Terminal is not allowed to alter the file, make sure you select Allow.

If you miss the popup or it doesn't happen and you still get the warning.. go to settings/privacy & security/ scroll down to where it tells you that you cannot run Snap Camera.. Authorize it...

I then rebooted my computer and ran the chmod command again and it allowed me to run this time and then the app runs.

There may be an easier way to authorize Terminal to change the file into an executable, but I missed the popup message and couldn't get it back, so I did it in a roundabout way, but it works perfectly with the patched file now.

patched version can't access the internet - Windows/1.21.0

hello! I was able to download and run the patched version but couldn't see the "Jaku Snap Backup" category or any of the filters. Tried uninstalling and repatching a few times, but kept getting the same issue "you have no internet connection" message where the filters usually are~ just wondering if it might be because I'm in Australia? Thanks!!

[Question] Community Participation & PR Expectations?

Hey @jaku, found your repo thanks to Nutty's recent video (https://www.youtube.com/watch?v=UU8Jq6It8o4) and have a question regarding community participation:

Do you want us to submit PRs with cached data[1], lens names/urls, or anything of the sort?

Perhaps it would be easiest to have a "requests" file where people can add their own URLs to lenses they like? Maybe just a single-line-per-URL text file?

[1] One question re: caches, I don't know if there's any personal or hardware-specific data contained in them. If so, then it might be worth finding a way to scrub it before submission, being that the raw data from the lens is arguably more useful than even a URL.

A related final thought after typing this:

The URLs to download the filters will still probably work after snap camera shuts down since snapchat itself isn't going down, and I doubt they store it in more than one location. That said, there's no way to know until after Jan 25th. It's possible there's a header/UA string that the mobile app sends differently from the desktop app they could use to gatekeep it after the shutdown.

Cheers; love the idea. Let us know how we can help out.

Question about SnapCam Preservation

I'm doing to snap-camera.en.uptodown.com/windows download process combined with Jaku's patch. I am wondering if this is making it so the install is completely local or is someone running a server to keep it alive. Regardless, can we implement it completely locally somehow? Also, is the exe from the uptodown website safe? I don't want to get pwned lol

overwriting settings.json

https://www.youtube.com/watch?v=eEMWwZRVF-I - in this video I show using ptrumpis's version along-side yours

It allowed people to only run docker when downloading new lenses. So users could save on pc performance especially streamers.
Today opening the Jaku patched version overwrites the settings.json with on that has no favorites or hotkeys etc.. where as before it would just launch and use what was already in the local folder.

is their anyway to prevent this or maybe a patch to ptrumpis version that could allow it to run similarly?

Thank you

Snap Camera lenses have helped me spend time with friends during COVID using my webcam despite having very, very bad body dysmorphia. I don't know if this is the most appropriate place to say it, but thank you so much for creating this tool. Its impact is felt.

Sorry for creating an "issue"; please consider it solved.

hello Jaku. help me for lens

I'm a streamer. for two years I have been using the old version 1.18 with the mask "Airy Lens
by Nick Jackson". Please help me. How can I find it if it is not in two versions, and 21 by the way does not work in my country at all, I use 19 now. is it possible to create a patch for older versions, for example 18? or add my mask?
https://lens.snapchat.com/820b608931c54de39f47c22df4a94fb1?sender_web_id=c07fc59d-45b3-4b42-8d1d-8e303ca85645&device_type=desktop&is_copy_url=true

"Jaku Snap Backup" Category Not Appearing

I installed Snap Camera version 1.21 from UptoDown (not the best idea, but the provided MD5s matched so it's fine), patched the executable in Program Files via the website and then swapped out the executable for the patched one (impersonating the filename, too). For some reason though, the alleged "Jaku Snap Backup" lens category is not showing up, just the filler lens slots, loading symbol at the bottom and no more shutdown notice.

Is there a step I missed or server I should add somewhere?

[THANK YOU]

I wanted to say thank you for doing this. Snap Inc. honestly missed out on a HUGE opportunity by shutting down the Windows app. I think quite a few of us would have even gladly paid a reasonable monthly fee for it.

Filter Snap Inc. Lenses

If there is a way to filter the Snap Inc. Lenses so that they are all visible it would be amazing! Currently it is very hard to get most of them.

snap cam freezes

I applied the patch but when i want to open the app it freezes.

1.21

Hi,

Sorry to bother you. I am new to all this. Apparently I had snap camera version 1.2 before the shutdown and the patch isn't working on it. Any idea where to get a clean 1.21 version?

Thanks,

  • Nick

i have some wierd box around my face when i am using my graphic card

as you can see there is some box around my face when i am using simple retouch.whenever i disable my AMD radeon RX 6600 xt driver and use cpu's gpu i have no problem.but i can't keep disconnecting and connecting this cable every time i want to use this app do you have any idea how to fix this?
if i use a filter there is no issue but i love the simple retouch which the app offers the most

Filters not working in Mac M1

I am having issues with activating filters in Snap Cam version 1.21 on my M1 Mac. I would like to request assistance in identifying why the filters (lenses) are not working.

Thank you in advance for your help.

Sincerely,

Lalli

image

[Idea] Package this as a plugin for OBS Studio

This is not a feature request because what I'm suggesting is A LOT of work. But I think it would be worth building an open-source version of this app. OBS Studio already works as a virtual camera. If we can extract the ML models from Snap Camera app, it should be possible to support all the lenses as filters/effects in OBS.

Apologies if this discussion is not welcome here. Feel free to close.

[enhancement] fix issue preventing use with EOS webcam utility/obs virtualcam

Snap camera doesn't seem to work directly with EOS webcam utility.
Eos is an option in the dropdown for selecting a camera but it just gives the ol' "No available camera input". as for obs virtual camera that straight up doesn't show up.

The issue is that in order to use a dslr or at least cannons you have to run your camera through different apps to get it into snap and then to discord adding significant delay to the final output.
Either eos>obs>splitcam>snap>discord or eos>manycam>snap>discord

Mac Trouble

Hey so I performed all the steps and when I run cat /etc/hosts I do see it at the bottom of the file. Still my snapchat app doesn't detect anything.

Any guesses? Is snapchat ignoring the hosts file?

Nikon Webcam Utility

Is there a way to us my Nikon camera via the Nikon Webcam utility?
Because my camera (Webcam Utility) is not showing up, and I saw online that many had similar problems with their Cannon Utilities...
The only Option I found was to use third party apps which take the output from the camera and forward it to Snap Camera (but with a Watermark)

Preferably, I would use NVIDIA Broadcast, but that's also not showing up as an input option.

Mac issue

I am trying to access snapcamera but i cannot. I had it downloaded previously followed the proceduce but it keeps saying application not responding. so i uninstalled snapcamera and retried it and still it isnt working and says Application not responding. Is there something I can instead?

1.20.0

can i use this version?

Problems with mac

since yesterday it does not work for mac, I have installed the certificate for 2 months and it worked fine but since today it is failing

Quick Question

Would it be feasible to create a local backup of all the filters, in case something happens to your server in the coming months/years?

Thanks,

  • Nick

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.