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 03-23-2016, 07:01 AM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
Android MiniClient - Subtitle + CC support

My understanding is that the Android MiniClient should work with .srt files, right now. Could I get someone to confirm if that is the case, and if not, then open an issue.

Handling embedded subtitles is a completely different task, and I might support this initially in ExoPlayer, since they provide access to the Text stream. Jeff provided me with the details on how I need to pass this information to the server, so it might be easier to build and test using ExoPlayer and then modify IJKPlayer to support it as well.

If people have sample files with CC or embedded subtitles, I'd like to get a sample for testing.
Reply With Quote
  #2  
Old 03-23-2016, 09:46 AM
EnterNoEscape's Avatar
EnterNoEscape EnterNoEscape is offline
SageTVaholic
 
Join Date: Jun 2010
Location: Harrisburg, PA
Posts: 2,657
Quote:
Originally Posted by stuckless View Post
My understanding is that the Android MiniClient should work with .srt files, right now. Could I get someone to confirm if that is the case, and if not, then open an issue.

Handling embedded subtitles is a completely different task, and I might support this initially in ExoPlayer, since they provide access to the Text stream. Jeff provided me with the details on how I need to pass this information to the server, so it might be easier to build and test using ExoPlayer and then modify IJKPlayer to support it as well.

If people have sample files with CC or embedded subtitles, I'd like to get a sample for testing.
If you didn't delete them already, all of the video files I sent you had closed captioning still embedded in the video.
__________________
SageTV v9 Server: ASRock Z97 Extreme4, Intel i7-4790K @ 4.4Ghz, 32GB RAM, 6x 3TB 7200rpm HD, 2x 5TB 7200rpm HD, 2x 6TB 7200rpm HD, 4x 256GB SSD, 4x 500GB SSD, unRAID Pro 6.7.2 (Dual Parity + SSD Cache).
Capture: 1x Ceton InfiniTV 4 (ClearQAM), 2x Ceton InfiniTV 6, 1x BM1000-HDMI, 1x BM3500-HDMI.

Clients: 1x HD300 (Living Room), 1x HD200 (Master Bedroom).
Software: OpenDCT :: WMC Live TV Tuner :: Schedules Direct EPG
Reply With Quote
  #3  
Old 03-23-2016, 09:56 AM
HelenWeathers's Avatar
HelenWeathers HelenWeathers is offline
Sage Icon
 
Join Date: Aug 2008
Location: Miami, Florida
Posts: 1,321
Quote:
Originally Posted by EnterNoEscape View Post
If you didn't delete them already, all of the video files I sent you had closed captioning still embedded in the video.
Same here for the ones I sent the first of the year.
__________________
Server: SageTV 9, Win10/32, Intel DP55KG Mb, Intel QC i5 2.66GHz , 4GB 1333MHz DDR3 SDRAM, 2 Hauppauge 2255s for 4 OTA ATSC tuners, HDHRPrime w Comcast, 3 STP-HD300s 20101007-0 firmware, nVidia Shield. Java v7u55. Plugins:SD EPG, OpenDCT
Reply With Quote
  #4  
Old 03-23-2016, 12:11 PM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
Quote:
Originally Posted by EnterNoEscape View Post
If you didn't delete them already, all of the video files I sent you had closed captioning still embedded in the video.
Quote:
Originally Posted by HelenWeathers View Post
Same here for the ones I sent the first of the year.
Perfect... I'll analyze the videos to see which ones have embedded subtitles.

@EnterNoEscape, since you create .srt files for your videos, do you know if the Android MiniClient actually shows them?
Reply With Quote
  #5  
Old 03-23-2016, 03:20 PM
EnterNoEscape's Avatar
EnterNoEscape EnterNoEscape is offline
SageTVaholic
 
Join Date: Jun 2010
Location: Harrisburg, PA
Posts: 2,657
Quote:
Originally Posted by stuckless View Post
Perfect... I'll analyze the videos to see which ones have embedded subtitles.

@EnterNoEscape, since you create .srt files for your videos, do you know if the Android MiniClient actually shows them?
I actually am not doing it with all of my recordings, just the ones I'm testing with the next OpenDCT version. I'll make a few happen and let you know what happens.
__________________
SageTV v9 Server: ASRock Z97 Extreme4, Intel i7-4790K @ 4.4Ghz, 32GB RAM, 6x 3TB 7200rpm HD, 2x 5TB 7200rpm HD, 2x 6TB 7200rpm HD, 4x 256GB SSD, 4x 500GB SSD, unRAID Pro 6.7.2 (Dual Parity + SSD Cache).
Capture: 1x Ceton InfiniTV 4 (ClearQAM), 2x Ceton InfiniTV 6, 1x BM1000-HDMI, 1x BM3500-HDMI.

Clients: 1x HD300 (Living Room), 1x HD200 (Master Bedroom).
Software: OpenDCT :: WMC Live TV Tuner :: Schedules Direct EPG
Reply With Quote
  #6  
Old 03-23-2016, 03:52 PM
nyplayer nyplayer is offline
SageTVaholic
 
Join Date: Sep 2005
Posts: 4,997
Quote:
Originally Posted by stuckless View Post
My understanding is that the Android MiniClient should work with .srt files, right now. Could I get someone to confirm if that is the case, and if not, then open an issue.

Handling embedded subtitles is a completely different task, and I might support this initially in ExoPlayer, since they provide access to the Text stream. Jeff provided me with the details on how I need to pass this information to the server, so it might be easier to build and test using ExoPlayer and then modify IJKPlayer to support it as well.

If people have sample files with CC or embedded subtitles, I'd like to get a sample for testing.
I tried it with video files with srt subtitles and it does not work.
__________________
Channels DVR UBUNTU Server 2 Primes 3 Connects TVE SageTV Docker with input from Channels DVR XMLTV and M3U VIA Opendct.
Reply With Quote
  #7  
Old 03-23-2016, 04:01 PM
EnterNoEscape's Avatar
EnterNoEscape EnterNoEscape is offline
SageTVaholic
 
Join Date: Jun 2010
Location: Harrisburg, PA
Posts: 2,657
I ran a few through the Android miniclient and it worked surprisingly well. I found one with a sync problem, but the HD300 had the same issue with the same recording. It was 20/20, so it's possible that the real problem was "live" closed captioning.

If you want to see similar results, just grab a copy of the CCExtractor source and compile it for Linux. It's really easy since everything needed short of the usual build tools is a part of the package.
__________________
SageTV v9 Server: ASRock Z97 Extreme4, Intel i7-4790K @ 4.4Ghz, 32GB RAM, 6x 3TB 7200rpm HD, 2x 5TB 7200rpm HD, 2x 6TB 7200rpm HD, 4x 256GB SSD, 4x 500GB SSD, unRAID Pro 6.7.2 (Dual Parity + SSD Cache).
Capture: 1x Ceton InfiniTV 4 (ClearQAM), 2x Ceton InfiniTV 6, 1x BM1000-HDMI, 1x BM3500-HDMI.

Clients: 1x HD300 (Living Room), 1x HD200 (Master Bedroom).
Software: OpenDCT :: WMC Live TV Tuner :: Schedules Direct EPG
Reply With Quote
  #8  
Old 03-23-2016, 04:02 PM
nyplayer nyplayer is offline
SageTVaholic
 
Join Date: Sep 2005
Posts: 4,997
Quote:
Originally Posted by EnterNoEscape View Post
I ran a few through the Android miniclient and it worked surprisingly well. I found one with a sync problem, but the HD300 had the same issue with the same recording. It was 20/20, so it's possible that the real problem was "live" closed captioning.

If you want to see similar results, just grab a copy of the CCExtractor source and compile it for Linux. It's really easy since everything needed short of the usual build tools is a part of the package.
Mine did not work ... on the Nexus Player. They work in kodi just fine ... on the Nexus Player
__________________
Channels DVR UBUNTU Server 2 Primes 3 Connects TVE SageTV Docker with input from Channels DVR XMLTV and M3U VIA Opendct.

Last edited by nyplayer; 03-23-2016 at 04:05 PM.
Reply With Quote
  #9  
Old 03-23-2016, 04:07 PM
EnterNoEscape's Avatar
EnterNoEscape EnterNoEscape is offline
SageTVaholic
 
Join Date: Jun 2010
Location: Harrisburg, PA
Posts: 2,657
Quote:
Originally Posted by nyplayer View Post
Mine did not work ... on the Nexus Player. They work in kodi just fine ... on the Nexus Player
I was using the Nexus Player, so you can imagine my surprise that you had a different experience.
__________________
SageTV v9 Server: ASRock Z97 Extreme4, Intel i7-4790K @ 4.4Ghz, 32GB RAM, 6x 3TB 7200rpm HD, 2x 5TB 7200rpm HD, 2x 6TB 7200rpm HD, 4x 256GB SSD, 4x 500GB SSD, unRAID Pro 6.7.2 (Dual Parity + SSD Cache).
Capture: 1x Ceton InfiniTV 4 (ClearQAM), 2x Ceton InfiniTV 6, 1x BM1000-HDMI, 1x BM3500-HDMI.

Clients: 1x HD300 (Living Room), 1x HD200 (Master Bedroom).
Software: OpenDCT :: WMC Live TV Tuner :: Schedules Direct EPG
Reply With Quote
  #10  
Old 03-23-2016, 04:08 PM
nyplayer nyplayer is offline
SageTVaholic
 
Join Date: Sep 2005
Posts: 4,997
Quote:
Originally Posted by EnterNoEscape View Post
I was using the Nexus Player, so you can imagine my surprise that you had a different experience.
What type of file ??? H.264 MPEG2 or mp4?

PS in Kodi you can offset the SRT file to sync with the video.

MP4 Works cannot offset though.

Edit found the offset got them in Sync.
__________________
Channels DVR UBUNTU Server 2 Primes 3 Connects TVE SageTV Docker with input from Channels DVR XMLTV and M3U VIA Opendct.

Last edited by nyplayer; 03-23-2016 at 04:15 PM.
Reply With Quote
  #11  
Old 03-23-2016, 04:13 PM
EnterNoEscape's Avatar
EnterNoEscape EnterNoEscape is offline
SageTVaholic
 
Join Date: Jun 2010
Location: Harrisburg, PA
Posts: 2,657
Quote:
Originally Posted by nyplayer View Post
What type of file ??? H.264 MPEG2 or mp4?
It was a small sampling of MPEG-2 video, MPEG-TS files with .srt files with matching names. Ex. Recording.ts, Recording.srt

I haven't tested it, but I understand you can have multiple subtitle options for one recording like so:
Recording.ts
Recording.cc1.srt
Recording.cc2.srt

I have also added captioning via .srt to one of your recordings and it worked well.

Note that you need to enable subtitles, not closed captioning when using .srt files.
__________________
SageTV v9 Server: ASRock Z97 Extreme4, Intel i7-4790K @ 4.4Ghz, 32GB RAM, 6x 3TB 7200rpm HD, 2x 5TB 7200rpm HD, 2x 6TB 7200rpm HD, 4x 256GB SSD, 4x 500GB SSD, unRAID Pro 6.7.2 (Dual Parity + SSD Cache).
Capture: 1x Ceton InfiniTV 4 (ClearQAM), 2x Ceton InfiniTV 6, 1x BM1000-HDMI, 1x BM3500-HDMI.

Clients: 1x HD300 (Living Room), 1x HD200 (Master Bedroom).
Software: OpenDCT :: WMC Live TV Tuner :: Schedules Direct EPG

Last edited by EnterNoEscape; 03-23-2016 at 04:16 PM.
Reply With Quote
  #12  
Old 03-23-2016, 04:20 PM
nyplayer nyplayer is offline
SageTVaholic
 
Join Date: Sep 2005
Posts: 4,997
Quote:
Originally Posted by EnterNoEscape View Post
It was a small sampling of MPEG-2 video, MPEG-TS files with .srt files with matching names. Ex. Recording.ts, Recording.srt

I haven't tested it, but I understand you can have multiple subtitle options for one recording like so:
Recording.ts
Recording.cc1.srt
Recording.cc2.srt

I have also added captioning via .srt to one of your recordings and it worked well.

Note that you need to enable subtitles, not closed captioning when using .srt files.
Yeah I was enabling CC saw Subtitles they work.
__________________
Channels DVR UBUNTU Server 2 Primes 3 Connects TVE SageTV Docker with input from Channels DVR XMLTV and M3U VIA Opendct.
Reply With Quote
  #13  
Old 03-23-2016, 04:33 PM
nyplayer nyplayer is offline
SageTVaholic
 
Join Date: Sep 2005
Posts: 4,997
They Work with Exoplayer and IJKPlayer.
__________________
Channels DVR UBUNTU Server 2 Primes 3 Connects TVE SageTV Docker with input from Channels DVR XMLTV and M3U VIA Opendct.
Reply With Quote
  #14  
Old 03-24-2016, 05:01 AM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
This is good news Thanks for testing. After talking with Jeff I suspected they should work, since it's all done on the server side and pushed to the client.

Embeddd subtitles are diffrent, and there is still work to do there, but good to know that the srt files work.

Thanks for testing.
Reply With Quote
  #15  
Old 03-28-2016, 01:24 AM
TechBill's Avatar
TechBill TechBill is offline
Sage Fanatic
 
Join Date: Aug 2007
Posts: 827
The "embedded subtitle" are called Closed Captioning .. We Deaf people prefer it call it CC or Closed Captioning not "subtitle" and to keep them separate to avoid the confusion between the two.

Subtitle was designed and intended for to translate spoken language into a different foreign language.

Closed Captioning was designed for Deaf population and it does not do any translating instead it take spoken word into printed word that are in the same language and not only that it also take background sounds and print it out too like *baby crying* or *door slammed* etc along with spoken words.

My family depends on CC and yes SageTV with HD300 does an awesome job with CC decoding on our TV screen and it never misses. Even recording from HDHomeRun which embedded CC into the mpeg files.

I have tried to play back on a android client once but I couldn't toggle the cc off or on in the menu. It wouldn't take but that was months ago when I tried it and it was on a HDHomeRun recording so it was very choppy playback too.

I will install the latest client onto my Nexus player and Firestick then play the HDHomeRun to see if CC work and report back within a day or two.

Now days on Blueray and newer DVD, they stopped embedding CC into the file and started creating a separate file just like the .srt subtitle but it called SDH (Subtitle for the Deaf and Hard of Hearing) because HDMI cannot pass the CC information over to the TV that suppose to be doing the decoding.

When they create HDMI standard, I guess they forgot about the Deaf population and the CC so they started to force cable boxes and players to add the decoder instead of depending on the TV doing the decoder and they made a real mess of thing doing that because every STB manufacture had their own idea of standard to go with. It became a hit and miss with Closed Captioning and that was a horrible year for Deaf population when HDTV started to hit the market way back then.

Thank you for thinking of us Deaf people and making sure it works with your creation. We really appreciate people like you and Jeff his SageTV.

Bill
__________________
HTPC System
GIGABYTE GA-MA69GM-S2H AM2 AMD 690G HDMI // AMD Athlon 64 X2 6000+ Windsor 3.0GHz // G.SKILL 6GB (2 x 2GB) 240-Pin DDR2 SDRAM DDR // Hauppauge Colossus HD-PVR // Hauppauge Colossus HD-PVR // Seagate ST3750640AS 750GB SATA-300 16MB // DVD R/W - SAMSUNG Black
Media Extenders
HD300
HTPC Software
Windows 7 Professional 64bits // SageTV 7.1.x // Java 1.7.x
Reply With Quote
  #16  
Old 03-28-2016, 01:29 AM
TechBill's Avatar
TechBill TechBill is offline
Sage Fanatic
 
Join Date: Aug 2007
Posts: 827
Oh one more thing, If you have received HDHomeRun recordings samples from others in the past, I am sure those samples have already Closed Captioning embedded in it as long it not a commercial or informative show.

Those HDHomeRun samples should work for testing purpose.

It the law in USA that major TV shows or movies are supposed to be CC-ready.

Bill
__________________
HTPC System
GIGABYTE GA-MA69GM-S2H AM2 AMD 690G HDMI // AMD Athlon 64 X2 6000+ Windsor 3.0GHz // G.SKILL 6GB (2 x 2GB) 240-Pin DDR2 SDRAM DDR // Hauppauge Colossus HD-PVR // Hauppauge Colossus HD-PVR // Seagate ST3750640AS 750GB SATA-300 16MB // DVD R/W - SAMSUNG Black
Media Extenders
HD300
HTPC Software
Windows 7 Professional 64bits // SageTV 7.1.x // Java 1.7.x
Reply With Quote
  #17  
Old 03-28-2016, 05:21 AM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
@TechBill - Thanks for the clarification on subtitles vs CC. I referenced it that way, because technically, in how the server handled them, they go through the same processes.

That being said, the Android MiniClient has no support, yet, for CC (while it does work with external srt files). I have some work to do there, and unfortunately, CC support will be a little slower coming, because it will require that I make native changes to the player in order to pull out the information and then send it back to sagetv server.
Reply With Quote
  #18  
Old 03-28-2016, 05:44 AM
stanger89's Avatar
stanger89 stanger89 is offline
SageTVaholic
 
Join Date: May 2003
Location: Marion, IA
Posts: 15,188
Quote:
Originally Posted by TechBill View Post
Now days on Blueray and newer DVD, they stopped embedding CC into the file and started creating a separate file just like the .srt subtitle but it called SDH (Subtitle for the Deaf and Hard of Hearing) because HDMI cannot pass the CC information over to the TV that suppose to be doing the decoding.

When they create HDMI standard, I guess they forgot about the Deaf population and the CC so they started to force cable boxes and players to add the decoder instead of depending on the TV doing the decoder and they made a real mess of thing doing that because every STB manufacture had their own idea of standard to go with.
That's because TVs don't "decode" anything from HDMI. HDMI carries raw, uncompressed video, there's no decoding done at the display. All video decoding and UI compositing is the responsibility of the playback device when we're talking HDMI.

It's not like a OTA (coax input) signal where the TV demodulates, demuxes, and decodes the compressed bitstream and does any compositing itself.
Reply With Quote
  #19  
Old 04-04-2016, 09:15 PM
TechBill's Avatar
TechBill TechBill is offline
Sage Fanatic
 
Join Date: Aug 2007
Posts: 827
I wanted to added right now in the mini-client on the playback menu, Captions (Off) cannot be toggle On. When I click on it to enable it - nothing happens it stays at (Off)

I think we need to change the wording "Captions" I believe proper term is either Closed Captions, CC, or [CC] but I know that not related to mini-client and need to be updated in main SageTV core.

Bill
__________________
HTPC System
GIGABYTE GA-MA69GM-S2H AM2 AMD 690G HDMI // AMD Athlon 64 X2 6000+ Windsor 3.0GHz // G.SKILL 6GB (2 x 2GB) 240-Pin DDR2 SDRAM DDR // Hauppauge Colossus HD-PVR // Hauppauge Colossus HD-PVR // Seagate ST3750640AS 750GB SATA-300 16MB // DVD R/W - SAMSUNG Black
Media Extenders
HD300
HTPC Software
Windows 7 Professional 64bits // SageTV 7.1.x // Java 1.7.x
Reply With Quote
  #20  
Old 04-05-2016, 05:02 AM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
Quote:
Originally Posted by TechBill View Post
I wanted to added right now in the mini-client on the playback menu, Captions (Off) cannot be toggle On. When I click on it to enable it - nothing happens it stays at (Off)

I think we need to change the wording "Captions" I believe proper term is either Closed Captions, CC, or [CC] but I know that not related to mini-client and need to be updated in main SageTV core.

Bill
Thanks Bill, I haven't done any work, yet, on enabling CC in the MiniCient. Unfortunately it's not a trivial task Out of curiousity, how does one go about enabling CC?
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
SageTV MiniClient for Android Indiegogo Campaign (Thanks) stuckless SageTV Clients Development 14 09-18-2022 07:15 AM
Android MiniClient for TV is Released to the Play Store stuckless SageTV Clients Development 106 01-08-2017 01:42 AM
[Android MiniClient] Now in BETA stuckless SageTV Clients Development 487 07-03-2016 03:55 PM
[Android MiniClient] Need a better start screen stuckless SageTV Clients Development 16 01-29-2016 01:55 PM
MPEG2 Support in Android MiniClient stuckless SageTV Clients Development 24 01-03-2016 10:09 AM


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


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