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 02-18-2016, 02:08 PM
Taddeusz Taddeusz is offline
SageTVaholic
 
Join Date: Nov 2004
Location: Yukon, OK
Posts: 3,919
Quote:
Originally Posted by jusjoken View Post
Famous last words I thought a windows installer couldn't be that hard either

Anyway, I will investigate and give it a try.

Thanks
k
Currently installing mingw-w64 on my Ubuntu box to see if I can cross-compile this using the script with updated paths.
__________________
Server: i5 8400, ASUS Prime H370M-Plus/CSM, 16GB RAM, 15TB drive array + 500GB cache, 2 HDHR's, SageTV 9, unRAID 6.6.3
Client 1: HD300 (latest FW), HDMI to an Insignia 65" 1080p LCD and optical SPDIF to a Sony Receiver
Client 2: HD200 (latest FW), HDMI to an Insignia NS-LCD42HD-09 1080p LCD
Reply With Quote
  #22  
Old 02-18-2016, 02:16 PM
troll5501 troll5501 is offline
Sage Advanced User
 
Join Date: Jun 2006
Posts: 136
Quote:
Originally Posted by jusjoken View Post
Anyway, I will investigate and give it a try.
As Narflex mentioned, the executable that you already have in the installer (the V7 version of SageTVTranscoder.exe, I assume) is the same version as the code he just added to GitHub. So unless someone makes additional changes to ffmpeg, you should not need to rebuild it for Windows.

For Linux, it does need to be rebuilt in order to fix the various problems that have been reported with the old ffmpeg such as the thumbnail creation.
__________________
Server: HP DL380 G6, VMware ESXi 5.0 with HW passthrough for USB and Firewire, 4 x HD-PVR, ZFS storage
SageTV: Production: 7.1.9+Java 1.6.0_32 on XP, Test: 9.0.4.291+Java 1.8.0_72 on Linux 64-bit
Clients: 2 x Sage HD200 Extender, 1 x Sage HD100 Extender
Sources: 4 x Motorola DCH-3200 (firewire channel changing), HD Homerun Prime, OpenDCT 0.5.7
Reply With Quote
  #23  
Old 02-18-2016, 02:20 PM
Taddeusz Taddeusz is offline
SageTVaholic
 
Join Date: Nov 2004
Location: Yukon, OK
Posts: 3,919
Quote:
Originally Posted by troll5501 View Post
As Narflex mentioned, the executable that you already have in the installer (the V7 version of SageTVTranscoder.exe, I assume) is the same version as the code he just added to GitHub. So unless someone makes additional changes to ffmpeg, you should not need to rebuild it for Windows.

For Linux, it does need to be rebuilt in order to fix the various problems that have been reported with the old ffmpeg such as the thumbnail creation.
This could also be used to create Windows 64-bit executables.
__________________
Server: i5 8400, ASUS Prime H370M-Plus/CSM, 16GB RAM, 15TB drive array + 500GB cache, 2 HDHR's, SageTV 9, unRAID 6.6.3
Client 1: HD300 (latest FW), HDMI to an Insignia 65" 1080p LCD and optical SPDIF to a Sony Receiver
Client 2: HD200 (latest FW), HDMI to an Insignia NS-LCD42HD-09 1080p LCD
Reply With Quote
  #24  
Old 02-18-2016, 03:31 PM
jusjoken jusjoken is offline
SageTVaholic
 
Join Date: Dec 2005
Location: Strathmore, AB
Posts: 2,727
Quote:
Originally Posted by Taddeusz View Post
Currently installing mingw-w64 on my Ubuntu box to see if I can cross-compile this using the script with updated paths.
Sounds good. Let us know how it goes as I am in no hurry to do this myself and as others have said...for Win32 the existing one is current.

Thanks
k
Reply With Quote
  #25  
Old 02-18-2016, 04:28 PM
Taddeusz Taddeusz is offline
SageTVaholic
 
Join Date: Nov 2004
Location: Yukon, OK
Posts: 3,919
Quote:
Originally Posted by jusjoken View Post
Sounds good. Let us know how it goes as I am in no hurry to do this myself and as others have said...for Win32 the existing one is current.

Thanks
k
So far no luck.

On my Ubuntu vm I got it to build till xvid. I started getting errors about not being able to find nasm.inc. I figured out that if I copied that file to each of the x86 folders those errors would go away. But then even though it successfully built it wasn't copying anything to staging so when it tried to compile ffmpeg it complained that it couldn't find libxvid.

So, I was already in the process of getting MSYS2 set up. I think all I was missing was mingw-w64, automake, and autoconf. I can't get faac to build. The configure complains:

Code:
config.status: error: cannot find input file: `common/mp4v2/Makefile.in'
With MSYS2 I'm unsure if I have all of the tools I need installed.
__________________
Server: i5 8400, ASUS Prime H370M-Plus/CSM, 16GB RAM, 15TB drive array + 500GB cache, 2 HDHR's, SageTV 9, unRAID 6.6.3
Client 1: HD300 (latest FW), HDMI to an Insignia 65" 1080p LCD and optical SPDIF to a Sony Receiver
Client 2: HD200 (latest FW), HDMI to an Insignia NS-LCD42HD-09 1080p LCD
Reply With Quote
  #26  
Old 02-18-2016, 04:32 PM
Taddeusz Taddeusz is offline
SageTVaholic
 
Join Date: Nov 2004
Location: Yukon, OK
Posts: 3,919
On my Windows system I did also end up updating the third_party/GNU/config.guess file because my system was coming up as unknown.
__________________
Server: i5 8400, ASUS Prime H370M-Plus/CSM, 16GB RAM, 15TB drive array + 500GB cache, 2 HDHR's, SageTV 9, unRAID 6.6.3
Client 1: HD300 (latest FW), HDMI to an Insignia 65" 1080p LCD and optical SPDIF to a Sony Receiver
Client 2: HD200 (latest FW), HDMI to an Insignia NS-LCD42HD-09 1080p LCD
Reply With Quote
  #27  
Old 02-18-2016, 04:59 PM
Taddeusz Taddeusz is offline
SageTVaholic
 
Join Date: Nov 2004
Location: Yukon, OK
Posts: 3,919
I see this in the configure output:

Code:
configure: *** Building WITHOUT mp4v2 ***
When it worked in Linux I got this output:

Code:
configure: *** Building WITHOUT mp4v2 ***
__________________
Server: i5 8400, ASUS Prime H370M-Plus/CSM, 16GB RAM, 15TB drive array + 500GB cache, 2 HDHR's, SageTV 9, unRAID 6.6.3
Client 1: HD300 (latest FW), HDMI to an Insignia 65" 1080p LCD and optical SPDIF to a Sony Receiver
Client 2: HD200 (latest FW), HDMI to an Insignia NS-LCD42HD-09 1080p LCD
Reply With Quote
  #28  
Old 02-19-2016, 08:26 AM
Taddeusz Taddeusz is offline
SageTVaholic
 
Join Date: Nov 2004
Location: Yukon, OK
Posts: 3,919
Ok, I've got an update. I've gotten faac, faad, libxvidcore, and x264 to build. It starts to build ffmpeg but stops at libavformat/util.c. I don't see any apparent errors. It just says that the recipe for libavformat/util.o failed.
__________________
Server: i5 8400, ASUS Prime H370M-Plus/CSM, 16GB RAM, 15TB drive array + 500GB cache, 2 HDHR's, SageTV 9, unRAID 6.6.3
Client 1: HD300 (latest FW), HDMI to an Insignia 65" 1080p LCD and optical SPDIF to a Sony Receiver
Client 2: HD200 (latest FW), HDMI to an Insignia NS-LCD42HD-09 1080p LCD
Reply With Quote
  #29  
Old 02-19-2016, 03:17 PM
Narflex's Avatar
Narflex Narflex is offline
Sage
 
Join Date: Feb 2003
Location: Redondo Beach, CA
Posts: 6,349
Quote:
Originally Posted by Taddeusz View Post
Ok, I've got an update. I've gotten faac, faad, libxvidcore, and x264 to build. It starts to build ffmpeg but stops at libavformat/util.c. I don't see any apparent errors. It just says that the recipe for libavformat/util.o failed.
Can you post the actual error output from running make at that point?
__________________
Jeffrey Kardatzke
Google
Founder of SageTV
Reply With Quote
  #30  
Old 02-19-2016, 03:48 PM
Taddeusz Taddeusz is offline
SageTVaholic
 
Join Date: Nov 2004
Location: Yukon, OK
Posts: 3,919
Ok, here's the combined stdout & stderr.
Attached Files
File Type: txt output.txt (245.0 KB, 103 views)
__________________
Server: i5 8400, ASUS Prime H370M-Plus/CSM, 16GB RAM, 15TB drive array + 500GB cache, 2 HDHR's, SageTV 9, unRAID 6.6.3
Client 1: HD300 (latest FW), HDMI to an Insignia 65" 1080p LCD and optical SPDIF to a Sony Receiver
Client 2: HD200 (latest FW), HDMI to an Insignia NS-LCD42HD-09 1080p LCD
Reply With Quote
  #31  
Old 02-20-2016, 12:58 AM
wnjj wnjj is offline
Sage Icon
 
Join Date: Jan 2009
Posts: 1,514
There's a error listed a few lines up from the bottom of your log file:

time_is_forbidden_due_to_security_issues

It seems there is a #define for 'time' set to that which causes tb.time to not work. Google for this and there are various people asking what to do about it, some from many years ago.

One suggestion was to move #include <time.h> above #include "libavcodec/internal.h".

Not sure why the code is built the way it is (including time.h) especially since it seems like they don't want you using time.h at all.

Last edited by wnjj; 02-20-2016 at 01:08 AM.
Reply With Quote
  #32  
Old 02-20-2016, 03:38 PM
Taddeusz Taddeusz is offline
SageTVaholic
 
Join Date: Nov 2004
Location: Yukon, OK
Posts: 3,919
Ok, I've commented out the lines in the libavformat/internal.h that undef's time.h and that corrected that error.

I've now run into what appears to be an error with mingw32's dxva2api. It get's an error trying to compile dxva2.c. I'm am unsure how to proceed from here.
Attached Files
File Type: txt output.txt (5.0 KB, 193 views)
__________________
Server: i5 8400, ASUS Prime H370M-Plus/CSM, 16GB RAM, 15TB drive array + 500GB cache, 2 HDHR's, SageTV 9, unRAID 6.6.3
Client 1: HD300 (latest FW), HDMI to an Insignia 65" 1080p LCD and optical SPDIF to a Sony Receiver
Client 2: HD200 (latest FW), HDMI to an Insignia NS-LCD42HD-09 1080p LCD
Reply With Quote
  #33  
Old 02-22-2016, 01:51 PM
Narflex's Avatar
Narflex Narflex is offline
Sage
 
Join Date: Feb 2003
Location: Redondo Beach, CA
Posts: 6,349
I'm pretty sure we never included the DXVA codecs within FFMPEG in the builds we did for SageTV (I actually didn't even know they were there). What I think was happening is that the dxva2api.h header file wasn't anywhere in the build tree...and so FFMPEG's configure automatically disabled those codecs because of the missing header file (I don't see exactly where that happens; but I know when I build on Linux it has the DXVA stuff enabled; the tests in configure fail; but then ends up excluding it through config.h).

So I'd say just pass the --disable-dxva2 flag to configure to exclude those as well and it should solve the problem. OTOH, if you can actually figure out how to get them to properly compile into it, that might be really useful.
__________________
Jeffrey Kardatzke
Google
Founder of SageTV
Reply With Quote
  #34  
Old 02-22-2016, 02:36 PM
Taddeusz Taddeusz is offline
SageTVaholic
 
Join Date: Nov 2004
Location: Yukon, OK
Posts: 3,919
Ok, that got ffmpeg built. mplayer won't start to build though. The configure script gives an error:

Code:
Unknown parameter: --ar=i686-w64-mingw32-ar
__________________
Server: i5 8400, ASUS Prime H370M-Plus/CSM, 16GB RAM, 15TB drive array + 500GB cache, 2 HDHR's, SageTV 9, unRAID 6.6.3
Client 1: HD300 (latest FW), HDMI to an Insignia 65" 1080p LCD and optical SPDIF to a Sony Receiver
Client 2: HD200 (latest FW), HDMI to an Insignia NS-LCD42HD-09 1080p LCD
Reply With Quote
  #35  
Old 02-22-2016, 02:45 PM
Taddeusz Taddeusz is offline
SageTVaholic
 
Join Date: Nov 2004
Location: Yukon, OK
Posts: 3,919
The built ffmpeg doesn't seem to work. When I try to play a video via Placeshifter it reports a transcoder error in the log.
__________________
Server: i5 8400, ASUS Prime H370M-Plus/CSM, 16GB RAM, 15TB drive array + 500GB cache, 2 HDHR's, SageTV 9, unRAID 6.6.3
Client 1: HD300 (latest FW), HDMI to an Insignia 65" 1080p LCD and optical SPDIF to a Sony Receiver
Client 2: HD200 (latest FW), HDMI to an Insignia NS-LCD42HD-09 1080p LCD
Reply With Quote
  #36  
Old 02-22-2016, 03:00 PM
Taddeusz Taddeusz is offline
SageTVaholic
 
Join Date: Nov 2004
Location: Yukon, OK
Posts: 3,919
Looks like some work needs to be done to better integrate this new version of ffmpeg into SageTV. Just did a remote Placeshifter test to my 32-bit Ubuntu test box and it also gets errors when attempting playback. So it's not just a Windows/SageTVTranscoder ffmpeg problem.
__________________
Server: i5 8400, ASUS Prime H370M-Plus/CSM, 16GB RAM, 15TB drive array + 500GB cache, 2 HDHR's, SageTV 9, unRAID 6.6.3
Client 1: HD300 (latest FW), HDMI to an Insignia 65" 1080p LCD and optical SPDIF to a Sony Receiver
Client 2: HD200 (latest FW), HDMI to an Insignia NS-LCD42HD-09 1080p LCD
Reply With Quote
  #37  
Old 02-23-2016, 01:43 PM
Narflex's Avatar
Narflex Narflex is offline
Sage
 
Join Date: Feb 2003
Location: Redondo Beach, CA
Posts: 6,349
Can you post the errors you're seeing in the logs please?
__________________
Jeffrey Kardatzke
Google
Founder of SageTV
Reply With Quote
  #38  
Old 02-23-2016, 02:23 PM
Taddeusz Taddeusz is offline
SageTVaholic
 
Join Date: Nov 2004
Location: Yukon, OK
Posts: 3,919
Ok, here's the log. I tried to play two files. One HDPVR recording and the other an HDHR one. Are there some other debug properties to enable to get a more fine grained logging?
Attached Files
File Type: zip sagetv_0.zip (162.7 KB, 111 views)
__________________
Server: i5 8400, ASUS Prime H370M-Plus/CSM, 16GB RAM, 15TB drive array + 500GB cache, 2 HDHR's, SageTV 9, unRAID 6.6.3
Client 1: HD300 (latest FW), HDMI to an Insignia 65" 1080p LCD and optical SPDIF to a Sony Receiver
Client 2: HD200 (latest FW), HDMI to an Insignia NS-LCD42HD-09 1080p LCD
Reply With Quote
  #39  
Old 02-24-2016, 01:48 PM
Narflex's Avatar
Narflex Narflex is offline
Sage
 
Join Date: Feb 2003
Location: Redondo Beach, CA
Posts: 6,349
Set both of these and get logs again (case matters on the second one):

media_server/transcode_debug=true
xcode_cmdline_debug=TRUE
__________________
Jeffrey Kardatzke
Google
Founder of SageTV
Reply With Quote
  #40  
Old 02-24-2016, 02:05 PM
Taddeusz Taddeusz is offline
SageTVaholic
 
Join Date: Nov 2004
Location: Yukon, OK
Posts: 3,919
Quote:
Originally Posted by Narflex View Post
Set both of these and get logs again (case matters on the second one):

media_server/transcode_debug=true
xcode_cmdline_debug=TRUE
Ok, here's a log with playback for both files. And here is the link to the ffmpeg I built: https://onedrive.live.com/redir?resi...int=file%2czip
Attached Files
File Type: zip sagetv_0.zip (164.1 KB, 97 views)
__________________
Server: i5 8400, ASUS Prime H370M-Plus/CSM, 16GB RAM, 15TB drive array + 500GB cache, 2 HDHR's, SageTV 9, unRAID 6.6.3
Client 1: HD300 (latest FW), HDMI to an Insignia 65" 1080p LCD and optical SPDIF to a Sony Receiver
Client 2: HD200 (latest FW), HDMI to an Insignia NS-LCD42HD-09 1080p LCD
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
SageDTC 2.7.0.2 with ffmpeg mtenboer Hardware Support 1 11-13-2013 02:47 PM
Failed creating menu item-now getting error scm Phoenix 2 07-31-2011 08:05 PM
ffmpeg help ChePazzo SageTV Linux 4 12-04-2006 09:52 AM
ffmpeg v0.4.9 pre for Windows? jsturtevant SageTV Customizations 14 06-06-2006 05:24 PM
Creating 2300 thumbnail pictures... gets stuck at around 1200 mkanet SageTV Beta Test Software 7 08-26-2005 10:41 AM


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


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