![]() |
|
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. |
![]() |
|
Thread Tools | Search this Thread | Display Modes |
#1
|
|||
|
|||
No audio from Linux sageclient
I built sage from the github instructions instructions posted by stuckless and I think client and server are running well together....except for a lack of audio from the client software. I can play video, but I get no sound. I installed the sageclient from the .deb file created by the buildall.sh. In the miniclient.log I get the following output:
Quote:
Thanks, REID |
#2
|
|||
|
|||
A little more info... If I connect my Linux client to my Windows server, I can get some audio on some video files. So it isn't as though the client cannot play any audio from videos. Is this simply an issue where some codecs were not included when I compiled it on Linux?
Thanks, REID Last edited by rbolande; 10-06-2015 at 09:27 PM. |
#3
|
||||
|
||||
Quote:
Code:
apt-get install -y unzip \ build-essential \ git \ libx11-dev libxt-dev libraw1394-dev libavc1394-dev libiec61883-dev libfreetype6-dev yasm autoconf libtool openjdk-7-jdk libfaac0 \ libaudio-dev libpulse-dev libasound-dev https://github.com/stuckless/sagetv-...it/Vagrantfile
__________________
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 |
#4
|
|||
|
|||
Thanks for your help! You guys got me headed in the right direction. I found that the issue was that my videos (some of them) have audio encoded using the a52 codec. In order to get things working, I had to do the following (note that I wanted to use jdk8):
Quote:
Then a ./buildall.sh and after that install the .deb package. This resolved the audio playback with some files and the video duration is read properly (as discussed under a separate thread). Now I just neeed to get the video thumbnails figured out and I'll be good. Since running this build of the client (with the a52 codec compiled into mplayer) I have noticed some funkiness that I don't think was present before...I presume that is why a52 was disabled to begin with. Thanks, REID |
#5
|
|||
|
|||
A quick grep shows the following. These are the only instances not in ffmpeg or mplayer
Quote:
Quote:
LinuxMPlayerPlugin.java Code:
415 else*/ if(Sage.MAC_OS_X) 416 { 417 String ret = ""; 418 419 try { 420 // we have to use reflection to get to the renderer... 421 java.lang.Class reClass = uiMgr.getRootPanel().getRenderEngine().getClass(); 422 java.lang.reflect.Method gsvop = reClass.getMethod("getServerVideoOutParams", new Class[]{}); 423 424 ret = (String)gsvop.invoke(uiMgr.getRootPanel().getRenderEngine(), (Object[])null); 425 //System.out.println("++++++++++++++++++++++++++++++++ macstv vo params: "+ret); 426 } catch(Throwable t) { 427 System.out.println("Exception occurred getting vo module params: "+t); 428 } 429 430 cmdOpt2 = ret + " -cache-seek-min 0" + framedropStr; 431 432 // if "linux/audio_output_port" is set to SPDIF, add "-afm hwac3" 433 if ("SPDIF".equals(Sage.get("linux/audio_output_port", "Analog"))) 434 cmdOpt2 += " -afm hwac3"; 435 436 canDoFastLoad = false; 437 } 438 else 439 { 440 if (!uiMgr.getBoolean("mplayer/xvmc", false)) 441 { 442 cmdOpt2 = "-colorkey 0x"+Integer.toHexString(getDesktopColorKey())+ 443 " -vo xv:windowevents=0:ck=set -cache-seek-min 0" + framedropStr; 444 } 445 else 446 { // Using xvmc 447 cmdOpt2 = "-colorkey 0x"+Integer.toHexString(getDesktopColorKey())+ 448 " -vo xvmc:windowevents=0:ck=set -vc ffmpeg12mc, -cache-seek-min 0" + framedropStr; 449 } 450 } Code:
if (MiniClient.MAC_OS_X) 453 cmdOpts1 += " -loadmuted"; // we want MPlayer to start in a muted state 454 // If the cache size is too small then when we pause MPlayer it may think it hit an EOS and 455 // kill itself. 768 seems like an OK value, 512 was not big enough (testing with 256K streams) 456 if ("true".equals(MiniClient.myProperties.getProperty("opengl", "true"))) 457 { 458 if (MiniClient.MAC_OS_X) { 459 try { 460 java.lang.Class reClass = gfxEngine.getClass(); 461 java.lang.reflect.Method gsvop = reClass.getMethod("getServerVideoOutParams", new Class[]{}); 462 463 cmdOpt2 = (String)gsvop.invoke(gfxEngine, (Object[])null); 464 if(cmdOpt2 == null) cmdOpt2 = ""; // null string protection... 465 } catch(Throwable t) { 466 System.out.println("Exception getting video server params: "+t); 467 cmdOpt2 = ""; 468 } 469 470 //cmdOpt2 = ((OpenGLGFXCMD)gfxEngine).getVideoOutParams(); 471 } else { 472 cmdOpt2 = "-vo stv:socket=" + (myConn).getVideoSocket() + " -vc ffmpeg12,"; 473 } 474 cmdOpt2 += " -cache-seek-min 0 -framedrop"; 475 } 476 else 477 { 478 if ("false".equals(MiniClient.myProperties.getProperty("xvmc", "false"))) 479 { 480 cmdOpt2 = "-colorkey 0x"+Integer.toHexString(getDesktopColorKey())+ 481 " -vo xv:windowevents=0:ck=set -cache-seek-min 0 -framedrop"; 482 } 483 else 484 { // Using xvmc 485 cmdOpt2 = "-colorkey 0x"+Integer.toHexString(getDesktopColorKey())+ 486 " -vo xvmc:windowevents=0:ck=set, -vc ffmpeg12mc, -cache-seek-min 0 -framedrop"; 487 } 488 } |
#6
|
||||
|
||||
From the code, you can see that both usages of the ffmpeg12mc codec are tied to setting the 'xvmc' property in the config. By default this was disabled...so if it's using ffmpeg12mc, then you've had to set that yourself.
![]() This would have nothing to do with audio issues during playback though.
__________________
Jeffrey Kardatzke Founder of SageTV |
#7
|
|||
|
|||
I have the problem of no audio with 64 bit sage client on Ubuntu, I'm using an HDHR Prime for my tuners.
I have a 32 bit Ubuntu laptop with the 7.1.9 client on it and it can connect to the new ver. 9 server (on Ubuntu) and play sound with the video. |
#8
|
|||
|
|||
Having spent an hour or two today playing with it, I realized I'm not using the mplayer that stuckless spent all the time upgrading (Shoot!) so maybe tomorrow I'll get some time to pull that and try again. sigh! Thanks for the pointers thought.
I also very successfully modified the server plugin for about 30 minutes before realizing that I was using the miniclient. |
#9
|
||||
|
||||
I use 64bit ubuntu for building/testing, and I do recall a no audio issue. I'm pretty sure you are just missing a 'bridge' audio library. Make sure you have alsa and pusle audio libraries installed.
__________________
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 |
#10
|
|||
|
|||
Yep, you were right. :-) I went back to your post about building sage on Linux and loaded the libraries. Have sound now, just gets way ahead of the video as time goes by. :-)
|
#11
|
|||
|
|||
Quote:
![]() |
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
No music Audio and Video is small for SageClient | LWM4P | SageTV Software | 4 | 11-15-2010 09:14 PM |
Linux Placeshifter - Audio but no Video! help! | himay | SageTV Linux | 2 | 09-25-2008 11:34 AM |
Choppy audio in Linux placeshifter | Thomas Wischgol | SageTV Linux | 0 | 10-05-2007 08:20 AM |
Q: SageClient mode w/ Sage Service not saving into SageClient.properties | laurenglenn | SageTV Software | 2 | 06-17-2007 09:22 PM |
"Audio Delay" doesn't work in SageClient 2.1 | wazkaren | SageTV Software | 0 | 11-07-2004 06:01 PM |