1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

RPi + Other Software Android TV software grabber?

Discussion in 'Software Support' started by Gershy13, 25 December 2017.

  1. Gershy13

    Gershy13 Member

    Messages:
    32
    Hardware:
    RPi2
    Does anyone know if there is a way to grab my android TV (Nvidia shield tv, rooted) and send it to a raspberry pi running Hyperion?
    I'm trying to think of cheap ways to get capture and keep 4k HDR support.

    Any ideas?

    Thanks
    Gersh
     
  2. abrenoch

    abrenoch Android Grabber Developer

    Messages:
    94
    Hardware:
    RPi1/Zero, RPi2
    I'm following this closely myself as well.

    The best development I have seen so far (imho) has been in this thread:
    https://hyperion-project.org/threads/android-grabber-app.76/

    I think this is probably the most realistic solution right now (apart from a cacophony of adapters that will probably break things like CEC and ARC).

    It seems like if we can initialize ADB from a raspberry pi running hyperion, we will have a video signal that contains at least some of the screen (with the exception of perhaps some DRM things, but this can maybe be bypassed with root access). The challenge then seems to become delivering that video feed data to hyperion. I suppose theoretically we could just start something like omxplayer in full-screen and let the frame grabber do the rest of the work, but that doesn't seem like an elegant solution. Ideally we would be able to deliver that video stream directly to hyperion, but I don't know the first thing about that. That would probably demand some help from the developers.
     
  3. Gershy13

    Gershy13 Member

    Messages:
    32
    Hardware:
    RPi2
    So is there a solution that's working currently?
     
  4. Gershy13

    Gershy13 Member

    Messages:
    32
    Hardware:
    RPi2
    And isn't too hard to setup?
     
  5. abrenoch

    abrenoch Android Grabber Developer

    Messages:
    94
    Hardware:
    RPi1/Zero, RPi2
    Maybe "solution" wasn't the right word - it is a theoretical solution. All the parts seem to be there, but the missing gap would be the adb minicap -> hyperion. I would wager one could pipe the minicap stream to a full-screen video player that can be parsed by hyperion's internal frame grabber, but I haven't seen this done anywhere yet.

    To my surprise my amp has a 'monitor out' which produces an RCA video signal, which can obviously be used with a usb grabber. If you are using an amp I recommend checking to see if you have one as it should give you a more immediate solution.
     
  6. Gershy13

    Gershy13 Member

    Messages:
    32
    Hardware:
    RPi2
    The first option seems really confusing... If someone simplified it or made a guide then maybe I could try it.

    I do have an amp, but I don't think it has a monitor out... I don't think it has analogue inputs at all...

    And I thought that monitor out only works for the analogue inputs? It sends the analogue inputs directly to this monitor out becuase it can't upscale them to hdmi?

    Which reciever do you have?
     
  7. abrenoch

    abrenoch Android Grabber Developer

    Messages:
    94
    Hardware:
    RPi1/Zero, RPi2
    Well the first option is hypothetical and certainly not something I'm advocating for (but I may consider that if my other option does not work).. It is confusing and as far as I know has never actually been done like that. It would also present a ton of other problem in the event it does miraculously work; such as netflix having DRM.

    I'm rolling the dice with the receiver monitor out. Based on a conversation I had with another user on another forum, he is using his monitor out on his amp for this purpose.. I'm hoping my onkyo (can't remember the model) will exhibit similar behavior.
     
  8. Gershy13

    Gershy13 Member

    Messages:
    32
    Hardware:
    RPi2
    ahh ok...

    i just checked, and apparently my reciever does have monitor out, im not sure if it will send the hdmi signal over it, but ill have to give it a try.
     
  9. abrenoch

    abrenoch Android Grabber Developer

    Messages:
    94
    Hardware:
    RPi1/Zero, RPi2
    I'll be sure to report back here too! I get my usb grabber in the mail tomorrow (I ordered the wrong one, make sure to get a UTV007 - these things all look exactly the same and descriptions are usually lacking), I'm sure hoping it works as expected!
     
  10. Gershy13

    Gershy13 Member

    Messages:
    32
    Hardware:
    RPi2
    i already had one laying around, but i dont think its utv007, it seems to work fairly well tho.
     
  11. abrenoch

    abrenoch Android Grabber Developer

    Messages:
    94
    Hardware:
    RPi1/Zero, RPi2
    Well I go try test the monitor out on my amp, and unfortunately it does no supply the signal as I was hoping (can't say that I'm surprised, that tip came from a questionable source). Some amps do support this however, so YMMV.

    So looks like its back to the drawing board for me...


    I did find a 4k -> RCA downsampler:
    https://www.amazon.com/SOUCOR-Compo...=1514937505&sr=8-1&keywords=hdmi+to+rca+2160p
    https://www.aliexpress.com/item/4K-...-Video-480P-720P-1080P-2160P/32747633901.html

    But the amazon reviews are pretty mixed.

    I did find a splitter that seems promising tho:
    https://www.firefold.com/splitter-hdmi-4k


    As for using ADB... I guess that possibility is still on the table now. If I make any progress in either of these departments I'll be sure to share it here!
     
  12. Gershy13

    Gershy13 Member

    Messages:
    32
    Hardware:
    RPi2
    Thanks... I just tested my reciever and same, it doesn't output anything...

    Those hdmi to RCA adapters look like they are 2160p/30hz and non HDR.

    And the splitter is good, but you would still need a downscaler, as plugging a 1080p device into that would limit everything to 1080p...

    If you are willing to spend lots of money (I'm not) then there is something from Hdfury that will do the job, I'm not sure what it's called tho.

    And there are other options that are £100+
     
  13. abrenoch

    abrenoch Android Grabber Developer

    Messages:
    94
    Hardware:
    RPi1/Zero, RPi2
    Well I decided to gamble on the equipment I listed... You are right about the RCA adapter, but it was the closest thing I could find that was reasonably priced, so we will see how it performs. Plus its from amazon so I'm not worried about sending it back if it doesn't work (the reviews don't exactly instill confidence).

    I'll be sure to share my experience as I fiddle around with this stuff.
     
  14. Gershy13

    Gershy13 Member

    Messages:
    32
    Hardware:
    RPi2
    awesome... well if you only want/need to output 4k at 30fps or lower then it should do the job fine.
     
  15. abrenoch

    abrenoch Android Grabber Developer

    Messages:
    94
    Hardware:
    RPi1/Zero, RPi2
    I'm inclined to feel like that won't make too huge of a difference when it gets to hyperion anyway - the default grabe interval for hyperion is 10fps, so if it can do 30 reliably that would probably be good. Hopefully the RCA converter doesn't mess with the frame rate of the TV connected to the splitter, but Murphy's law and all...
     
  16. Gershy13

    Gershy13 Member

    Messages:
    32
    Hardware:
    RPi2
    i think it will make the tv only do 30fps too... thats how hdmi works with splitters...
     
  17. abrenoch

    abrenoch Android Grabber Developer

    Messages:
    94
    Hardware:
    RPi1/Zero, RPi2
  18. Gershy13

    Gershy13 Member

    Messages:
    32
    Hardware:
    RPi2
    it converts hdcp, im not too sure if it will convert 4k to 1080p tho...

    this and a splitter that will do 4k hdr should work... although very expensive.

    https://www.hdfury.com/product/linker-4k60-444-600mhz-scaler/
     
  19. abrenoch

    abrenoch Android Grabber Developer

    Messages:
    94
    Hardware:
    RPi1/Zero, RPi2
    Well assuming the 4k -> RCA gadget above actually works and is incompatible with 60hz, I'm wondering if that monoprice converter will allow the TV to run at 60hz while it converts the signal to 30hz for the adapter.
     
  20. Gershy13

    Gershy13 Member

    Messages:
    32
    Hardware:
    RPi2
    i dont really think it will, but its worth a try as its so cheap...
    And i agree that converter is really expensive and isnt worth it... i would just go for dreamscreen or lightberry 4k