SageTV Community  

Go Back   SageTV Community > SageTV Development and Customizations > SageTV Clients Development
Forum Rules FAQs Community Downloads Today's Posts Search

Notices

SageTV Clients Development This forum is for discussions relating to SageTV Open Source Clients Development.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 11-01-2017, 11:48 AM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
Android MiniClient 1.2.9

Last night I pushed out a new MiniClient release. The last one was in May, and sadly this is not a big release.

I've updated the Players (IJKPlayer and ExoPlayer) to their latest releases.

I fixed a numbe of errors that was reported through the Android Developer console.

And I think that ExoPlayer is probably just as good as IJKPlayer in my testing. I'm now using ExoPlayer as my default player for the first time. My biggest gripe with ExoPlayer was that it would mess up sometimes when I skip commercials, or skip ahead, but I think I've fixed that now.
Reply With Quote
  #2  
Old 11-01-2017, 12:23 PM
TwistedMelon TwistedMelon is offline
Sage Expert
 
Join Date: Aug 2005
Location: Ontario, Canada
Posts: 554
Is it live on the Play Store or did you just submit it? I just picked up a Shield earlier today and the Sage download about an hour ago was 1.2.8.

Played a couple of recordings without issue without changing anything. This afternoon/evening I'll hopefully have time to set it up in earnest and do stuff like copying over the properties from my HD300 for theme/UI.

Looking forward to seeing all your hard work. Thanks again for making this a reality. It's shame more people don't know about this and SageTV in general.
__________________
Bruno
Twisted Melon Inc.
While you're clicking, check out my Mini Theater custom build.
Reply With Quote
  #3  
Old 11-01-2017, 12:51 PM
trk2 trk2 is offline
Sage Aficionado
 
Join Date: Jan 2006
Location: Maine
Posts: 499
Good news and thanks for your continued work. As someone who values audio passthrough it is very exciting to hear the stability of ExoPlayer has been improved.
Reply With Quote
  #4  
Old 11-01-2017, 01:04 PM
btrcp2000 btrcp2000 is offline
Sage Fanatic
 
Join Date: Aug 2007
Posts: 888
Just dl'ed now, version says 1.28 but date is 10/31/17 and notes reflect changes above. Maybe the version didn't get updated?
__________________
[size=1]Current Server:V9 UNRAID Docker, SuperMicro x9dri-LNF4+, 32 GB ECC, 2x Xeon e5-2660v2, storage array 6TB, 2 Dish r5000HD tuners, 1 HDHomerun Quatro, 1 HDHomerun Extend
4 Nvidia Shield TVs with Miniclient
Reply With Quote
  #5  
Old 11-01-2017, 02:24 PM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
Quote:
Originally Posted by TwistedMelon View Post
.. and the Sage download about an hour ago was 1.2.8.
Quote:
Originally Posted by btrcp2000 View Post
Just dl'ed now, version says 1.28 but date is 10/31/17 and notes reflect changes above. Maybe the version didn't get updated?
Yeah, sadly, it would appear that I did not update the version text (I did update the version counter, but not the display text )
Reply With Quote
  #6  
Old 11-01-2017, 05:46 PM
KarylFStein KarylFStein is offline
Sage Fanatic
 
Join Date: Apr 2006
Location: Westland, Michigan, USA
Posts: 999
Quote:
Originally Posted by stuckless View Post
Last night I pushed out a new MiniClient release. The last one was in May, and sadly this is not a big release.

I've updated the Players (IJKPlayer and ExoPlayer) to their latest releases.

I fixed a numbe of errors that was reported through the Android Developer console.

And I think that ExoPlayer is probably just as good as IJKPlayer in my testing. I'm now using ExoPlayer as my default player for the first time. My biggest gripe with ExoPlayer was that it would mess up sometimes when I skip commercials, or skip ahead, but I think I've fixed that now.
Thanks for the update. I usually use IJKPlayer on my tablet as I have not had much luck with ExoPlayer on it. However, I saw this post and saw that the update had been installed on my tablet, so tried ExoPlayer tonight. (If it makes a difference note that I'm currently a few thousand miles away from my server and on a shoddy Internet connection.) While I had audio it was interrupted by loud "pops" every few seconds and no video. IJKPlayer seemed to work fine in brief testing although short skips of 10 seconds didn't do anything, (not a big deal as the longer skips over 30 seconds e.g. commercial breaks so far seemed to work). And I had the app close on me a couple time in the middle of playback, (same thing yesterday before the update, though).

Do you have WAN connections as part of your testing? I am guessing that is a totally different beast as it does transcoding. But I would think that would help smooth things out assuming the server could keep up, which mine should be well able to do.

Anyway, I have no idea of all the pieces involved with remote playback, but if retiring IJKPlayer is on the table, (not sure if it is, but seems like it might help development to not have to manage two players), please keep remote playbck in mind.

That said, I've been on the road for a couple weeks now and while there have been some inconviences with the app shutting down or skipping stopping working as you got past the halfway mark on a show, it did not drive me to stream something directly from the content providers as in the past. So I think good progress. I'm looking forward to trying this on my SHIELD when I get home.
__________________
Home Network: https://karylstein.com/technology.html
Reply With Quote
  #7  
Old 11-01-2017, 05:52 PM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
Quote:
Originally Posted by KarylFStein View Post
Thanks for the update. I usually use IJKPlayer on my tablet as I have not had much luck with ExoPlayer on it. However, I saw this post and saw that the update had been installed on my tablet, so tried ExoPlayer tonight. (If it makes a difference note that I'm currently a few thousand miles away from my server and on a shoddy Internet connection.) While I had audio it was interrupted by loud "pops" every few seconds and no video. IJKPlayer seemed to work fine in brief testing although short skips of 10 seconds didn't do anything, (not a big deal as the longer skips over 30 seconds e.g. commercial breaks so far seemed to work). And I had the app close on me a couple time in the middle of playback, (same thing yesterday before the update, though).

Do you have WAN connections as part of your testing? I am guessing that is a totally different beast as it does transcoding. But I would think that would help smooth things out assuming the server could keep up, which mine should be well able to do.

Anyway, I have no idea of all the pieces involved with remote playback, but if retiring IJKPlayer is on the table, (not sure if it is, but seems like it might help development to not have to manage two players), please keep remote playbck in mind.

That said, I've been on the road for a couple weeks now and while there have been some inconviences with the app shutting down or skipping stopping working as you got past the halfway mark on a show, it did not drive me to stream something directly from the content providers as in the past. So I think good progress. I'm looking forward to trying this on my SHIELD when I get home.
Thanks for the feedback, it's good to know, and not to worry, IJKPlayer is not being retired anytime soon.

In all my years with sagetv I've never accessed sagetv outside of my LAN, so, no internet testing is not on my list
Reply With Quote
  #8  
Old 11-01-2017, 05:54 PM
TwistedMelon TwistedMelon is offline
Sage Expert
 
Join Date: Aug 2005
Location: Ontario, Canada
Posts: 554
Looks great running the MBDiamond theme. Just had time to go through a few menus and test playback again - need to switch over to EXO to test.

I definitely need to get that Flirc ASAP to be able to use more buttons/keys. The restrictions when only using the basic Shield remote will drive me batty. Especially missing multiple skips in each directions, but also not being able to hold down any of the navigation buttons to repeat (scrolling, skipping, etc.)
__________________
Bruno
Twisted Melon Inc.
While you're clicking, check out my Mini Theater custom build.
Reply With Quote
  #9  
Old 11-01-2017, 08:51 PM
TwistedMelon TwistedMelon is offline
Sage Expert
 
Join Date: Aug 2005
Location: Ontario, Canada
Posts: 554
Got a little more time testing...

I deleted SageTV from the Shield TV and did a fresh download, just in case. I verified the one downloaded contained the release not about EXO now working better.

EXO won't work. Video stutters and plays erratically and no sound is output. I did get sound one time but it was garbled and after a few seconds it locked up. I'd really like to get this working and hopefully be able to pass through all audio to my processor and AVR.

IJK seems to play recorded MPEG2-PS well. Skipping work but shows some slow-down when resuming. Not a huge deal. But, all audio is output as LPCM which my video processor/HDMI switcher reports as 2xLPCM. I'll have to do an audible test tomorrow to see if that's right.
__________________
Bruno
Twisted Melon Inc.
While you're clicking, check out my Mini Theater custom build.

Last edited by TwistedMelon; 11-02-2017 at 12:59 PM. Reason: MPEG2-PS, not TS
Reply With Quote
  #10  
Old 11-02-2017, 04:54 AM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
Quote:
Originally Posted by TwistedMelon View Post
Got a little more time testing...

I deleted SageTV from the Shield TV and did a fresh download, just in case. I verified the one downloaded contained the release not about EXO now working better.

EXO won't work. Video stutters and plays erratically and no sound is output. I did get sound one time but it was garbled and after a few seconds it locked up. I'd really like to get this working and hopefully be able to pass through all audio to my processor and AVR.

IJK seems to play recorded MPEG-TS well. Skipping work but shows some slow-down when resuming. Not a huge deal. But, all audio is output as LPCM which my video processor/HDMI switcher reports as 2xLPCM. I'll have to do an audible test tomorrow to see if that's right.
That's too bad. I guess we'll have to see well it works when there is a new ExoPlayer build. I don't think these issues are anything that I can fix in the client, so hopefully ExoPlayer improves.
Reply With Quote
  #11  
Old 11-02-2017, 05:52 AM
TwistedMelon TwistedMelon is offline
Sage Expert
 
Join Date: Aug 2005
Location: Ontario, Canada
Posts: 554
Is the lack of pass-through with IJK a hard limitation or something that can be changed at some point in the future?

Any other libraries or code out there that can be leveraged for playback, such as what's currently in Kodi and Plex?
__________________
Bruno
Twisted Melon Inc.
While you're clicking, check out my Mini Theater custom build.
Reply With Quote
  #12  
Old 11-02-2017, 06:59 AM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
Quote:
Originally Posted by TwistedMelon View Post
Is the lack of pass-through with IJK a hard limitation or something that can be changed at some point in the future?

Any other libraries or code out there that can be leveraged for playback, such as what's currently in Kodi and Plex?
I'm sure it could be changed in ijkplayer, but who would do it? It's not of interest to the maintainer of ijkplayer, and the solution, from what I can tell needs be specific to the hardware. It's not something I'm going to do.

ExoPlayer, since it supports audio passthough, is really your best shot. The audio pops, etc, seem like something that could be fixed in the ExoPlayer side, I'm guessing. You can try opening a bug there, but they'll need a sample media file, etc, and they are not the friendliest bunch of people

As for Plex/Kodi... I guess we'll have to wait for a lead developer on one of those pojects to join sagetv. Although, personally, I think it might be easier to recreate the MiniClient inside of Kodi, instead of actually trying to pull in the Kodi player. This is what Plex did.
Reply With Quote
  #13  
Old 11-02-2017, 10:49 AM
TwistedMelon TwistedMelon is offline
Sage Expert
 
Join Date: Aug 2005
Location: Ontario, Canada
Posts: 554
SageTV inside Kodi as a plugin would work.

I still don't understand the need/use of Plex inside Kodi. They're both based originally on the same XBMC code base. Each is available to install on platforms where the other is available. It's no more difficult to install a native Plex app than it is to install the Plex plugin within Kodi.

I was hoping the Kodi or Plex playback code could easily be pulled from a repository and used in place of exo/ijk.

Last night I found the thread where you asked the IJK dev about passthrough and saw it didn't get any traction. Unfortunately he must be playing all his media sitting in front of a 2-speaker computer.

I'm happy to submit a video stream to the EXO devs - it doesn't matter what file I play, every recording from my Hauppauge digital tuner seems to exhibit the same results.
__________________
Bruno
Twisted Melon Inc.
While you're clicking, check out my Mini Theater custom build.
Reply With Quote
  #14  
Old 11-02-2017, 01:03 PM
TwistedMelon TwistedMelon is offline
Sage Expert
 
Join Date: Aug 2005
Location: Ontario, Canada
Posts: 554
All the info I could quickly bring up on EXO indicates that at the time, they didn't support H.222 (MPEG2-PS) - the streams Sage is saving to disk directly from Hauppauge's OTA tuners.
__________________
Bruno
Twisted Melon Inc.
While you're clicking, check out my Mini Theater custom build.
Reply With Quote
  #15  
Old 11-02-2017, 02:18 PM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
Quote:
Originally Posted by TwistedMelon View Post
I still don't understand the need/use of Plex inside Kodi. They're both based originally on the same XBMC code base. Each is available to install on platforms where the other is available. It's no more difficult to install a native Plex app than it is to install the Plex plugin within Kodi.
I'm pretty Plex devs get the standard, "but kodi can play... how come you can't". They both might have grew out of the same xmbc code, but that was many years ago, and they are both very different beasts today.

Quote:
Originally Posted by TwistedMelon View Post
Unfortunately he must be playing all his media sitting in front of a 2-speaker computer.
I can't say much... I use a 2 speaker bose setup.


Quote:
Originally Posted by TwistedMelon View Post
All the info I could quickly bring up on EXO indicates that at the time, they didn't support H.222 (MPEG2-PS) - the streams Sage is saving to disk directly from Hauppauge's OTA tuners.
Jeff (Narflex) added MPEG2-PS processing to ExoPlayer.

The bigger problem with ExoPlayer is they refuse to add hacks to work around problems in streams (unlike ffmpeg), so if they analyzed your stream, and found that the hardware was creating some errors in the stream, they'd say, too bad. ExoPlayer is really good for single purpose players like Netflix and YouTube where they control the content and player, but doesn't work so well for media players that need to support lots of different stream types (like sagetv). It's working OK for me now, because all my streams are TS stream with some mkv/mp4 files.
Reply With Quote
  #16  
Old 11-02-2017, 02:38 PM
TwistedMelon TwistedMelon is offline
Sage Expert
 
Join Date: Aug 2005
Location: Ontario, Canada
Posts: 554
A "perfect video stream" is a pretty novel fantasy.

So how many cases of beer does one have to buy you to get you interested in bringing the Miniclient up as a Kodi plugin?
__________________
Bruno
Twisted Melon Inc.
While you're clicking, check out my Mini Theater custom build.
Reply With Quote
  #17  
Old 11-03-2017, 07:34 AM
TwistedMelon TwistedMelon is offline
Sage Expert
 
Join Date: Aug 2005
Location: Ontario, Canada
Posts: 554
I had the chance to test EXO with some MKV files containing H.264 video streams and AC3 audio - playback was perfect, with fast seek and instant play speed recovery. But this isn't what I need to play back using the mini-client.

Can you let me know where I should submit a bug and offer some video samples? Do you happen to know if Jeff is still interested in/able to make any changes to the code he added for MPEG2-PS?

Also, have you taken a look at MPV? It seems to have some API access for embedding it within other apps (and Android builds/sources), I just don't know if it can fit within your requirements.
__________________
Bruno
Twisted Melon Inc.
While you're clicking, check out my Mini Theater custom build.
Reply With Quote
  #18  
Old 11-03-2017, 07:52 AM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
Quote:
Originally Posted by TwistedMelon View Post
I had the chance to test EXO with some MKV files containing H.264 video streams and AC3 audio - playback was perfect, with fast seek and instant play speed recovery. But this isn't what I need to play back using the mini-client.

Can you let me know where I should submit a bug and offer some video samples? Do you happen to know if Jeff is still interested in/able to make any changes to the code he added for MPEG2-PS?

Also, have you taken a look at MPV? It seems to have some API access for embedding it within other apps (and Android builds/sources), I just don't know if it can fit within your requirements.
libmpv is certainly feasible, just not trivial to integrate a new player. The bigger barrier would be that I'd need to do a JNI integration and I hate working in JNI. Does libpmv solve the audio passthrough issues? Both ijk and iibpmv use ffmpeg, but I'm not sure what "extras" libmpv is bringing to the table. (I've also looked at using vlc in the past as well, but, the chalenge is that I need build the sagetv streaming protocol into the native part of the library, and that's pretty tedious for me )

EDIT: Submitting an issue for ExoPLayer
https://github.com/google/ExoPlayer/issues
They have a pretty strict issue template.
Reply With Quote
  #19  
Old 11-03-2017, 09:59 AM
TwistedMelon TwistedMelon is offline
Sage Expert
 
Join Date: Aug 2005
Location: Ontario, Canada
Posts: 554
Quote:
Originally Posted by stuckless View Post
Does libpmv solve the audio passthrough issues?
It supports passthrough at least, don't know if issues will come up in implementation.

Quote:
--audio-spdif=<codecs>
List of codecs for which compressed audio passthrough should be used. This works for both classic S/PDIF and HDMI.
The MacOS build seems to play back the couple of recent recordings I tested it with, including fast seeking without any resuming issues.
__________________
Bruno
Twisted Melon Inc.
While you're clicking, check out my Mini Theater custom build.
Reply With Quote
  #20  
Old 11-03-2017, 11:32 AM
nettech_gt nettech_gt is offline
Sage Advanced User
 
Join Date: Jun 2007
Posts: 218
I don't see 1.2.9 on the Amazon app store or JFrog... Will it be made available soon? Thanx!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Android MiniClient v1.2.0 - Released stuckless SageTV Clients Development 189 03-01-2017 07:32 AM
Android MiniClient issue crarbo1 SageTV Clients Development 4 02-13-2017 11:18 AM
Android Miniclient and UK TV rickgillyon SageTV Clients Development 6 12-01-2016 05:58 PM
Android MiniClient 1.0.7 - released stuckless SageTV Clients Development 11 10-15-2016 10:45 AM
[Android MiniClient] Now in BETA stuckless SageTV Clients Development 487 07-03-2016 03:55 PM


All times are GMT -6. The time now is 12:53 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2023, vBulletin Solutions Inc.
Copyright 2003-2005 SageTV, LLC. All rights reserved.