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
  #21  
Old 01-21-2016, 06:41 AM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
Quote:
Originally Posted by dranockcir View Post
Ahh, yes, I forgot about the ./

I can't find a config file to speciy the audio output. Also I think my problem is that my audio is ac-3 since my recordings are from the HDHR Prime.


rick@rick-OptiPlex-980:/opt/sagetv/client$ ./mplayer -ao help
MPlayer dev-SVN-rUNKNOWN-4.8 (C) 2000-2007 MPlayer Team
CPU: Intel(R) Core(TM) i7 CPU 860 @ 2.80GHz (Family: 6, Model: 30, Stepping: 5)
CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled with runtime CPU detection.
Available audio output drivers:
oss OSS/ioctl audio output
alsa ALSA-0.9.x-1.x audio output
nas NAS audio output
mpegpes DVB audio output
null Null audio output
pcm RAW PCM/WAVE file writer audio output

rick@rick-OptiPlex-980:/opt/sagetv/client$
So, from the command line, can you play the file
./mplayer file.ts

My guess is that you need the pulse/alsa bridge library/tools installed. mplayer uses alsa but ubuntu moved on to pulse. I recall solving this once, and a re-install of the OS won't solve it, since I'm pretty sure is related to alsa/pulse.
Reply With Quote
  #22  
Old 01-21-2016, 07:20 AM
dranockcir dranockcir is offline
Sage Advanced User
 
Join Date: Jul 2004
Location: Jupiter, FL
Posts: 137
Hey Sean,

Thanks for continuing to look at my posts and your suggestions, it is much appreciated!

This is what happens when I try to play a file with the mplayer in /opt/sagetv/client locally on the server machine:


rick@HP-Compaq-6200-Pro-SFF-PC:~/Storage/SageTV/TV$ /opt/sagetv/client/mplayer CrimeWatchDaily-388678-0.ts
MPlayer dev-SVN-rUNKNOWN-4.8 (C) 2000-2007 MPlayer Team
CPU: Intel(R) Core(TM) i3-2120 CPU @ 3.30GHz (Family: 6, Model: 42, Stepping: 7)
CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled with runtime CPU detection.

Playing CrimeWatchDaily-388678-0.ts.
DEBUG - active_file=0 circFileSize=0
TS file format detected.
VIDEO MPEG2(pid=256) AUDIO A52(pid=257) NO SUBS (yet)! PROGRAM N. 1
INITIAL_PTS=68039.062500
TS_PARSE: COULDN'T SYNC
DURATION=71637.929688
VIDEO: MPEG2 1920x1080 (aspect 3) 29.970 fps 20000.0 kbps (2500.0 kbyte/s)
vo_cvidix: No vidix driver name provided, probing available ones (-v option for details)!
[cyberblade] Error occurred during pci scan: Operation not permitted
[mach64] Error occurred during pci scan: Operation not permitted
[mga] Error occurred during pci scan: Operation not permitted
[mga] Error occurred during pci scan: Operation not permitted
[nvidia_vid] Error occurred during pci scan: Operation not permitted
[pm3] Error occurred during pci scan: Operation not permitted
[radeon] Error occurred during pci scan: Operation not permitted
[rage128] Error occurred during pci scan: Operation not permitted
[savage_vid] Error occurred during pci scan: Operation not permitted
[SiS] Error occurred during pci scan: Operation not permitted
[unichrome] Error occurred during pci scan: Operation not permitted
[VO_SUB_VIDIX] Couldn't find working VIDIX driver.
==========================================================================
Opening video decoder: [mpegpes] MPEG 1/2 Video passthrough
VDec: vo config request - 1920 x 1080 (preferred colorspace: Mpeg PES)
VDec: using Mpeg PES as output csp (no 0)
Movie-Aspect is undefined - no prescaling applied.
VO: [null] 1920x1080 => 1920x1080 Mpeg PES
Selected video codec: [mpegpes] vfm: mpegpes (MPEG-PES output (.mpg or DXR3/IVTV/DVB card))
==========================================================================
==========================================================================
Requested audio codec family [a52] (afm=liba52) not available.
Enable it at compilation.
Requested audio codec family [ac3] (afm=libac3) not available.
Enable it at compilation.
Requested audio codec family [hwac3] (afm=hwac3) not available.
Enable it at compilation.
Cannot find codec for audio format 0x2000.
Read DOCS/HTML/en/codecs.html!
Audio: no sound
Starting playback...
VDec: vo config request - 1920 x 1080 (preferred colorspace: Mpeg PES)
VDec: using Mpeg PES as output csp (no 0)
Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
VO: [null] 1920x1080 => 1920x1080 Mpeg PES
V:68096.6 P:98959082 1714/1714 0% 0% 0.0% 0 0

MPlayer interrupted by signal 2 in module: sleep_timer
rick@HP-Compaq-6200-Pro-SFF-PC:~/Storage/SageTV/TV$
_________________________________________________________________

If I use the mplayer that I installed (because of all the googling I've done )
it does play and I get sound. it is at:

rick@HP-Compaq-6200-Pro-SFF-PC:/opt/sagetv/server$ which mplayer
/usr/bin/mplayer
Reply With Quote
  #23  
Old 01-21-2016, 08:34 AM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
Quote:
Originally Posted by dranockcir View Post
Hey Sean,

Thanks for continuing to look at my posts and your suggestions, it is much appreciated!

This is what happens when I try to play a file with the mplayer in /opt/sagetv/client locally on the server machine:


rick@HP-Compaq-6200-Pro-SFF-PC:~/Storage/SageTV/TV$ /opt/sagetv/client/mplayer CrimeWatchDaily-388678-0.ts
MPlayer dev-SVN-rUNKNOWN-4.8 (C) 2000-2007 MPlayer Team
CPU: Intel(R) Core(TM) i3-2120 CPU @ 3.30GHz (Family: 6, Model: 42, Stepping: 7)
CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled with runtime CPU detection.

Playing CrimeWatchDaily-388678-0.ts.
DEBUG - active_file=0 circFileSize=0
TS file format detected.
VIDEO MPEG2(pid=256) AUDIO A52(pid=257) NO SUBS (yet)! PROGRAM N. 1
INITIAL_PTS=68039.062500
TS_PARSE: COULDN'T SYNC
DURATION=71637.929688
VIDEO: MPEG2 1920x1080 (aspect 3) 29.970 fps 20000.0 kbps (2500.0 kbyte/s)
vo_cvidix: No vidix driver name provided, probing available ones (-v option for details)!
[cyberblade] Error occurred during pci scan: Operation not permitted
[mach64] Error occurred during pci scan: Operation not permitted
[mga] Error occurred during pci scan: Operation not permitted
[mga] Error occurred during pci scan: Operation not permitted
[nvidia_vid] Error occurred during pci scan: Operation not permitted
[pm3] Error occurred during pci scan: Operation not permitted
[radeon] Error occurred during pci scan: Operation not permitted
[rage128] Error occurred during pci scan: Operation not permitted
[savage_vid] Error occurred during pci scan: Operation not permitted
[SiS] Error occurred during pci scan: Operation not permitted
[unichrome] Error occurred during pci scan: Operation not permitted
[VO_SUB_VIDIX] Couldn't find working VIDIX driver.
==========================================================================
Opening video decoder: [mpegpes] MPEG 1/2 Video passthrough
VDec: vo config request - 1920 x 1080 (preferred colorspace: Mpeg PES)
VDec: using Mpeg PES as output csp (no 0)
Movie-Aspect is undefined - no prescaling applied.
VO: [null] 1920x1080 => 1920x1080 Mpeg PES
Selected video codec: [mpegpes] vfm: mpegpes (MPEG-PES output (.mpg or DXR3/IVTV/DVB card))
==========================================================================
==========================================================================
Requested audio codec family [a52] (afm=liba52) not available.
Enable it at compilation.
Requested audio codec family [ac3] (afm=libac3) not available.
Enable it at compilation.
Requested audio codec family [hwac3] (afm=hwac3) not available.
Enable it at compilation.
Cannot find codec for audio format 0x2000.
Read DOCS/HTML/en/codecs.html!
Audio: no sound
Starting playback...
VDec: vo config request - 1920 x 1080 (preferred colorspace: Mpeg PES)
VDec: using Mpeg PES as output csp (no 0)
Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
VO: [null] 1920x1080 => 1920x1080 Mpeg PES
V:68096.6 P:98959082 1714/1714 0% 0% 0.0% 0 0

MPlayer interrupted by signal 2 in module: sleep_timer
rick@HP-Compaq-6200-Pro-SFF-PC:~/Storage/SageTV/TV$
_________________________________________________________________

If I use the mplayer that I installed (because of all the googling I've done )
it does play and I get sound. it is at:

rick@HP-Compaq-6200-Pro-SFF-PC:/opt/sagetv/server$ which mplayer
/usr/bin/mplayer
So, this is looking like that mplayer build that is built with the client is not including those audio libraries and/or those libraries are not installed when mplayer is built, so, they don't get included. I would open a defect on the sagetv issue tracker for this... and I'll take a look at the build setup and configure scripts to make sure these are being included. Please incude this mplayer output in the issue.
Reply With Quote
  #24  
Old 01-21-2016, 10:42 AM
dranockcir dranockcir is offline
Sage Advanced User
 
Join Date: Jul 2004
Location: Jupiter, FL
Posts: 137
Ok, I added the issue under sagetv/mplayer, I hope I did it right.

Correction, I did it at OpenSageTV/mplayer

https://github.com/OpenSageTV/mplayer

Is that right? There is also google/sagetv/third_party/mplayer

Last edited by dranockcir; 01-21-2016 at 11:51 AM. Reason: correcting where I entered issue
Reply With Quote
  #25  
Old 01-24-2016, 11:05 AM
dranockcir dranockcir is offline
Sage Advanced User
 
Join Date: Jul 2004
Location: Jupiter, FL
Posts: 137
In all this messing I discovered something that may be useful to others especially new Linux users. I had a terrible time with the UI on Linux Client either local or Placeshifting. The UI would be all garbled up in the background and while I could see the menu options it was a pain to navigate it that way. I found that if i went in Setup/Detailed Setup/General and DISABLED animations I have nice clear UI again.

I also tried out tmiranda's commercial detector. Works great! Gotta try it out on the Shield with Sean's new Beta 8 tonight when I get home.

Last edited by dranockcir; 01-24-2016 at 11:14 AM. Reason: changed wording
Reply With Quote
  #26  
Old 02-04-2016, 09:08 PM
SageWizdom SageWizdom is offline
Sage Advanced User
 
Join Date: Oct 2013
Location: https://github.com/SageWizdom/SageConnect
Posts: 216
Stuckless,
I pulled down your mplayer and am going to compare it against the current nightly build to try and sync things up. How far did you get? Do you have a preference for what is/is not merged backwards? I was hoping to do this a while ago, but had not gotten a chance. I think we had talked about merging mplayer and at some point ffmpeg to upgrade both to the latest. Let me know if you have thoughts on how you would like to see them both and I'll see what I can do.

update:
Comparing through most of the source... it looks like you've already got it really in sync (awesome). Maybe I will drag down and look at FFMPEG.

Last edited by SageWizdom; 02-04-2016 at 09:34 PM.
Reply With Quote
  #27  
Old 02-05-2016, 06:32 AM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
Quote:
Originally Posted by SageWizdom View Post
Stuckless,
I pulled down your mplayer and am going to compare it against the current nightly build to try and sync things up. How far did you get? Do you have a preference for what is/is not merged backwards? I was hoping to do this a while ago, but had not gotten a chance. I think we had talked about merging mplayer and at some point ffmpeg to upgrade both to the latest. Let me know if you have thoughts on how you would like to see them both and I'll see what I can do.

update:
Comparing through most of the source... it looks like you've already got it really in sync (awesome). Maybe I will drag down and look at FFMPEG.
The GitHub repo has a version of mplayer with a master and sagetv branch.
https://github.com/OpenSageTV/mplayer/tree/master

Since mplayer is not on github, I can't clone it, so I created a repo (master) and from time to time, I update the master with a fresh set of sources from mplayer (just clobber them), and then I merge those changes into the sagetv branch... basically try to do a fast-forward and see what happens. this keeps the sagetv branch pretty clean and you look through the commit history to see exactly what was changes to make it work with sagetv.

All that being said, the mplayer work is still only about 85% done. It got a point where I needed to spend some great effort on that last 15%... and I wanted to start the android miniclient, so I never moved it along.

Given that mplayer is really only used on linux placeshifter, I think that working on ffmpeg would be better, since it's used on windows and linux.

I might end up re-doing the linux placeshifter to use vlc4j at some point since it would mean that I don't need to worry too much about the native layer.
Reply With Quote
  #28  
Old 02-05-2016, 07:13 PM
SageWizdom SageWizdom is offline
Sage Advanced User
 
Join Date: Oct 2013
Location: https://github.com/SageWizdom/SageConnect
Posts: 216
I started chewing through ffmpeg last night. looking through the changelog, it appears that the code was originally 0.4.9-pre1.

It appears that this release was right around the time that ffmpeg left sourceforge and moved to their own git repository. While I was able to find a download of this source... it is inconsistent with the code in SageTV (sagetv/thirdparty/ffmpeg). Multiple decoder library directories are missing. In the official v0.5.0 branch code that I've grabbed, it appears that major changes occurred (renaming, etc).

My goal is to find code as close as possible, ID the SageTV mods and comment/label them, then work to forward port them into the latest code. I'll make sure to tag the commented version if you want to pull it into the official open repo.
Reply With Quote
  #29  
Old 02-05-2016, 07:15 PM
SageWizdom SageWizdom is offline
Sage Advanced User
 
Join Date: Oct 2013
Location: https://github.com/SageWizdom/SageConnect
Posts: 216
Quote:
Originally Posted by stuckless View Post
The GitHub repo has a version of mplayer with a master and sagetv branch.
https://github.com/OpenSageTV/mplayer/tree/master
I was doing a straight up compare between the two versions... if you let me know which parts you still need to look at, I'm happy to take a look at some point later
Reply With Quote
  #30  
Old 02-06-2016, 06:10 AM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
Quote:
Originally Posted by SageWizdom View Post
I was doing a straight up compare between the two versions... if you let me know which parts you still need to look at, I'm happy to take a look at some point later
I don't recall everything, but I know jeff mentioned to me that LiveTV wasn't working, and, I also didn't port any Windows/Mac stuff, since I couldn't compile those anyways (at least not easily).

I think it would be great, if after your ffmpeg success, then you take a stab at this.

The new mplayer basically pulls in ffmpeg on the fly (the old mplayer had it in its sources), so I'm sure all work you do on ffmpeg will help here.
Reply With Quote
  #31  
Old 02-08-2016, 01:20 PM
Narflex's Avatar
Narflex Narflex is offline
Sage
 
Join Date: Feb 2003
Location: Redondo Beach, CA
Posts: 6,349
Feel free to ping me with any questions on this. I know the FFMPEG version that we have is based on a snapshot from there tree at some point in time; with the SageTV changes added to it; and then probably a couple other cherry picks for a few things (which should then match other upstream changes they have...but these are small in number).
__________________
Jeffrey Kardatzke
Google
Founder of SageTV
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
Linux 64bit MiniClient (issues with JTux on 64bit) stuckless SageTV Github Development 23 08-19-2015 12:54 PM
ATI vs Nvidia & SageTV - the quest for quality video in a SageTV Client brainbone Hardware Support 51 09-12-2010 01:21 PM
hvr 2250 analog recording quality w7 64bit? JonTom Hardware Support 1 12-06-2009 03:55 PM
SageTv and 64bit Ubuntu cenwesi SageTV Linux 10 12-23-2008 07:19 AM
Install Sage on 64bit Ubuntu (7.10) uggie SageTV Linux 2 11-13-2007 06:04 AM


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


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