SageTV Community  

Go Back   SageTV Community > SageTV Development and Customizations > SageTV Github Development
Forum Rules FAQs Community Downloads Today's Posts Search

Notices

SageTV Github Development Discussion related to SageTV Open Source Development. Use this forum for development topics about the Open Source versions of SageTV, hosted on Github.

Reply
 
Thread Tools Search this Thread Display Modes
  #161  
Old 11-04-2021, 02:27 PM
CptKirk CptKirk is offline
Sage Aficionado
 
Join Date: Sep 2010
Posts: 268
Sent you a PM to a link with the two files.
__________________
SageTV running on: Win10 21H2
SageTV 9.2.6.976 (64 bit)
Java 1.8.0 311 (64 bit)
OpenDCT 0.5.32 (64 bit)
Clients: HD300 (x2)
HDHR3-CC Prime 20220822 (Comcast CableCard) - 3 Tuners
HDFX-4K Flex 20220822 (OTA) - 4 Tuners
Reply With Quote
  #162  
Old 11-11-2021, 10:48 PM
CptKirk CptKirk is offline
Sage Aficionado
 
Join Date: Sep 2010
Posts: 268
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: Win10 21H2
SageTV 9.2.6.976 (64 bit)
Java 1.8.0 311 (64 bit)
OpenDCT 0.5.32 (64 bit)
Clients: HD300 (x2)
HDHR3-CC Prime 20220822 (Comcast CableCard) - 3 Tuners
HDFX-4K Flex 20220822 (OTA) - 4 Tuners
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: 825
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 Aficionado
 
Join Date: Sep 2010
Posts: 268
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: Win10 21H2
SageTV 9.2.6.976 (64 bit)
Java 1.8.0 311 (64 bit)
OpenDCT 0.5.32 (64 bit)
Clients: HD300 (x2)
HDHR3-CC Prime 20220822 (Comcast CableCard) - 3 Tuners
HDFX-4K Flex 20220822 (OTA) - 4 Tuners
Reply With Quote
  #165  
Old 11-12-2021, 06:48 PM
wnjj wnjj is offline
Sage Icon
 
Join Date: Jan 2009
Posts: 1,514
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 Aficionado
 
Join Date: Sep 2010
Posts: 268
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: Win10 21H2
SageTV 9.2.6.976 (64 bit)
Java 1.8.0 311 (64 bit)
OpenDCT 0.5.32 (64 bit)
Clients: HD300 (x2)
HDHR3-CC Prime 20220822 (Comcast CableCard) - 3 Tuners
HDFX-4K Flex 20220822 (OTA) - 4 Tuners

Last edited by CptKirk; 11-15-2021 at 09:06 AM.
Reply With Quote
  #167  
Old 11-29-2021, 11:30 AM
Narflex's Avatar
Narflex Narflex is offline
Sage
 
Join Date: Feb 2003
Location: Redondo Beach, CA
Posts: 6,349
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
  #168  
Old 11-29-2021, 04:03 PM
CptKirk CptKirk is offline
Sage Aficionado
 
Join Date: Sep 2010
Posts: 268
I thought UNC might have been a problem as well, but moved the file to a local directory and tried that:

Quote:
MediaFormatParserPlugin processing: C:\Users\Admin\Documents\TestData\Test9.mp4
There was an unhandled exception processing the file: Test9.mp4 Error opening file. ffmpeg error code: -2
java.lang.RuntimeException: Error opening file. ffmpeg error code: -2
Josh and I will work on hopefully debugging that with his plugin.

Once Josh's plugin has the error it ends and it turns back over the native sagetv format detector.

Quote:
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]]
It is then that the memory runaway error happens:

Quote:
NOTICE: Forcibly terminating spawned process due to runaway memory detection!
This then ends up with the video having a 0:00:00 length and the file can only be played in SageTV. You can not use FF/RW/Skip at all. If you try it immediately jumps playback to the beginning of the file.

Quote:
=Quicktime 0:00:00 0 kbps
__________________
SageTV running on: Win10 21H2
SageTV 9.2.6.976 (64 bit)
Java 1.8.0 311 (64 bit)
OpenDCT 0.5.32 (64 bit)
Clients: HD300 (x2)
HDHR3-CC Prime 20220822 (Comcast CableCard) - 3 Tuners
HDFX-4K Flex 20220822 (OTA) - 4 Tuners
Reply With Quote
  #169  
Old 12-05-2021, 03:59 PM
CptKirk CptKirk is offline
Sage Aficionado
 
Join Date: Sep 2010
Posts: 268
Just to follow up on the error below that I had been seeing when trying to import a new media file...

Quote:
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
It looks like the error I was getting from the plugin was most likely from an incomplete install of the plugin.

Josh provided a debug build and I needed to manually copy the plugin files into my SageTV directory on the server.

Once I did that the plugin worked with no problems. No more plugin error message.
__________________
SageTV running on: Win10 21H2
SageTV 9.2.6.976 (64 bit)
Java 1.8.0 311 (64 bit)
OpenDCT 0.5.32 (64 bit)
Clients: HD300 (x2)
HDHR3-CC Prime 20220822 (Comcast CableCard) - 3 Tuners
HDFX-4K Flex 20220822 (OTA) - 4 Tuners
Reply With Quote
  #170  
Old 12-05-2021, 04:00 PM
CptKirk CptKirk is offline
Sage Aficionado
 
Join Date: Sep 2010
Posts: 268
Also...

I have not seen this message appear in my sagetv_0.txt file anymore either

Quote:
NOTICE: Forcibly terminating spawned process due to runaway memory detection!
__________________
SageTV running on: Win10 21H2
SageTV 9.2.6.976 (64 bit)
Java 1.8.0 311 (64 bit)
OpenDCT 0.5.32 (64 bit)
Clients: HD300 (x2)
HDHR3-CC Prime 20220822 (Comcast CableCard) - 3 Tuners
HDFX-4K Flex 20220822 (OTA) - 4 Tuners
Reply With Quote
  #171  
Old 12-15-2021, 06:03 PM
hvymetal hvymetal is offline
Sage Advanced User
 
Join Date: Nov 2007
Posts: 162
I manual installed the Plugin in Linux it looks like it working but I also get an error. @Josh is this normal?

Code:
Wed 12/15 17:37:18.560 [main@3567135c] Redetecting format for TV file because it changed:MediaFile[id=44772789 A[40184420,39175792,"10 Things You Don't Know About",90163@0827.13:00,60,T] mask=TV host=Tower encodedBy= format=MATROSKA 0:59:59 1658 kbps [#0 Video[MPEG2-Video 29.97 fps 640x480 16:9 progressive]#1 Audio[AC3 48000 Hz 2 channels  idx=1]] /var/media/tv/10ThingsYouDontKnowAbout-TheAlmightyDollar-40184420-0.mkv, Seg0[Tue 8/27 13:00:00.150-Tue 8/27 14:00:00.000]]
Wed 12/15 17:37:18.572 [main@3567135c] Constructing jvl.mediaformat.MediaFormatParserPlugin
Wed 12/15 17:37:18.572 [main@3567135c] MediaFormatParserPlugin Version: 0.7
Wed 12/15 17:37:18.573 [main@3567135c] MediaFormatParserPlugin Build Number: 84
Wed 12/15 17:37:18.573 [main@3567135c] MediaFormatParserPlugin Build DateTime: 03/30/2021 17:46:47
Wed 12/15 17:37:18.574 [main@3567135c] Error instantiating metadata parser plugin of: java.lang.NoClassDefFoundError: jvl/FFmpeg/jni/Version
Wed 12/15 17:37:18.575 [main@3567135c] Now using external format detector for: /var/media/tv/10ThingsYouDontKnowAbout-TheAlmightyDollar-40184420-0.mkv
Wed 12/15 17:37:18.644 [main@3567135c] File Format Parsed /var/media/tv/10ThingsYouDontKnowAbout-TheAlmightyDollar-40184420-0.mkv=MATROSKA 0:59:59 1658 kbps [#0 Video[MPEG2-Video 29.97 fps 640x480 16:9 progressive]#1 Audio[AC3 48000 Hz 2 channels  idx=1]{ENCODER=Lavf58.45.100, Duration=00:59:59.854000000}]
Reply With Quote
  #172  
Old 12-15-2021, 07:46 PM
hvymetal hvymetal is offline
Sage Advanced User
 
Join Date: Nov 2007
Posts: 162
Okay After checking the code I realize the Parser Plugin in its current state will not work for Linux because the dependence on windows DLL's.

Just a thought and not sure how to realize it yet but would it not be possible to use FFprobe instead and parse the output? FFprobe can be statically compiled for each OS and it is fast.

It has been a while since I created an executable JAR file. I understand the syntax because I code quite a bit of javascript. Can someone point me on to a resource on creating a JAR for use as a SageTV plugin?

Last edited by hvymetal; 12-15-2021 at 07:50 PM.
Reply With Quote
  #173  
Old 12-16-2021, 03:55 PM
jvl711's Avatar
jvl711 jvl711 is offline
Sage Fanatic
 
Join Date: Jan 2004
Posts: 825
Quote:
Originally Posted by hvymetal View Post
Okay After checking the code I realize the Parser Plugin in its current state will not work for Linux because the dependence on windows DLL's.

Just a thought and not sure how to realize it yet but would it not be possible to use FFprobe instead and parse the output? FFprobe can be statically compiled for each OS and it is fast.

It has been a while since I created an executable JAR file. I understand the syntax because I code quite a bit of javascript. Can someone point me on to a resource on creating a JAR for use as a SageTV plugin?
So.... It is close to being ready for Linux. Another user did a lot of the leg work. I just need to push it over the finish line. I keep getting pulled over to the Android client and forget to get back to this.

Good news is that the SageTV transcoder also does the format detection. So, while it is missing some of the additional features that the media format plugin provides, it is failing back and using an updated version of ffmpeg (SageTVTranscoder) to do the identification.

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
  #174  
Old 12-16-2021, 05:27 PM
hvymetal hvymetal is offline
Sage Advanced User
 
Join Date: Nov 2007
Posts: 162
Quote:
Originally Posted by jvl711 View Post
So.... It is close to being ready for Linux. Another user did a lot of the leg work. I just need to push it over the finish line. I keep getting pulled over to the Android client and forget to get back to this.
Josh
Well that was a rabbit hole I should have not jump down.......I started to by installing the JDK(wtf Sun....there is reason java is falling out of favor), got your existing plugin to compile, and started to parse FFProbe. Any case good to know. I will be willing to test anything when its ready for testing.

Quote:
Originally Posted by jvl711 View Post
Good news is that the SageTV transcoder also does the format detection. So, while it is missing some of the additional features that the media format plugin provides, it is failing back and using an updated version of ffmpeg (SageTVTranscoder) to do the identification.
At least I tested the fallback case

Again thanks for all you efforts.

Last edited by hvymetal; 12-16-2021 at 05:39 PM.
Reply With Quote
  #175  
Old 12-24-2021, 03:12 PM
gtallan gtallan is offline
Sage User
 
Join Date: Jul 2005
Location: St. Paul, MN
Posts: 47
Quote:
Originally Posted by jvl711 View Post
So.... It is close to being ready for Linux. Another user did a lot of the leg work. I just need to push it over the finish line. I keep getting pulled over to the Android client and forget to get back to this.

Good news is that the SageTV transcoder also does the format detection. So, while it is missing some of the additional features that the media format plugin provides, it is failing back and using an updated version of ffmpeg (SageTVTranscoder) to do the identification.

Josh
That is awesome to hear - I'll look forward to testing it whenever it might be ready! Thank you for all your work on this!
Reply With Quote
  #176  
Old 04-28-2022, 03:22 AM
JREkiwi's Avatar
JREkiwi JREkiwi is offline
Sage Icon
 
Join Date: Jan 2005
Location: Auckland, New Zealand
Posts: 2,132
I have the MediaFormatParserPlugin and SageTVtranscoder plugins installed.

For any files with only a single subtitle
On playback, as expected, subtitles are not enabled, but when enabled, the subtitles display properly.
Code:
format=MATROSKA 0:23:42 3446 kbps [#0 Video[H.264 25.0 fps 1920x1080 16:9 progressive id=0]#1 Audio[EAC3 48000 Hz 2 channels  idx=1 id=0 eng]#2 Subpic[SRT id=0 eng]
Logs show
Code:
Thu 4/28 20:40:22.750 [ActiveRender-0023a5000cb0@755ead67] VideoFrame got registration of a subtitle UI component: sage.ZCCLabel[loc=java.awt.Point[x=191,y=545] size=java.awt.Dimension[width=891,height=143]]
Thu 4/28 20:40:22.750 [ActiveRender-0023a5000cb0@755ead67] VideoFrame got registration of a cc UI component: sage.ZCCLabel[loc=java.awt.Point[x=127,y=71] size=java.awt.Dimension[width=1019,height=574]]

Thu 4/28 20:40:28.920 [VideoFrame-0023a5000cb0@e222324] Enabling subpicture stream 0
Thu 4/28 20:40:28.956 [Fork-OPUS4-111131@7522d84f] Subtitle toggle is done; subtitles are on: true

Thu 4/28 20:40:29.173 [MiniUIClientReceiver@4a912d39] VideoFrame Received subtitle update time=42525 dur=1560 flags=0x1 len=24
For any files with both forced subtitles and normal subtitles
On playback, subtitles are enabled, but the non-forced subtitle is selected. Neither the forced or non-forced subtitles actually display any subtitles
Code:
format=MATROSKA 0:22:56 4991 kbps [#0 Video[H.264 25.0 fps 1920x1080 16:9 progressive id=0]#1 Audio[EAC3 48000 Hz 2 channels  idx=1 id=0 eng]#2 Subpic[SRT id=0 eng forced]#3 Subpic[SRT id=0 eng]
Logs show
Code:
Thu 4/28 20:39:46.790 [ActiveRender-0023a5000cb0@755ead67] VideoFrame got registration of a subtitle UI component: sage.ZCCLabel[loc=java.awt.Point[x=191,y=545] size=java.awt.Dimension[width=891,height=143]]
Thu 4/28 20:39:46.790 [ActiveRender-0023a5000cb0@755ead67] VideoFrame got registration of a cc UI component: sage.ZCCLabel[loc=java.awt.Point[x=127,y=71] size=java.awt.Dimension[width=1019,height=574]]
Thu 4/28 20:39:46.806 [AsyncWatch@5d168fc5] VideoFrame got registration of a subtitle UI component: null
Thu 4/28 20:39:46.806 [AsyncWatch@5d168fc5] VideoFrame got registration of a cc UI component: null

Thu 4/28 20:39:51.663 [ActiveRender-0023a5000cb0@755ead67] VideoFrame got registration of a subtitle UI component: sage.ZCCLabel[loc=java.awt.Point[x=191,y=545] size=java.awt.Dimension[width=891,height=143]]
Thu 4/28 20:39:51.663 [ActiveRender-0023a5000cb0@755ead67] VideoFrame got registration of a cc UI component: sage.ZCCLabel[loc=java.awt.Point[x=127,y=71] size=java.awt.Dimension[width=1019,height=574]]
Thu 4/28 20:39:51.671 [VideoFrame-0023a5000cb0@e222324] Selecting default subpic language of English at index 1
Thu 4/28 20:39:51.672 [VideoFrame-0023a5000cb0@e222324] Enabling subpicture stream 0

Thu 4/28 20:40:01.053 [VideoFrame-0023a5000cb0@e222324] Enabling subpicture stream 0
Thu 4/28 20:40:01.084 [Fork-OPUS4A-192054@5b863c95] Subtitle change is done; subtitle is: # 1 eng [Forced]
If I rescan the files with MediaFormatParserPlugin disabled, then all files play subtitles correctly

Ideas?

John
Reply With Quote
  #177  
Old 08-17-2022, 10:54 AM
egeller egeller is offline
Sage Aficionado
 
Join Date: Feb 2006
Location: Drexel Hill, PA
Posts: 334
I really look forward to being able to install the Media Format Parser Plugin on my Unraid system. I have installed the SageTV Transcoder Plugin for Linux and I enjoyed watching H.265 / HEVC recordings on my HD300. However, I removed it until the Format Detector plugin is available.

The SageTV Transcoder Plugin installs the newer version of FFMPEG. Without the Media Format Parser plugin, that causes format detection to fail for imported recordings - which I have a lot of. The imported files are not detected correctly and I see issues playing them.

Does anybody have an idea when the Media Format Parser plugin might be available for Linux?
__________________
Server:UnRaid;2x Intel Xeon E5; SuperMicro moboard;Also:BM3000 w/ WMC; 2x Ceton ETH 6; OpenDCT
SageTV Extender:3x HD200 1x HD300 1xFireTV
Sage TV: 9.2 on Java 11, Standard STVi, Comskip Playback, Web Interface, 24 Hour Clock, SRE, Playon
All in lovely Drexel Hill, PA
Reply With Quote
  #178  
Old 08-17-2022, 10:56 AM
jhkoenig's Avatar
jhkoenig jhkoenig is offline
Sage Advanced User
 
Join Date: Sep 2005
Location: Pleasanton, CA
Posts: 189
Quote:
Originally Posted by egeller View Post
I really look forward to being able to install the Media Format Parser Plugin on my Unraid system. I have installed the SageTV Transcoder Plugin for Linux and I enjoyed watching H.265 / HEVC recordings on my HD300. However, I removed it until the Format Detector plugin is available.

The SageTV Transcoder Plugin installs the newer version of FFMPEG. Without the Media Format Parser plugin, that causes format detection to fail for imported recordings - which I have a lot of. The imported files are not detected correctly and I see issues playing them.

Does anybody have an idea when the Media Format Parser plugin might be available for Linux?
What transcoder settings did you use to play H.265 on your HD300? I'm struggling with that. Thanks!
__________________
Win10@16GB RAM, 30TB Disk across 6 disks. 2 Prime tuner units
Sage v9 (64bit) using OpenDCT to control the Primes
2 HD-300s, an Android mini-client, and a Windows client
Reply With Quote
  #179  
Old 08-17-2022, 01:31 PM
egeller egeller is offline
Sage Aficionado
 
Join Date: Feb 2006
Location: Drexel Hill, PA
Posts: 334
Quote:
Originally Posted by jhkoenig View Post
What transcoder settings did you use to play H.265 on your HD300? I'm struggling with that. Thanks!
I am tempted to say I took the defaults, but that may not be true. I had previously worked with the format detector and the transcoder plugins, so I may have changed something and left it.

If you have questions on specific properties, I can check and answer those. Otherwise I could reinstall it and check the logs, but that will be a couple of days from now, as I am dealing with minor issues with FireTV and IPTV configuration (2 issues, not related).
__________________
Server:UnRaid;2x Intel Xeon E5; SuperMicro moboard;Also:BM3000 w/ WMC; 2x Ceton ETH 6; OpenDCT
SageTV Extender:3x HD200 1x HD300 1xFireTV
Sage TV: 9.2 on Java 11, Standard STVi, Comskip Playback, Web Interface, 24 Hour Clock, SRE, Playon
All in lovely Drexel Hill, PA
Reply With Quote
  #180  
Old 08-22-2022, 03:23 PM
jvl711's Avatar
jvl711 jvl711 is offline
Sage Fanatic
 
Join Date: Jan 2004
Posts: 825
Quote:
Originally Posted by egeller View Post
I really look forward to being able to install the Media Format Parser Plugin on my Unraid system. I have installed the SageTV Transcoder Plugin for Linux and I enjoyed watching H.265 / HEVC recordings on my HD300. However, I removed it until the Format Detector plugin is available.

The SageTV Transcoder Plugin installs the newer version of FFMPEG. Without the Media Format Parser plugin, that causes format detection to fail for imported recordings - which I have a lot of. The imported files are not detected correctly and I see issues playing them.

Does anybody have an idea when the Media Format Parser plugin might be available for Linux?
Hi Egeller,

I am actually maintaining both projects (SageTVTranscoder, MediaFormatDetector). I am looking at rearchitecting the build of MediaFormatDetector to more easily support cross compiling. I am really not a C programmer, so this may take me a while, and I could possibly get stuck.

I am surprised you are having issues with SageTVTranscoder detecting media formats. I did try my best to make it compatible. While I still prefer the way I am detecting formats in MediaFormat, the SageTVTranscoder should work...

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
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
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 12:50 PM.


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