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 12-09-2015, 10:22 AM
Taddeusz Taddeusz is offline
SageTVaholic
 
Join Date: Nov 2004
Location: Yukon, OK
Posts: 3,919
Moving Recordings From Windows to Linux

Has anyone done the move from Windows to Linux? I have a weird issue where the existing recordings show they don't have a length and comskip breaks aren't positioned correctly most of the time. Any ideas why?

Attached are a few examples between my Windows and Linux servers.
Attached Images
File Type: png sagetv-windows-1.png (218.3 KB, 320 views)
File Type: png sagetv-windows-2.png (214.6 KB, 381 views)
File Type: png sagetv-linux-1.png (130.1 KB, 287 views)
File Type: png sagetv-linux-2.png (139.3 KB, 303 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
  #2  
Old 12-09-2015, 11:02 AM
Monedeath Monedeath is offline
Sage Expert
 
Join Date: Sep 2009
Location: Idaho
Posts: 514
http://forums.sagetv.com/forums/showthread.php?t=62662

Sounds comparable.

Was SageTV running in Linux while you moved the recordings?
Reply With Quote
  #3  
Old 12-09-2015, 11:20 AM
Taddeusz Taddeusz is offline
SageTVaholic
 
Join Date: Nov 2004
Location: Yukon, OK
Posts: 3,919
I didn't move recordings. I simply added the Windows shares, which are fstab mounted, as recording directories.
__________________
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
  #4  
Old 12-09-2015, 11:59 AM
Skirge01's Avatar
Skirge01 Skirge01 is offline
SageTVaholic
 
Join Date: Jun 2007
Location: New Jersey
Posts: 2,599
I've had this happen on my setup, but, as Monedeath said, only when the files were moved/copied to a new folder while Sage was doing a scan. I do believe the fix in the thread Monedeath pointed to is how I fixed it, though. You could at least give it a try.

As to why it happened... maybe it's a mismatch between some combination of wiz.bin/epg/properties files and their moving between 2 Sage setups and so the new Sage server got confused?
__________________
Server: XP, SuperMicro X9SAE-V, i7 3770T, Thermalright Archon SB-E, 32GB Corsair DDR3, 2 x IBM M1015, Corsair HX1000W PSU, CoolerMaster CM Storm Stryker case
Storage: 2 x Addonics 5-in-3 3.5" bays, 1 x Addonics 4-in-1 2.5" bay, 24TB
Client: Windows 7 64-bit, Foxconn G9657MA-8EKRS2H, Core2Duo E6600, Zalman CNPS7500, 2GB Corsair, 320GB, HIS ATI 4650, Antec Fusion
Tuners: 2 x HD-PVR (HTTP tuning), 2 x HDHR, USB-UIRT
Software: SageTV 7
Reply With Quote
  #5  
Old 12-09-2015, 12:20 PM
Taddeusz Taddeusz is offline
SageTVaholic
 
Join Date: Nov 2004
Location: Yukon, OK
Posts: 3,919
I didn't even copy the Wiz.bin from Windows. All I did was added the shares that hold my recording directories to my Linux server. That's it.

It appears that it is probably somehow misreading the metadata that's at the end of each file and getting the duration wrong.
__________________
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
  #6  
Old 12-09-2015, 01:15 PM
turak's Avatar
turak turak is offline
Sage Expert
 
Join Date: Sep 2003
Location: Miami
Posts: 560
Was SageTV running on the Windows server and generating new recordings while SageTV was running on the Linux server. I don't think that SageTV plays nice with files that are growing in it's TV directories which are not generated by that instance of SageTV.
Reply With Quote
  #7  
Old 12-09-2015, 01:29 PM
turak's Avatar
turak turak is offline
Sage Expert
 
Join Date: Sep 2003
Location: Miami
Posts: 560
For instance...

Windows SageTV starts recording a show. Linux SageTV scans the shared TV directories 5 minutes after the recording on Windows started. Now the Linux SageTV finds the file and adds it to it's Wiz.bin as a 5 minute long recording.

That recording will always be a 5 minute recording as far as the Linux SageTV server is concerned.

The only way I know of to fix this is to shut down Linux SageTV. Remove the file from it's TV directory (or unmount the share). Start up Linux SageTV. Shutdown Linux SageTV. Put the file back (or remount share). Start up SageTV.
Reply With Quote
  #8  
Old 12-09-2015, 01:30 PM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
Quote:
Originally Posted by turak View Post
Was SageTV running on the Windows server and generating new recordings while SageTV was running on the Linux server. I don't think that SageTV plays nice with files that are growing in it's TV directories which are not generated by that instance of SageTV.
This is actually a "feature" of network mounted filesytems Any time you mount a network filesystem, the OS (linux) will cache the filesystem for performance reasons. In NFS (and likely smbmount), you can disable such caching mechanisms, and the filesystem becomes slower, but, it will always be consistent to both platforms. So, my suggestion is disable caching of the network filesystem, and you'll likely ok.
Reply With Quote
  #9  
Old 12-09-2015, 01:50 PM
Taddeusz Taddeusz is offline
SageTVaholic
 
Join Date: Nov 2004
Location: Yukon, OK
Posts: 3,919
Quote:
Originally Posted by turak View Post
Was SageTV running on the Windows server and generating new recordings while SageTV was running on the Linux server. I don't think that SageTV plays nice with files that are growing in it's TV directories which are not generated by that instance of SageTV.
No, my Windows SageTV was not recording at the time. It doesn't really do much doing the day.
__________________
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
  #10  
Old 12-09-2015, 01:52 PM
Taddeusz Taddeusz is offline
SageTVaholic
 
Join Date: Nov 2004
Location: Yukon, OK
Posts: 3,919
Quote:
Originally Posted by stuckless View Post
This is actually a "feature" of network mounted filesytems Any time you mount a network filesystem, the OS (linux) will cache the filesystem for performance reasons. In NFS (and likely smbmount), you can disable such caching mechanisms, and the filesystem becomes slower, but, it will always be consistent to both platforms. So, my suggestion is disable caching of the network filesystem, and you'll likely ok.
While I would like to say this is the case I can actually physically copy files over to the Linux filesystem and the same thing happens.
__________________
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
  #11  
Old 12-09-2015, 02:04 PM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
Quote:
Originally Posted by Taddeusz View Post
While I would like to say this is the case I can actually physically copy files over to the Linux filesystem and the same thing happens.
yeah, but do physically copy them through the mounted filesystem? As opposed to using FTP, or a USB drive.
Reply With Quote
  #12  
Old 12-09-2015, 02:11 PM
Taddeusz Taddeusz is offline
SageTVaholic
 
Join Date: Nov 2004
Location: Yukon, OK
Posts: 3,919
Quote:
Originally Posted by stuckless View Post
yeah, but do physically copy them through the mounted filesystem? As opposed to using FTP, or a USB drive.
I guess I fail to understand why that would make a difference.
__________________
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
  #13  
Old 12-09-2015, 02:24 PM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
Quote:
Originally Posted by Taddeusz View Post
I guess I fail to understand why that would make a difference.
If the file was first accessed, while it was growing/changing, then the NFS "cached" portion will only reflect a portion of that file. Eventually the network mount might reconcile the file, but, if you've already copied it, then you might not have the entire file.

So, when you copy it, the linux os might think that it has copied the entire file, but in fact it is missing a part. This is only really an issue for files that are growing, and when you access the file via the network mount, during the time in which was growning/changing.

I think this would be the case for sagetv, for example, if you started recording it on windows, and then have a separate sagetv server looking at the same file. SageTV will read what it "knows" about that file and process it. Because the file was "accessed" not sure when it would be fully reconciled.

This might have nothing to do with your issues, but a FYI, when using a network filesystem. (I personally never use them, because I've run into these issues way to many times)
Reply With Quote
  #14  
Old 12-09-2015, 02:27 PM
Taddeusz Taddeusz is offline
SageTVaholic
 
Join Date: Nov 2004
Location: Yukon, OK
Posts: 3,919
Quote:
Originally Posted by stuckless View Post
If the file was first accessed, while it was growing/changing, then the NFS "cached" portion will only reflect a portion of that file. Eventually the network mount might reconcile the file, but, if you've already copied it, then you might not have the entire file.

So, when you copy it, the linux os might think that it has copied the entire file, but in fact it is missing a part. This is only really an issue for files that are growing, and when you access the file via the network mount, during the time in which was growning/changing.

I think this would be the case for sagetv, for example, if you started recording it on windows, and then have a separate sagetv server looking at the same file. SageTV will read what it "knows" about that file and process it. Because the file was "accessed" not sure when it would be fully reconciled.

This might have nothing to do with your issues, but a FYI, when using a network filesystem. (I personally never use them, because I've run into these issues way to many times)
That's not the problem at all. These are all recordings that are all already completed. No recordings are currently occurring.
__________________
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
  #15  
Old 12-09-2015, 02:33 PM
Taddeusz Taddeusz is offline
SageTVaholic
 
Join Date: Nov 2004
Location: Yukon, OK
Posts: 3,919
Quote:
Originally Posted by stuckless View Post
yeah, but do physically copy them through the mounted filesystem? As opposed to using FTP, or a USB drive.
Just to test I enabled the IIS FTP server on my Windows machine and copied a couple recordings over that way. It didn't make any difference at all.
__________________
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
  #16  
Old 12-25-2015, 11:44 AM
lgkent's Avatar
lgkent lgkent is offline
Sage User
 
Join Date: Oct 2008
Posts: 8
Video length bug with debug log

This appears to be a bug adding any 'new' file to the tv recording directory regardless of which system recorded it. Smaller files <1GB tend to work. Here is debug log example of adding 2 new files, 'ChristmasontheDanube' (2.91GB) has a 30 minute length, but adds with segment length < 1 second. 'NaziMegaWeapons' (735.7MB) has 11 minute length, and correctly adds with segment length of 11 minutes. This log file came from SageTV V9.0.3.178 on Ubuntu 14.04

Fri 12/25 12:08:05.966 [main@3764951d] Checking video directories for new files
Fri 12/25 12:08:05.987 [main@3764951d] Using internal format detector first for: /var/media/recordings/ChristmasontheDanube-2777762-0.mpg
Fri 12/25 12:08:05.995 [main@3764951d] File Format Parsed-2a /var/media/recordings/ChristmasontheDanube-2777762-0.mpg=MPEG2-PS 0:00:01 2815 kbps [#0 Video[MPEG2-Video 29.97003 fps 1920x1080 16:9 interlaced id=e0]#1 Audio[AC3 48000 Hz 6 channels 384 kbps MAIN idx=1 id=bd-80010000 eng]#2 Audio[AC3 48000 Hz 1 channels 128 kbps idx=3 id=bd-82010000 eng]#3 Audio[AC3 48000 Hz 1 channels 128 kbps idx=2 id=bd-81010000 spa]]
Fri 12/25 12:08:06.009 [main@3764951d] File Format Parsed-2b /var/media/recordings/ChristmasontheDanube-2777762-0.mpg=MPEG2-PS 0:00:01 2815 kbps [#0 Video[MPEG2-Video 29.97003 fps 1920x1080 16:9 interlaced id=e0]#1 Audio[AC3 48000 Hz 6 channels 384 kbps MAIN idx=1 id=bd-80010000 eng]#2 Audio[AC3 48000 Hz 1 channels 128 kbps idx=3 id=bd-82010000 eng]#3 Audio[AC3 48000 Hz 1 channels 128 kbps idx=2 id=bd-81010000 spa]{Description=Christmas markets come alive in Austria's Vienna and Salzburg, Hungary's Budapest, and Switzerland's Oberdorf; Melk Abbey., AiringTime=1451003400000, ParentalRating=TVG, Genre=Special;Documentary, ForcedUnique=true, OriginalAirDate=1384646400000, AiringDuration=1800000, ExternalID=SH018094060000, Title=Christmas on the Danube, CC=true, Stereo=true}]
Fri 12/25 12:08:06.010 [main@3764951d] Increased StringBuffer pool to size=1
Fri 12/25 12:08:06.015 [main@3764951d] Added:MediaFile[id=98898 A[98899,34283,"Christmas on the Danube",0@1224.19:30,30,T V] mask=TV host=sagetv1 encodedBy= format=MPEG2-PS 0:00:01 2815 kbps [#0 Video[MPEG2-Video 29.97003 fps 1920x1080 16:9 interlaced id=e0]#1 Audio[AC3 48000 Hz 6 channels 384 kbps MAIN idx=1 id=bd-80010000 eng]#2 Audio[AC3 48000 Hz 1 channels 128 kbps idx=3 id=bd-82010000 eng]#3 Audio[AC3 48000 Hz 1 channels 128 kbps idx=2 id=bd-81010000 spa]] /var/media/recordings/ChristmasontheDanube-2777762-0.mpg, Seg0[Thu 12/24 19:59:58.489-Thu 12/24 20:00:00.000]] num=3944
Fri 12/25 12:08:06.016 [main@3764951d] Using internal format detector first for: /var/media/recordings/NaziMegaWeapons-2764929-0.mpg
Fri 12/25 12:08:06.019 [main@3764951d] File Format Parsed-2a /var/media/recordings/NaziMegaWeapons-2764929-0.mpg=MPEG2-PS 0:10:58 2815 kbps [#0 Video[MPEG2-Video 29.97003 fps 1920x1080 16:9 interlaced id=e0]#1 Audio[AC3 48000 Hz 6 channels 384 kbps MAIN idx=1 id=bd-80010000 eng]#2 Audio[AC3 48000 Hz 1 channels 128 kbps idx=3 id=bd-82010000 eng]#3 Audio[AC3 48000 Hz 1 channels 128 kbps idx=2 id=bd-81010000 spa]]
Fri 12/25 12:08:06.037 [main@3764951d] File Format Parsed-2b /var/media/recordings/NaziMegaWeapons-2764929-0.mpg=MPEG2-PS 0:10:58 2815 kbps [#0 Video[MPEG2-Video 29.97003 fps 1920x1080 16:9 interlaced id=e0]#1 Audio[AC3 48000 Hz 6 channels 384 kbps MAIN idx=1 id=bd-80010000 eng]#2 Audio[AC3 48000 Hz 1 channels 128 kbps idx=3 id=bd-82010000 eng]#3 Audio[AC3 48000 Hz 1 channels 128 kbps idx=2 id=bd-81010000 spa]{Description=The engineering secrets of six structures that changed the face of warfare., AiringTime=1450152000000, ParentalRating=TVPG, Genre=Documentary;Science, OriginalAirDate=1374105600000, AiringDuration=660000, ExternalID=SH017381900000, Title=Nazi Mega Weapons, CC=true, Stereo=true}]
Fri 12/25 12:08:06.039 [main@3764951d] Added:MediaFile[id=98900 A[98901,7183,"Nazi Mega Weapons",0@1214.23:00,11,T V] mask=TV host=sagetv1 encodedBy= format=MPEG2-PS 0:10:58 2815 kbps [#0 Video[MPEG2-Video 29.97003 fps 1920x1080 16:9 interlaced id=e0]#1 Audio[AC3 48000 Hz 6 channels 384 kbps MAIN idx=1 id=bd-80010000 eng]#2 Audio[AC3 48000 Hz 1 channels 128 kbps idx=3 id=bd-82010000 eng]#3 Audio[AC3 48000 Hz 1 channels 128 kbps idx=2 id=bd-81010000 spa]] /var/media/recordings/NaziMegaWeapons-2764929-0.mpg, Seg0[Mon 12/14 23:00:01.673-Mon 12/14 23:11:00.000]] num=3945
Reply With Quote
  #17  
Old 12-28-2015, 05:56 PM
Narflex's Avatar
Narflex Narflex is offline
Sage
 
Join Date: Feb 2003
Location: Redondo Beach, CA
Posts: 6,349
Yeah, I can see the format is mis-detecting the duration on those files. Can you upload an example file somewhere so this can be reproduced and looked into?
__________________
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 SageTV server died-moving ok? sgx2 SageTV Linux 3 11-04-2013 09:31 PM
Moving wiz.bin and recordings from XP -> Linux matt91 SageTV Linux 3 08-10-2013 10:28 AM
Moving windows directory to another drive, keep recordings as is? btrcp2000 Hardware Support 3 11-15-2012 05:01 PM
Moving from Windows to Linux jmode SageTV Linux 4 06-23-2011 12:31 PM
Moving linux sage server MrD SageTV Linux 1 05-26-2006 10:48 AM


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


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