|
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
|
|||
|
|||
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 |
#2
|
||||
|
||||
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).
__________________
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 |
#3
|
||||
|
||||
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 Founder of SageTV |
#4
|
|||
|
|||
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. |
#5
|
|||
|
|||
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 |
#6
|
||||
|
||||
I wonder if installing the library using the package manager would have been better.
Code:
# sudo apt-get install libfaad2
__________________
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 |
#7
|
|||
|
|||
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:
|
#8
|
||||
|
||||
__________________
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 |
#9
|
||||
|
||||
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 Founder of SageTV |
#10
|
|||
|
|||
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. |
#11
|
||||
|
||||
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. |
#12
|
||||
|
||||
You can! It was resolved on Linux about a month ago.
__________________
Jeffrey Kardatzke Founder of SageTV |
#13
|
||||
|
||||
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. |
#14
|
|||
|
|||
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 |
#15
|
||||
|
||||
Quote:
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.
__________________
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 |
#16
|
|||
|
|||
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"
|
#17
|
||||
|
||||
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 |
#18
|
||||
|
||||
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. |
#19
|
||||
|
||||
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 Founder of SageTV |
#20
|
||||
|
||||
Quote:
EDIT: So, SageContstants has the build number, why isn't that in the Version.java long with the other build version parts?
__________________
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 |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|
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 |