Page 1 of 18

[App] SamyGO PVRAnyDev E/F Series

Posted: Sun Sep 22, 2013 7:47 pm
by bugficks
PVRAnyDev

Removes limitation to use only xfs (E series) or ext4 (F series) formatted USB dongles for your PVR recordings. Changes are only affected to newly attached USB dongles (or you have re-plug existing one). You can use any by TV supported filesystem (fat32, NTFS) for your PVR recordings.

1. Download:
libPVRAnyDev_E_F.tgz
2. Extract everything into one dir (let`s say to /mtd_down/so )
3. Set permissions

Code: Select all

chmod 755 /mtd_down/so/samyGOso
4. start from cmdline:

Code: Select all

cd /mtd_down/so
./samyGOso -p $(pidof exeAPP || pidof exeDSP) -l /mtd_down/so/libPVRAnyDev.so
5. Autostart: (this one for E series only, check below for E/F)
SpoilerShow
Copy files from archive:
  1. samyGOso -> $DISTROOT/usr/bin/
  2. libPVRAnyDev.so -> $DISTROOT/usr/so/
  3. set permissions:

    Code: Select all

    . /dtv/SGO.env
    chmod 755 $DISTROOT/usr/bin/samyGOso
  4. Script 99_99_PVRtoAnyDev.init extract to

    Code: Select all

    $SYSROOT/etc/init.d/99_99_PVRtoAnyDev.init
  5. set permissions

    Code: Select all

    chmod 755 $SYSROOT/etc/init.d/
    NB!
    • $SYSROOT E series: /mnt
    • $DISTROOT E series: /mnt/opt/privateer
No autostart for F series (yet).

Alternative autostart script/procedure (E/F, recommended)
  • Allows non-xfs(E)/ext4(F) device to be recognized as recording one for playback
  • Removes the need to replug device after TV startup to record on it
Changelog:

Code: Select all

23/9/2013
v0.1.8 - public release version

Re: [App] SamyGO PVRAnyDev E/F Series

Posted: Fri Jan 03, 2014 5:13 pm
by beatfreak
what about the lock that you cannot access other media via media.p on current recording device?

Re: [App] SamyGO PVRAnyDev E/F Series

Posted: Fri Jan 03, 2014 5:46 pm
by bugficks
iirc for TV its either a "CRecordingDevice" or a "CPlaybackDevice". if possible at all its not worth the effort.

Re: [App] SamyGO PVRAnyDev E/F Series

Posted: Thu Mar 06, 2014 5:36 pm
by zoelechat
Let's feed a little donor subforum :)

In my opinion, main problem with PVRAnyDev is that it's needed to plug USB device after its launch for it to be functional.
So it is in state unusable on startup when devices are permanently plugged...

The idea is to let TV think device had been physically plugged after PVRAnyDev launch.
After some experiments I gave up some months ago but finally found a simple way to do it:
-inject PVRAnyDev.so
-backup of dtv/usb/usblog
-erase content of usblog so TV thinks USB devices are unplugged (delete doesn't work, need usblog=0bytes)
-wait a while, let's say ~2 seconds
-restore usblog backup so TV thinks devices are plugged back

Here's a startup script implementing the idea, if anybody is interested. Works on my TV, will surely work on every E/F:
<Attachment removed, new version below>

-Gave number 02_05 just after vusb.init for vusb to be included in 'virtually replugged devices', and early enough to mostly avoid annoying USB Popup
-Script includes USB STOP protection if something goes wrong ;)

Re: [App] SamyGO PVRAnyDev E/F Series

Posted: Thu Mar 06, 2014 7:21 pm
by fluffi444
VERY NICE, Zoel!!! Thx for sharing!

Works flawlessly...

Must go official :-)

If we now find a way that AllSharePlay would handle this as official Rec devices this solution would be perfect! :-)

Re: [App] SamyGO PVRAnyDev E/F Series

Posted: Fri Mar 07, 2014 2:05 pm
by zoelechat
fluffi444 wrote:If we now find a way that AllSharePlay would handle this as official Rec devices this solution would be perfect! :-)
It seems that changing concerned device filesystem to recording one (E->xfs) in usblog is enough for a recording device to be recognized as such...
As proof-of-concept, I've added this 'replacement' functionality to script, if you want to give a try:
<Attachment removed, new version below>

-You have to set 'RecordingDevice' name on top of script (e.g.: "sda1")
-Unfortunately nothing is resident, so as soon as you plug/unplug any USB device, TV rewrites usblog and device is no longer seen as recording one for playback, until TV reboot (or at least script restart)

Re: [App] SamyGO PVRAnyDev E/F Series

Posted: Fri Mar 07, 2014 5:43 pm
by sectroyer
You could create a daemon that (when detects .PVRtoAnyDev file) automatically "fixes" usblog:D Take a look at exfat daemon:) The principle is the same:)

Re: [App] SamyGO PVRAnyDev E/F Series

Posted: Fri Mar 07, 2014 5:56 pm
by zoelechat
sectroyer wrote:You could create a daemon that (when detects .PVRtoAnyDev file) automatically "fixes" usblog:D Take a look at exfat daemon:) The principle is the same:)
Interesting, I'm going to try that :)

Re: [App] SamyGO PVRAnyDev E/F Series

Posted: Fri Mar 07, 2014 6:32 pm
by fluffi444
thx to you both for your effort on this..

Just to report @ Zoel:

Your way works as long as the dtv/usb list is not changed because of replug of the devices (as you already mentoined)
Works also with an physical xfs formatted HDD together with an USB virtual xfs drive. Both devices are recognized as recording devices.

Untill further improvements this is a real good solution!!!

Re: [App] SamyGO PVRAnyDev E/F Series

Posted: Fri Mar 07, 2014 6:49 pm
by zoelechat
Cool :)
Implementing daemon, give me a few hours... ;)