[App] H offline decrypting of recordings

Here are software that related with Samsung H series TVs.
Please don't create any new topic here unless you have software to post/release.

zoelechat
SamyGO Moderator
Posts: 8615
Joined: Fri Apr 12, 2013 7:32 pm
Location: France

[App] H offline decrypting of recordings

Post by zoelechat »

Finally. Needs to be tested, should work on T-MST14, T-GFP and T-GFS firmwares (actually all rootables for now), ONLY on new recordings once patch is injected and resident.

Usage:
  • Get latest samyGOso from there and copy/overwrite samyGOso file (not folder) to /mnt/opt/privateer/usr/bin
  • Set permissions if needed (usually not if overwritten)

    Code: Select all

    chmod +x /mnt/opt/privateer/usr/bin/samyGOso
  • Extract whole content of libPVRMakeFixedkey.zip archive to /mnt/opt/privateer/usr/libso
  • Execute

    Code: Select all

    samyGOso -d -T -r -l /mnt/opt/privateer/usr/libso/libPVRMakeFixedKey.so
    Then recordings should all need the same and only attached key (mst14.key/golfp.key/gfs.key depending on your fw) to be decrypted.
    Either manually use drmdecrypt to do so, or if you want to use PVRdecoder in offline mode: copy .key for each recording and rename it to corresponding .srf (e.g. for 20150418103523.srf, duplicate key to 20150418103523.key in CONTENTS folder).

    Logfile is written to /dtv/libPVRMakeFixedKey.log
  • Autostart
    • Extract 99_91_PVRMakeFixedKey.zip to /mnt/etc/init.d
    • Set permissions

      Code: Select all

      chmod +x /mnt/etc/init.d/99_91_PVRMakeFixedKey.init
    Autostart script will also auto-duplicate keyfile for each new recording on startup (it means it's done only after TV reboot).
    Then you should be able to use PVRdecoder (any version) in offline mode, or in online mode using old E/F version (only!!!), it will behave reliably crash-free and fast as hell as it did on E/F :)
Credit goes to bugficks

edit 7/11/2015: Added NT14U and NT14M keys
You do not have the required permissions to view the files attached to this post.
I do NOT receive any PM. Please use forum.
zoelechat
SamyGO Moderator
Posts: 8615
Joined: Fri Apr 12, 2013 7:32 pm
Location: France

Re: [App] H offline decrypting of recordings

Post by zoelechat »

Moved to public, enjoy! :)
I do NOT receive any PM. Please use forum.
User avatar
juusso
SamyGO Moderator
Posts: 10129
Joined: Sun Mar 07, 2010 6:20 pm

Re: [App] H offline decrypting of recordings

Post by juusso »

Finaly :) @Lordbyte, your turn?
LE40B653T5W,UE40D6750,UE65Q8C
Have questions? Read SamyGO Wiki, Search on forum first!
FFB (v0.8), FFB for CI+ . Get root on: C series, D series, E series, F series, H series. rooting K series, exeDSP/exeTV patches[C/D/E/F/H]

DO NOT EVER INSTALL FIRMWARE UPGRADE
Lordbyte
Official SamyGO Developer
Posts: 1472
Joined: Sun Aug 18, 2013 11:07 pm

Re: [App] H offline decrypting of recordings

Post by Lordbyte »

I am under massive reallife pressure, having purchased a new house 2 weeks ago.

The amount of paper banks, lawyers, realestate agents, goverment tax agents, and
all their families produce, is massively impressive. I can heat up my new house for
a full year on paperwork alone.

Thus, - the PVRDecoder *will* be updated, but the deadline for that event is unknown.

Maybe next weekend ... MAYBE :-)
I provide NO assistance by PM, unless absolutely necessary. Please ask questions in dedicated topics.
zoelechat
SamyGO Moderator
Posts: 8615
Joined: Fri Apr 12, 2013 7:32 pm
Location: France

Re: [App] H offline decrypting of recordings

Post by zoelechat »

Added keyfile suitable to T-GFS fw to first post archive.
Also improved startup script to auto-duplicate .key for new recordings on startup, so that you can directly use PVRdecoder in E/F mode, either online or offline :)
I do NOT receive any PM. Please use forum.
mikemcgear
SamyGO Project Donor
Posts: 14
Joined: Tue Dec 23, 2014 5:38 pm

Re: [App] H offline decrypting of recordings

Post by mikemcgear »

Hi,

thanks for the lib! I have installed it on the TV. However, I have issues with the offline decrypting on the PC.
I only have PVRDecoder versions for E/F/H. Where can I find E/F-only versions?

I also tried with drmdecrypt.exe which gives me a broken .ts file as a result - here is the output.

Code: Select all

c;\temp>drmdecrypt.exe -d 20150530152634.srf
INFO AES-NI CPU support enabled
INFO drm key successfully read from 20150530152634.mdb
INFO KEY: 00 00 00 00 00 00 00 00 00 03 1D 4C 00 00 00 00
INFO Writing to ./20150530152634-Testrecording.ts
INFO Filesize 346640384
INFO synced at offset 0
ERROR scrambling info seems to be invalid!
ERROR scrambling info seems to be invalid!
ERROR scrambling info seems to be invalid!
ERROR scrambling info seems to be invalid!
ERROR scrambling info seems to be invalid!
ERROR scrambling info seems to be invalid!
ERROR scrambling info seems to be invalid!
ERROR scrambling info seems to be invalid!
ERROR scrambling info seems to be invalid!
ERROR scrambling info seems to be invalid!
ERROR scrambling info seems to be invalid!
ERROR scrambling info seems to be invalid!
INFO short read while reading stream
Thanks!
UE48H6600, T-GFSDEUC 1184 1210.5 1240.2 1300 1321
zoelechat
SamyGO Moderator
Posts: 8615
Joined: Fri Apr 12, 2013 7:32 pm
Location: France

Re: [App] H offline decrypting of recordings

Post by zoelechat »

mikemcgear wrote:I only have PVRDecoder versions for E/F/H. Where can I find E/F-only versions?
In 1st post of PVRdecoder thread :) (v1.5.3.4)
mikemcgear wrote:I also tried with drmdecrypt.exe which gives me a broken .ts file as a result - here is the output.
Key is in keyfile (.key), not in .mdb
I do NOT receive any PM. Please use forum.
mikemcgear
SamyGO Project Donor
Posts: 14
Joined: Tue Dec 23, 2014 5:38 pm

Re: [App] H offline decrypting of recordings

Post by mikemcgear »

Thanks for the hints! I found the 1.5.3.4 somewhere in the thread but only now I realized that "offline" decoding means taking the harddisk from the TV to the PC which I cannot do right now.

So I would like to try again with drmdecrypt.exe. It does not have a parameter to specify a certain keyfile. If I rename the .key file to have the same same as the recording but with .mdb, drmdecrypt will again complain

Code: Select all

ERROR short read while reading DRM key
which is not surprising since the key file only has 16 bytes and the .mdb is over 1 MB. What is my mistake? Thanks!
UE48H6600, T-GFSDEUC 1184 1210.5 1240.2 1300 1321
zoelechat
SamyGO Moderator
Posts: 8615
Joined: Fri Apr 12, 2013 7:32 pm
Location: France

Re: [App] H offline decrypting of recordings

Post by zoelechat »

mikemcgear wrote:Thanks for the hints! I found the 1.5.3.4 somewhere in the thread but only now I realized that "offline" decoding means taking the harddisk from the TV to the PC which I cannot do right now.
Not necessarily. As soon as you have .srf/.inf/.key in ANY folder accessible from Windows you can use offline decoding, no need for whole HDD. The only difference with drmdecrypt is that it doesn't automatically rename .ts so it doesn't need .inf to get recording infos.
mikemcgear wrote:So I would like to try again with drmdecrypt.exe. It does not have a parameter to specify a certain keyfile. If I rename the .key file to have the same same as the recording but with .mdb, drmdecrypt will again complain
You're probably using some antic drmdecrypt version and/or misuse it.
Check that one and usage: viewtopic.php?f=63&t=6511&p=62953#p62953
I do NOT receive any PM. Please use forum.
hobbesGo
SamyGO Project Donor
Posts: 7
Joined: Sat Mar 15, 2014 10:35 pm

Re: [App] H offline decrypting of recordings

Post by hobbesGo »

How can i pass a directory to drmdecrypt ?

with this "Testscript"

Code: Select all

#!/bin/bash
for file in *.srf; do prefix="${file%.*}";
drmdecrypt "$prefix.srf $prefix.key";
done
i get following output in console

===============================================================================
SamyGO - Samsung LED TV PVR Recording Decrypt (w64)
Cannot open 20150712102549.srf 20150712102549.key file
===============================================================================
SamyGO - Samsung LED TV PVR Recording Decrypt (w64)
Cannot open 20150712102709.srf 20150712102709.key file


with "echo"

Code: Select all

#!/bin/bash
for file in *.srf; do prefix="${file%.*}";
echo drmdecrypt "$prefix.srf $prefix.key";
done
it seems to be ok:

drmdecrypt 20150712102549.srf 20150712102549.key
drmdecrypt 20150712102709.srf 20150712102709.key


when i execute single decoding job then it works:

Code: Select all

drmdecrypt 20150712102709.srf 20150712102709.key
===============================================================================
SamyGO - Samsung LED TV PVR Recording Decrypt (w64)
291717120 bytes to decrypt
291717156 - 100% decrypted OK!


is there any possibility to pass whole directory to drmdecrypt ?

Post Reply

Return to “[H] Software”