Page 1 of 2

[App] libUnDRM C/D (arm)

Posted: Wed Mar 04, 2015 5:06 pm
by sectroyer
Patch disables DRM encryption on recordings

Usage:
*For C series (arm), $SYSROOT is /SamyGO on rooting USB
*For D series (arm), $SYSROOT is /mtd_rwcommon/widgets/user/SamyGO/SamyGO
  • Get latest samyGOso from there and copy/overwrite samyGOso file (not folder) to $SYSROOT/opt/privateer/usr/bin
  • Set permissions if needed (usually not if overwritten)

    Code: Select all

    chmod +x $SYSROOT/opt/privateer/usr/bin/samyGOso
  • Extract attached archives and copy libUnDRM.so to $SYSROOT/opt/privateer/usr/libso (create folder if needed)
  • Default command:

    Code: Select all

    samyGOso -d -D -r -l $SYSROOT/opt/privateer/usr/libso/libUnDRM.so
    will decode the recording and put in in the same directory as .ts file.

    you can specify custom directory with "-p:" switch like this:

    Code: Select all

    samyGOso -d -D -r -l $SYSROOT/opt/privateer/usr/libso/libUnDRM.so p:/dtv/usb/sdX/newrecdir
    if you want to replace encrypted .srf with decrypted .ts (it should work even in PVR Player) than use this command:

    Code: Select all

    samyGOso -d -D -r -l $SYSROOT/opt/privateer/usr/libso/libUnDRM.so replace
    Finally if you don't use replace mode and save to .ts file (doesn't matter if you use custom location or not) and remove the recording from PVR Browser tv will NOT remove decrypted .ts file. To change this behavior so tv WILL remove decrypted .ts when you remove recording run this:

    Code: Select all

    samyGOso -d -D -r -l $SYSROOT/opt/privateer/usr/libso/libUnDRM.so removets
    or if you use custom location for .ts files this:

    Code: Select all

    samyGOso -d -D -r -l $SYSROOT/opt/privateer/usr/libso/libUnDRM.so p:/dtv/usb/sdX/newrecdir removets
  • Autostart
    • Copy 99_91_pvr_UnDRM.init to $SYSROOT/etc/init.d
    • Set permissions

      Code: Select all

      chmod +x $SYSROOT/etc/init.d/99_91_pvr_UnDRM.init
    • You might change OPTIONS value on top of script, default is no options. e.g.

      Code: Select all

      OPTIONS="replace"

Re: [App] libUnDRM C/D

Posted: Wed Mar 04, 2015 6:53 pm
by tempinbox
can you add samygoso and init script too please?
so i can copy it to samygo directory and start with init script

Re: [App] libUnDRM C/D

Posted: Wed Mar 04, 2015 6:59 pm
by zoelechat
PLACEHOLDER means coming soon :)
samyGOso is there as usual, I will add what's missing a bit later...

Re: [App] libUnDRM C/D (arm)

Posted: Wed Mar 04, 2015 9:03 pm
by tempinbox
just to know if i want to set the option to save ts files on sdc for example i have to write

Code: Select all

OPTIONS="-p:/dtv/usb/sdc"
???

Re: [App] libUnDRM C/D (arm)

Posted: Wed Mar 04, 2015 9:05 pm
by sectroyer
tempinbox wrote:just to know if i want to set the option to save ts files on sdc for example i have to write

Code: Select all

OPTIONS="-p:/dtv/usb/sdc"
???
If you don't want to put in any subdirectory than yes but just to be safe I would use:

Code: Select all

"-p:/dtv/usb/sdc/"

Re: [App] libUnDRM C/D (arm)

Posted: Wed Mar 04, 2015 10:26 pm
by tempinbox

Code: Select all

Usage: ./99_91_pvr_UnDRM.init {start|stop|status}
/dtv/usb/sda1/SamyGO/etc/init.d # ./99_91_pvr_UnDRM.init status
Not started
/dtv/usb/sda1/SamyGO/etc/init.d # ./99_91_pvr_UnDRM.init start
checking /dtv/usb/sda1
checking /dtv/usb/sda2
checking /dtv/usb/sdb
checking /dtv/usb/sdc
samyGOso v1.2.4 (c) bugficks 2013, sectroyer 2014
usage: samyGOso [-p PID | -n procname | -A | -T | -D ] [-B ] {-c CONFIG | -l /full/path/to/inject.so [-r (=resident)]} [-d (=debug on)] [-a (=add libc addressoffset )] [arg0,...,argN]
/dtv/usb/sda1/SamyGO/etc/init.d # ./99_91_pvr_UnDRM.init status
Not started
it seems that the init script doesn't work
maybe the right path is

Code: Select all

SODIR=$SamyGO/opt/privateer/usr/libso
instead of

Code: Select all

SODIR=$SYSROOT/opt/privateer/usr/libso
??? samyGOso start but not find the libso to inject.
that occur if i set options without options it seems to work.
i have to test the replace options
--Update
the replace options works :D

Re: [App] libUnDRM C/D (arm)

Posted: Wed Mar 04, 2015 11:21 pm
by zoelechat
No, nothing's wrong with startup script and $SYSROOT is fine (hardcode real path if you prefer :) ). 2 possibilities:
-You've misplaced lib but I assume samyGOso would report it if it was missing
-Your "OPTIONS" are wrong and cause samyGOso to report wrong syntax

Btw @sectroyer, isn't samyGOso already looking for -p for pidof? (-p $(pidof exeDSP) / -p:/dtv/usb/sdX/newrecdir) :?:

EDIT: CONFIRMED, just looked at source it's "p:" not "-p:", that's what cause wrong syntax

Code: Select all

OPTIONS="p:/dtv/usb/sdc/"

Re: [App] libUnDRM C/D (arm)

Posted: Thu Mar 05, 2015 1:41 pm
by tempinbox
zoelechat wrote:No, nothing's wrong with startup script and $SYSROOT is fine (hardcode real path if you prefer :) ). 2 possibilities:
-You've misplaced lib but I assume samyGOso would report it if it was missing
-Your "OPTIONS" are wrong and cause samyGOso to report wrong syntax

Btw @sectroyer, isn't samyGOso already looking for -p for pidof? (-p $(pidof exeDSP) / -p:/dtv/usb/sdX/newrecdir) :?:

EDIT: CONFIRMED, just looked at source it's "p:" not "-p:", that's what cause wrong syntax

Code: Select all

OPTIONS="p:/dtv/usb/sdc/"
test Done!
i can confirm that works with "p:" :D :D :D
Thanks Thanks thanks
:arrow: Ps you can save the ts files on network share too i tried with samba share. :o :o :shock:
this patch is such a bomb! :D

Re: [App] libUnDRM C/D (arm)

Posted: Tue Mar 10, 2015 9:06 pm
by Mkò
:arrow: :arrow: UP UP UP
:arrow: Please moderator highlight this release.
Job well done.
It works! :D
Thanks sectroyer

Re: [App] libUnDRM C/D (arm)

Posted: Wed Mar 25, 2015 4:28 pm
by Mkò
@sectroyer i want to report that sometimes i get segmentation fault in my tv when i manual start the Recording process and sometimes the record start and stop after few second and tv says Recording process stop for unknow error. Is this a bug of libundrm patch? How i can debug it? When the first error that i described occur i have to switch off the tv from cable or use the reboot via telnet because the tv became unresponsive of any command sending by remote or virtual remote like mytifi remotie app. In the second case instead i can reboot with remote. The two problems occurs ramdomly.
But this remains the best patch ever made for C series