|
SageTV for unRAID/Docker Discussion related to SageTV for unRAID/Docker. Questions, issues, problems, suggestions, etc. relating to SageTV for unRAID/Docker should be posted here. |
|
Thread Tools | Search this Thread | Display Modes |
#1
|
||||
|
||||
All Imported MKVs Show Zero Length
My system downloads MKVs via Sonarr and dumps them into folders where Sage can see them. These videos have been working for years with no issues, but from sometime between 28th November (last fault-free import) and 30th November something happened which made all imports show as length zero. They still play in Sage, but the timeline shows 0:00 to 0:00, can't skip forward or back, if stopped halfway through they always go back to the beginning, and never get set as played even if watched to the end. Does the same for MP4s. This is in PC Client or MiniClient, and Plex/MediaInfo/MPC-HC etc all work just fine and show correct lengths.
So something seems to have happened to Sage's import process around the end of November. Any ideas what changed around those dates? Any suggestions?
__________________
unRAID Server: Intel Core i5 7600K, 48GB DDR4, 2x512GB PCIe M.2 Cache Pool, 2x10TB SATA3 Parity Drive, 3x8TB SATA Array, 1x hdHomeRun DVB-T2 Quattro, IPTV via xTeVe, unRAID 6.8.3, tvHeadEnd for recording back end, Emby Clients: 3 Nvidia Shields, 3 FireTV, 3 Win10 Pro PC Clients |
#2
|
|||
|
|||
Try setting “debug_ffmpeg_format_info=true” in sage.properties and then import a new file. It will show what SageTV believes FFmpeg is finding.
EDIT for anyone who finds this later. Set it to TRUE since it’s a string value. Last edited by wnjj; 02-01-2019 at 10:24 AM. |
#3
|
||||
|
||||
Quote:
Quote:
__________________
unRAID Server: Intel Core i5 7600K, 48GB DDR4, 2x512GB PCIe M.2 Cache Pool, 2x10TB SATA3 Parity Drive, 3x8TB SATA Array, 1x hdHomeRun DVB-T2 Quattro, IPTV via xTeVe, unRAID 6.8.3, tvHeadEnd for recording back end, Emby Clients: 3 Nvidia Shields, 3 FireTV, 3 Win10 Pro PC Clients |
#4
|
|||
|
|||
All SageTV does is run FFmpeg and then parse the text that comes out. There should be a field called “Duration:” in that output. Turning on that debug flag should dump the output into the log file.
I’m guessing something is wrong with your FFmpeg or one of its support libraries. EDIT: hmm. I don’t see the log message I expected. I’ll look closer at the code. |
#5
|
|||
|
|||
Try setting it to “TRUE” since I now realize it is probably just a string not a boolean. You should get the file name, its size and then “FFMPEG Info:”
|
#6
|
||||
|
||||
[LIST]
format=MATROSKA 0:00:00 0 kbps Is the above normal? Can you copy a good movie file without the timeline issue and see if the scan also has the 0 kbps |
#7
|
||||
|
||||
Quote:
Quote:
__________________
unRAID Server: Intel Core i5 7600K, 48GB DDR4, 2x512GB PCIe M.2 Cache Pool, 2x10TB SATA3 Parity Drive, 3x8TB SATA Array, 1x hdHomeRun DVB-T2 Quattro, IPTV via xTeVe, unRAID 6.8.3, tvHeadEnd for recording back end, Emby Clients: 3 Nvidia Shields, 3 FireTV, 3 Win10 Pro PC Clients |
#8
|
||||
|
||||
BINGO
Fix the permission, rescan, and it should be fixed Do: chmod ugo+x /opt/sagetv/server/ffmpeg I need to add that properties setting to my troubleshooting notes Last edited by graywolf; 02-01-2019 at 10:29 AM. |
#9
|
||||
|
||||
Yep, thanks all, that's done it.
Now I have hundreds of file that need a rescan but won't scan because they are unchanged. Any idea how I can force the importer to pick them up? Preferably without losing watched data...
__________________
unRAID Server: Intel Core i5 7600K, 48GB DDR4, 2x512GB PCIe M.2 Cache Pool, 2x10TB SATA3 Parity Drive, 3x8TB SATA Array, 1x hdHomeRun DVB-T2 Quattro, IPTV via xTeVe, unRAID 6.8.3, tvHeadEnd for recording back end, Emby Clients: 3 Nvidia Shields, 3 FireTV, 3 Win10 Pro PC Clients |
#10
|
||||
|
||||
Do: find /var/mediaext/videos/TV -type f -name *.mkv -exec touch {} \;
That will do just the mkv file extensions. Do same for mp4 and others you want Then do rescan. |
#11
|
||||
|
||||
Fantastic, thanks so much. WAF will be much improved...
__________________
unRAID Server: Intel Core i5 7600K, 48GB DDR4, 2x512GB PCIe M.2 Cache Pool, 2x10TB SATA3 Parity Drive, 3x8TB SATA Array, 1x hdHomeRun DVB-T2 Quattro, IPTV via xTeVe, unRAID 6.8.3, tvHeadEnd for recording back end, Emby Clients: 3 Nvidia Shields, 3 FireTV, 3 Win10 Pro PC Clients |
#12
|
||||
|
||||
The unRAID container for SageTV does reset the file permissions to the correct permissions on startup, if the files are under /var/media/tv /var/mediaext/ or var/media/videos.
But, to be sure you should make sure that the sonar container and sagetv containers are all running as the same unRAID user (set in the PUID and GUID container settings). This should ensure that you don't have ownership permissions. The fact that this just started happening... maybe the sonar container or the sagetv container changed?
__________________
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 |
#13
|
||||
|
||||
Quote:
So just a chmod +x /opt/sagetv/server/ffmpeg was needed.
__________________
unRAID Server: Intel Core i5 7600K, 48GB DDR4, 2x512GB PCIe M.2 Cache Pool, 2x10TB SATA3 Parity Drive, 3x8TB SATA Array, 1x hdHomeRun DVB-T2 Quattro, IPTV via xTeVe, unRAID 6.8.3, tvHeadEnd for recording back end, Emby Clients: 3 Nvidia Shields, 3 FireTV, 3 Win10 Pro PC Clients |
#14
|
|||
|
|||
I have a similar issue with my .mp4 video home movie files but I'm not sure how the above solution might apply to me. I moved from a Windows 10 server to the NAS server in my signature about 6 months ago. My home movies are located at /var/media/Home Movies in folders by year. For folders that already existed from 2006 to 2018 regular .mpg files play successfully. However, .mp4 and .mov files play but show zero duration and fast forward/rewind is disabled.
I made a new folder for 2019 and imported two new .mp4 files and these new files play just fine. The timeline is accurate and fast forward/rewind works in increments of 15 seconds. All the folders under Home Movies seem to have the same permissions. Anybody have a suggestion on how I might get my existing .mp4 files to play with a correct duration/timeline and fast forward/rewind enabled? Sorry if I'm missing something obvious. I'm still a noob at Linux and QNAP. Thanks.
__________________
Server: QNAP TS-253Be NAS, 2-4TB drives in Raid 1 with SageTV Docker Java 8 running in Container Station - Tuner: HDHR Connect Quatro - Clients: 1 x HD-300 |
#15
|
|||
|
|||
Quote:
__________________
Server: QNAP TS-253Be NAS, 2-4TB drives in Raid 1 with SageTV Docker Java 8 running in Container Station - Tuner: HDHR Connect Quatro - Clients: 1 x HD-300 |
#16
|
|||
|
|||
So, I have been trying to solve the issue of newly imported videos having a 0:00 length as described above. I tried a full rescan of all imported videos and now all of them have a length of 0:00. I have tried everything in this thread with no luck. From my recent attempt to import here are some of the results if someone could give me a clue where else to look? All video formats are now reporting 0:00 length not just quicktime.....
Sun 4/4 9:52:44.006 [LibraryImporter@31cf42a0] File Format Parsed /var/media/external/sde1/Media-A/HD DVD Files/The Fugitive.m4v=Quicktime 0:00:00 0 kbps [{Description=Wrongfully accused of murdering his wife, Richard Kimble escapes from the law in an attempt to find her killer and clear his name. Pursuing him is a team of U.S. marshals led by Deputy Samuel Gerard, a determined detective who will not rest until Richard is captured. As Richard leads the team through a series of intricate chases, he discovers the secrets behind his wife's death and struggles to expose the killer before it is too late., CollectionName=The Fugitive / U.S. Marshals Collection, MediaTitle=The Fugitive, OriginalAirDate=744609600000, Director=Andrew Davis, CollectionOverview=U.S. Marshals is a 1998 action thriller film starring Tommy Lee Jones, Wesley Snipes, and Robert Downey Jr.. It is a sequel to the 1993 film The Fugitive. The storyline of U.S. Marshals does not feature the character Dr. Richard Kimble, but Jones and the rest of the team of U.S. Marshals who pursued Kimble in the first film reprise their roles, now hunting another fugitive (Snipes)., ScrapedBy=Phoenix, MediaProviderID=tmdb, TagLine=A murdered wife. A one-armed man. An obsessed detective. The chase begins., UserRating=73, IMDBID=tt0106977, ScrapedDate=1530475130396, Producer=Arnold Kopelson, Year=1993, Rated=PG-13, CollectionID=134011, Actor=Harrison Ford -- Dr. Kimble;Tommy Lee Jones -- Samuel Gerard;Sela Ward -- Helen Kimble;Julianne Moore -- Dr. Anne Eastman;Joe Pantoliano -- Cosmo Renfro;Andreas Katsulas -- Sykes;Jeroen Krabb? -- Dr. Charles Nichols;Daniel Roebuck -- Biggs;L. Scott Caldwell -- Poole;Ron Dean -- Detective Kelly;Joseph F. Kosala -- Detective Rosetti;Tom Wood -- Newman;Dick Cusack -- Walter Gutherie;Richard Riehle -- Old Guard;Andy Romano -- Judge Bennett;Nick Searcy -- Sheriff Rawlins;Miguel Nino -- Chicago Cop #1;John Drummond -- Newscaster;David Darlow -- Dr. Lentz;Jane Lynch -- Dr. Kathy Wahlund;Neil Flynn -- Polizist;Kevin Crowley -- State Trooper;Mark D. Espinoza -- Resident;Gene Barge -- 11th District Cop;Joe Guzaldo -- Prosecutor;Nicholas Kusenko -- Assistant Defense Attorney;Joan Kohn -- Asst. Prosecuting Attorney;Joe Guastaferro -- Coroner;Thom Vernon -- Carlson;Ken Moreno -- Partida;Eddie Bo Smith Jr. -- Copeland;Frank Ray Perilli -- Jail Officer;Pancho Demmings -- Young Guard;Jim Wilkey -- Bus Driver;Danny Goldring -- Head Illinois State Trooper;Michael James -- Head Welder;Michael Skewes -- Highway Patrolman;Cody Glenn -- Paramedic;Cynthia Baker -- Woman in Car;Johnny Lee Davenport -- Marshal Henry;Mike Bacarella -- Marshal Stevens;Bill Cusack -- Tracing Technician;Tighe Barry -- Windshield Washer;Afram Bill Williams -- Salesman;Noelle Bou-Sliman -- Myoelectric Technician;Greg Hollimon -- Skating Orderly;Cheryl Lynn Bruce -- O.R. Doctor;Ann Whitney -- Myoelectric Director;Turk Muller -- Clearing Officer;Eugene F. Crededio -- Visitation Guard;Pam Zekman -- Newscaster;David Pasquesi -- Newscaster;Dru Anne Carlson -- Gerard's Secretary;Kirsten Nelson -- Betty;Juan Ram?rez -- Man on 'El';Allen Hamilton -- Host;Lester Holt -- Newscaster;Suzy Brack -- City Hall Employee (uncredited);Darren W. Conrad -- Deputy at Train Wreck (uncredited);Kevin Mukherji -- Doctor (uncredited);Sal Richards -- Warrant Captain (uncredited);John-Clay Scott -- Mad Motorist at Tunnel (uncredited), MediaType=Movie, Genre=Adventure/Action/Thriller/Crime/Mystery, MediaProviderDataID=5503, RunningTime=7800000, TrailerUrl=http://www.youtube.com/watch?v=63hdx4iYs7k, Writer=Jeb Stuart;David Twohy}] |
#17
|
|||
|
|||
So you ran with debug_ffmpeg_format_info=true in sage.properties? Are there other lines before that one you showed? Those will provided better insight into why the format detection is failing.
__________________
Windows Installer |
#18
|
|||
|
|||
Actually that was the beginning of the file and there were no lines before that. I tried to grab all the lines associated with that movie. I did not look further down in the file as after the last line of what i posted it appears to be looking at another movie that was imported.
|
#19
|
|||
|
|||
Quote:
__________________
Windows Installer |
#20
|
|||
|
|||
So I looked through several of the sagetv_#.txt files and the results are the same for movies as presented above. I went through the process and touched the files on one drive and rescanned with no difference. Still no durations and I do not see an error. I assume the error shows in the sagetv_#.txt files?
Other things to note. I found this thread through a search and just noticed it is in the Docker section. I am not using docker but a plain Linux install. I am also running Java 11 so not sure that matters, but it is different than before. |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Imported videos timeline show 0 length | DaveS | SageTV Github Development | 14 | 06-24-2017 08:03 AM |
How does Sage calculate/determine show length for imported shows?? | mgpaulus | SageTV Software | 1 | 07-13-2013 09:30 PM |
Favorites by length of show? | wayner | SageTV Software | 1 | 01-12-2009 02:47 AM |
0 length movies and cannot fast forward on Imported media | vorius | SageTV Software | 3 | 11-01-2008 11:44 PM |
bug reporting wrong play length in 15 imported movies Please help! | darksoul | SageTV Beta Test Software | 6 | 04-12-2004 07:57 PM |