frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Recovering videos from my Sony camera that I stupidly deleted

https://www.jeffgeerling.com/blog/2025/recovering-videos-my-sony-camera-i-stupidly-deleted
54•speckx•1w ago

Comments

brudgers•1w ago
My advice is to have "some fair number" of SD cards and when you are done with the card in the camera, put it aside and install another card that hasn't been used in awhile.

Because managing files is not only error prone, deleting files should be avoided to the extent your budget allows...

...and if you are shooting still (and not video) there's really no good reason to ever delete an image off an SD card because SD cards are cheap (because photos don't require highest speed cards). SD cards can be used as "film" in a digital camera.

geerlingguy•1w ago
Yeah, after working through this blog post, I ordered 6 more cards, so I can have a queue and not delete footage until project completion!
philipwhiuk•2h ago
My advice is to run a script that automatically copies the files to the right place rather than hope you have the right window open at the time.
jonhohle•2h ago
Apple was killing it with iPhoto/Photos for this use case until a few years ago. Put in a memory card and Photos would import new photos, offer to delete after import, and ignore photos still on the card. Photo Stream made it possible to have a minimal set of photos in the cloud to have on other devices, which could be configured to sync various albums.

Then they moved to iCloud or manual sync and your forced to manage individual files again. Delete in iCloud, it’s gone everywhere. Want to keep your bad shots, but not have them on every device? Figure out how to move photos between multiple libraries while only being allowed to have one open at a time.

entropie•2h ago
> My advice is to have "some fair number" of SD cards and when you are done with the card in the camera, put it aside and install another card that hasn't been used in aw

Yeah, a kind of rotating workflow seems necessary when you doing professional camera stuff.

Of course, something like this can always happen; however, it's just as likely that an SD card will fail at some point.

The camera should record redundantly, and many semi-pro cameras already do this if you want them to. Then you can leave the second card untouched and have a spare one and rotate only the spares.

zten•2h ago
> because photos don't require highest speed cards

That hypothesis is certainly getting tested these days in specific niches. With high megapixel sensors, pre-capture, and cameras capable of pushing between 30fps and 120fps worth of compressed raws or high quality JPEGs, you can obliterate your camera's write buffer and CFExpress write bandwidth. You can make many bad photos of an animal, bird, or athlete with extreme ease -- and hopefully find that one winner in the haystack.

I would say the line between movies and photos is getting blurred, but it's unlikely you're using a shutter speed that allows for motion blur with these bursts of photos!

BuildTheRobots•2h ago
Except unpowered SD cards (and SSDs for that matter) don't claim to hold data for more than a couple of years.

I'm a big believer in thinking you have backups being worse than knowing you don't, so anything that encourages people to believe $(flash memory) is suitable as long-term cold storage is actually, really bad.

I agree there's no need to copy & wipe cards immediately, but treating them as "film" is inherently flawed and setting yourself up for failure. The amount of people that turn up in data recovery forums unable to access old, important, "backed up" (memory card/ssd on a shelf) photos is depressingly high.

Zak•2h ago
> photos don't require highest speed cards

I photograph birds in flight at 25 or 50 FPS.

Even if I didn't do something that demands fast cards and fills them up quickly, I don't see much reason to keep photos on SD cards rather than my laptop's SSD with an external HDD as backup. I import and cull the photos, run a backup, and reformat the cards.

Arainach•1h ago
>and if you are shooting still (and not video) there's really no good reason to ever delete an image off an SD card

There are tons of good reasons.

When downloading images off the card, software has to read all the files on it - which can take a very long time if the card is full of photos you've already processed in a previous session.

Then there's that you shouldn't be keeping most of the shots you take. Unless you're a still life artiste, most people (including professionals) take multiple pictures to account for blinking, moving objects, slightly different angles, etc. You should keep the best shots and delete the rest - storage is cheap but having to go back through all the garbage to find the good shots in the future is pointless.

Modern cameras have large sensors that produce large files. It's wasteful to keep buying more and more SSD cards. Just build a NAS or pay for cloud storage.

BolexNOLA•1h ago
Nothing worse than getting footage ingest underway and discovering the card has all kinds of stuff on it already that you now need to audit
entropie•2h ago
Honestly hat read for me as "Disk Drill" ad.
perfmode•2h ago
Disk Drill saved me last year when file corruption hit one of my SDs.

I also have a policy where I don’t delete the files on the SD card until the very last moment when new files need to be written again. This gives me a window of time in which there is an extra backup in case of issues with replication from my initial local storage on my computer, to an external drive, to the RAID array, or to the cloud.

rm -rf after the initial copy from the SD card onto the computer is a bad idea, especially if the card isn’t immediately needed for new footage.

dcrazy•2h ago
Oof, so free software didn’t do the job despite a ton of effort and leveraging a boatload of past experience, and the paid software gave a misleading impression of success before accepting Jeff’s money, only for the actual fix to be buried in a submenu somewhere.

My inner product manager is screaming.

tripdout•2h ago
Fairly unsatisfying conclusion. I’d be interested in knowing what that proprietary program does, how it works so well, how Sony stores video files, etc.
Damogran6•2h ago
I've found when you have a file with stops and starts, it's because the extraction process is not familiar with how the data is laid down on the storage media. So it sees 'I have a file'...and if it's better it sees 'the name of the file is here' and then 'it's this big' and then 'here's the linked list of clusters for that file'....or it starts at the first cluster and gets as far as it can before it runs off the tracks.
kccqzy•30m ago
The proprietary program has this blog post: https://www.cleverfiles.com/help/advanced-camera-recovery-in...

I think the key point is that cameras don't write the video files in one long contiguous block on disk. They internally split it up and write in an interleaved fashion. It even mentions low-level tricks like manipulating the FAT table so the moov atom which is written last appears at the beginning of the file.

cyberax•2h ago
Camera makers: please just use Android and allow us to sync photos automatically.
kalaksi•1h ago
You don't need Android for that (thank god).
cyberax•9m ago
How would you upload to Immich?
stavros•1h ago
I think the main problem here was that there wasn't a single script that:

1. Accepts no parameters.

2. Looks for an SD card with a bunch of Sony-structured folders.

3. Copies the media from that to the NAS folder directly and fsyncs.

4. Checks that the files are there and look ok.

5. Maybe triggers a ZFS snapshot? Why not.

6. Only then deletes the files from the source.

jewel•1h ago
My neighbor just did the exact same thing. The way FAT filesystems work is they change the first byte of the filename to an invalid character to make them a tombstone.

Since he hadn't used the SD card yet, we were able to restore the files with "TestDisk", a companion tool that ships with PhotoRec. Under "Advanced" there is an "Undelete" tool. This will let you browse the filesystem, find your missing files, and copy them to another drive.

For those old enough to remember, MSDOS came with undelete.exe which worked the same way.

1970-01-01•44m ago
Lucky for him it was a Sony. Thanks to Android 10 and file encryption on every file, it is now impossible to restore deleted videos/pictures/files on any Android device:

https://security.stackexchange.com/questions/264642/are-andr...

leovander•19m ago
I had never seen Jeff's posts pop up on HN prior to this year and only learned of him via YouTube r/homelab content. Scrolling through the hn search his domain has had plenty of posts over the years, but his content has now become stickier and/or the audience has changed?

Pg_lake: Postgres with Iceberg and data lake access

https://github.com/Snowflake-Labs/pg_lake
203•plaur782•4h ago•63 comments

NoLongerEvil-Thermostat – Nest Generation 1 and 2 Firmware

https://github.com/codykociemba/NoLongerEvil-Thermostat
90•mukti•3h ago•17 comments

Codemaps: Understand Code, Before You Vibe It

https://cognition.ai/blog/codemaps
92•janpio•2h ago•15 comments

Show HN: A CSS-Only Terrain Generator

https://terra.layoutit.com
216•rofko•6h ago•67 comments

Whole Earth Index

https://wholeearth.info/
33•bookofjoe•1w ago•3 comments

Launch HN: Plexe (YC X25) – Build production-grade ML models from prompts

https://www.plexe.ai/
43•vaibhavdubey97•3h ago•16 comments

We're open-sourcing the successor of Jupyter notebook

https://deepnote.com/blog/were-open-sourcing-the-successor-of-jupyter-notebook
125•zX41ZdbW•2h ago•102 comments

Normalize Identifying Corporate Devices in Your Software

https://lgug2z.com/articles/normalize-identifying-corporate-devices-in-your-software/
44•Bogdanp•6d ago•26 comments

What is a manifold?

https://www.quantamagazine.org/what-is-a-manifold-20251103/
292•isaacfrond•10h ago•90 comments

Recovering videos from my Sony camera that I stupidly deleted

https://www.jeffgeerling.com/blog/2025/recovering-videos-my-sony-camera-i-stupidly-deleted
54•speckx•1w ago•23 comments

Optimizing Datalog for the GPU

https://danglingpointers.substack.com/p/optimizing-datalog-for-the-gpu
81•blakepelton•5h ago•14 comments

By the Power of Grayscale

https://zserge.com/posts/grayskull/
7•surprisetalk•4d ago•1 comments

How devtools map minified JS code back to your TypeScript source code

https://www.polarsignals.com/blog/posts/2025/11/04/javascript-source-maps-internals
40•manojvivek•5h ago•10 comments

This Day in 1988, the Morris worm infected 10% of the Internet within 24 hours

https://www.tomshardware.com/tech-industry/cyber-security/on-this-day-in-1988-the-morris-worm-sli...
160•canucker2016•5h ago•98 comments

My Truck Desk

https://www.theparisreview.org/blog/2025/10/29/truck-desk/
369•zdw•17h ago•90 comments

Chaining FFmpeg with a Browser Agent

https://100x.bot/a/chaining-ffmpeg-with-browser-agent
76•shardullavekar•7h ago•39 comments

Bloom filters are good for search that does not scale

https://notpeerreviewed.com/blog/bloom-filters/
145•birdculture•11h ago•31 comments

Customize Nano Text Editor

https://shafi.ddns.net/blog/customize-nano-text-editor
100•shafiemoji•1w ago•41 comments

Tell HN: X is opening any tweet link in a webview whether you press it or not

432•stillatit•14h ago•399 comments

Cheaper MacBook powered by iPhone chip coming in 2026, per new report

https://9to5mac.com/2025/11/04/cheaper-macbook-powered-by-iphone-chip-coming-in-2026-per-new-report/
13•spurgu•54m ago•11 comments

Aisuru botnet shifts from DDoS to residential proxies

https://krebsonsecurity.com/2025/10/aisuru-botnet-shifts-from-ddos-to-residential-proxies/
52•feross•6d ago•18 comments

The 512KB Club

https://512kb.club/
103•lr0•4h ago•52 comments

Things you can do with diodes

https://lcamtuf.substack.com/p/things-you-can-do-with-diodes
347•zdw•20h ago•99 comments

AI's Dial-Up Era

https://www.wreflection.com/p/ai-dial-up-era
427•nowflux•23h ago•385 comments

You can't cURL a Border

https://drobinin.com/posts/you-cant-curl-a-border/
412•valzevul•19h ago•221 comments

Show HN: I built a local-first daily planner for iOS

https://apps.apple.com/ca/app/to-do-list-planner-zesfy/id6479947874
67•zesfy•6h ago•48 comments

When stick figures fought

https://animationobsessive.substack.com/p/when-stick-figures-fought
314•ani_obsessive•19h ago•117 comments

Tenacity – a multi-track audio editor/recorder

https://tenacityaudio.org
118•smartmic•1w ago•34 comments

Data breach at major Swedish software supplier impacts 1.5M

https://www.bleepingcomputer.com/news/security/data-breach-at-major-swedish-software-supplier-imp...
35•fleahunter•3h ago•11 comments

Reverse-engineered CUPS driver for Phomemo receipt/label printers

https://github.com/vivier/phomemo-tools
78•Curiositry•1w ago•21 comments