decke
/
drmdecrypt
Archived
1
0
Fork 0
DRM decrypting tool for Samsung TVs PVR
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
 
 
Bernhard Fröhlich 0373abf73e
Add testclip from UE40D6500 (DVB-C)
1 year ago
.github testsuite: Migrate from libav to ffmpeg 2 years ago
testsuite Add testclip from UE40D6500 (DVB-C) 1 year ago
AES.c Add new AES and AES-NI implementation from pycrypto. Implement small 9 years ago
AESNI.c Set memalign implementation based on architecture 9 years ago
LICENSE Initial commit 9 years ago
Makefile Add testsuite and recordings from UE40C6820 2 years ago
README.md Remove bulk build option "-o" and use it as outfile instead 2 years ago
aes.h Add support for arm64 and make all the amd64 architecture specific bits optional 3 years ago
buffer.c Implement internal buffer to allow reading and writing in bigger chunks 8 years ago
buffer.h Implement internal buffer to allow reading and writing in bigger chunks 8 years ago
drmdecrypt.c Remove bulk build option "-o" and use it as outfile instead 2 years ago
trace.h Simplify trace() macro, write to stdout and set default loglevel to info 2 years ago

README.md

drmdecrypt

Synopsis

drmdecrypt is a tool to decrypt PVR recordings from Samsung TVs into standard transport stream format. There are multiple similar versions out there based on code from SamyGO and various people but they are all either slow, Windows specific, full of bugs or even all together.

This version is fast, POSIX compliant (Linux, FreeBSD, OSX, Windows (MinGW)) and is focused on a small number of useful features.

Features

  • Reading title and channel from .inf file
  • AES-NI support (5x faster) (x86_64 only)

Usage

Usage: drmdecrypt [-dqvx][-k keyfile][-o outfile.ts] infile.srf
Options:
   -d         Show debugging output
   -k keyfile Use custom key file instead of mdb
   -o outfile Output file
   -q         Be quiet. Only error output.
   -v         Version information
   -x         Disable AES-NI support

Building

make

of for MinGW (Windows)

CC=gcc make

Support status

Samsung has changed the encryption of the PVR recordings a few times so here is a small overview of what the situation is right now. Situation might change over time.

Model year Status
C (2010) supported
D (2011) supported
E (2012) key file required (needs root)
F (2013) key file required (needs root)
H (2014) key file required (needs root)
J (2015) unknown
K (2016) unknown
M (2017) unknown

Notes for Models E and later

Samsung has moved the decryption keys into the internal storage of the TV. That makes the process more complicated:

  1. get root and ssh on your TV
  2. ssh to the box and run PVRdumpkeys.sh to generate .key files from the internal storage
  3. unplug the USB disk and plug on a laptop
  4. run drmdecrypt on it with -k to decrypt the recording

or you can also use SamyGO NoDRM. See: https://forum.samygo.tv/viewtopic.php?t=8105