|
SageTV Clients Development This forum is for discussions relating to SageTV Open Source Clients Development. |
|
Thread Tools | Search this Thread | Display Modes |
#1
|
|||
|
|||
Android Mini Client Transcoding
I've had some poor WiFi traveling recently. The mini client paused quite a bit during playback so was pretty much unwatchable. I opened a VPN tunnel to my home server, (the same machine running the SageTV server), and streamed from the CBS app through there. (I could not stream directly from CBS because of regional restrictions.) The CBS app buffered a couple times, but then played back smoothly and without blocky artifacts.
So, I'm using the same Internet connection to the US for both streams, but the SageTV one does not seem to keep up/adjust. My CPU should have plenty of power in a single core to transcode on the fly. Any thoughts on getting a better experience through the mini client?
__________________
Home Network: https://karylstein.com/technology.html |
#2
|
||||
|
||||
Quote:
Streaming sites like CBS, YouTube, Netflix, etc, all use adaptive streaming technoogies so they automatically adjust to the variances in the bandwidth... and most of those sites never transcode, they simply have the same file in many different streaming formats to allow for adaptive streaming. My suggestion, would be to use Plex... since it does a decent job on the client and server for streaming, even though it does transcode on the fly... so if the server can handle it, it will create a decent stream for the client.
__________________
Batch Metadata Tools (User Guides) - SageTV App (Android) - SageTV Plex Channel - My Other Android Apps - sagex-api wrappers - Google+ - Phoenix Renamer Downloads SageTV V9 | Android MiniClient |
#3
|
||||
|
||||
Placeshifter actually transcodes to MPEG4 (not h.264), not MPEG2.. still not ideal, and the bitrate management and buffer control is a bit simplistic. It works, but it is really tuned for a steady slow connection, not an intermittent one.
__________________
Buy Fuzzy a beer! (Fuzzy likes beer) unRAID Server: i7-6700, 32GB RAM, Dual 128GB SSD cache and 13TB pool, with SageTVv9, openDCT, Logitech Media Server and Plex Media Server each in Dockers. Sources: HRHR Prime with Charter CableCard. HDHR-US for OTA. Primary Client: HD-300 through XBoxOne in Living Room, Samsung HLT-6189S Other Clients: Mi Box in Master Bedroom, HD-200 in kids room |
#4
|
|||
|
|||
Quote:
I had Plex up at one point and it worked well except I didn't like some of the cloud things that didn't let me do things like share home videos/pictures to others without them having a Plex account to use SSL. Emby gives me more control over SSL and web-based (no account needed) access, so am using that, but without file renaming it does not work well with SageTV. And neither do automatic commercial skipping AFAIK. I was hoping to keep TV in the SageTV ecosystem and hoping for an Apple solution as while I do not buy Apple products my kids and family do. Well, I did get my daughter an iPhone when she turned 16 because I couldn't sell her on Android, but my son has told me that when he turns 16, (and is for some reason expecting a phone as his gift :P), he prefers Android. It seems to be a case of disjointed solutions. I am a big fan of SageTV for CableCard and OTA, (automatic commercial skip is big for me along with the web interfaces). Plex seemed to work well with TV / movies / pictures / transcoding, but put restrictions on things like SSL and accounts. Emby opened things up more with control, but does not have the focus that Plex seems to have with SageTV integration.
__________________
Home Network: https://karylstein.com/technology.html |
#5
|
||||
|
||||
Quote:
I think Emby is a good contender to integrate with sage... It's on my todo list... which is far too long
__________________
Batch Metadata Tools (User Guides) - SageTV App (Android) - SageTV Plex Channel - My Other Android Apps - sagex-api wrappers - Google+ - Phoenix Renamer Downloads SageTV V9 | Android MiniClient |
#6
|
||||
|
||||
Quote:
Also, I believe that the Extenders are setup to compare their IP address with the Sage Server's IP address to determine if they are on the same subnet or not. If they are not on the same subnet, the Server will transcode everything. It uses the MP4 protocol and the bitrate is adaptive, based on bandwidth (call this "remote mode"). If they are on the same subnet, the Server can send the raw files without transcoding (call this "local mode"). I think the Placeshifter works the same way, but it's possible that it transcodes all the time. I think the Android Mini-client currently only operates in what I called "local mode", regardless of whether the client is on the same subnet or not. I thought there was also a provision for the mini-clients to report which formats they support natively, so the server could transcode only the formats that the mini-client doesn't support, but I don't think the Android mini-client makes use of this yet. Maybe I shouldn't post this at all, since I'm clearly not 100% sure about anything I am saying.
__________________
Server: Ryzen 2400G with integrated graphics, ASRock X470 Taichi Motherboard, HDMI output to Vizio 1080p LCD, Win10-64Bit (Professional), 16GB RAM Capture Devices (7 tuners): Colossus (x1), HDHR Prime (x2),USBUIRT (multi-zone) Source: Comcast/Xfinity X1 Cable Primary Client: Server Other Clients: (1) HD200, (1) HD300 Retired Equipment: MediaMVP, PVR150 (x2), PVR150MCE, HDHR, HVR-2250, HD-PVR |
#7
|
|||
|
|||
From what I've seen when I'm on the LAN Placeshifter will not transcode. It seems to detect and ignore the NAT even if I use the external IP to connect.
My job has me travelling a bit and WiFi is really hit-or-miss. And that's on top of not being able to stream several things when outside of the US without doing the VPN tunnel trick. Doesn't WWW stand for *World Wide* Web...?! It's just weird that I can use a VPN tunnel to my home network over poor WiFi and stream things that look sharp on my tablet while the Android mini client craps out. I gave up on Placeshifter on my laptop because of skipping issues, but now that I transcode everything locally after recording, (to get ExoPlayer to work for surround sound as well as local Placeshifter on PCs), I should try it again. I'd like to skip the local transcoding as it seems to mess with the Android mini client, (menu navigation freezes on a regular basis when a transcoding job is running), but it has really helped playback on non-HD300 devices. (The HD300 is a tank. I have not met a stream that it would not just handle. If whatever hardware magic is in there could be baked into the mini client, wow...) I should probably dump Comcast, but CableCard is so darn convenient and Comcast is the only game in town here. I can't see going back to multiple STBs and capture cards.
__________________
Home Network: https://karylstein.com/technology.html |
#8
|
||||
|
||||
Honestly, for remote viewing, it would probably be wise to use Plex, simply because it DOES have a much more advanced transcoding engine, and no one around here is really well versed on the best ways to improve sage's at this time (as well as it being pretty low on everyone's priorities).
__________________
Buy Fuzzy a beer! (Fuzzy likes beer) unRAID Server: i7-6700, 32GB RAM, Dual 128GB SSD cache and 13TB pool, with SageTVv9, openDCT, Logitech Media Server and Plex Media Server each in Dockers. Sources: HRHR Prime with Charter CableCard. HDHR-US for OTA. Primary Client: HD-300 through XBoxOne in Living Room, Samsung HLT-6189S Other Clients: Mi Box in Master Bedroom, HD-200 in kids room |
#9
|
|||
|
|||
How hard would it be to have Sage ask you if you want to use placeshifter vs. regular SageTV across different subnets? I have a 100MB upload speed and a vpn to my home server running on unRAID. I would love to be able to just connect and not use transcoding when I have the bandwidth available. Seems like the change in logic would be pretty simple, but of course I would be completely reliant on someone changing the code for this.
|
#10
|
||||
|
||||
There is an option in Placeshifter to disable transcoding. When you launch Placeshifter, on the Servers Manager window that pops up, click Settings at the bottom. On the Streaming tab, choose Playback media without transcoding (only recommended for LAN usage). This will stream the original file to placeshifter for playback.
__________________
Buy Fuzzy a beer! (Fuzzy likes beer) unRAID Server: i7-6700, 32GB RAM, Dual 128GB SSD cache and 13TB pool, with SageTVv9, openDCT, Logitech Media Server and Plex Media Server each in Dockers. Sources: HRHR Prime with Charter CableCard. HDHR-US for OTA. Primary Client: HD-300 through XBoxOne in Living Room, Samsung HLT-6189S Other Clients: Mi Box in Master Bedroom, HD-200 in kids room |
#11
|
|||
|
|||
So I know I am replying to this way late, but I am using the mini client on my mibox. I have successfully set up an openvpn connection to my home server. Because of the way I have the vpn set up, the mibox is on a different subnet than the server so I get the placeshifter login when I try to connect. I can successfully log in to the placeshifter login screen but I cannot find the setting you are referring to anywhere. Am I missing something? Any way to prevent transcoding? I am getting over 30 mbit throughput.
Last edited by willieb; 08-24-2017 at 05:22 PM. |
#12
|
|||
|
|||
@willieb - The setting that Fuzzy was referring to is on a PC and won't show up on the MiBox.
I saw some discussion on changes being made on github - isn't someone trying to deal with this issue and disable transcoding if the internet speed is fast enough?
__________________
New Server - Sage9 on unRAID 2xHD-PVR, HDHR for OTA Old Server - Sage7 on Win7Pro-i660CPU with 4.6TB, HD-PVR, HDHR OTA, HVR-1850 OTA Clients - 2xHD-300, 8xHD-200 Extenders, Client+2xPlaceshifter and a WHS which acts as a backup Sage server |
#13
|
||||
|
||||
In the Android Miniclient, I believe transcoding is disabled by setting the streaming mode to Pull in the miniclient's settings.
__________________
Buy Fuzzy a beer! (Fuzzy likes beer) unRAID Server: i7-6700, 32GB RAM, Dual 128GB SSD cache and 13TB pool, with SageTVv9, openDCT, Logitech Media Server and Plex Media Server each in Dockers. Sources: HRHR Prime with Charter CableCard. HDHR-US for OTA. Primary Client: HD-300 through XBoxOne in Living Room, Samsung HLT-6189S Other Clients: Mi Box in Master Bedroom, HD-200 in kids room |
#14
|
|||
|
|||
Great. Thanks Wayner.
|
#15
|
|||
|
|||
And just to say it, I think a toggle on the login page would be just as good. I would think it would be easier to implement. I could decide if the bandwidth was acceptable and no one would have to worry about figuring out how to write code for dynamic testing of throughput. If the bandwidth turns out to be not good enough, I would just log out and toggle the switch back to transcode. That might be the fastest approach.
|
#16
|
||||
|
||||
Quote:
This could be done better in the client connection part in the MiniApp, though. ie, I already allow some per connection settings (such as deviceid), so, in theory, the MiniClient connection profile could have a per connection setting that forces PUSH/PULL. Personally I think the server should really manage/fix this by allowing higher bandwidth thoughputs. PUSH is used for transcoding, but, it's also used for LiveTV. PULL likely does support LiveTV as well, but, my guess is that it doesn't do it quite as well, or else the PUSH mode would have never been created.
__________________
Batch Metadata Tools (User Guides) - SageTV App (Android) - SageTV Plex Channel - My Other Android Apps - sagex-api wrappers - Google+ - Phoenix Renamer Downloads SageTV V9 | Android MiniClient |
#17
|
|||
|
|||
update on coding
Folks - the option to pull was actually disabled in the server codebase for most non lan streaming. Narflex approved a change to allow a setting in properties to override the override so this function would work as intended. Issue is, in the old days vpns were too slow for streaming and sage team didn't want users opening the wrong insecure ports in their firewalls.
Not sure when the next version will arrive but eager to test! |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Android TV Mini-client observations | panteragstk | SageTV Clients Development | 29 | 10-29-2017 04:07 PM |
Android miniclient; fuzzy/corrupt video when remote transcoding | redondo_se | SageTV Clients Development | 12 | 11-10-2016 12:14 PM |
Android mini client screen draw issues | Gustovier | SageTV Clients Development | 6 | 10-25-2016 02:33 PM |
Mini-Client vs Full Client vs HD300 | NetworkGuy | SageTV Clients Development | 5 | 09-12-2016 06:11 PM |
[Android Mini Client] Integrate with Android TV 'Live Channels' | dinki | SageTV Clients Development | 11 | 01-31-2016 09:43 AM |