NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Add-ons (3rd party plugins, utilities and skins) v
« Previous 1 2 3 4 5 … 20 Next »
NextImport and side-by-side .ts and .mp4 files

 
  • 0 Vote(s) - 0 Average
NextImport and side-by-side .ts and .mp4 files
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 52,823
Threads: 954
Joined: May 2006
#21
2021-11-25, 03:38 PM (This post was last modified: 2021-11-25, 03:38 PM by mvallevand.)
Turns out the base library was ok, just needed one more file.  Try the attached

1. For Windows delete NextTool.runtimeconfig.json and run NextTool options

2. For Linux and Docker you need to know your program folder and your flavour of linux and create a link to the database library.  For x86_64 use the following from the /app folder in Docker and /opt/nextpvr/system with the deb install

ln -s runtimes/linux-x64/native/libe_sqlite3.so

Then to run it is  dotnet NextTool.dll  options

You can optionally delete NextTool.exe

Martin


Attached Files
.zip   NextTool.zip (Size: 141.45 KB / Downloads: 21)
cncb
Offline

Senior Member

Posts: 729
Threads: 112
Joined: Aug 2011
#22
2021-11-26, 03:03 PM (This post was last modified: 2021-11-26, 03:05 PM by cncb.)
I get the following exception when I try to run this.  I did run the ln command as instructed (app directory in docker on Synology).

Code:
Unhandled exception. System.TypeInitializationException: The type initializer for 'Microsoft.Data.Sqlite.SqliteConnection' threw an exception.
---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation.
---> System.DllNotFoundException: Unable to load shared library 'e_sqlite3' or one of its dependencies. In order to help diagnose loading problems, consider setting the LD_DEBUG environment variable: libe_sqlite3: cannot open shared object file: No such file or directory
   at System.Runtime.InteropServices.NativeLibrary.LoadByName(String libraryName, QCallAssembly callingAssembly, Boolean hasDllImportSearchPathFlag, UInt32 dllImportSearchPathFlag, Boolean throwOnError)
   at System.Runtime.InteropServices.NativeLibrary.LoadLibraryByName(String libraryName, Assembly assembly, Nullable`1 searchPath, Boolean throwOnError)
   at System.Runtime.InteropServices.NativeLibrary.Load(String libraryName, Assembly assembly, Nullable`1 searchPath)
   at SQLitePCL.NativeLibrary.Load(String libraryName, Assembly assy, Int32 flags)
   at SQLitePCL.Batteries_V2.MakeDynamic(String name, Int32 flags)
   at SQLitePCL.Batteries_V2.DoDynamic_cdecl(String name, Int32 flags)
   at SQLitePCL.Batteries_V2.Init()
   --- End of inner exception stack trace ---
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor, Boolean wrapExceptions)
   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
   at System.Reflection.MethodBase.Invoke(Object obj, Object[] parameters)
   at Microsoft.Data.Sqlite.Utilities.BundleInitializer.Initialize()
   at Microsoft.Data.Sqlite.SqliteConnection..cctor()
   --- End of inner exception stack trace ---
   at Microsoft.Data.Sqlite.SqliteConnection..ctor(String connectionString)
   at NUtility.DatabaseHelper.GetConnection()
   at NextTool.Program.Main(String[] args)
   at NextTool.Program.<Main>(String[] args)
My Plugins: PhotoFilter, MusicMonkey, Windows Desktop Gadget
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 52,823
Threads: 954
Joined: May 2006
#23
2021-11-26, 03:08 PM (This post was last modified: 2021-11-26, 03:08 PM by mvallevand.)
Did you create the symbolic link in the program folder?

Martin
cncb
Offline

Senior Member

Posts: 729
Threads: 112
Joined: Aug 2011
#24
2021-11-26, 03:13 PM
Yes, I ran the ln command and it shows up in red in the file list in the app directory.
My Plugins: PhotoFilter, MusicMonkey, Windows Desktop Gadget
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 52,823
Threads: 954
Joined: May 2006
#25
2021-11-26, 03:17 PM
What does uname -a show?

Martin
cncb
Offline

Senior Member

Posts: 729
Threads: 112
Joined: Aug 2011
#26
2021-11-26, 03:56 PM
Linux nextpvr 4.4.180+ #41890 SMP Thu Jul 15 03:37:40 CST 2021 x86_64 x86_64 x86_64 GNU/Linux
My Plugins: PhotoFilter, MusicMonkey, Windows Desktop Gadget
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 52,823
Threads: 954
Joined: May 2006
#27
2021-11-26, 04:06 PM
Ok odd, that is exactly the error I get if the symbolic link is missing or wrong

When you are in the Docker shell do you see this

Code:
root@nextpvr:/app# ls -lt NextTool.*
-rw-r--r-- 1 root root    236 Nov 25 10:26 NextTool.runtimeconfig.json
-rw-r--r-- 1 root root 143360 Nov 24 10:41 NextTool.dll
root@nextpvr:/app# ls -lt libe_sqlite3.so
lrwxrwxrwx 1 root root 41 Nov 26 10:24 libe_sqlite3.so -> runtimes/linux-x64/native/libe_sqlite3.so
root@nextpvr:/app# ls -lt ExifLib.Standard.dll
-rw-r--r-- 1 root root 18432 May  4  2018 ExifLib.Standard.dll

Martin
cncb
Offline

Senior Member

Posts: 729
Threads: 112
Joined: Aug 2011
#28
2021-11-26, 05:52 PM
Code:
root@nextpvr:/app# ls -lt NextTool.*
-rwxr-xr-x 1 1026 users 143360 Nov 24 15:41 NextTool.dll
-rwxr-xr-x 1 1026 users    236 Jun  2 01:27 NextTool.runtimeconfig.json
root@nextpvr:/app# ls -lt libe_sqlite3.so
lrwxrwxrwx 1 root root 40 Nov 26 14:55 libe_sqlite3.so -> runtimes/linux-64/native/libe_sqlite3.so
root@nextpvr:/app# ls -lt ExifLib.Standard.dll
-rwxr-xr-x 1 1026 users 18432 May  4  2018 ExifLib.Standard.dll
My Plugins: PhotoFilter, MusicMonkey, Windows Desktop Gadget
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 52,823
Threads: 954
Joined: May 2006
#29
2021-11-26, 06:02 PM
Could you edit NextTool.runtimeconfig.json and change the probing path to

"additionalProbingPaths": [
"/app"
]

and see if that helps. It hasn't been a problem for my other utilities before. I haven't updated my Docker to 5.2.3 either.

Martin
cncb
Offline

Senior Member

Posts: 729
Threads: 112
Joined: Aug 2011
#30
2021-11-26, 06:08 PM
Sorry, I'm not proficient with Linux. What text editor can I use when in the docker command line? It says it cannot find the nano or vi commands.
My Plugins: PhotoFilter, MusicMonkey, Windows Desktop Gadget
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (4): « Previous 1 2 3 4 Next »


Possibly Related Threads…
Thread Author Replies Views Last Post
  IRSS and channel-changing batch files Len_Lekx 5 3,514 2018-07-18, 08:12 PM
Last Post: Len_Lekx
  Removing commericals - tools to cut segments form h.264 files psycik 5 6,260 2017-08-23, 08:25 AM
Last Post: reven
  imageGrabLite problems with "bad" series.xml files? BrettB 7 4,092 2015-02-21, 11:15 PM
Last Post: BrettB
  Files Plugin crashes when there is an ' in the file name. cbgifford 89 27,997 2015-01-28, 05:19 AM
Last Post: mvallevand
  comskip not running on certain files tron999 5 3,264 2014-10-11, 01:50 AM
Last Post: tron999
  movies plugin and video_ts files jam_zhou 6 3,478 2014-06-06, 12:55 AM
Last Post: jam_zhou
  imageGrabLite.exe with --nfo option: does it ONLY creat nfo files (or xml AND nfo)? jksmurf 8 3,581 2014-06-03, 09:25 PM
Last Post: mvallevand
  problem with how IGL is naming files tron999 6 3,129 2014-03-23, 02:36 PM
Last Post: mvallevand
  Imagegrablite move files dinki 1 1,853 2014-01-31, 11:03 PM
Last Post: mvallevand
  VidImport not importing all files spinnaker 4 2,942 2013-10-24, 01:47 PM
Last Post: carpeVideo

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode