SageTV Community  

Go Back   SageTV Community > SageTV Products > SageTV Software
Forum Rules FAQs Community Downloads Today's Posts Search

Notices

SageTV Software Discussion related to the SageTV application produced by SageTV. Questions, issues, problems, suggestions, etc. relating to the SageTV software application should be posted here. (Check the descriptions of the other forums; all hardware related questions go in the Hardware Support forum, etc. And, post in the customizations forum instead if any customizations are active.)

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 02-10-2014, 05:18 PM
bill321 bill321 is offline
Sage User
 
Join Date: Nov 2007
Posts: 44
Moving files to another NAS - Timeline Glitch

I am having a problem that I know I did not have before when moving files.

I have always been able to just move a recorded TV SageTV TS file from one NAS to another and after running a "scan imported media" have the file show up just as before.

Now when I do this, the file has a weird timeline and the playing starts about 5 minutes into the file. The end of the timeline is about 5 minutes of "red". The program plays fine but I have to rewind to get to the beginning of the program and it won't restart at the right spot until after I play it past the vertical yellow timeline that is at about the 5 minute mark.

I am at a loss, and I want to clean out an old NASLITE NAS to allow for repurposing that box.

Any help would be greatly appreciated.

Bill

Last edited by bill321; 02-10-2014 at 07:08 PM.
Reply With Quote
  #2  
Old 02-10-2014, 07:37 PM
BobPhoenix BobPhoenix is offline
SageTVaholic
 
Join Date: Oct 2004
Posts: 3,152
Quote:
Originally Posted by bill321 View Post
I am having a problem that I know I did not have before when moving files.

I have always been able to just move a recorded TV SageTV TS file from one NAS to another and after running a "scan imported media" have the file show up just as before.

Now when I do this, the file has a weird timeline and the playing starts about 5 minutes into the file. The end of the timeline is about 5 minutes of "red". The program plays fine but I have to rewind to get to the beginning of the program and it won't restart at the right spot until after I play it past the vertical yellow timeline that is at about the 5 minute mark.

I am at a loss, and I want to clean out an old NASLITE NAS to allow for repurposing that box.

Any help would be greatly appreciated.

Bill
Use the web server and adjust the start time back by however much you want to.

I see this all the time and have finally found out what I've been doing that causes it - for me at least. When I move the file SageTV needs to see it gone from the original location first then see it in the new location. When it does a scan for me and sees it missing from one and added to the other on the same scan I get what you describe. So I've started to do 2 scans. The first one after I remove the file from its original location. Then a second scan (after the first completes) with the file in it's new location. Of course YMMV and I haven't been doing it that way very long so it is possible that I'm wrong but so far it works for me.
__________________
"Keep your goals away from the trolls"
Reply With Quote
  #3  
Old 02-10-2014, 09:16 PM
bill321 bill321 is offline
Sage User
 
Join Date: Nov 2007
Posts: 44
Quote:
Originally Posted by BobPhoenix View Post
Use the web server and adjust the start time back by however much you want to.
Thanks for your help. I tried your suggestion to do two scans, but it didn't seem to fix the problem.

I have tried moving files from another NAS (a synology) to another synology, and the problem doesn't seem to happen. Perhaps it is an issue with the Naslite to Synology transfer. Or maybe it just happens on some files (I've only tried half a dozen or so both ways.) I'm stumped.

When you say use the web server to adjust the files, is this in the meta data editor in the web interface? If so, I can't find the field that I should adjust.

thanks again

Bill
Reply With Quote
  #4  
Old 02-11-2014, 07:19 AM
will will is offline
Sage Fanatic
 
Join Date: Jul 2009
Location: New York
Posts: 798
Quote:
Originally Posted by bill321 View Post
I have tried moving files from another NAS (a synology) to another synology, and the problem doesn't seem to happen. Perhaps it is an issue with the Naslite to Synology transfer. Or maybe it just happens on some files (I've only tried half a dozen or so both ways.) I'm stumped.
I have seen this issue too when I move around files but it only happened a few times and I think only on my pre-v7 recordings (I think) - I haven't moved stuff since I did storage space upgrade.

Have you tried shutting down Sage, moving the files, then putting Sage in a recovery scan mode and starting it up. This information may help.
__________________
Will

OS: Windows 7
Hardware: Intel Core i7-920 with 12GB RAM & an Adaptec 5805 with a Chenbro 36-port SAS Expander
Case: Antec 1200 with 4 iStarUSA trayless hot-swap cages (20 drives max)
Drives: 8 Toshiba/Hitachi 2TB drives in a RAID 6 & 7 Toshiba 3TB drives in a RAID 6
Capture Cards: HDHomeRun Connect Quatro 4, Hauppauge 60 HD-PVR
Players: 5 HD300s, 2 HD200s
Reply With Quote
  #5  
Old 02-11-2014, 09:10 AM
nyplayer nyplayer is offline
SageTVaholic
 
Join Date: Sep 2005
Posts: 4,997
Quote:
Originally Posted by bill321 View Post
I am having a problem that I know I did not have before when moving files.

I have always been able to just move a recorded TV SageTV TS file from one NAS to another and after running a "scan imported media" have the file show up just as before.

Now when I do this, the file has a weird timeline and the playing starts about 5 minutes into the file. The end of the timeline is about 5 minutes of "red". The program plays fine but I have to rewind to get to the beginning of the program and it won't restart at the right spot until after I play it past the vertical yellow timeline that is at about the 5 minute mark.

I am at a loss, and I want to clean out an old NASLITE NAS to allow for repurposing that box.

Any help would be greatly appreciated.

Bill
By any chance do you have a 5 minute padding on these recordings? If you do then it will always happen... if not have you tried robocopy to move the files it copies over all attributes and timestamps.

movefile.bat You can drag and drop files onto batchfile.
Code:
Rem ********* Checks to make sure file is not in use
move "%~f1" "%~d1%~p1"
set checkuse=%ERRORLEVEL%
if %checkuse% NEQ 0 exit 1
Rem ********* Checks to make sure file is not in use

Rem ********* Moves files and assets
set origpath=%~d1%~p1%
set origipath="%origpath:~0,-1%"
robocopy %origipath% "\\NAS-BE-B8-48\backup\SAGEJANKEEP" "%~n1**" /mov
Rem ********* Moves files and assets
exit 0
__________________
Channels DVR UBUNTU Server 2 Primes 3 Connects TVE SageTV Docker with input from Channels DVR XMLTV and M3U VIA Opendct.

Last edited by nyplayer; 02-11-2014 at 09:24 AM.
Reply With Quote
  #6  
Old 02-11-2014, 09:54 AM
bill321 bill321 is offline
Sage User
 
Join Date: Nov 2007
Posts: 44
Quote:
Originally Posted by will View Post
I have seen this issue too when I move around files but it only happened a few times and I think only on my pre-v7 recordings (I think) - I haven't moved stuff since I did storage space upgrade.

Have you tried shutting down Sage, moving the files, then putting Sage in a recovery scan mode and starting it up. This information may help.
All of the files were created by a HDPVR using the latest version 7 of Sage.

I tried the advanced mode of moving files a few weeks ago - there was no difference. I will try it again, though, later today when I can shutdown sage.

thanks

Bill

Last edited by bill321; 02-11-2014 at 09:59 AM.
Reply With Quote
  #7  
Old 02-11-2014, 09:57 AM
bill321 bill321 is offline
Sage User
 
Join Date: Nov 2007
Posts: 44
Quote:
Originally Posted by nyplayer View Post
By any chance do you have a 5 minute padding on these recordings? If you do then it will always happen... if not have you tried robocopy to move the files it copies over all attributes and timestamps.
Thanks for the batch file - I will try it.

The files have a minute of padding at the beginning and the end.

Bill
Reply With Quote
  #8  
Old 02-11-2014, 10:16 AM
nyplayer nyplayer is offline
SageTVaholic
 
Join Date: Sep 2005
Posts: 4,997
There is no need to Shutdown Sage run the batchfile and refresh.
__________________
Channels DVR UBUNTU Server 2 Primes 3 Connects TVE SageTV Docker with input from Channels DVR XMLTV and M3U VIA Opendct.
Reply With Quote
  #9  
Old 02-11-2014, 10:59 AM
Skirge01's Avatar
Skirge01 Skirge01 is offline
SageTVaholic
 
Join Date: Jun 2007
Location: New Jersey
Posts: 2,599
Quote:
Originally Posted by nyplayer View Post
There is no need to Shutdown Sage run the batchfile and refresh.
I'm having the same issue ever since I started moving recordings on a daily basis using task scheduler. Any idea how I could incorporate such a check into my own batch file?

Code:
robocopy \\W7-Server\1_1\SageRecs "\\W7-Server\Recordings (DVR)" *.txt /mov /zb /xo /v /fp /np /log+:c:\scripts\txtmovelog.txt
robocopy \\W7-Server\1_1\SageRecs "\\W7-Server\Recordings (DVR)" *.log /mov /zb /xo /v /fp /np /log+:c:\scripts\logmovelog.txt
robocopy \\W7-Server\1_1\SageRecs "\\W7-Server\Recordings (DVR)" *.csv /mov /zb /xo /v /fp /np /log+:c:\scripts\csvmovelog.txt
robocopy \\W7-Server\1_1\SageRecs "\\W7-Server\Recordings (DVR)" *.data /mov /zb /xo /v /fp /np /log+:c:\scripts\datamovelog.txt
robocopy \\W7-Server\1_1\SageRecs "\\W7-Server\Recordings (DVR)" *.jpg /mov /zb /xo /v /fp /np /log+:c:\scripts\jpgmovelog.txt
robocopy \\W7-Server\1_1\SageRecs "\\W7-Server\Recordings (DVR)" *.properties /mov /zb /xo /v /fp /np /log+:c:\scripts\propertiesmovelog.txt
robocopy \\W7-Server\1_1\SageRecs "\\W7-Server\Recordings (DVR)" *.edl /zb /xo /v /fp /np /log+:c:\scripts\edlmovelog.txt
robocopy \\W7-Server\1_1\SageRecs "\\W7-Server\Recordings (DVR)" *.mpg /mov /mt:1 /zb /xo /v /fp /np /log+:c:\scripts\mpgmovelog.txt
robocopy \\W7-Server\1_1\SageRecs "\\W7-Server\Recordings (DVR)" *.ts /mov /mt:1 /zb /xo /v /fp /np /log+:c:\scripts\tsmovelog.txt
__________________
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
  #10  
Old 02-11-2014, 11:08 AM
nyplayer nyplayer is offline
SageTVaholic
 
Join Date: Sep 2005
Posts: 4,997
Quote:
Originally Posted by Skirge01 View Post
I'm having the same issue ever since I started moving recordings on a daily basis using task scheduler. Any idea how I could incorporate such a check into my own batch file?

Code:
robocopy \\W7-Server\1_1\SageRecs "\\W7-Server\Recordings (DVR)" *.txt /mov /zb /xo /v /fp /np /log+:c:\scripts\txtmovelog.txt
robocopy \\W7-Server\1_1\SageRecs "\\W7-Server\Recordings (DVR)" *.log /mov /zb /xo /v /fp /np /log+:c:\scripts\logmovelog.txt
robocopy \\W7-Server\1_1\SageRecs "\\W7-Server\Recordings (DVR)" *.csv /mov /zb /xo /v /fp /np /log+:c:\scripts\csvmovelog.txt
robocopy \\W7-Server\1_1\SageRecs "\\W7-Server\Recordings (DVR)" *.data /mov /zb /xo /v /fp /np /log+:c:\scripts\datamovelog.txt
robocopy \\W7-Server\1_1\SageRecs "\\W7-Server\Recordings (DVR)" *.jpg /mov /zb /xo /v /fp /np /log+:c:\scripts\jpgmovelog.txt
robocopy \\W7-Server\1_1\SageRecs "\\W7-Server\Recordings (DVR)" *.properties /mov /zb /xo /v /fp /np /log+:c:\scripts\propertiesmovelog.txt
robocopy \\W7-Server\1_1\SageRecs "\\W7-Server\Recordings (DVR)" *.edl /zb /xo /v /fp /np /log+:c:\scripts\edlmovelog.txt
robocopy \\W7-Server\1_1\SageRecs "\\W7-Server\Recordings (DVR)" *.mpg /mov /mt:1 /zb /xo /v /fp /np /log+:c:\scripts\mpgmovelog.txt
robocopy \\W7-Server\1_1\SageRecs "\\W7-Server\Recordings (DVR)" *.ts /mov /mt:1 /zb /xo /v /fp /np /log+:c:\scripts\tsmovelog.txt
Not sure how to check for file use as you are mass moving files? Robocopy will issue an exit code of 1 if the file is in use but it will still copy it. That is why I have my own check.

I have wget and added the line below to the bottom of my batchfile to refresh the library. The sagewebserver has to be installed.

c:\wget\wget.exe --delete-after --tries=1 --directory-prefix="c:\wget" "http://Username:Password@SERVERNAME:8080/sage/GlobalCommand?command=UpdateMediaLibrary"


PS I do not have Sage to auto refresh ... it is set to manual. This way Sage will not refresh while a file move is in progress.
__________________
Channels DVR UBUNTU Server 2 Primes 3 Connects TVE SageTV Docker with input from Channels DVR XMLTV and M3U VIA Opendct.

Last edited by nyplayer; 02-11-2014 at 11:31 AM.
Reply With Quote
  #11  
Old 02-11-2014, 11:58 AM
BobPhoenix BobPhoenix is offline
SageTVaholic
 
Join Date: Oct 2004
Posts: 3,152
Quote:
Originally Posted by bill321 View Post
Thanks for your help. I tried your suggestion to do two scans, but it didn't seem to fix the problem.
Two scans won't fix the problem if it already exists. It will only prevent it from happening (at least for me) on future moves.
__________________
"Keep your goals away from the trolls"
Reply With Quote
  #12  
Old 02-12-2014, 10:31 AM
Skirge01's Avatar
Skirge01 Skirge01 is offline
SageTVaholic
 
Join Date: Jun 2007
Location: New Jersey
Posts: 2,599
Quote:
Originally Posted by nyplayer View Post
Not sure how to check for file use as you are mass moving files? Robocopy will issue an exit code of 1 if the file is in use but it will still copy it. That is why I have my own check.

I have wget and added the line below to the bottom of my batchfile to refresh the library. The sagewebserver has to be installed.

c:\wget\wget.exe --delete-after --tries=1 --directory-prefix="c:\wget" "http://Username:Password@SERVERNAME:8080/sage/GlobalCommand?command=UpdateMediaLibrary"


PS I do not have Sage to auto refresh ... it is set to manual. This way Sage will not refresh while a file move is in progress.
I'll give the wget method a try. Thanks!
__________________
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
  #13  
Old 02-13-2014, 02:56 PM
wayner wayner is offline
SageTVaholic
 
Join Date: Jan 2008
Location: Toronto, ON
Posts: 7,491
Quote:
Originally Posted by nyplayer View Post
There is no need to Shutdown Sage run the batchfile and refresh.
You're saying that if I fix the timestamp on the file that Sage will fix the timeline recordings automatically? I will have another look at this but I swear that in the past that I had to move recordings out of a Sage monitored TV/Video library folder, do a scan, and then move the files back and do a second scan that totally reloads all of the file info before I can fix these timeline problems.

FYI - I am working on some SJQ code that will go through your files and check to see if the Last Modified attribute of the media file is the same as the Recording End time from the metadata. If not it will update the Last Modified attribute to correct it. Does anyone want me to post this?
__________________
New Server - Sage9 on unRAID 2xHD-PVR, HDHR for OTA
Old Server - Sage7 on Win7Pro-i660CPU with 4.6TB, HD-PVR, HDHR OTA, HVR-1850 OTA
Clients - 2xHD-300, 8xHD-200 Extenders, Client+2xPlaceshifter and a WHS which acts as a backup Sage server
Reply With Quote
  #14  
Old 02-13-2014, 03:29 PM
nyplayer nyplayer is offline
SageTVaholic
 
Join Date: Sep 2005
Posts: 4,997
Quote:
Originally Posted by BobPhoenix View Post
Use the web server and adjust the start time back by however much you want to.

I see this all the time and have finally found out what I've been doing that causes it - for me at least. When I move the file SageTV needs to see it gone from the original location first then see it in the new location. When it does a scan for me and sees it missing from one and added to the other on the same scan I get what you describe. So I've started to do 2 scans. The first one after I remove the file from its original location. Then a second scan (after the first completes) with the file in it's new location. Of course YMMV and I haven't been doing it that way very long so it is possible that I'm wrong but so far it works for me.
What I did after seeing this post is using the webserver and the MediafileID I was able to issue a delete of the old file from the DB once the new file was created by using the webserver this eliminated those temporary entries of 0 meg files. with the same name diff extension... this picks up the new file right away.

I hope to put something together but I am looking for a better way to get the MediafileID. Right now I am parsing through the Individual XML files created by Nielm sagexml to get the MediafileID.
__________________
Channels DVR UBUNTU Server 2 Primes 3 Connects TVE SageTV Docker with input from Channels DVR XMLTV and M3U VIA Opendct.
Reply With Quote
  #15  
Old 02-13-2014, 03:34 PM
wayner wayner is offline
SageTVaholic
 
Join Date: Jan 2008
Location: Toronto, ON
Posts: 7,491
Do you use SJQ? It is pretty easy to get a list of filename and mediafile ID -you can just write them to a text file.
__________________
New Server - Sage9 on unRAID 2xHD-PVR, HDHR for OTA
Old Server - Sage7 on Win7Pro-i660CPU with 4.6TB, HD-PVR, HDHR OTA, HVR-1850 OTA
Clients - 2xHD-300, 8xHD-200 Extenders, Client+2xPlaceshifter and a WHS which acts as a backup Sage server
Reply With Quote
  #16  
Old 02-13-2014, 03:38 PM
nyplayer nyplayer is offline
SageTVaholic
 
Join Date: Sep 2005
Posts: 4,997
Quote:
Originally Posted by wayner View Post
Do you use SJQ? It is pretty easy to get a list of filename and mediafile ID -you can just write them to a text file.
Thanks wayne

Right now I am also writing them to a text file along side the file using SJQ3 ... But I would like to Include in my batch job outside of SJQ as an alternative.

below is a sample of my delete using the file created by SJQ3.

American Horror Story Coven - S03E12 - Go to Hell -10626521-0.mpg.mediafileid (contents Below)
mediafileid=10445237

Code:
set /p mediafileid=<"%~f1.mediafileid"
set mediafileid=%mediafileid:~12%
echo %mediafileid%
C:\SAGETOOLS\wget\wget.exe --tries=3 --directory-prefix=C:\temp "http://user:ppassword@servername:8080/sage/AiringCommand?command=DeleteFile&MediaFileId=%mediafileid%&confirm=yes"
rem **********************************************************************************************************************************************************************************

rem Archive
rem Unarchive
rem SetWatched
rem ClearWatched
rem SetDontLike
rem convert
__________________
Channels DVR UBUNTU Server 2 Primes 3 Connects TVE SageTV Docker with input from Channels DVR XMLTV and M3U VIA Opendct.

Last edited by nyplayer; 02-13-2014 at 03:46 PM.
Reply With Quote
  #17  
Old 02-13-2014, 03:48 PM
wayner wayner is offline
SageTVaholic
 
Join Date: Jan 2008
Location: Toronto, ON
Posts: 7,491
Quote:
Originally Posted by nyplayer View Post
Right now I am also writing them to a text file along side the file using SJQ3 ... But I would like to Include in my batch job outside of SJQ as an alternative.
SJQv4 uses Groovy and Slugger was kind enough to make a Groovy Dev environment so you can run your code without having to initiate it from a job in SJQ. The Groovy code is also pretty much the same as Java so you could also probably run the code in Java with very few changes since it uses the SageTV Java API.
__________________
New Server - Sage9 on unRAID 2xHD-PVR, HDHR for OTA
Old Server - Sage7 on Win7Pro-i660CPU with 4.6TB, HD-PVR, HDHR OTA, HVR-1850 OTA
Clients - 2xHD-300, 8xHD-200 Extenders, Client+2xPlaceshifter and a WHS which acts as a backup Sage server
Reply With Quote
  #18  
Old 02-13-2014, 03:49 PM
nyplayer nyplayer is offline
SageTVaholic
 
Join Date: Sep 2005
Posts: 4,997
Quote:
Originally Posted by wayner View Post
SJQv4 uses Groovy and Slugger was kind enough to make a Groovy Dev environment so you can run your code without having to initiate it from a job in SJQ. The Groovy code is also pretty much the same as Java so you could also probably run the code in Java with very few changes since it uses the SageTV Java API.
I will look into I never really got into being "Groovy". I just need an option that does not require additional Installs not for me but some of the users I support.. I like to keep them as simple as possible.
__________________
Channels DVR UBUNTU Server 2 Primes 3 Connects TVE SageTV Docker with input from Channels DVR XMLTV and M3U VIA Opendct.

Last edited by nyplayer; 02-13-2014 at 03:52 PM.
Reply With Quote
  #19  
Old 02-13-2014, 03:52 PM
wayner wayner is offline
SageTVaholic
 
Join Date: Jan 2008
Location: Toronto, ON
Posts: 7,491
Quote:
Originally Posted by nyplayer View Post
I will look into I never really got into being "Groovy"
It's Feelin;' Groovy

Slow down, you move too fast.
You've got to make the moment last just,
kickin' down the cobblestones
__________________
New Server - Sage9 on unRAID 2xHD-PVR, HDHR for OTA
Old Server - Sage7 on Win7Pro-i660CPU with 4.6TB, HD-PVR, HDHR OTA, HVR-1850 OTA
Clients - 2xHD-300, 8xHD-200 Extenders, Client+2xPlaceshifter and a WHS which acts as a backup Sage server
Reply With Quote
  #20  
Old 02-13-2014, 05:42 PM
graywolf's Avatar
graywolf graywolf is offline
Sage Icon
 
Join Date: Oct 2009
Location: NC
Posts: 1,389
Quote:
Originally Posted by wayner View Post
FYI - I am working on some SJQ code that will go through your files and check to see if the Last Modified attribute of the media file is the same as the Recording End time from the metadata. If not it will update the Last Modified attribute to correct it. Does anyone want me to post this?
YES please
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
Moving files and Metadata wayner SageTV Software 4 02-05-2013 12:29 PM
6.6.2 timeline off on converted files troycheek SageTV Software 3 09-04-2009 09:37 AM
Moving Files HokiePerogi SageTV Linux 2 11-17-2008 10:28 PM
Missing timeline on m2ts files on HD100 Sam SageTV Media Extender 0 08-22-2008 12:33 PM
Help with moving files silentmonolith SageTV Software 1 10-18-2006 09:00 PM


All times are GMT -6. The time now is 03:12 PM.


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