SageTV Community  

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

Notices

SageTV Github Development Discussion related to SageTV Open Source Development. Use this forum for development topics about the Open Source versions of SageTV, hosted on Github.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 08-25-2018, 09:45 PM
ASegredo ASegredo is offline
Sage Advanced User
 
Join Date: Jun 2005
Posts: 141
No Live video in Gentoo Linux

I installed the latest V9 on two Gentoo Linux computers following https://forums.sagetv.com/forums/showthread.php?t=63946

The installations went well and I could use Placeshifter to access Windows v9 servers as well as record with the two new Linux v9 servers. However I can't view live video on either although I can record and play back with the native Gentoo mplayer but not the bundled mplayer.

Looking for support here with this binary install outside of portage.
One computer uses a Hauppauge Quad and the other uses an HVR-1600.
Both record and playback with my native mplayer but will not live play. there is no error message just a black screen with no audio until I kill playback.

EDIT: I've enabled debug logging but I don't know where the log is. It's not in /var/log

Last edited by ASegredo; 08-26-2018 at 04:46 PM.
Reply With Quote
  #2  
Old 08-27-2018, 02:07 PM
ASegredo ASegredo is offline
Sage Advanced User
 
Join Date: Jun 2005
Posts: 141
I believe mplayer is respawning:

tony@MSI ~ $ ps a|grep mplayer
5207 pts/3 S+ 0:00 grep --colour=auto mplayer
tony@MSI ~ $ ps a|grep mplayer
5209 pts/3 S+ 0:00 grep --colour=auto mplayer
tony@MSI ~ $ ps a|grep mplayer
5211 pts/3 S+ 0:00 grep --colour=auto mplayer
tony@MSI ~ $ ps a|grep mplayer
5213 pts/3 S+ 0:00 grep --colour=auto mplayer
Reply With Quote
  #3  
Old 08-27-2018, 07:08 PM
ASegredo ASegredo is offline
Sage Advanced User
 
Join Date: Jun 2005
Posts: 141
Respawning seems due to missing library:

$ ./mplayer --help
./mplayer: error while loading shared libraries: libaudio.so.2: cannot open shared object file: No such file or directory

So where to pick up that library? And what version of mplayer is SageTV using? Maybe I can use the native mplayer?

Last edited by ASegredo; 08-27-2018 at 08:22 PM. Reason: Posted in wrong forum
Reply With Quote
  #4  
Old 08-28-2018, 05:16 AM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
Quote:
Originally Posted by ASegredo View Post
Respawning seems due to missing library:

$ ./mplayer --help
./mplayer: error while loading shared libraries: libaudio.so.2: cannot open shared object file: No such file or directory

So where to pick up that library? And what version of mplayer is SageTV using? Maybe I can use the native mplayer?
The notion of upgrading mplayer has certainly come up many times. The problem is that sagetv is using a custom version of mplayer (ie, sagetv has added its own modifications to the mplayer code). It's not an easy process, and not sure anyone is up to doing it

I suspect you are missing libasla or libpulse. Maybe install those and see if changes things.
Reply With Quote
  #5  
Old 08-28-2018, 07:46 AM
ASegredo ASegredo is offline
Sage Advanced User
 
Join Date: Jun 2005
Posts: 141
Thank you, Stuckless. I was hoping you would lend a hand.
I don't run pulseaudio, is it a requirement?
I am pursuing how to get libaudio.so on the gentoo forum. I can't find a package named libalsa but it sounds encouraging.

I do know that mplayer has a checkered past of interface changes and incompatible versions. I know zero about java but used to be a pretty good C/C++ programmer. Could you point me to the source of Sage's mplayer so that I can compare them to the Gentoo source and maybe see what's different?

I know Gentoo is a niche distro but I'd like to see SageTV expand past Ubuntu and RedHat, maybe into FreeBsd.
Reply With Quote
  #6  
Old 08-28-2018, 08:57 AM
wnjj wnjj is offline
Sage Icon
 
Join Date: Jan 2009
Posts: 1,514
Quote:
Originally Posted by ASegredo View Post
Thank you, Stuckless. I was hoping you would lend a hand.
I don't run pulseaudio, is it a requirement?
I am pursuing how to get libaudio.so on the gentoo forum. I can't find a package named libalsa but it sounds encouraging.

I do know that mplayer has a checkered past of interface changes and incompatible versions. I know zero about java but used to be a pretty good C/C++ programmer. Could you point me to the source of Sage's mplayer so that I can compare them to the Gentoo source and maybe see what's different?

I know Gentoo is a niche distro but I'd like to see SageTV expand past Ubuntu and RedHat, maybe into FreeBsd.
https://github.com/google/sagetv/tre..._party/mplayer
Reply With Quote
  #7  
Old 08-28-2018, 10:48 AM
ASegredo ASegredo is offline
Sage Advanced User
 
Join Date: Jun 2005
Posts: 141
Thank you, wnjj!
Reply With Quote
  #8  
Old 08-28-2018, 10:55 AM
ASegredo ASegredo is offline
Sage Advanced User
 
Join Date: Jun 2005
Posts: 141
The gentoo package is named "nas" which has libraries for accessing Network Attached Storage. I installed that and the error goes away.

After starting the sageserver service and starting the sage client:
tony@MSI server $ ps -e |grep -v \?
PID TTY TIME CMD
2777 tty7 00:00:12 X
2819 tty1 00:00:00 agetty
2820 tty2 00:00:00 agetty
2821 tty3 00:00:00 agetty
2822 tty4 00:00:00 agetty
2823 tty5 00:00:00 agetty
2824 tty6 00:00:00 agetty
3146 pts/0 00:00:00 bash
4337 pts/0 00:00:00 startsagecore
4360 pts/0 00:00:39 java
4444 pts/0 00:00:00 bash
4445 pts/0 00:00:00 sh
4450 pts/0 00:00:20 java
5046 pts/0 00:00:00 ps
5047 pts/0 00:00:00 grep
I think that second java is the client
After stopping the client:
tony@MSI server $ ps -e |grep -v \?
PID TTY TIME CMD
2777 tty7 00:00:12 X
2819 tty1 00:00:00 agetty
2820 tty2 00:00:00 agetty
2821 tty3 00:00:00 agetty
2822 tty4 00:00:00 agetty
2823 tty5 00:00:00 agetty
2824 tty6 00:00:00 agetty
3146 pts/0 00:00:00 bash
4337 pts/0 00:00:00 startsagecore
4360 pts/0 00:00:39 java
5056 pts/0 00:00:00 ps
5057 pts/0 00:00:00 grep

I still have no live TV but mplayer has to be good because when I start mplayer from the client directory with ./mplayer <video file> with a video file recorded by SageTV from this software it plays beautifully.
Reply With Quote
  #9  
Old 08-28-2018, 06:13 PM
ASegredo ASegredo is offline
Sage Advanced User
 
Join Date: Jun 2005
Posts: 141
Tried to run the client with gdb as I found somewhere from google. It has a segfault. Don't know where to go from here. I'm running oracle java 1.8
On my XP box, I'm running 1.6
I tried running 1.8 on XP and Sage crashed. Maybe I should try to find 1.6 for Linux?
Reply With Quote
  #10  
Old 08-29-2018, 05:14 AM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
I run the sagetvclient package on my linux (Ubuntu 18.04) with java 8 and 9, and I haven't noticed any issues.
Reply With Quote
  #11  
Old 08-30-2018, 06:33 AM
ASegredo ASegredo is offline
Sage Advanced User
 
Join Date: Jun 2005
Posts: 141
I found the miniclient.log

Quote:
Type size error: sizeof(jint) < sizeof(size_t)
Type size error: sizeof(jint) < sizeof(ssize_t)
Type size error: sizeof(jint) < sizeof(ino_t)
Type size error: sizeof(jint) < sizeof(nlink_t)
Type size error: sizeof(jint) < sizeof(blksize_t)
Type size error: sizeof(jint) < sizeof(nfds_t)
Type size error: sizeof(jint) < sizeof(msgqnum_t)
Type size error: sizeof(jint) < sizeof(msglen_t)
Type size error: sizeof(int) < sizeof(ino_t)
java.lang.UnsatisfiedLinkError: no Sage in java.library.path
Wed 8/29 19:48:21.551 stderr:./mplayer: error while loading shared libraries: libtinfo.so.5: cannot open shared object file: No such file or directory
Wed 8/29 19:48:51.317 Connection error 0, exiting
Wed 8/29 19:49:42.063 GFX channel detected a connection error and we're in a mode that allows reconnect...try to reconnect to the server now
Wed 8/29 19:49:42.068 Error w/ Media Thread: java.io.EOFException
Wed 8/29 19:49:42.069 Error with reply from server:0
Wed 8/29 19:49:42.570 Error w/ event thread: java.net.SocketException: Socket closed
Wed 8/29 19:49:42.571 Event channel error occurred...closing other sockets to force reconnect...
Wed 8/29 19:49:42.571 Error w/ event thread: java.net.SocketException: Socket closed
Wed 8/29 19:49:42.572 Event channel error occurred...closing other sockets to force reconnect...
Wed 8/29 19:49:45.560 Error w/ GFX Thread: java.io.EOFException
Wed 8/29 19:49:45.577 Connection error 0, exiting
Wed 8/29 19:49:45.613 Error w/ Media Thread: java.net.SocketException: Socket closed
Wed 8/29 19:50:07.485 stderr:./mplayer: error while loading shared libraries: libtinfo.so.5: cannot open shared object file: No such file or directory
Wed 8/29 19:54:20.256 Connection error 0, exiting
Wed 8/29 19:56:17.178 Error w/ Media Thread: java.net.SocketException: Socket closed
Wed 8/29 19:56:17.185 Connection error 0, exiting
The libtinfo.so problem is caused by it being optional on Gentoo. I needed to rebuild ncurses with the tinfo use flag.

I don't understand why the type size errors. My Gentoo Linux is multilib.

EDIT:
One big problem was that I hadn't set the user vm, only the system vm. It's running smoother now but still no video.
Current error messages are:
Quote:
Type size error: sizeof(jint) < sizeof(size_t)
Type size error: sizeof(jint) < sizeof(ssize_t)
Type size error: sizeof(jint) < sizeof(ino_t)
Type size error: sizeof(jint) < sizeof(nlink_t)
Type size error: sizeof(jint) < sizeof(blksize_t)
Type size error: sizeof(jint) < sizeof(nfds_t)
Type size error: sizeof(jint) < sizeof(msgqnum_t)
Type size error: sizeof(jint) < sizeof(msglen_t)
Type size error: sizeof(int) < sizeof(ino_t)
java.lang.UnsatisfiedLinkError: no Sage in java.library.path
Thu 8/30 9:09:46.766 stderr:./mplayer: error while loading shared libraries: libjpeg.so.8: cannot open shared object file: No such file or directory
Thu 8/30 9:22:32.107 Connection error 0, exiting
I had to downgrade ncurses from version 6 to version 5. My libjpeg.so is libjpeg.so.62 so I don't know where I'm going to find so.8 but I'll search.
Perhaps I have it on my Ubuntu partition.

Stuckless, I could really use help with the java errors. What do they indicate to you? I'm using oracle java 1.8

Last edited by ASegredo; 08-30-2018 at 11:40 AM. Reason: added quote tags for clarity
Reply With Quote
  #12  
Old 08-30-2018, 11:24 AM
ASegredo ASegredo is offline
Sage Advanced User
 
Join Date: Jun 2005
Posts: 141
SUCCESS!
I had to install these packages:
Quote:
media-libs/nas
ncurses-5 with tinfo support
media-libs/libpng:1.2
media-libs/jpeg:8
There still are error messages in the log but it records shows and will play live TV using Hauppauge HVR-1600

The mplayer screen doesn't have a maximum button. Is that normal for SageTV 9 on Linux?

The remaining errors are:
Quote:
tmp $ grep -i error *.log
Type size error: sizeof(jint) < sizeof(size_t)
Type size error: sizeof(jint) < sizeof(ssize_t)
Type size error: sizeof(jint) < sizeof(ino_t)
Type size error: sizeof(jint) < sizeof(nlink_t)
Type size error: sizeof(jint) < sizeof(blksize_t)
Type size error: sizeof(jint) < sizeof(nfds_t)
Type size error: sizeof(jint) < sizeof(msgqnum_t)
Type size error: sizeof(jint) < sizeof(msglen_t)
Type size error: sizeof(int) < sizeof(ino_t)
java.lang.UnsatisfiedLinkError: no Sage in java.library.path
Thu 8/30 12:04:15.908 stderr:a52: error at resampling
Thu 8/30 12:04:15.918 stdout:[mpegvideo @ 0xe3a060]concealing 1260 DC, 1260 AC, 1260 MV errors
Thu 8/30 12:04:37.767 Connection error 0, exiting
The full log is here: http://dpaste.com/2QVG0Q3
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
PlaybackException on gentoo/amd64 dkg SageTV Linux 2 06-16-2008 09:00 PM
Can't (reliably) watch HDHomerun live tv on Sage linux touchstone SageTV Linux 24 05-12-2008 08:40 PM
Why Gentoo? InTheFlow SageTV Linux 6 04-06-2008 05:46 PM
Gentoo 2006.1 psenechal SageTV Linux 5 11-10-2006 09:49 AM
Gentoo Network Issue Help psenechal SageTV Linux 25 09-19-2006 12:55 PM


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


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