[App] libUnDRM C/D (arm)

Here are software that related with Samsung C series TVs, applications, programs that will run in your TV or computer...:!:This forum is NOT FOR USER QUESTIONS or Problems.

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

[App] libUnDRM C/D (arm)

Post 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"
You do not have the required permissions to view the files attached to this post.
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 https://pastebin.com Otherwise "NO HELP"!!!
If you want root DISABLE internet access to your device!!!!
DO NOT EVER INSTALL FIRMWARE UPGRADE !!!!
tempinbox
Posts: 317
Joined: Wed May 11, 2011 7:00 pm

Re: [App] libUnDRM C/D

Post by tempinbox »

can you add samygoso and init script too please?
so i can copy it to samygo directory and start with init script
zoelechat
SamyGO Moderator
Posts: 8615
Joined: Fri Apr 12, 2013 7:32 pm
Location: France

Re: [App] libUnDRM C/D

Post by zoelechat »

PLACEHOLDER means coming soon :)
samyGOso is there as usual, I will add what's missing a bit later...
I do NOT receive any PM. Please use forum.
tempinbox
Posts: 317
Joined: Wed May 11, 2011 7:00 pm

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

Post 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"
???
sectroyer
Official SamyGO Developer
Posts: 6305
Joined: Wed May 04, 2011 5:10 pm

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

Post 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/"
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 https://pastebin.com Otherwise "NO HELP"!!!
If you want root DISABLE internet access to your device!!!!
DO NOT EVER INSTALL FIRMWARE UPGRADE !!!!
tempinbox
Posts: 317
Joined: Wed May 11, 2011 7:00 pm

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

Post 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
zoelechat
SamyGO Moderator
Posts: 8615
Joined: Fri Apr 12, 2013 7:32 pm
Location: France

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

Post 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/"
I do NOT receive any PM. Please use forum.
tempinbox
Posts: 317
Joined: Wed May 11, 2011 7:00 pm

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

Post 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
Mkò
Posts: 199
Joined: Fri Jul 29, 2011 2:34 pm

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

Post by Mkò »

:arrow: :arrow: UP UP UP
:arrow: Please moderator highlight this release.
Job well done.
It works! :D
Thanks sectroyer
Mkò
Posts: 199
Joined: Fri Jul 29, 2011 2:34 pm

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

Post 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

Post Reply

Return to “[C] Software”