SageTV Community  

Go Back   SageTV Community > SageTV Development and Customizations > SageTV Github Development

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
  #161  
Old 11-04-2021, 02:27 PM
CptKirk CptKirk is offline
Sage Advanced User
 
Join Date: Sep 2010
Posts: 198
Sent you a PM to a link with the two files.
__________________
SageTV running on: Win7 SP1 64 Pro
SageTV 9.2.6.976 (32 bit)
Java 1.8.0 301 (32 bit)
OpenDCT 0.5.32 (32 bit) (Comcast Music channels set to FFmpeg)
Clients: HD300 (x2)
HDHR3-CC Prime 20210624 (Comcast CableCard) - 3 Tuners
Hauppauge 1950 STB SD (USB-UIRT Zone 1)
Hauppauge 1950 STB SD (USB-UIRT Zone 2)
Reply With Quote
  #162  
Old 11-11-2021, 10:48 PM
CptKirk CptKirk is offline
Sage Advanced User
 
Join Date: Sep 2010
Posts: 198
So sent Josh an mp4 file that was showing the error on my side (named it bad.mp4). I worked ok for him.

Quote:
JOSH: I unit tested the file with my code, and I imported it into my test SageTV server, and it seems to be working OK. I am wondering if there was an issue with the plugin install, and some of the required DLLs possibly got overwritten with older versions. Otherwise, maybe there was some outside issue causing the error. Like SageTV scanned the files prior to them being completed.

Below is my debug:
Code:
Fri 11/5 17:35:53.854 [LibraryImporter@63071ca1] Seeker is starting the library import scan...
Fri 11/5 17:35:53.963 [LibraryImporter@63071ca1] Starting to scan lib import root: C:\Users\jvl711.CORE\Documents\TestData
Fri 11/5 17:35:54.039 [LibraryImporter@63071ca1] testFile=Bad.mp4
Fri 11/5 17:35:54.114 [LibraryImporter@63071ca1] Using the format detector plugin
Fri 11/5 17:35:54.155 [LibraryImporter@63071ca1] MediaFormatParserPlugin processing: C:\Users\jvl711.CORE\Documents\TestData\Bad.mp4
Fri 11/5 17:35:54.610 [LibraryImporter@63071ca1] FormatName: mov,mp4,m4a,3gp,3g2,mj2
Fri 11/5 17:35:54.611 [LibraryImporter@63071ca1] FormatName (Substitution): QUICKTIME
Fri 11/5 17:35:54.628 [LibraryImporter@63071ca1] Duration: 7922999
Fri 11/5 17:35:54.637 [LibraryImporter@63071ca1] Bitrate: 2840925
Fri 11/5 17:35:54.644 [LibraryImporter@63071ca1] Number of Streams: 5
Fri 11/5 17:35:54.658 [LibraryImporter@63071ca1] Processing Video (0)
Fri 11/5 17:35:54.660 [LibraryImporter@63071ca1] 	Video Codes: h264
Fri 11/5 17:35:54.661 [LibraryImporter@63071ca1] 	Video Codes (Substitution): H.264
Fri 11/5 17:35:54.661 [LibraryImporter@63071ca1] 	Aspect Ration Den: 80
Fri 11/5 17:35:54.661 [LibraryImporter@63071ca1] 	Aspect Ration Num: 119
Fri 11/5 17:35:54.674 [LibraryImporter@63071ca1] 	Aspect Ration Num: 1.4958333333333333
Fri 11/5 17:35:54.674 [LibraryImporter@63071ca1] 	Framerate: 23.976023976023978
Fri 11/5 17:35:54.675 [LibraryImporter@63071ca1] 	Width: 718
Fri 11/5 17:35:54.675 [LibraryImporter@63071ca1] 	Height: 480
Fri 11/5 17:35:54.675 [LibraryImporter@63071ca1] 	Interlaced: false
Fri 11/5 17:35:54.676 [LibraryImporter@63071ca1] 	SetID: 1
Fri 11/5 17:35:54.676 [LibraryImporter@63071ca1] Processing Audio (1)
Fri 11/5 17:35:54.676 [LibraryImporter@63071ca1] 	Audio Codec: ac3
Fri 11/5 17:35:54.677 [LibraryImporter@63071ca1] 	Audio Codec (Substitution): AC3
Fri 11/5 17:35:54.677 [LibraryImporter@63071ca1] 	Channels: 6
Fri 11/5 17:35:54.678 [LibraryImporter@63071ca1] 	Sample Rats: 48000
Fri 11/5 17:35:54.678 [LibraryImporter@63071ca1] 	Bitrate: 448000
Fri 11/5 17:35:54.679 [LibraryImporter@63071ca1] 	Language: eng
Fri 11/5 17:35:54.686 [LibraryImporter@63071ca1] 	SetIDHex: 2
Fri 11/5 17:35:54.686 [LibraryImporter@63071ca1] Processing Audio (2)
Fri 11/5 17:35:54.687 [LibraryImporter@63071ca1] 	Audio Codec: ac3
Fri 11/5 17:35:54.687 [LibraryImporter@63071ca1] 	Audio Codec (Substitution): AC3
Fri 11/5 17:35:54.687 [LibraryImporter@63071ca1] 	Channels: 6
Fri 11/5 17:35:54.687 [LibraryImporter@63071ca1] 	Sample Rats: 48000
Fri 11/5 17:35:54.688 [LibraryImporter@63071ca1] 	Bitrate: 384000
Fri 11/5 17:35:54.688 [LibraryImporter@63071ca1] 	Language: eng
Fri 11/5 17:35:54.689 [LibraryImporter@63071ca1] 	SetIDHex: 3
Fri 11/5 17:35:54.689 [LibraryImporter@63071ca1] Processing Subtitle (3)
Fri 11/5 17:35:54.689 [LibraryImporter@63071ca1] 	Codec: dvdsub
Fri 11/5 17:35:54.690 [LibraryImporter@63071ca1] 	Codec (Substitution): DVDSUB
Fri 11/5 17:35:54.690 [LibraryImporter@63071ca1] 	Language: eng
Fri 11/5 17:35:54.690 [LibraryImporter@63071ca1] 	Forced: false
Fri 11/5 17:35:54.691 [LibraryImporter@63071ca1] 	SetIDHex: 4
Fri 11/5 17:35:54.700 [LibraryImporter@63071ca1] Processing Data (4)
Fri 11/5 17:35:54.709 [LibraryImporter@63071ca1] MediaFormatParserPlugin - Adding the container metadata
Fri 11/5 17:35:54.709 [LibraryImporter@63071ca1] 	Key: creation_time Value: 2021-08-28T23:46:36.000000Z
Fri 11/5 17:35:54.710 [LibraryImporter@63071ca1] 	Key: major_brand Value: mp42
Fri 11/5 17:35:54.710 [LibraryImporter@63071ca1] 	Key: encoder Value: HandBrake 1.3.3 2020061300
Fri 11/5 17:35:54.710 [LibraryImporter@63071ca1] 	Key: minor_version Value: 512
Fri 11/5 17:35:54.711 [LibraryImporter@63071ca1] 	Key: compatible_brands Value: isomiso2avc1mp41
Fri 11/5 17:35:54.719 [LibraryImporter@63071ca1] MediaFormatParserPlugin processing complete: C:\Users\jvl711.CORE\Documents\TestData\Bad.mp4
Fri 11/5 17:35:54.912 [LibraryImporter@63071ca1] Added:MediaFile[id=8464273 A[8464276,8464274,"Bad",0@1105.13:42,132,V] mask=V host=Development encodedBy= format=QUICKTIME 2:12:02 2840 kbps [#0 Video[H.264 23.976025 fps 718x480 119:80 progressive id=1]#1 Audio[AC3 48000 Hz 6 channels 448 kbps idx=1 id=2 eng]#2 Audio[AC3 48000 Hz 6 channels 384 kbps idx=2 id=3 eng]#3 Subpic[DVDSUB id=4 eng]] C:\Users\jvl711.CORE\Documents\TestData\Bad.mp4, Seg0[Fri 11/5 13:42:53.729-Fri 11/5 15:54:56.728]] num=3580
Fri 11/5 17:35:54.913 [LibraryImporter@63071ca1] New Library File MediaFile[id=8464273 A[8464276,8464274,"Bad",0@1105.13:42,132,V] mask=V host=Development encodedBy= format=QUICKTIME 2:12:02 2840 kbps [#0 Video[H.264 23.976025 fps 718x480 119:80 progressive id=1]#1 Audio[AC3 48000 Hz 6 channels 448 kbps idx=1 id=2 eng]#2 Audio[AC3 48000 Hz 6 channels 384 kbps idx=2 id=3 eng]#3 Subpic[DVDSUB id=4 eng]] C:\Users\jvl711.CORE\Documents\TestData\Bad.mp4, Seg0[Fri 11/5 13:42:53.729-Fri 11/5 15:54:56.728]]
Had some time tonight to try and dig into this a little more. Thinking of the comment about installed files, DLL's, etc I thought I would update from 9.2.5 to 9.2.6 to see if that cleared anything up.

1. Uninstalled the Format Detector Plugin
2. Shutdown SageTV service
3. Shutdown OpenDCT service
4. Installed SageTV
5. Rebooted server

Good news is that the original problem I was having with the 0:00:00 length is no longer happening. Bad news is that I am still seeing the Java error from the plugin.

More details...

Renamed bad.mp4 to BadTest1.mp4 and copied it to the server directory and did a scan. The file plays with no problems and shows the correct length. The plugin is NOT installed yet.

Code:
Thu 11/11 21:01:03.090 [LibraryImporter@19b6343] Starting to scan lib import root: \\KJCUBED4\Videos\Videos
Thu 11/11 21:01:03.378 [LibraryImporter@19b6343] testFile=BadTest1.mp4
Thu 11/11 21:01:03.383 [LibraryImporter@19b6343] Error instantiating metadata parser plugin of: java.lang.ClassNotFoundException: jvl.mediaformat.MediaFormatParserPlugin
Thu 11/11 21:01:03.383 [LibraryImporter@19b6343] Now using external format detector for: \\KJCUBED4\Videos\Videos\DVD\BadTest1.mp4
Thu 11/11 21:01:03.684 [LibraryImporter@19b6343] File Format Parsed \\KJCUBED4\Videos\Videos\DVD\BadTest1.mp4=Quicktime 2:12:03 2840 kbps [#0 Video[H.264 23.98 fps 718x480 2872:1215 1999 kbps progressive]#1 Audio[AC3 48000 Hz 2 channels 448 kbps idx=1 eng]#2 Audio[AC3 48000 Hz 2 channels 384 kbps idx=2 eng]#3 Subpic[DVDSUB eng]#4 Subpic[TEXT / 0X74786574 eng]{Language=und, minor_version=512, Muxer=HandBrake 1.3.3 2020061300, major_brand=mp42, compatible_brands=isomiso2avc1mp41}]
Thu 11/11 21:01:03.694 [LibraryImporter@19b6343] Added:MediaFile[id=43797672 A[43797675,43797673,"BadTest1",0@0828.17:15,132,V] mask=V host=HTPC encodedBy= format=Quicktime 2:12:03 2840 kbps [#0 Video[H.264 23.98 fps 718x480 2872:1215 1999 kbps progressive]#1 Audio[AC3 48000 Hz 2 channels 448 kbps idx=1 eng]#2 Audio[AC3 48000 Hz 2 channels 384 kbps idx=2 eng]#3 Subpic[DVDSUB eng]#4 Subpic[TEXT / 0X74786574 eng]] \\KJCUBED4\Videos\Videos\DVD\BadTest1.mp4, Seg0[Sat 8/28 17:15:12.174-Sat 8/28 19:27:15.174]] num=24396
Thu 11/11 21:01:03.694 [LibraryImporter@19b6343] New Library File MediaFile[id=43797672 A[43797675,43797673,"BadTest1",0@0828.17:15,132,V] mask=V host=HTPC encodedBy= format=Quicktime 2:12:03 2840 kbps [#0 Video[H.264 23.98 fps 718x480 2872:1215 1999 kbps progressive]#1 Audio[AC3 48000 Hz 2 channels 448 kbps idx=1 eng]#2 Audio[AC3 48000 Hz 2 channels 384 kbps idx=2 eng]#3 Subpic[DVDSUB eng]#4 Subpic[TEXT / 0X74786574 eng]] \\KJCUBED4\Videos\Videos\DVD\BadTest1.mp4, Seg0[Sat 8/28 17:15:12.174-Sat 8/28 19:27:15.174]]
Installed the plugin. Renamed bad.mp4 to BadTest2.mp4 and copied it to the server directory and did a scan. Java error seen.

Code:
Thu 11/11 21:22:50.175 [LibraryImporter@16e53a7] Starting to scan lib import root: \\KJCUBED4\Videos\Videos
Thu 11/11 21:22:50.573 [LibraryImporter@16e53a7] testFile=BadTest2.mp4
Thu 11/11 21:22:50.579 [LibraryImporter@16e53a7] Constructing jvl.mediaformat.MediaFormatParserPlugin
Thu 11/11 21:22:50.580 [LibraryImporter@16e53a7] MediaFormatParserPlugin Version: 0.7
Thu 11/11 21:22:50.581 [LibraryImporter@16e53a7] MediaFormatParserPlugin Build Number: 84
Thu 11/11 21:22:50.581 [LibraryImporter@16e53a7] MediaFormatParserPlugin Build DateTime: 03/30/2021 17:46:47
Thu 11/11 21:22:50.582 [LibraryImporter@16e53a7] JavaFFmpeg Version: 0.5
Thu 11/11 21:22:50.582 [LibraryImporter@16e53a7] JavaFFmpeg Build Number: 599
Thu 11/11 21:22:50.582 [LibraryImporter@16e53a7] JavaFFmpeg Build DateTime: 09/03/2020 09:11:29
Thu 11/11 21:22:50.582 [LibraryImporter@16e53a7] Using the format detector plugin
Thu 11/11 21:22:50.583 [LibraryImporter@16e53a7] MediaFormatParserPlugin processing: \\KJCUBED4\Videos\Videos\DVD\BadTest2.mp4
Thu 11/11 21:22:50.846 [LibraryImporter@16e53a7] There was an unhandled exception processing the file: BadTest2.mp4 Error opening file.  ffmpeg error code: -22
Thu 11/11 21:22:50.847 [LibraryImporter@16e53a7] java.lang.RuntimeException: Error opening file.  ffmpeg error code: -22
Thu 11/11 21:22:50.847 [LibraryImporter@16e53a7] 	at jvl.FFmpeg.jni.AVFormatContext.buildAVFormatInputContext(AVFormatContext.java:40)
Thu 11/11 21:22:50.847 [LibraryImporter@16e53a7] 	at jvl.mediaformat.MediaFormatParserPlugin.parseFormat(MediaFormatParserPlugin.java:150)
Thu 11/11 21:22:50.847 [LibraryImporter@16e53a7] 	at sage.media.format.FormatParser.getFileFormat(FormatParser.java:200)
Thu 11/11 21:22:50.847 [LibraryImporter@16e53a7] 	at sage.Wizard.addMediaFile(Wizard.java:3560)
Thu 11/11 21:22:50.847 [LibraryImporter@16e53a7] 	at sage.Seeker.importLibraryFiles(Seeker.java:1570)
Thu 11/11 21:22:50.847 [LibraryImporter@16e53a7] 	at sage.Seeker.importLibraryFiles(Seeker.java:1496)
Thu 11/11 21:22:50.847 [LibraryImporter@16e53a7] 	at sage.Seeker.importLibraryFiles(Seeker.java:1259)
Thu 11/11 21:22:50.847 [LibraryImporter@16e53a7] 	at sage.Seeker.access$700(Seeker.java:51)
Thu 11/11 21:22:50.847 [LibraryImporter@16e53a7] 	at sage.Seeker$1.run(Seeker.java:962)
Thu 11/11 21:22:50.848 [LibraryImporter@16e53a7] 	at sage.Pooler$PooledThread.run(Pooler.java:254)
Thu 11/11 21:22:50.848 [LibraryImporter@16e53a7] MediaFormatParserPlugin processing complete: \\KJCUBED4\Videos\Videos\DVD\BadTest2.mp4
Thu 11/11 21:22:50.848 [LibraryImporter@16e53a7] Now using external format detector for: \\KJCUBED4\Videos\Videos\DVD\BadTest2.mp4
Thu 11/11 21:22:51.189 [LibraryImporter@16e53a7] File Format Parsed \\KJCUBED4\Videos\Videos\DVD\BadTest2.mp4=Quicktime 2:12:03 2840 kbps [#0 Video[H.264 23.98 fps 718x480 2872:1215 1999 kbps progressive]#1 Audio[AC3 48000 Hz 2 channels 448 kbps idx=1 eng]#2 Audio[AC3 48000 Hz 2 channels 384 kbps idx=2 eng]#3 Subpic[DVDSUB eng]#4 Subpic[TEXT / 0X74786574 eng]{Language=und, minor_version=512, Muxer=HandBrake 1.3.3 2020061300, major_brand=mp42, compatible_brands=isomiso2avc1mp41}]
Thu 11/11 21:22:51.196 [LibraryImporter@16e53a7] Added:MediaFile[id=43797677 A[43797680,43797678,"BadTest2",0@0828.17:15,132,V] mask=V host=HTPC encodedBy= format=Quicktime 2:12:03 2840 kbps [#0 Video[H.264 23.98 fps 718x480 2872:1215 1999 kbps progressive]#1 Audio[AC3 48000 Hz 2 channels 448 kbps idx=1 eng]#2 Audio[AC3 48000 Hz 2 channels 384 kbps idx=2 eng]#3 Subpic[DVDSUB eng]#4 Subpic[TEXT / 0X74786574 eng]] \\KJCUBED4\Videos\Videos\DVD\BadTest2.mp4, Seg0[Sat 8/28 17:15:12.174-Sat 8/28 19:27:15.174]] num=24397
Thu 11/11 21:22:51.196 [LibraryImporter@16e53a7] New Library File MediaFile[id=43797677 A[43797680,43797678,"BadTest2",0@0828.17:15,132,V] mask=V host=HTPC encodedBy= format=Quicktime 2:12:03 2840 kbps [#0 Video[H.264 23.98 fps 718x480 2872:1215 1999 kbps progressive]#1 Audio[AC3 48000 Hz 2 channels 448 kbps idx=1 eng]#2 Audio[AC3 48000 Hz 2 channels 384 kbps idx=2 eng]#3 Subpic[DVDSUB eng]#4 Subpic[TEXT / 0X74786574 eng]] \\KJCUBED4\Videos\Videos\DVD\BadTest2.mp4, Seg0[Sat 8/28 17:15:12.174-Sat 8/28 19:27:15.174]]
Went to plugin configuration and set it to Verbose, hoping to see if it would give more information. Renamed bad.mp4 to BadTest3.mp4 and copied it to the server directory and did a scan. Java error seen, but no extra information shown.

Code:
Thu 11/11 21:31:37.243 [LibraryImporter@302da9] Starting to scan lib import root: \\KJCUBED4\Videos\Videos
Thu 11/11 21:31:37.697 [LibraryImporter@302da9] testFile=BadTest3.mp4
Thu 11/11 21:31:37.701 [LibraryImporter@302da9] Using the format detector plugin
Thu 11/11 21:31:37.701 [LibraryImporter@302da9] MediaFormatParserPlugin processing: \\KJCUBED4\Videos\Videos\DVD\BadTest3.mp4
Thu 11/11 21:31:37.702 [LibraryImporter@302da9] There was an unhandled exception processing the file: BadTest3.mp4 Error opening file.  ffmpeg error code: -22
Thu 11/11 21:31:37.702 [LibraryImporter@302da9] java.lang.RuntimeException: Error opening file.  ffmpeg error code: -22
Thu 11/11 21:31:37.702 [LibraryImporter@302da9] 	at jvl.FFmpeg.jni.AVFormatContext.buildAVFormatInputContext(AVFormatContext.java:40)
Thu 11/11 21:31:37.702 [LibraryImporter@302da9] 	at jvl.mediaformat.MediaFormatParserPlugin.parseFormat(MediaFormatParserPlugin.java:150)
Thu 11/11 21:31:37.702 [LibraryImporter@302da9] 	at sage.media.format.FormatParser.getFileFormat(FormatParser.java:200)
Thu 11/11 21:31:37.702 [LibraryImporter@302da9] 	at sage.Wizard.addMediaFile(Wizard.java:3560)
Thu 11/11 21:31:37.702 [LibraryImporter@302da9] 	at sage.Seeker.importLibraryFiles(Seeker.java:1570)
Thu 11/11 21:31:37.702 [LibraryImporter@302da9] 	at sage.Seeker.importLibraryFiles(Seeker.java:1496)
Thu 11/11 21:31:37.702 [LibraryImporter@302da9] 	at sage.Seeker.importLibraryFiles(Seeker.java:1259)
Thu 11/11 21:31:37.702 [LibraryImporter@302da9] 	at sage.Seeker.access$700(Seeker.java:51)
Thu 11/11 21:31:37.702 [LibraryImporter@302da9] 	at sage.Seeker$1.run(Seeker.java:962)
Thu 11/11 21:31:37.702 [LibraryImporter@302da9] 	at sage.Pooler$PooledThread.run(Pooler.java:254)
Thu 11/11 21:31:37.702 [LibraryImporter@302da9] MediaFormatParserPlugin processing complete: \\KJCUBED4\Videos\Videos\DVD\BadTest3.mp4
Thu 11/11 21:31:37.703 [LibraryImporter@302da9] Now using external format detector for: \\KJCUBED4\Videos\Videos\DVD\BadTest3.mp4
Thu 11/11 21:31:38.041 [LibraryImporter@302da9] File Format Parsed \\KJCUBED4\Videos\Videos\DVD\BadTest3.mp4=Quicktime 2:12:03 2840 kbps [#0 Video[H.264 23.98 fps 718x480 2872:1215 1999 kbps progressive]#1 Audio[AC3 48000 Hz 2 channels 448 kbps idx=1 eng]#2 Audio[AC3 48000 Hz 2 channels 384 kbps idx=2 eng]#3 Subpic[DVDSUB eng]#4 Subpic[TEXT / 0X74786574 eng]{Language=und, minor_version=512, Muxer=HandBrake 1.3.3 2020061300, major_brand=mp42, compatible_brands=isomiso2avc1mp41}]
Thu 11/11 21:31:38.046 [LibraryImporter@302da9] Added:MediaFile[id=43797681 A[43797684,43797682,"BadTest3",0@0828.17:15,132,V] mask=V host=HTPC encodedBy= format=Quicktime 2:12:03 2840 kbps [#0 Video[H.264 23.98 fps 718x480 2872:1215 1999 kbps progressive]#1 Audio[AC3 48000 Hz 2 channels 448 kbps idx=1 eng]#2 Audio[AC3 48000 Hz 2 channels 384 kbps idx=2 eng]#3 Subpic[DVDSUB eng]#4 Subpic[TEXT / 0X74786574 eng]] \\KJCUBED4\Videos\Videos\DVD\BadTest3.mp4, Seg0[Sat 8/28 17:15:12.174-Sat 8/28 19:27:15.174]] num=24398
Thu 11/11 21:31:38.046 [LibraryImporter@302da9] New Library File MediaFile[id=43797681 A[43797684,43797682,"BadTest3",0@0828.17:15,132,V] mask=V host=HTPC encodedBy= format=Quicktime 2:12:03 2840 kbps [#0 Video[H.264 23.98 fps 718x480 2872:1215 1999 kbps progressive]#1 Audio[AC3 48000 Hz 2 channels 448 kbps idx=1 eng]#2 Audio[AC3 48000 Hz 2 channels 384 kbps idx=2 eng]#3 Subpic[DVDSUB eng]#4 Subpic[TEXT / 0X74786574 eng]] \\KJCUBED4\Videos\Videos\DVD\BadTest3.mp4, Seg0[Sat 8/28 17:15:12.174-Sat 8/28 19:27:15.174]]
Went to plugin configuration and set Verbose back to off and disabled the plugin. Renamed bad.mp4 to BadTest4.mp4 and copied it to the server directory and did a scan. Java error NOT seen, but expected since the plugin was disabled.

Code:
Thu 11/11 21:40:20.064 [LibraryImporter@2aefed] Starting to scan lib import root: \\KJCUBED4\Videos\Videos
Thu 11/11 21:40:20.385 [LibraryImporter@2aefed] testFile=BadTest4.mp4
Thu 11/11 21:40:20.390 [LibraryImporter@2aefed] Using the format detector plugin
Thu 11/11 21:40:20.390 [LibraryImporter@2aefed] MediaFormatParserPlugin has been disabled.
Thu 11/11 21:40:20.390 [LibraryImporter@2aefed] Now using external format detector for: \\KJCUBED4\Videos\Videos\DVD\BadTest4.mp4
Thu 11/11 21:40:20.711 [LibraryImporter@2aefed] File Format Parsed \\KJCUBED4\Videos\Videos\DVD\BadTest4.mp4=Quicktime 2:12:03 2840 kbps [#0 Video[H.264 23.98 fps 718x480 2872:1215 1999 kbps progressive]#1 Audio[AC3 48000 Hz 2 channels 448 kbps idx=1 eng]#2 Audio[AC3 48000 Hz 2 channels 384 kbps idx=2 eng]#3 Subpic[DVDSUB eng]#4 Subpic[TEXT / 0X74786574 eng]{Language=und, minor_version=512, Muxer=HandBrake 1.3.3 2020061300, major_brand=mp42, compatible_brands=isomiso2avc1mp41}]
Thu 11/11 21:40:20.717 [LibraryImporter@2aefed] Added:MediaFile[id=43797686 A[43797689,43797687,"BadTest4",0@0828.17:15,132,V] mask=V host=HTPC encodedBy= format=Quicktime 2:12:03 2840 kbps [#0 Video[H.264 23.98 fps 718x480 2872:1215 1999 kbps progressive]#1 Audio[AC3 48000 Hz 2 channels 448 kbps idx=1 eng]#2 Audio[AC3 48000 Hz 2 channels 384 kbps idx=2 eng]#3 Subpic[DVDSUB eng]#4 Subpic[TEXT / 0X74786574 eng]] \\KJCUBED4\Videos\Videos\DVD\BadTest4.mp4, Seg0[Sat 8/28 17:15:12.174-Sat 8/28 19:27:15.174]] num=24398
Thu 11/11 21:40:20.718 [LibraryImporter@2aefed] New Library File MediaFile[id=43797686 A[43797689,43797687,"BadTest4",0@0828.17:15,132,V] mask=V host=HTPC encodedBy= format=Quicktime 2:12:03 2840 kbps [#0 Video[H.264 23.98 fps 718x480 2872:1215 1999 kbps progressive]#1 Audio[AC3 48000 Hz 2 channels 448 kbps idx=1 eng]#2 Audio[AC3 48000 Hz 2 channels 384 kbps idx=2 eng]#3 Subpic[DVDSUB eng]#4 Subpic[TEXT / 0X74786574 eng]] \\KJCUBED4\Videos\Videos\DVD\BadTest4.mp4, Seg0[Sat 8/28 17:15:12.174-Sat 8/28 19:27:15.174]]
Kinda stuck now in regards to the Java error. Tried to do some web searching on the Java error but had no luck finding anything so far.

I am just going to leave the plugin it installed and enabled for now since it is used elsewhere as well.

Josh, I will PM you the full sagetv_0.txt log files if you want to take a look at them.
__________________
SageTV running on: Win7 SP1 64 Pro
SageTV 9.2.6.976 (32 bit)
Java 1.8.0 301 (32 bit)
OpenDCT 0.5.32 (32 bit) (Comcast Music channels set to FFmpeg)
Clients: HD300 (x2)
HDHR3-CC Prime 20210624 (Comcast CableCard) - 3 Tuners
Hauppauge 1950 STB SD (USB-UIRT Zone 1)
Hauppauge 1950 STB SD (USB-UIRT Zone 2)
Reply With Quote
  #163  
Old 11-12-2021, 03:31 PM
jvl711's Avatar
jvl711 jvl711 is offline
Sage Fanatic
 
Join Date: Jan 2004
Posts: 759
Quote:
Originally Posted by CptKirk View Post
So sent Josh an mp4 file that was showing the error on my side (named it bad.mp4). I worked ok for him.



Code:
Fri 11/5 17:35:53.854 [LibraryImporter@63071ca1] Seeker is starting the library import scan...
Fri 11/5 17:35:53.963 [LibraryImporter@63071ca1] Starting to scan lib import root: C:\Users\jvl711.CORE\Documents\TestData
Fri 11/5 17:35:54.039 [LibraryImporter@63071ca1] testFile=Bad.mp4
Fri 11/5 17:35:54.114 [LibraryImporter@63071ca1] Using the format detector plugin
Fri 11/5 17:35:54.155 [LibraryImporter@63071ca1] MediaFormatParserPlugin processing: C:\Users\jvl711.CORE\Documents\TestData\Bad.mp4
Fri 11/5 17:35:54.610 [LibraryImporter@63071ca1] FormatName: mov,mp4,m4a,3gp,3g2,mj2
Fri 11/5 17:35:54.611 [LibraryImporter@63071ca1] FormatName (Substitution): QUICKTIME
Fri 11/5 17:35:54.628 [LibraryImporter@63071ca1] Duration: 7922999
Fri 11/5 17:35:54.637 [LibraryImporter@63071ca1] Bitrate: 2840925
Fri 11/5 17:35:54.644 [LibraryImporter@63071ca1] Number of Streams: 5
Fri 11/5 17:35:54.658 [LibraryImporter@63071ca1] Processing Video (0)
Fri 11/5 17:35:54.660 [LibraryImporter@63071ca1] 	Video Codes: h264
Fri 11/5 17:35:54.661 [LibraryImporter@63071ca1] 	Video Codes (Substitution): H.264
Fri 11/5 17:35:54.661 [LibraryImporter@63071ca1] 	Aspect Ration Den: 80
Fri 11/5 17:35:54.661 [LibraryImporter@63071ca1] 	Aspect Ration Num: 119
Fri 11/5 17:35:54.674 [LibraryImporter@63071ca1] 	Aspect Ration Num: 1.4958333333333333
Fri 11/5 17:35:54.674 [LibraryImporter@63071ca1] 	Framerate: 23.976023976023978
Fri 11/5 17:35:54.675 [LibraryImporter@63071ca1] 	Width: 718
Fri 11/5 17:35:54.675 [LibraryImporter@63071ca1] 	Height: 480
Fri 11/5 17:35:54.675 [LibraryImporter@63071ca1] 	Interlaced: false
Fri 11/5 17:35:54.676 [LibraryImporter@63071ca1] 	SetID: 1
Fri 11/5 17:35:54.676 [LibraryImporter@63071ca1] Processing Audio (1)
Fri 11/5 17:35:54.676 [LibraryImporter@63071ca1] 	Audio Codec: ac3
Fri 11/5 17:35:54.677 [LibraryImporter@63071ca1] 	Audio Codec (Substitution): AC3
Fri 11/5 17:35:54.677 [LibraryImporter@63071ca1] 	Channels: 6
Fri 11/5 17:35:54.678 [LibraryImporter@63071ca1] 	Sample Rats: 48000
Fri 11/5 17:35:54.678 [LibraryImporter@63071ca1] 	Bitrate: 448000
Fri 11/5 17:35:54.679 [LibraryImporter@63071ca1] 	Language: eng
Fri 11/5 17:35:54.686 [LibraryImporter@63071ca1] 	SetIDHex: 2
Fri 11/5 17:35:54.686 [LibraryImporter@63071ca1] Processing Audio (2)
Fri 11/5 17:35:54.687 [LibraryImporter@63071ca1] 	Audio Codec: ac3
Fri 11/5 17:35:54.687 [LibraryImporter@63071ca1] 	Audio Codec (Substitution): AC3
Fri 11/5 17:35:54.687 [LibraryImporter@63071ca1] 	Channels: 6
Fri 11/5 17:35:54.687 [LibraryImporter@63071ca1] 	Sample Rats: 48000
Fri 11/5 17:35:54.688 [LibraryImporter@63071ca1] 	Bitrate: 384000
Fri 11/5 17:35:54.688 [LibraryImporter@63071ca1] 	Language: eng
Fri 11/5 17:35:54.689 [LibraryImporter@63071ca1] 	SetIDHex: 3
Fri 11/5 17:35:54.689 [LibraryImporter@63071ca1] Processing Subtitle (3)
Fri 11/5 17:35:54.689 [LibraryImporter@63071ca1] 	Codec: dvdsub
Fri 11/5 17:35:54.690 [LibraryImporter@63071ca1] 	Codec (Substitution): DVDSUB
Fri 11/5 17:35:54.690 [LibraryImporter@63071ca1] 	Language: eng
Fri 11/5 17:35:54.690 [LibraryImporter@63071ca1] 	Forced: false
Fri 11/5 17:35:54.691 [LibraryImporter@63071ca1] 	SetIDHex: 4
Fri 11/5 17:35:54.700 [LibraryImporter@63071ca1] Processing Data (4)
Fri 11/5 17:35:54.709 [LibraryImporter@63071ca1] MediaFormatParserPlugin - Adding the container metadata
Fri 11/5 17:35:54.709 [LibraryImporter@63071ca1] 	Key: creation_time Value: 2021-08-28T23:46:36.000000Z
Fri 11/5 17:35:54.710 [LibraryImporter@63071ca1] 	Key: major_brand Value: mp42
Fri 11/5 17:35:54.710 [LibraryImporter@63071ca1] 	Key: encoder Value: HandBrake 1.3.3 2020061300
Fri 11/5 17:35:54.710 [LibraryImporter@63071ca1] 	Key: minor_version Value: 512
Fri 11/5 17:35:54.711 [LibraryImporter@63071ca1] 	Key: compatible_brands Value: isomiso2avc1mp41
Fri 11/5 17:35:54.719 [LibraryImporter@63071ca1] MediaFormatParserPlugin processing complete: C:\Users\jvl711.CORE\Documents\TestData\Bad.mp4
Fri 11/5 17:35:54.912 [LibraryImporter@63071ca1] Added:MediaFile[id=8464273 A[8464276,8464274,"Bad",0@1105.13:42,132,V] mask=V host=Development encodedBy= format=QUICKTIME 2:12:02 2840 kbps [#0 Video[H.264 23.976025 fps 718x480 119:80 progressive id=1]#1 Audio[AC3 48000 Hz 6 channels 448 kbps idx=1 id=2 eng]#2 Audio[AC3 48000 Hz 6 channels 384 kbps idx=2 id=3 eng]#3 Subpic[DVDSUB id=4 eng]] C:\Users\jvl711.CORE\Documents\TestData\Bad.mp4, Seg0[Fri 11/5 13:42:53.729-Fri 11/5 15:54:56.728]] num=3580
Fri 11/5 17:35:54.913 [LibraryImporter@63071ca1] New Library File MediaFile[id=8464273 A[8464276,8464274,"Bad",0@1105.13:42,132,V] mask=V host=Development encodedBy= format=QUICKTIME 2:12:02 2840 kbps [#0 Video[H.264 23.976025 fps 718x480 119:80 progressive id=1]#1 Audio[AC3 48000 Hz 6 channels 448 kbps idx=1 id=2 eng]#2 Audio[AC3 48000 Hz 6 channels 384 kbps idx=2 id=3 eng]#3 Subpic[DVDSUB id=4 eng]] C:\Users\jvl711.CORE\Documents\TestData\Bad.mp4, Seg0[Fri 11/5 13:42:53.729-Fri 11/5 15:54:56.728]]
Had some time tonight to try and dig into this a little more. Thinking of the comment about installed files, DLL's, etc I thought I would update from 9.2.5 to 9.2.6 to see if that cleared anything up.

1. Uninstalled the Format Detector Plugin
2. Shutdown SageTV service
3. Shutdown OpenDCT service
4. Installed SageTV
5. Rebooted server

Good news is that the original problem I was having with the 0:00:00 length is no longer happening. Bad news is that I am still seeing the Java error from the plugin.

More details...

Renamed bad.mp4 to BadTest1.mp4 and copied it to the server directory and did a scan. The file plays with no problems and shows the correct length. The plugin is NOT installed yet.

Code:
Thu 11/11 21:01:03.090 [LibraryImporter@19b6343] Starting to scan lib import root: \\KJCUBED4\Videos\Videos
Thu 11/11 21:01:03.378 [LibraryImporter@19b6343] testFile=BadTest1.mp4
Thu 11/11 21:01:03.383 [LibraryImporter@19b6343] Error instantiating metadata parser plugin of: java.lang.ClassNotFoundException: jvl.mediaformat.MediaFormatParserPlugin
Thu 11/11 21:01:03.383 [LibraryImporter@19b6343] Now using external format detector for: \\KJCUBED4\Videos\Videos\DVD\BadTest1.mp4
Thu 11/11 21:01:03.684 [LibraryImporter@19b6343] File Format Parsed \\KJCUBED4\Videos\Videos\DVD\BadTest1.mp4=Quicktime 2:12:03 2840 kbps [#0 Video[H.264 23.98 fps 718x480 2872:1215 1999 kbps progressive]#1 Audio[AC3 48000 Hz 2 channels 448 kbps idx=1 eng]#2 Audio[AC3 48000 Hz 2 channels 384 kbps idx=2 eng]#3 Subpic[DVDSUB eng]#4 Subpic[TEXT / 0X74786574 eng]{Language=und, minor_version=512, Muxer=HandBrake 1.3.3 2020061300, major_brand=mp42, compatible_brands=isomiso2avc1mp41}]
Thu 11/11 21:01:03.694 [LibraryImporter@19b6343] Added:MediaFile[id=43797672 A[43797675,43797673,"BadTest1",0@0828.17:15,132,V] mask=V host=HTPC encodedBy= format=Quicktime 2:12:03 2840 kbps [#0 Video[H.264 23.98 fps 718x480 2872:1215 1999 kbps progressive]#1 Audio[AC3 48000 Hz 2 channels 448 kbps idx=1 eng]#2 Audio[AC3 48000 Hz 2 channels 384 kbps idx=2 eng]#3 Subpic[DVDSUB eng]#4 Subpic[TEXT / 0X74786574 eng]] \\KJCUBED4\Videos\Videos\DVD\BadTest1.mp4, Seg0[Sat 8/28 17:15:12.174-Sat 8/28 19:27:15.174]] num=24396
Thu 11/11 21:01:03.694 [LibraryImporter@19b6343] New Library File MediaFile[id=43797672 A[43797675,43797673,"BadTest1",0@0828.17:15,132,V] mask=V host=HTPC encodedBy= format=Quicktime 2:12:03 2840 kbps [#0 Video[H.264 23.98 fps 718x480 2872:1215 1999 kbps progressive]#1 Audio[AC3 48000 Hz 2 channels 448 kbps idx=1 eng]#2 Audio[AC3 48000 Hz 2 channels 384 kbps idx=2 eng]#3 Subpic[DVDSUB eng]#4 Subpic[TEXT / 0X74786574 eng]] \\KJCUBED4\Videos\Videos\DVD\BadTest1.mp4, Seg0[Sat 8/28 17:15:12.174-Sat 8/28 19:27:15.174]]
Installed the plugin. Renamed bad.mp4 to BadTest2.mp4 and copied it to the server directory and did a scan. Java error seen.

Code:
Thu 11/11 21:22:50.175 [LibraryImporter@16e53a7] Starting to scan lib import root: \\KJCUBED4\Videos\Videos
Thu 11/11 21:22:50.573 [LibraryImporter@16e53a7] testFile=BadTest2.mp4
Thu 11/11 21:22:50.579 [LibraryImporter@16e53a7] Constructing jvl.mediaformat.MediaFormatParserPlugin
Thu 11/11 21:22:50.580 [LibraryImporter@16e53a7] MediaFormatParserPlugin Version: 0.7
Thu 11/11 21:22:50.581 [LibraryImporter@16e53a7] MediaFormatParserPlugin Build Number: 84
Thu 11/11 21:22:50.581 [LibraryImporter@16e53a7] MediaFormatParserPlugin Build DateTime: 03/30/2021 17:46:47
Thu 11/11 21:22:50.582 [LibraryImporter@16e53a7] JavaFFmpeg Version: 0.5
Thu 11/11 21:22:50.582 [LibraryImporter@16e53a7] JavaFFmpeg Build Number: 599
Thu 11/11 21:22:50.582 [LibraryImporter@16e53a7] JavaFFmpeg Build DateTime: 09/03/2020 09:11:29
Thu 11/11 21:22:50.582 [LibraryImporter@16e53a7] Using the format detector plugin
Thu 11/11 21:22:50.583 [LibraryImporter@16e53a7] MediaFormatParserPlugin processing: \\KJCUBED4\Videos\Videos\DVD\BadTest2.mp4
Thu 11/11 21:22:50.846 [LibraryImporter@16e53a7] There was an unhandled exception processing the file: BadTest2.mp4 Error opening file.  ffmpeg error code: -22
Thu 11/11 21:22:50.847 [LibraryImporter@16e53a7] java.lang.RuntimeException: Error opening file.  ffmpeg error code: -22
Thu 11/11 21:22:50.847 [LibraryImporter@16e53a7] 	at jvl.FFmpeg.jni.AVFormatContext.buildAVFormatInputContext(AVFormatContext.java:40)
Thu 11/11 21:22:50.847 [LibraryImporter@16e53a7] 	at jvl.mediaformat.MediaFormatParserPlugin.parseFormat(MediaFormatParserPlugin.java:150)
Thu 11/11 21:22:50.847 [LibraryImporter@16e53a7] 	at sage.media.format.FormatParser.getFileFormat(FormatParser.java:200)
Thu 11/11 21:22:50.847 [LibraryImporter@16e53a7] 	at sage.Wizard.addMediaFile(Wizard.java:3560)
Thu 11/11 21:22:50.847 [LibraryImporter@16e53a7] 	at sage.Seeker.importLibraryFiles(Seeker.java:1570)
Thu 11/11 21:22:50.847 [LibraryImporter@16e53a7] 	at sage.Seeker.importLibraryFiles(Seeker.java:1496)
Thu 11/11 21:22:50.847 [LibraryImporter@16e53a7] 	at sage.Seeker.importLibraryFiles(Seeker.java:1259)
Thu 11/11 21:22:50.847 [LibraryImporter@16e53a7] 	at sage.Seeker.access$700(Seeker.java:51)
Thu 11/11 21:22:50.847 [LibraryImporter@16e53a7] 	at sage.Seeker$1.run(Seeker.java:962)
Thu 11/11 21:22:50.848 [LibraryImporter@16e53a7] 	at sage.Pooler$PooledThread.run(Pooler.java:254)
Thu 11/11 21:22:50.848 [LibraryImporter@16e53a7] MediaFormatParserPlugin processing complete: \\KJCUBED4\Videos\Videos\DVD\BadTest2.mp4
Thu 11/11 21:22:50.848 [LibraryImporter@16e53a7] Now using external format detector for: \\KJCUBED4\Videos\Videos\DVD\BadTest2.mp4
Thu 11/11 21:22:51.189 [LibraryImporter@16e53a7] File Format Parsed \\KJCUBED4\Videos\Videos\DVD\BadTest2.mp4=Quicktime 2:12:03 2840 kbps [#0 Video[H.264 23.98 fps 718x480 2872:1215 1999 kbps progressive]#1 Audio[AC3 48000 Hz 2 channels 448 kbps idx=1 eng]#2 Audio[AC3 48000 Hz 2 channels 384 kbps idx=2 eng]#3 Subpic[DVDSUB eng]#4 Subpic[TEXT / 0X74786574 eng]{Language=und, minor_version=512, Muxer=HandBrake 1.3.3 2020061300, major_brand=mp42, compatible_brands=isomiso2avc1mp41}]
Thu 11/11 21:22:51.196 [LibraryImporter@16e53a7] Added:MediaFile[id=43797677 A[43797680,43797678,"BadTest2",0@0828.17:15,132,V] mask=V host=HTPC encodedBy= format=Quicktime 2:12:03 2840 kbps [#0 Video[H.264 23.98 fps 718x480 2872:1215 1999 kbps progressive]#1 Audio[AC3 48000 Hz 2 channels 448 kbps idx=1 eng]#2 Audio[AC3 48000 Hz 2 channels 384 kbps idx=2 eng]#3 Subpic[DVDSUB eng]#4 Subpic[TEXT / 0X74786574 eng]] \\KJCUBED4\Videos\Videos\DVD\BadTest2.mp4, Seg0[Sat 8/28 17:15:12.174-Sat 8/28 19:27:15.174]] num=24397
Thu 11/11 21:22:51.196 [LibraryImporter@16e53a7] New Library File MediaFile[id=43797677 A[43797680,43797678,"BadTest2",0@0828.17:15,132,V] mask=V host=HTPC encodedBy= format=Quicktime 2:12:03 2840 kbps [#0 Video[H.264 23.98 fps 718x480 2872:1215 1999 kbps progressive]#1 Audio[AC3 48000 Hz 2 channels 448 kbps idx=1 eng]#2 Audio[AC3 48000 Hz 2 channels 384 kbps idx=2 eng]#3 Subpic[DVDSUB eng]#4 Subpic[TEXT / 0X74786574 eng]] \\KJCUBED4\Videos\Videos\DVD\BadTest2.mp4, Seg0[Sat 8/28 17:15:12.174-Sat 8/28 19:27:15.174]]
Went to plugin configuration and set it to Verbose, hoping to see if it would give more information. Renamed bad.mp4 to BadTest3.mp4 and copied it to the server directory and did a scan. Java error seen, but no extra information shown.

Code:
Thu 11/11 21:31:37.243 [LibraryImporter@302da9] Starting to scan lib import root: \\KJCUBED4\Videos\Videos
Thu 11/11 21:31:37.697 [LibraryImporter@302da9] testFile=BadTest3.mp4
Thu 11/11 21:31:37.701 [LibraryImporter@302da9] Using the format detector plugin
Thu 11/11 21:31:37.701 [LibraryImporter@302da9] MediaFormatParserPlugin processing: \\KJCUBED4\Videos\Videos\DVD\BadTest3.mp4
Thu 11/11 21:31:37.702 [LibraryImporter@302da9] There was an unhandled exception processing the file: BadTest3.mp4 Error opening file.  ffmpeg error code: -22
Thu 11/11 21:31:37.702 [LibraryImporter@302da9] java.lang.RuntimeException: Error opening file.  ffmpeg error code: -22
Thu 11/11 21:31:37.702 [LibraryImporter@302da9] 	at jvl.FFmpeg.jni.AVFormatContext.buildAVFormatInputContext(AVFormatContext.java:40)
Thu 11/11 21:31:37.702 [LibraryImporter@302da9] 	at jvl.mediaformat.MediaFormatParserPlugin.parseFormat(MediaFormatParserPlugin.java:150)
Thu 11/11 21:31:37.702 [LibraryImporter@302da9] 	at sage.media.format.FormatParser.getFileFormat(FormatParser.java:200)
Thu 11/11 21:31:37.702 [LibraryImporter@302da9] 	at sage.Wizard.addMediaFile(Wizard.java:3560)
Thu 11/11 21:31:37.702 [LibraryImporter@302da9] 	at sage.Seeker.importLibraryFiles(Seeker.java:1570)
Thu 11/11 21:31:37.702 [LibraryImporter@302da9] 	at sage.Seeker.importLibraryFiles(Seeker.java:1496)
Thu 11/11 21:31:37.702 [LibraryImporter@302da9] 	at sage.Seeker.importLibraryFiles(Seeker.java:1259)
Thu 11/11 21:31:37.702 [LibraryImporter@302da9] 	at sage.Seeker.access$700(Seeker.java:51)
Thu 11/11 21:31:37.702 [LibraryImporter@302da9] 	at sage.Seeker$1.run(Seeker.java:962)
Thu 11/11 21:31:37.702 [LibraryImporter@302da9] 	at sage.Pooler$PooledThread.run(Pooler.java:254)
Thu 11/11 21:31:37.702 [LibraryImporter@302da9] MediaFormatParserPlugin processing complete: \\KJCUBED4\Videos\Videos\DVD\BadTest3.mp4
Thu 11/11 21:31:37.703 [LibraryImporter@302da9] Now using external format detector for: \\KJCUBED4\Videos\Videos\DVD\BadTest3.mp4
Thu 11/11 21:31:38.041 [LibraryImporter@302da9] File Format Parsed \\KJCUBED4\Videos\Videos\DVD\BadTest3.mp4=Quicktime 2:12:03 2840 kbps [#0 Video[H.264 23.98 fps 718x480 2872:1215 1999 kbps progressive]#1 Audio[AC3 48000 Hz 2 channels 448 kbps idx=1 eng]#2 Audio[AC3 48000 Hz 2 channels 384 kbps idx=2 eng]#3 Subpic[DVDSUB eng]#4 Subpic[TEXT / 0X74786574 eng]{Language=und, minor_version=512, Muxer=HandBrake 1.3.3 2020061300, major_brand=mp42, compatible_brands=isomiso2avc1mp41}]
Thu 11/11 21:31:38.046 [LibraryImporter@302da9] Added:MediaFile[id=43797681 A[43797684,43797682,"BadTest3",0@0828.17:15,132,V] mask=V host=HTPC encodedBy= format=Quicktime 2:12:03 2840 kbps [#0 Video[H.264 23.98 fps 718x480 2872:1215 1999 kbps progressive]#1 Audio[AC3 48000 Hz 2 channels 448 kbps idx=1 eng]#2 Audio[AC3 48000 Hz 2 channels 384 kbps idx=2 eng]#3 Subpic[DVDSUB eng]#4 Subpic[TEXT / 0X74786574 eng]] \\KJCUBED4\Videos\Videos\DVD\BadTest3.mp4, Seg0[Sat 8/28 17:15:12.174-Sat 8/28 19:27:15.174]] num=24398
Thu 11/11 21:31:38.046 [LibraryImporter@302da9] New Library File MediaFile[id=43797681 A[43797684,43797682,"BadTest3",0@0828.17:15,132,V] mask=V host=HTPC encodedBy= format=Quicktime 2:12:03 2840 kbps [#0 Video[H.264 23.98 fps 718x480 2872:1215 1999 kbps progressive]#1 Audio[AC3 48000 Hz 2 channels 448 kbps idx=1 eng]#2 Audio[AC3 48000 Hz 2 channels 384 kbps idx=2 eng]#3 Subpic[DVDSUB eng]#4 Subpic[TEXT / 0X74786574 eng]] \\KJCUBED4\Videos\Videos\DVD\BadTest3.mp4, Seg0[Sat 8/28 17:15:12.174-Sat 8/28 19:27:15.174]]
Went to plugin configuration and set Verbose back to off and disabled the plugin. Renamed bad.mp4 to BadTest4.mp4 and copied it to the server directory and did a scan. Java error NOT seen, but expected since the plugin was disabled.

Code:
Thu 11/11 21:40:20.064 [LibraryImporter@2aefed] Starting to scan lib import root: \\KJCUBED4\Videos\Videos
Thu 11/11 21:40:20.385 [LibraryImporter@2aefed] testFile=BadTest4.mp4
Thu 11/11 21:40:20.390 [LibraryImporter@2aefed] Using the format detector plugin
Thu 11/11 21:40:20.390 [LibraryImporter@2aefed] MediaFormatParserPlugin has been disabled.
Thu 11/11 21:40:20.390 [LibraryImporter@2aefed] Now using external format detector for: \\KJCUBED4\Videos\Videos\DVD\BadTest4.mp4
Thu 11/11 21:40:20.711 [LibraryImporter@2aefed] File Format Parsed \\KJCUBED4\Videos\Videos\DVD\BadTest4.mp4=Quicktime 2:12:03 2840 kbps [#0 Video[H.264 23.98 fps 718x480 2872:1215 1999 kbps progressive]#1 Audio[AC3 48000 Hz 2 channels 448 kbps idx=1 eng]#2 Audio[AC3 48000 Hz 2 channels 384 kbps idx=2 eng]#3 Subpic[DVDSUB eng]#4 Subpic[TEXT / 0X74786574 eng]{Language=und, minor_version=512, Muxer=HandBrake 1.3.3 2020061300, major_brand=mp42, compatible_brands=isomiso2avc1mp41}]
Thu 11/11 21:40:20.717 [LibraryImporter@2aefed] Added:MediaFile[id=43797686 A[43797689,43797687,"BadTest4",0@0828.17:15,132,V] mask=V host=HTPC encodedBy= format=Quicktime 2:12:03 2840 kbps [#0 Video[H.264 23.98 fps 718x480 2872:1215 1999 kbps progressive]#1 Audio[AC3 48000 Hz 2 channels 448 kbps idx=1 eng]#2 Audio[AC3 48000 Hz 2 channels 384 kbps idx=2 eng]#3 Subpic[DVDSUB eng]#4 Subpic[TEXT / 0X74786574 eng]] \\KJCUBED4\Videos\Videos\DVD\BadTest4.mp4, Seg0[Sat 8/28 17:15:12.174-Sat 8/28 19:27:15.174]] num=24398
Thu 11/11 21:40:20.718 [LibraryImporter@2aefed] New Library File MediaFile[id=43797686 A[43797689,43797687,"BadTest4",0@0828.17:15,132,V] mask=V host=HTPC encodedBy= format=Quicktime 2:12:03 2840 kbps [#0 Video[H.264 23.98 fps 718x480 2872:1215 1999 kbps progressive]#1 Audio[AC3 48000 Hz 2 channels 448 kbps idx=1 eng]#2 Audio[AC3 48000 Hz 2 channels 384 kbps idx=2 eng]#3 Subpic[DVDSUB eng]#4 Subpic[TEXT / 0X74786574 eng]] \\KJCUBED4\Videos\Videos\DVD\BadTest4.mp4, Seg0[Sat 8/28 17:15:12.174-Sat 8/28 19:27:15.174]]
Kinda stuck now in regards to the Java error. Tried to do some web searching on the Java error but had no luck finding anything so far.

I am just going to leave the plugin it installed and enabled for now since it is used elsewhere as well.

Josh, I will PM you the full sagetv_0.txt log files if you want to take a look at them.
Did I see correctly that you are using the x64 version of the Transcoder, and the x32 version of the Format Parser? Are you using the 64bit version of SageTV? What exact version of Java are you using? What OS are you running this on as well.

I am still perplexed why we are getting that error from the ffmpeg library. Wonder if anyone else has any ideas.

Thanks,
Josh
__________________
Projects I am currently maintaining
SageTV Andoid Client
Media Format Parser Plugin
JavaFFmpegLibrary
SageTVTranscoder

If you like the work I am doing and would like to support it you can become a Patreon member.
Reply With Quote
  #164  
Old 11-12-2021, 06:08 PM
CptKirk CptKirk is offline
Sage Advanced User
 
Join Date: Sep 2010
Posts: 198
What I am using:

SageTV running on: Win7 SP1 64 Pro
SageTV 9.2.6.976 (32 bit)
Java 1.8.0 301 (32 bit)
Media Format Parser Plugin Windows x32 v0.7
SageTVTranscoder (FFmpeg) Windows x64 v1.0.5

On the first page, post #1, of the Media Format Parser Plugin it does not mention which bits to use. So checked the github page and it says "Install the version that matches the bits of the SageTV server install you have." So that is why I have the x32 plugin installed.

On the first page, post #1, of the SageTVTranscoder Plugin it says "Pick the version that is appropriate to your system". To me, that means your OS, the "system" everything is running on. So that is why I have the x64 plugin installed.
__________________
SageTV running on: Win7 SP1 64 Pro
SageTV 9.2.6.976 (32 bit)
Java 1.8.0 301 (32 bit)
OpenDCT 0.5.32 (32 bit) (Comcast Music channels set to FFmpeg)
Clients: HD300 (x2)
HDHR3-CC Prime 20210624 (Comcast CableCard) - 3 Tuners
Hauppauge 1950 STB SD (USB-UIRT Zone 1)
Hauppauge 1950 STB SD (USB-UIRT Zone 2)
Reply With Quote
  #165  
Old 11-12-2021, 06:48 PM
wnjj wnjj is offline
Sage Icon
 
Join Date: Jan 2009
Posts: 1,454
Quote:
Originally Posted by CptKirk View Post
What I am using:

SageTV running on: Win7 SP1 64 Pro
SageTV 9.2.6.976 (32 bit)
Java 1.8.0 301 (32 bit)
Media Format Parser Plugin Windows x32 v0.7
SageTVTranscoder (FFmpeg) Windows x64 v1.0.5

On the first page, post #1, of the Media Format Parser Plugin it does not mention which bits to use. So checked the github page and it says "Install the version that matches the bits of the SageTV server install you have." So that is why I have the x32 plugin installed.

On the first page, post #1, of the SageTVTranscoder Plugin it says "Pick the version that is appropriate to your system". To me, that means your OS, the "system" everything is running on. So that is why I have the x64 plugin installed.
The only time you would pick 64-bit to match your system is for low level device drivers. Anything that is software (Java, plug-ins, dll’s, etc.) should match as 32-bit if the main application (SageTV) is 32-bit. Now an exception to this is if the plug-in calls a new .exe file. In that case it could be either type as it’s considered a new application process.
__________________
Windows Installer

Last edited by wnjj; 11-12-2021 at 06:50 PM.
Reply With Quote
  #166  
Old 11-15-2021, 08:44 AM
CptKirk CptKirk is offline
Sage Advanced User
 
Join Date: Sep 2010
Posts: 198
Damn it!!!

I should have left well enough alone.

Uninstalled 'SageTVTranscoder (FFmpeg) Windows x64 v1.0.5', let is restart SageTV as prompted, installed SageTVTranscoder (FFmpeg) Windows x32 v1.0.5, no prompt to restart SageTV but I did a reboot of the machine anyway.

Now I'm back to my 0:00:00 movie-length problem again, not being able to use the skip buttons, etc.

Still see the MediaFormatParserPlugin error, but that is not causing the 0:00:00 problem.

Code:
Mon 11/15 8:22:00.674 [LibraryImporter@a9c749] Starting to scan lib import root: \\KJCUBED4\Videos\Videos
Mon 11/15 8:22:01.403 [LibraryImporter@a9c749] testFile=Test2.mp4
Mon 11/15 8:22:01.409 [LibraryImporter@a9c749] Constructing jvl.mediaformat.MediaFormatParserPlugin
Mon 11/15 8:22:01.409 [LibraryImporter@a9c749] MediaFormatParserPlugin Version: 0.7
Mon 11/15 8:22:01.409 [LibraryImporter@a9c749] MediaFormatParserPlugin Build Number: 84
Mon 11/15 8:22:01.410 [LibraryImporter@a9c749] MediaFormatParserPlugin Build DateTime: 03/30/2021 17:46:47
Mon 11/15 8:22:01.410 [LibraryImporter@a9c749] JavaFFmpeg Version: 0.5
Mon 11/15 8:22:01.411 [LibraryImporter@a9c749] JavaFFmpeg Build Number: 599
Mon 11/15 8:22:01.411 [LibraryImporter@a9c749] JavaFFmpeg Build DateTime: 09/03/2020 09:11:29
Mon 11/15 8:22:01.411 [LibraryImporter@a9c749] Using the format detector plugin
Mon 11/15 8:22:01.411 [LibraryImporter@a9c749] MediaFormatParserPlugin processing: \\KJCUBED4\Videos\Videos\DVD\Test2.mp4
Mon 11/15 8:22:01.561 [LibraryImporter@a9c749] There was an unhandled exception processing the file: Test2.mp4 Error opening file.  ffmpeg error code: -2
Mon 11/15 8:22:01.562 [LibraryImporter@a9c749] java.lang.RuntimeException: Error opening file.  ffmpeg error code: -2
Mon 11/15 8:22:01.562 [LibraryImporter@a9c749] 	at jvl.FFmpeg.jni.AVFormatContext.buildAVFormatInputContext(AVFormatContext.java:40)
Mon 11/15 8:22:01.562 [LibraryImporter@a9c749] 	at jvl.mediaformat.MediaFormatParserPlugin.parseFormat(MediaFormatParserPlugin.java:150)
Mon 11/15 8:22:01.562 [LibraryImporter@a9c749] 	at sage.media.format.FormatParser.getFileFormat(FormatParser.java:200)
Mon 11/15 8:22:01.562 [LibraryImporter@a9c749] 	at sage.Wizard.addMediaFile(Wizard.java:3560)
Mon 11/15 8:22:01.562 [LibraryImporter@a9c749] 	at sage.Seeker.importLibraryFiles(Seeker.java:1570)
Mon 11/15 8:22:01.562 [LibraryImporter@a9c749] 	at sage.Seeker.importLibraryFiles(Seeker.java:1496)
Mon 11/15 8:22:01.562 [LibraryImporter@a9c749] 	at sage.Seeker.importLibraryFiles(Seeker.java:1259)
Mon 11/15 8:22:01.562 [LibraryImporter@a9c749] 	at sage.Seeker.access$700(Seeker.java:51)
Mon 11/15 8:22:01.562 [LibraryImporter@a9c749] 	at sage.Seeker$1.run(Seeker.java:962)
Mon 11/15 8:22:01.562 [LibraryImporter@a9c749] 	at sage.Pooler$PooledThread.run(Pooler.java:254)
Mon 11/15 8:22:01.563 [LibraryImporter@a9c749] MediaFormatParserPlugin processing complete: \\KJCUBED4\Videos\Videos\DVD\Test2.mp4
Mon 11/15 8:22:01.563 [LibraryImporter@a9c749] Now using external format detector for: \\KJCUBED4\Videos\Videos\DVD\Test2.mp4
Mon 11/15 8:22:02.703 [Fork-BASE-55376@229f90] Updating Disk Space Bar
Mon 11/15 8:22:02.984 [Fork-BASE-55376@229f90] Got used/avail video diskspace
Mon 11/15 8:22:02.985 [Fork-BASE-55376@229f90] Calculate size of partial recordings
Mon 11/15 8:22:02.988 [Fork-BASE-55376@229f90] Found 1 partials using 632276336 bytes
Mon 11/15 8:22:03.168 [ErrorStreamConsumer@e15a45] NOTICE: Forcibly terminating spawned process due to runaway memory detection!
Mon 11/15 8:22:03.189 [LibraryImporter@a9c749] File Format Parsed \\KJCUBED4\Videos\Videos\DVD\Test2.mp4=Quicktime 0:00:00 0 kbps []
Mon 11/15 8:22:03.195 [LibraryImporter@a9c749] Added:MediaFile[id=43825973 A[43825976,43825974,"Test2",0@1231.21:40,0,V] mask=V host=HTPC encodedBy= format=Quicktime 0:00:00 0 kbps [] \\KJCUBED4\Videos\Videos\DVD\Test2.mp4, Seg0[Thu 12/31 21:40:18.807-Thu 12/31 21:40:18.808]] num=24423
Mon 11/15 8:22:03.196 [LibraryImporter@a9c749] New Library File MediaFile[id=43825973 A[43825976,43825974,"Test2",0@1231.21:40,0,V] mask=V host=HTPC encodedBy= format=Quicktime 0:00:00 0 kbps [] \\KJCUBED4\Videos\Videos\DVD\Test2.mp4, Seg0[Thu 12/31 21:40:18.807-Thu 12/31 21:40:18.808]]
This is causing the 0:00:00 problem:

Code:
Mon 11/15 8:22:03.168 [ErrorStreamConsumer@e15a45] NOTICE: Forcibly terminating spawned process due to runaway memory detection!
Went back through some of the sage_0.txt files where I did not have the 0:00:00 problem and in each case that 'runaway memory detection' error was not there.

Every time detection is done and I get the 0:00:00 problem the 'runaway memory detection' is there.

Did a web search for ErrorStreamConsumer and Sagetv and found
https://programtalk.com/vs/sagetv/ja.../IOUtils.java/

Code:
Thread the2 = new Thread("ErrorStreamConsumer")
      {
        public void run()
        {
          try
          {
            java.io.InputStream buf = procy.getErrorStream();
            String s;
            do
            {
              int c = buf.read();
              if (c == -1)
                break;
              else if (getStderr)
                baos.write(c);
              if (sizeLimit > 0 && baos.size() > sizeLimit)
              {
                if (Sage.DBG) System.out.println("NOTICE: Forcibly terminating spawned process due to runaway memory detection!");
                procy.destroy();
                break;
              }
            }while (true);
            buf.close();
          }
          catch (Exception e){}
        }
      };
Shutdown the SageTV service, added debug_logging=TRUE to sage.properties, started the SageTV service and tried adding another file. Hoped I would see more info logged, no luck.

Anyone know about this?

Anyway to try and track it down?
__________________
SageTV running on: Win7 SP1 64 Pro
SageTV 9.2.6.976 (32 bit)
Java 1.8.0 301 (32 bit)
OpenDCT 0.5.32 (32 bit) (Comcast Music channels set to FFmpeg)
Clients: HD300 (x2)
HDHR3-CC Prime 20210624 (Comcast CableCard) - 3 Tuners
Hauppauge 1950 STB SD (USB-UIRT Zone 1)
Hauppauge 1950 STB SD (USB-UIRT Zone 2)

Last edited by CptKirk; 11-15-2021 at 09:06 AM.
Reply With Quote
  #167  
Old Today, 11:30 AM
Narflex's Avatar
Narflex Narflex is offline
Sage
 
Join Date: Feb 2003
Location: Redondo Beach, CA
Posts: 6,316
I'm not sure exactly what the problem here is...but one thought is I don't recall if FFMPEG actually had support for opening UNC paths or not. Does it have the same issue with format detection on files that are on mounted drive letters?
__________________
Jeffrey Kardatzke
Google
Founder of SageTV
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 2 (1 members and 1 guests)
hb4
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
Commercial Detector Plugin Disabled LJSSageUser Phoenix 5 03-09-2014 05:34 PM
Plugin: MizookLCD (Alternate SageTV LCDSmartie Plugin) cslatt SageTV Customizations 48 06-11-2012 10:44 AM
Plugin request for SageTV Windows Client: Autofrequency plugin mkanet SageTV v7 Customizations 3 11-12-2011 09:33 AM
Do I have to format my WHS to use SageTV? blackcows General Discussion 9 10-13-2009 06:51 PM
IR Code (Pronto Format) as in UIRT Helper --> SageTV Format as in Sagetv.properties krasev Hardware Support 0 09-12-2006 10:56 PM


All times are GMT -6. The time now is 01:56 PM.


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