[App] SamyGO NoDRM H (MST only)

Here are software that related with Samsung H series TVs.

fraglord
SamyGO Project Donor
Posts: 67
Joined: Mon Jan 05, 2015 2:30 pm

Re: [App] SamyGO NoDRM H (MST only)

Post by fraglord » Thu Nov 17, 2016 2:03 am

When I use '99_91_pvr_NoDRM.init' for autostart my TV (see signature) locks up: no response to remote control and no access over network via ssh, telnet or ftp anymore. Any ideas about this?
*** UE40H6470 *** F/W: T-MST14DEUC-2130.0 *** OTA & OTN disabled ***

User avatar
mad_ady
SamyGO Project Donor
Posts: 231
Joined: Sun May 03, 2015 10:42 am

Re: [App] SamyGO NoDRM H (MST only)

Post by mad_ady » Thu Nov 17, 2016 8:10 am

@fraglord. Disable it from automatic init and run it by hand through ssh. Does it still lock?
H6400, firmware 2602.2 downgraded to 2130

thor
SamyGO Project Donor
Posts: 6
Joined: Fri Mar 03, 2017 12:03 am

Re: [App] SamyGO NoDRM H (MST only) -- INFO FOR BEGINNERS --

Post by thor » Mon Mar 13, 2017 1:05 am

Unfortunately there is not very much information in this thread, especially not for beginners.
Therefore I try to share with you what I figured out so far:
  • The newer Samsung Firmware DRM-encrypt TV recordings (PVR) in a way that it's impossible to decrypt them and play them back on a PC.
  • This software turns of the encryption for new recordings. Nevertheless the recordings still look the same, i.e. still the same files as before will be generated.
  • One way to access the recordings is via FTP, i.e. connect via FTP to the TV and copy the files from the TV directory "/dtv/usb/sdc1/CONTENTS" (depends on your USB drives) to your PC harddisk. As a FTP client software I recommend WinSCP. For downloads, a web browser works to: ftp://TV/dtv/usb/ (if your TV has the name "TV").
  • To read the files directly from the USB drive, you need a software which understands the ext4 file system, i.e. either use Linux or some Windows software (I've installed Linux Mint on a bootable USD harddisk).
  • There's also somewhere a patch in this forum to directly record onto Windows formatted FAT32 USB sticks, without the need to reformat them to ext4 (but that's maybe not a good idea, as a recording can easily get bigger than 4 GB, but that's the filesize limit of FAT32). Maybe NTFS works too?
  • The video files have the extension ".srf". If you simply rename it to ".ts" (stands for MPEG-Transport Stream) the MediaInfo software is able to open it without problems, also the VLC player and Avidemux and VirtualDub (with plugins) are able to open & play the file.
  • The date/time in the ".srf" filename seems to be UTC (i.e. not the normal local time).
  • My installation logfile (ftp://TV/dtv/NoDRM.log) shows a lot of error messages, but nevertheless it's working. To verify your installation, simply try to playback a ".srf" file of a new recording (done after the installation) via VLC media player. For reference, here's my log of the installation:
    Installation Logfile ... click to openShow
    ## first copy everything via FTP to the TV,
    ## then execute the commands via telnet:

    C:\> telnet tv

    /mnt # chmod 755 /mnt/opt/privateer/usr/bin/samyGOso

    /mnt # samyGOso -p `pidof exeTV` -r -l /mnt/opt/privateer/usr/libso/libNoDRM.so -d transition
    samyGOso v1.2.5 (c) bugficks 2013-2014, sectroyer 2014-2015
    Injecting '/mnt/opt/privateer/usr/libso/libNoDRM.so' resident: '1'
    mprotect: 0x4227c020
    dlopen: 0x424a0d80
    dlclose: 0x424a0e14
    dlsymaddr: 0x424a0e78
    pc=42324eec lr=42324ed0 sp=be25bde0 fp=4a47bf8
    r0=4a47bfc r1=80
    r2=1 r3=0
    stack: 0xbe23c000-0xbe25c000 length = 131072
    executing injection code at 0xbe25bc94
    library injection completed!
    Succeeded.

    /mnt # samyGOso -p `pidof exeAPP` -r -l /mnt/opt/privateer/usr/libso/libNoDRM.so -d transition
    samyGOso v1.2.5 (c) bugficks 2013-2014, sectroyer 2014-2015
    Injecting '/mnt/opt/privateer/usr/libso/libNoDRM.so' resident: '1'
    mprotect: 0x4227c020
    dlopen: 0x424a0d80
    dlclose: 0x424a0e14
    dlsymaddr: 0x424a0e78
    pc=42324eec lr=42324ed0 sp=be291de0 fp=e0ef280
    r0=e0ef284 r1=80
    r2=1 r3=0
    stack: 0xbe272000-0xbe293000 length = 135168
    executing injection code at 0xbe291c94
    library injection completed!
    Succeeded.

    /mnt # chmod 755 /mnt/etc/init.d/99_91_pvr_NoDRM.init

    /mnt # # show logfile content:
    /mnt # cat /dtv/NoDRM.log

    [NoDRM] SamyGO H libNoDRM v0.5.13.6 - (c) sectroyer 2014
    [NoDRM] Transition mode!
    [NoDRM] DRM will be enabled only for entries NOT from /mtd_rwcommon/NoDRM.db!
    [NoDRM] _Z26_SdPVR_Record_HandleStreamhh [0x42573bbc].
    [NoDRM] dlsym '_ZNK18CPVRCipContentData14CheckSignatureERKSt6vectorIhSaIhEE' failed.
    [NoDRM] dlsym '_ZN11CPVRCipCore29m_OnPlaybackContentEvaluationEbR15CPVRCipPvrState' failed.
    [NoDRM] dlsym '_ZNK21CPVRCipContentBrowser18m_GetContentStatusERKSs' failed.
    [NoDRM] dlsym '_ZN15CPVRPlaySetting23IsRecordedFileForThisTVEPKc' failed.
    [NoDRM] _Z27MApi_PVR_Playback_EnableDRMh [0x430a9a54].
    [NoDRM] _Z31MApi_PVR_Playback_SetDRMPlayKeyPhmh [0x430a9a78].
    [NoDRM] _Z28MApi_PVR_Record_SetDRMRecKeyPhm [0x430a9c0c].
    [NoDRM] dlsym '_ZN17PVRAppTZInterface12ExtractFrameERKSsjPKhjS3_ii' failed.
    [NoDRM] dlsym '_ZN17CPVRSecureFileMgr4OpenERKSs' failed.
    [NoDRM] dlsym '_ZN17CPVRSecureFileMgr4ReadEPPv' failed.
    [NoDRM] dlsym '_ZN14PVRIndexParser4OpenESsSsi' failed.
    [NoDRM] dlsym '_ZN14PVRIndexParser15GetIFrameByTimeEii' failed.
    [NoDRM] SdPVR_Record_HandleStream found at: 0x42573bbc
    [NoDRM] Patching CMP R2, #1 found at: 0x42573c84
    [NoDRM] init done...

    [NoDRM] SamyGO H libNoDRM v0.5.13.6 - (c) sectroyer 2014
    [NoDRM] Transition mode!
    [NoDRM] DRM will be enabled only for entries NOT from /mtd_rwcommon/NoDRM.db!
    [NoDRM] _Z26_SdPVR_Record_HandleStreamhh [0x42573bbc].
    [NoDRM] _ZNK18CPVRCipContentData14CheckSignatureERKSt6vectorIhSaIhEE [0x3646758].
    [NoDRM] _ZN11CPVRCipCore29m_OnPlaybackContentEvaluationEbR15CPVRCipPvrState [0x35913a8].
    [NoDRM] _ZNK21CPVRCipContentBrowser18m_GetContentStatusERKSs [0x363c530].
    [NoDRM] _ZN15CPVRPlaySetting23IsRecordedFileForThisTVEPKc [0x35cb698].
    [NoDRM] _Z27MApi_PVR_Playback_EnableDRMh [0x430a9a54].
    [NoDRM] _Z31MApi_PVR_Playback_SetDRMPlayKeyPhmh [0x430a9a78].
    [NoDRM] _Z28MApi_PVR_Record_SetDRMRecKeyPhm [0x430a9c0c].
    [NoDRM] _ZN17PVRAppTZInterface12ExtractFrameERKSsjPKhjS3_ii [0x36be9e4].
    [NoDRM] _ZN17CPVRSecureFileMgr4OpenERKSs [0x35a653c].
    [NoDRM] _ZN17CPVRSecureFileMgr4ReadEPPv [0x35a62e0].
    [NoDRM] _ZN14PVRIndexParser4OpenESsSsi [0x3652cc4].
    [NoDRM] _ZN14PVRIndexParser15GetIFrameByTimeEii [0x3651dd8].
    [NoDRM] SdPVR_Record_HandleStream found at: 0x42573bbc
    [NoDRM] Patching CMP R2, #1 found at: 0x42573c84
    [NoDRM] Patching CheckSignature: 1
    [NoDRM] Patching OnPlaybackContentEvaluation: 1
    [NoDRM] Patching GetContentStatus: 1
    [NoDRM] Patching IsRecordedFileForThisTV: 1
    [NoDRM] init done...
  • To install the software, you have to execute commands directly in the TV. For this you need e.g. a telnet client (simply run the command "telnet"). If your Windows installation does not know telnet, search the internet for "telnet windows" on how to install that missing component.
  • In case you can only playback the first few minutes of your recording, see next post...
If you have additional information, please also share it with us.

For example, I'm wondering what the "other stuff" might be ...:
sectroyer wrote:
Fri Jan 30, 2015 11:22 am
Disable DRM on H MST devices and does a lot of other stuff. Highly recommended to install :)
Can someone recommend a software how to access ext4 directly on Windows?
Is it possible to automatically get the EPG title of the TV broadcast into the filename?
Are there other (easier) ways to access the recordings than via FTP?
Last edited by thor on Fri Mar 17, 2017 12:28 am, edited 1 time in total.
Martin UE48H6270: Firmware T-MST14DEUC-2850.3-1009 Vers. 2860 -> 0000 -> 2781 (last rootable), H "Network" (Wifi) root, LAN-switch, NoDRM

thor
SamyGO Project Donor
Posts: 6
Joined: Fri Mar 03, 2017 12:03 am

NoDRM H (MST only) ~~~ "Bug" report: only first few minutes of a recording are playable

Post by thor » Fri Mar 17, 2017 12:20 am

"Bug" report: only first few minutes of a recording are playable

This can happen in the following situation (just my best guess of what happened):
  • TV was powered off.
  • You powered on TV, and immediately start the recording manually (maybe first the TV complains "no recording device ready", but then try again until you have success).
  • => When recording was started, the noDRM patch wasn't yet launched, so that the recording started encrypted.
  • => Some minutes later noDRM starts and modifies also the currently running recording, so that the remaining part of the recording is not encrypted.
  • => If you playback the recording via TV, it only plays back the first few minutes (only the encrypted part).
  • => If you copy the .srf file to your PC and try to playback it via VLC, you can watch the remaining unencrypted part :-)
Therefore probably "works as designed", i.e. no bug, and as you know now the root cause, you can try to avoid it or use the workaround via PC.
Martin UE48H6270: Firmware T-MST14DEUC-2850.3-1009 Vers. 2860 -> 0000 -> 2781 (last rootable), H "Network" (Wifi) root, LAN-switch, NoDRM

sectroyer
Official SamyGO Developer
Posts: 5628
Joined: Wed May 04, 2011 5:10 pm

Re: [App] SamyGO NoDRM H (MST only)

Post by sectroyer » Fri Mar 17, 2017 7:41 pm

expected or as you called it "works as designed" NOT start rec before NoDRM :) (Here I wait 120 seconds)
I do NOT support "latest fw" at ALL. If you have one you should block updates on router and wait for it to STOP being "latest":)
If you want me to help you please paste FULL log(s) to "spoiler"/"code" bbcodes or provide link(s) to pasted file(s) on http://ctrlv.it/ Otherwise "NO HELP"!!!
If you want root DISABLE internet access to your device!!!!
DO NOT EVER INSTALL FIRMWARE UPGRADE !!!!

Post Reply

Return to “[H] Software”