|
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.) |
|
Thread Tools | Search this Thread | Display Modes |
#1
|
|||
|
|||
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. |
#2
|
|||
|
|||
Quote:
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" |
#3
|
|||
|
|||
Quote:
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 |
#4
|
|||
|
|||
Quote:
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 |
#5
|
|||
|
|||
Quote:
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. |
#6
|
|||
|
|||
Quote:
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. |
#7
|
|||
|
|||
Quote:
The files have a minute of padding at the beginning and the end. Bill |
#8
|
|||
|
|||
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. |
#9
|
||||
|
||||
Quote:
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 |
#10
|
|||
|
|||
Quote:
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. |
#11
|
|||
|
|||
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" |
#12
|
||||
|
||||
Quote:
__________________
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 |
#13
|
|||
|
|||
Quote:
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 |
#14
|
|||
|
|||
Quote:
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. |
#15
|
|||
|
|||
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 |
#16
|
|||
|
|||
Quote:
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. |
#17
|
|||
|
|||
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 |
#18
|
|||
|
|||
Quote:
__________________
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. |
#19
|
|||
|
|||
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 |
#20
|
||||
|
||||
Quote:
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|
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 |