this post was submitted on 17 Jul 2023
25 points (90.3% liked)

Piracy: ꜱᴀɪʟ ᴛʜᴇ ʜɪɢʜ ꜱᴇᴀꜱ

54574 readers
588 users here now

⚓ Dedicated to the discussion of digital piracy, including ethical problems and legal advancements.

Rules • Full Version

1. Posts must be related to the discussion of digital piracy

2. Don't request invites, trade, sell, or self-promote

3. Don't request or link to specific pirated titles, including DMs

4. Don't submit low-quality posts, be entitled, or harass others



Loot, Pillage, & Plunder

📜 c/Piracy Wiki (Community Edition):


💰 Please help cover server costs.

Ko-Fi Liberapay
Ko-fi Liberapay

founded 1 year ago
MODERATORS
 

Recently my NAS took some physical damage and the HDDs are not too happy about it. Most of my video files are partially corrupted. Meaning, they report some errors when checked with ffmpeg[^1], and when you watch them they'll sometimes freeze or skip a few seconds, but they're not so corrupt they won't play. So, the vast majority of the file is fine. I'd prefer to avoid re-downloading all of my media when such a small fraction of the total file is damaged.

Is there any way to only download chunks of the file that have errors?

In the mean time, I can repack and ignore errors[^2] so that the freezing/pausing stops during playback, but it'll still skip parts or otherwise act up.

[^1]: ffmpeg -v error -i $vidfile -map 0:1 -f null - [^2]: ffmpeg -i $vidfile -c copy $newvidfile

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 8 points 1 year ago (1 children)

Make a best guess and run it on a (renamed) copy of the video. If it tries to redownload 100% of it then it isn't the right one. It's a little tedious but it'll work.

In my experience downloading completely legitimate Linux ISOs and nothing considered illegal ever in my life, you have to add the torrent and start it so it gets peers and creates the files, then pause it and replace the file you're working on renaming it as needed, then run the rescan. You'll know a couple minutes later if it's the right one.

[–] [email protected] 1 points 1 year ago (1 children)

Hmm fair enough. I suppose by looking at the encoding and container formats I can probably narrow it down to a couple choices for each one.

[–] [email protected] 2 points 1 year ago

Yep, filesize is probably going to be your best bet here. Just keep in mind site sometimes report filesize differently, so a lot of time you'll have to guess if its close enough to be the same file, also factoring in other stuff that get packed like cut samples or tracker promo txt's.