No such element filesrc after installing Gstreamer - windows

I'm new to Gstreamer. I installed Gstreamer and found that "filesrc" element is missing right after the installation (using gst-inspect-1.0). If I type in gst-inspect-1.0 filesrc, it returns "No such element or plugin"
My environment:
Windows10 x64
Gstreamer v1.16.1
Gstreamer MSVC 64-bit installer (runtime and development)
"Complete" is selected for both installers
My original goal is camera capturing by OpenCV+Gstreamer, and my vs2019 project keeps returning "no element v4l2src". I finally found that even "filesrc" is not available, which means I already have problems BEFORE I build OpenCV together with Gstreamer.
I checked this installation guide too but no luck. Are there some additional steps to install the plugins?

Based on this post, I should delete the gstreamer "registry" to force it to kind of re-detect the available functions. This solution is for linux, not Windows 10. But I finally found the absolute path of that registry, fortunately:
C:\Users\{your user name}\AppData\Local\Microsoft\Windows\INetCache\gstreamer-1.0\registry.x86_64.bin
What I did to get "filesrc" appears in the list and available:
1. Delete the registry file manually
2. Performed a clean re-install
3. Run "gst-inspect-1.0"
Hope my workaround helps someone who gets stuck in the same situation.

Related

Recommended hotpatch for Mathematica Link to NetLogo 6 didn't work

I have the same problem as the user who posted in "Unable to use Mathematica Link in NetLogo 6.0" (Unable to use Mathematica Link in NetLogo 6.0). For me, the Mathematica Link seems to work fine with Netlogo version 5.3.1. Even after I attempted the recommended hotpatch (which was the answer to the original posted question on this topic), still no luck (I get the same error message posted in the original comment cited above). I tried extracting the hotpatch in the NetLogo 6.0 directory and in the NetLogo 6.0 / app subdirectory... neither seemed to work. I'm using a PC with Windows 7.
Any advice on how to properly install the patch would be greatly appreciated.
This fix is packaged with 6.0.1 and instructions on using it can be found here. If it's easy for you to upgrade to 6.0.1 I would recommend doing that over trying to install the 6.0 fix. I have verified that the fix works for 6.0, although the installation instructions don't seem to be correct.
My configuration:
Windows 10 (don't have Windows 7 available, unfortunately)
NetLogo 6.0 64-bit
Windows 10 64-bit
The steps I took to install:
Before starting, go to your NetLogo installation directory and rename the "Mathematica Link" directory to "Mathematica Link - original" (or delete it, if you prefer).
When I downloaded the file, it extracted to somewhere in my Downloads folder. You may have to extract yourself, depending on your browser and OS configuration
I copied the enclosed "Mathematica Link" folder (the one with the space in the name, not the "MathematicaLink" folder at the top level) to the NetLogo directory (not the "app" directory as mentioned in the instructions).
I then opened Mathematica and ran the following commands:
File > Install > type: Package, source: From File, file: C:\Program Files\NetLogo 6.0.1\Mathematica Link\NetLogo.m, install name: NetLogo, install for this user only. Note that when selecting this file, Mathematica will use the last directory you opened, so when the file dialog opens, first navigate to the the top of the drive then navigate down to NetLogo 6.0.1 (using a NetLogo.m file from an older NetLogo version will almost certainly break Mathematica link, and this is a very easy mistake to make).
Entered in the notebook (cannot code block this): <
Entered in the notebook: NLStart["C:\\Program File\\NetLogo 6.0.1"] (note the double backslashes and no trailing backslash).
The NetLogo window will open after a noticeable delay (depending on your system speed and memory)
Edit:
I wanted to consolidate troubleshooting steps for future readers. I've introduced a new version of NetLogo.m available here, which users should download for troubleshooting purposes (it will be distributed with future versions of NetLogo). Some steps to using this:
Mathematica will cache old "NetLogo.m" files. You can find where these caches are by using the following commands in Mathematica:
FileNameJoin[{ $BaseDirectory, "Applications" }]
FileNameJoin[{ $UserBaseDirectory, "Applications" }]
Visit the directories obtained in Step 1 and delete all "NetLogo.m" files from them.
Download the new version of NetLogo.m
Install the downloaded version of NetLogo.m (and run <<NetLogo`)
Run NLDiagnostics["C:\\Program Files\\NetLogo 6.0.1"] to determine what paths are being searched. This function will produce a hash as an output. The key missingJars should be an empty list ({}).
If you want to check java version, you can run NLJavaDiagnostics[]. The javaVersion returned should start with "1.8.0", the javaArchitecture returned should be "64".

GStreamer SDK installation on Mac

Can someone please let me know the proper steps for installing Gstreamer SDK on Mac. I followed the steps on the following
website:http://docs.gstreamer.com/display/GstSDK/Installing+on+Mac+OS+X
After installing the Runtime and development files I cannot find: Library/Frameworks/GStreamer.framework/Current/share/gst-sdk/tutorials. Cannot see the Current folder.
New to GStreamer as well as Mac.
First of all, gstreamer.com ist not part of the official GStreamer project. The project's URL is http://gstreamer.freedesktop.org/.
The SDK available on gstreamer.com is based upon the GStreamer 0.10.x release. These versions have not been maintained by the GStreamer project for a couple of years already. The current stable version is 1.4.x.
I strongly suggest getting the SDK from the official GStreamer project page and start reading the documentation found there.
Returning to your original question. Apple decided to hide your personal Library folder. You can reach it as described in this KB:
https://support.apple.com/kb/PH18928
The Library folder is hidden. If you need to open it for some reason,
click the desktop to make sure you’re in the Finder, hold down the
Option key, then choose Go > Library.

libgstreamer-1.0-0.dll not found Gstreamer

I downloaded gstreamer devel 1.4.5 x86 and tried to compile basic tutorial 1 after addind property sheets, compilation went fine, but when I tried to run app, there was an error libgstreamer-1.0-0.dll not found. I tried to search web for solution but had no luck so far.
Any ideas?
Best regards
You must download and install Runtime msi too. Runtime contain Dlls, Developer contain lib, headers and config.

MonoDevelop 2.4.2 or 2.6b2 Does not render fonts on MacBookPro

On a clean MacBook I installed all the latest Apple updates and Mono 2.10.2 SDK / MDK
The mono installer did not create a symlink from /Library/Frameworks/Mono/framework/Mono.framework/Versions/Current to /Library/Frameworks/Mono.framework/Versions/2.10.2 so I added that.
My path was also not updated so I added a text file called mono to /etc/paths.d
With just this line in it
/Library/Frameworks/Mono.framework/Versions/Current/bin
None of the characters in either MonoDevelop 2.42 or 2.6b render correctly. All characters are replaced with a ✋ (rectangle). This suggests to me that I am missing a font or that there is possibly something incorrectly configured on my Mac.
Any advice? Do I need to manually configure anything else for mono / MonoDevelop?
I'm getting the same thing, are you installing as a local account, and then running as a network account? We're looking into moving the font collections from the local account into the network account.
If you need it to use it, then can you log in as one of the other accounts?
Will report when a solution is found.

Totally Lost on "Installing" OpenCV / ctypes-opencv for Python 3

edit: The real solution to this is now that OpenCV supports python 3. I'm leaving the details below for anyone who happens to be stuck with an old setup.
I'm trying to get OpenCV working with Python 3. A friend showed me ctypes-opencv that appears to work with Python 3. The problem is I totally can not figure out how to "install" or get any code working. I've followed all instructions I could find from a few people mentioning installs on google and none of those seemed to work or I couldn't even get through the basics that they mentioned.
I am just hacking around with the version of IDLE that came with Python 3. No IDE.
Start with OpenCV:
The only windows installer for OpenCV 2.1 is a visual studio installer. I assume that means that it installs files that make it easier to use in Visual Studio. However, does it also mean that I can't use that installer with Python 3? I tried the vs installer together with ctypes-opencv as below, and I got errors that the dlls were not in my path (but my path variable did include the OpenCV bin folder with dlls). Is this the wrong direction?
The apparent alternative is to build OpenCV myself. I tried following the directions here and all I get is "project files may be invalid" from the CMake gui application when pressing the "Configure" button. Same when following these hints from Stack Overflow. I'm suspicious that this is also the wrong direction since I am not currently using any of the tools that are listed in the CMake configure. Is this also the wrong direction?
Next ctypes-opencv:
I installed this and the installer recognizes Python3.1 and puts itself into the site-packages folder. If I try to run demos, it tells me the dlls are not in the path although they are, as mentioned above.
Summary:
I think I generally understand each piece here (code, compile, dll, imports, ...) but I do not know how all the pieces fit together and where I am going wrong. Can someone please tell me what steps or understanding I am missing here?
I get the feeling that I need to be reading a book or two to fill in the holes in my understanding of how all these pieces fit together. I wouldn't even know what area of books to get though so any suggestions there would be appreciated as well.
Python's ctypes is a wrapper around the opencv dll files, as long as you can point to the compiled libraries it doesn't matter what the source code is set up to be edited in. For windows I would simply run the installer, then try to load the dll with ctypes. If you can get that far, any other errors can be fixed by looking at the ctypes wrapper file and editing the load section to look like your test file.
Christoph Gohlke maintains Windows binaries for many Python packages, including the production version of OpenCV 3.0 with Python 3.x bindings, released 4 June 2015:
http://www.lfd.uci.edu/~gohlke/pythonlibs/#opencv
To install, just download the 64-bit or 32-bit .whl file appropriate for your system, then run pip install [filename]. Then the instruction import cv2 should work in your Python 3.x interpreter.
Yakiimo san, OpenCV 2.1 DLL can be loaded with ctypes. I have tested it.
p.s. I have set the C;\OpenCV2.1\bin in Env Path.

Resources