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 10-03-2015, 10:31 PM
rbolande rbolande is offline
Sage User
 
Join Date: Sep 2015
Location: Colorado, USA
Posts: 9
SageTV 9 with HD300 can't read the duration of MKV files in Linux

I installed SageTV OSS on Linux 64-bit and got the server running. I successfully connected an HD300 media extender to the server (the server is currently running on a VM) and I could play MKV files, but the duration of the files aren't being read and I can FF or rewind since it thinks both the beginning and the end of the video are 00:00. The Video Info screen shows no duration info for the files I have tried.

I took the same MKV files and put them on my Windows SageTV server (which has Sage 7.1 with the OSS .exe files on it) and when I point my HD300 to the Windows server, the video duration is read properly and shows in the Video Info Screen. I can also FF and RW on my HD300 pointed to the Windows SageTV server.

What should I look at on the Linux side to try to get to the bottom of this?

Thanks,
REID
Reply With Quote
  #2  
Old 10-05-2015, 11:15 AM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
I'm Jeff will ask... but could you enable debug logging and then post the sagetv_0.txt log file? I run linux, but I'm still on the 32bit version for now (using the updated Sage.jar though).
Reply With Quote
  #3  
Old 10-05-2015, 12:49 PM
Narflex's Avatar
Narflex Narflex is offline
Sage
 
Join Date: Feb 2003
Location: Redondo Beach, CA
Posts: 6,349
My first guess is that it did the import scan while the file was still being copied....but if its for multiple files, that's not likely to be the problem. You can force a 'reindex' in Settings->Advanced and that'll redo the detection, and if that was the problem, it'll fix it.

Beyond that; the logs are the most useful thing. Also, set this in the Sage.properties before you generate the logs so we'll have all the info that it got back from FFMPEG:

debug_ffmpeg_format_info=TRUE
__________________
Jeffrey Kardatzke
Google
Founder of SageTV
Reply With Quote
  #4  
Old 10-05-2015, 04:37 PM
rbolande rbolande is offline
Sage User
 
Join Date: Sep 2015
Location: Colorado, USA
Posts: 9
ffmpeg error

Jeff,

You may be on to something. With things in debug logging mode I get the following error:

Mon 10/5 15:49:57.519 [ThumbnailGen@1ef86f46] MediaFile creating thumbnail to /opt/sagetv/server/GeneratedThumbnails/varmediavideos<filename>mkv.jpg for MediaFile[id=5 A[9,6,"<filename>",0@1005.05:51,0,V] mask=V host=ubuntu1 encodedBy= format=MATROSKA 0:00:00 0 kbps [] /var/media/videos/<filename>.mkv, Seg0[Mon 10/5 5:51:22.999-Mon 10/5 5:51:23.000]]

Mon 10/5 15:49:58.131 [ThumbnailGen@1ef86f46] Error creating thumbnail from video file:MediaFile[id=5 A[9,6,"<filename>",0@1005.05:51,0,V] mask=V host=ubuntu1 encodedBy= format=MATROSKA 0:00:00 0 kbps [] /var/media/videos/<filename>.mkv, Seg0[Mon 10/5 5:51:22.999-Mon 10/5 5:51:23.000]] res=/opt/sagetv/server/ffmpeg: error while loading shared libraries: libfaad.so.2: cannot open shared object file: No such file or directory

I appear to be missing something (maybe a symlink?) to the libfaad library. Here is what my Linux server has:

/home/reid/sagetv/third_party/codecs/faad2/libfaad/.libs/libfaad.so.2
/home/reid/sagetv/third_party/codecs/faad2/libfaad/.libs/libfaad.so
/home/reid/sagetv/third_party/codecs/faad2/libfaad/.libs/libfaad.so.2.0.0

So it looks like I may have the lib, it just can't be found...but some of this is all new to me.

Thoughts?

Thanks,
REID

Last edited by rbolande; 10-06-2015 at 07:08 AM.
Reply With Quote
  #5  
Old 10-05-2015, 06:12 PM
rbolande rbolande is offline
Sage User
 
Join Date: Sep 2015
Location: Colorado, USA
Posts: 9
By placing the server in debug mode I found that the library libfaad.so.2 could not be found by ffmpeg, so I copied the 3 files:

/home/<user>/sagetv/third_party/codecs/faad2/libfaad/.libs/libfaad.so.2
/home/<user>/sagetv/third_party/codecs/faad2/libfaad/.libs/libfaad.so
/home/<user>/sagetv/third_party/codecs/faad2/libfaad/.libs/libfaad.so.2.0.0

to /usr/lib

Now ffmpeg doesn't complain about missing that lib in the log, and further down in the log I even see the duration, but SageTV still shows it as 00:00 duration when I play the file and no duration is shown when I view the file info. Here is some more info from the log:

Input #0, matroska, from '/var/media/videos/<filename>.mkv':
Duration: 00:42:32.5, start: 0.000000, bitrate: N/A
Stream #0.0(eng): Video: h264, yuv420p, 1280x718, AR: 640:359, progressive, 23.98 fps(r)
Stream #0.1(eng): Audio: ac3, 48000 Hz, 5:1
Stream #0.2: Subtitle: 0x0000
/opt/sagetv/server/ffmpeg: unrecognized option '-vf'

Any other ideas?

Thanks!
REID
Reply With Quote
  #6  
Old 10-06-2015, 04:17 AM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
I wonder if installing the library using the package manager would have been better.

Code:
# sudo apt-get install libfaad2
And/or, I wonder if libfaad2-dev needed to be installed during the make of ffmpeg
Reply With Quote
  #7  
Old 10-06-2015, 07:19 AM
rbolande rbolande is offline
Sage User
 
Join Date: Sep 2015
Location: Colorado, USA
Posts: 9
When I try to install libfaad2-dev I get the following message. Is libfaad-dev the correct package to try since libfaad2-dev doesn't seem to exist?

Quote:
$ sudo apt-get install libfaad2-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package libfaad2-dev is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
libfaad-dev:i386 libfaad-dev

E: Package 'libfaad2-dev' has no installation candidate
Reply With Quote
  #8  
Old 10-06-2015, 07:29 AM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
http://packages.ubuntu.com/trusty/libfaad-dev

looks like there is no 2, just libfaad-dev
Reply With Quote
  #9  
Old 10-06-2015, 04:18 PM
Narflex's Avatar
Narflex Narflex is offline
Sage
 
Join Date: Feb 2003
Location: Redondo Beach, CA
Posts: 6,349
The one error you show above where you're actually pasting the FFMPEG output is from when it's failing to generate a thumbnail. I need to see the part of the log from when it does the format detection...that'll look like:

File: <filename> len=<length> FFMPEG Info:<FFMPEG Output>

Then from looking at that and the couple of lines before/after it in the SageTV log I can determine what's going on.
__________________
Jeffrey Kardatzke
Google
Founder of SageTV
Reply With Quote
  #10  
Old 10-06-2015, 05:30 PM
rbolande rbolande is offline
Sage User
 
Join Date: Sep 2015
Location: Colorado, USA
Posts: 9
Thanks for all your help. I got it working by only doing the following:

1) Installed the libfaad-dev library (sudo apt-get install libfaad-dev)
2) Installed the libfaad2 library (sudo apt-get install libfaad2)

After this I set the environment variables:
JDK_HOME=/usr/lib/jvm/java-8-oracle/
JAVA_ARCH=amd64

And then I did another buildall.sh

After installing the .deb for the server after the build, it all seems to be working properly.

Thanks for your help!

REID

Last edited by rbolande; 10-06-2015 at 05:45 PM.
Reply With Quote
  #11  
Old 10-07-2015, 11:23 AM
tmiranda's Avatar
tmiranda tmiranda is offline
SageTVaholic
 
Join Date: Jul 2005
Location: Central Florida, USA
Posts: 5,851
Quote:
Originally Posted by rbolande View Post
Thanks for all your help. I got it working by only doing the following:
...
JAVA_ARCH=amd64
...
Maybe I misunderstood, but I thought you could not build Sage as a 64 bit application?
__________________

Sage Server: 8th gen Intel based system w/32GB RAM running Ubuntu Linux, HDHomeRun Prime with cable card for recording. Runs headless. Accessed via RD when necessary. Four HD-300 Extenders.
Reply With Quote
  #12  
Old 10-07-2015, 12:08 PM
Narflex's Avatar
Narflex Narflex is offline
Sage
 
Join Date: Feb 2003
Location: Redondo Beach, CA
Posts: 6,349
Quote:
Originally Posted by tmiranda View Post
Maybe I misunderstood, but I thought you could not build Sage as a 64 bit application?
You can! It was resolved on Linux about a month ago.
__________________
Jeffrey Kardatzke
Google
Founder of SageTV
Reply With Quote
  #13  
Old 10-07-2015, 07:36 PM
tmiranda's Avatar
tmiranda tmiranda is offline
SageTVaholic
 
Join Date: Jul 2005
Location: Central Florida, USA
Posts: 5,851
Quote:
Originally Posted by Narflex View Post
You can! It was resolved on Linux about a month ago.
Guess I should have continued to follow that thread
__________________

Sage Server: 8th gen Intel based system w/32GB RAM running Ubuntu Linux, HDHomeRun Prime with cable card for recording. Runs headless. Accessed via RD when necessary. Four HD-300 Extenders.
Reply With Quote
  #14  
Old 10-07-2015, 09:45 PM
jusjoken jusjoken is offline
SageTVaholic
 
Join Date: Dec 2005
Location: Strathmore, AB
Posts: 2,727
Quote:
Originally Posted by Narflex View Post
You can! It was resolved on Linux about a month ago.
So if we build it under 64 bit Linux do we get more memory to connect more extenders....ie: get past the 1024 limit in the 32 bit version or is there more to do to resolve that?


k
Reply With Quote
  #15  
Old 10-08-2015, 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 jusjoken View Post
So if we build it under 64 bit Linux do we get more memory to connect more extenders....ie: get past the 1024 limit in the 32 bit version or is there more to do to resolve that?


k
64 bit builds are available, and yes, they will get past the 32bit memory limits, but I think people are still working on the various 64 bit driver issues etc. I still don't run the 64bit version myself, but I probobly could... i just haven't got around to actually setting it up on my main server. I run the 64bit version locally for testing though.

The download area is
https://bintray.com/opensagetv/sagetv/SageTV/view

I probably should create a new build this weekend, since I think there have a few changes pushed since this build.
Reply With Quote
  #16  
Old 10-08-2015, 07:08 AM
Monedeath Monedeath is offline
Sage Expert
 
Join Date: Sep 2009
Location: Idaho
Posts: 514
Quote:
Originally Posted by stuckless View Post
I probably should create a new build this weekend, since I think there have a few changes pushed since this build.
I think Opus has iterated the main repo to 9.0.0.5 from 9.0.0.0 since you built "9.0.0.4"
Reply With Quote
  #17  
Old 10-08-2015, 08:01 AM
Fuzzy's Avatar
Fuzzy Fuzzy is offline
SageTVaholic
 
Join Date: Sep 2005
Location: Jurupa Valley, CA
Posts: 9,957
Quote:
Originally Posted by Monedeath View Post
I think Opus has iterated the main repo to 9.0.0.5 from 9.0.0.0 since you built "9.0.0.4"
He's at least done so in the STV's reported version.
__________________
Buy Fuzzy a beer! (Fuzzy likes beer)

unRAID Server: i7-6700, 32GB RAM, Dual 128GB SSD cache and 13TB pool, with SageTVv9, openDCT, Logitech Media Server and Plex Media Server each in Dockers.
Sources: HRHR Prime with Charter CableCard. HDHR-US for OTA.
Primary Client: HD-300 through XBoxOne in Living Room, Samsung HLT-6189S
Other Clients: Mi Box in Master Bedroom, HD-200 in kids room
Reply With Quote
  #18  
Old 10-08-2015, 09:10 AM
Opus4's Avatar
Opus4 Opus4 is offline
Administrator
 
Join Date: Sep 2003
Location: NJ
Posts: 19,624
Quote:
Originally Posted by Fuzzy View Post
He's at least done so in the STV's reported version.
Right -- if you look on the System Info screen, there is a "Software Version", which is the SageTV core version, and then the "Current STV File" info. The incrementing version numbers I've been adding are referring to the STV version for some minor changes.

So far, the only core tweaks I've been involved with are trying to get IR to use Don't Like more effectively, so it stops recording Hopalong Cassidy shows every time they come on, for example.

... and since this if off topic for this thread, if anyone has any interest in the STV or IR tweaks, please post to a new topic.

Andy
__________________
SageTV Open Source v9 is available.
- Read the SageTV FAQ. Older PDF User's Guides mostly still apply: SageTV V7.0 & SageTV Studio v7.1.
- Hauppauge remote help: 1) Basics/Extending it 2) Replace it 3) Use it w/o needing focus
- HD Extenders: A) FAQs B) URC MX-700 remote setup
Note: This is a users' forum; see the Rules. For official tech support fill out a Support Request.
Reply With Quote
  #19  
Old 10-08-2015, 11:54 AM
Narflex's Avatar
Narflex Narflex is offline
Sage
 
Join Date: Feb 2003
Location: Redondo Beach, CA
Posts: 6,349
I also just incremented the actual SageTV core version to 9.0.1 since I made some changes recently that affected how it functions.
__________________
Jeffrey Kardatzke
Google
Founder of SageTV
Reply With Quote
  #20  
Old 10-08-2015, 12:25 PM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
Quote:
Originally Posted by Narflex View Post
I also just incremented the actual SageTV core version to 9.0.1 since I made some changes recently that affected how it functions.
SO... If I create a new build, it would likely be 9.0.1.0. Should I commit the build number update back into your sources? (ie pull request to github).

EDIT: So, SageContstants has the build number, why isn't that in the Version.java long with the other build version parts?
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
Vagrant files of 32bit and 64bit images that can be used for SageTV Linux Development stuckless SageTV Github Development 0 08-16-2015 01:43 PM
is there a plugin to read .my files yet? pjwerdna SageTV v7 Customizations 10 06-27-2010 10:10 PM
SageTV can't read its own files transco SageTV Software 4 07-26-2009 05:02 PM
read-write xml files perry59 SageTV Studio 3 11-12-2007 06:53 PM
Imported Video Files -- 0 minutes duration dragon SageTV Software 4 06-22-2004 07:23 AM


All times are GMT -6. The time now is 02:14 AM.


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