12/01/2019

Importing video from a Sony HDR-XR150 Camcorder without using PMB

I have a Sony HDR-XR150 camcorder and up until recently the only way I had to get video off of the camera was using Sony's PMB (Picture Motion Browser).

PMB is fine if you are Joe Average but for me it was sometimes very slow to import video.

I found that the reason it was sometimes slow was that if your video was larger than 2 gigs the camera breaks the file up. When PMB imports it, it somehow knows this and it re-encodes the video to a single file instead of just copying the files over. This takes as long or longer than it took to shoot the video in the first place. I don't care if the files are split as I can re-join them in my editing software. I decided to write a batch file to copy the videos over from the camcorder, and to make it even more difficult I decided to keep the PMB name format. What a pain in the ass that was. You can just copy the .mts files over and rename them manually to m2ts.

If you want to use this method you will need:
a batch file in c:\windows called imp.bat
a batch file in c:\windows called impmts.bat
a folder called c:\temp
the camcorder when connected through USB connect as drive L:
The destination folder of Z:\videos\pmb

or you can edit the batch files to whatever drive letters and locations you use.

The contents of the IMP.BAT file is:
set startdrv=%cd:~0,2%
dir %1 | find /I "MTS" > c:\temp\x.x
set /P finfo=set stripped=%finfo:~0,17%
for /F "tokens=1-8 delims=::./ " %%A in ('echo %stripped%') do set FileDateTime=%%C%%A%%B%%D%%E
for /F "tokens=1-8 delims=::./ " %%A in ('echo %date%') do set dirdate=%%B-%%C-%%D
if exist Z:\videos\pmb\%dirdate%  goto skip else
md Z:\videos\pmb\%dirdate%
start Z:\videos\pmb\%dirdate%
:skip
if exist Z:\videos\pmb\%dirdate%\%FileDateTime%.m2ts goto oops else
@echo on
copy %1 Z:\videos\pmb\%dirdate%\%FileDateTime%.m2ts
@echo off
:oops
del c:\temp\x.x
  The contents of the IMPMTS.BAT file is:
echo off
CLS
Echo Importing Files...
for %%Z in (L:\AVCHD\BDMV\STREAM\*.mts) do (
call c:\windows\imp.bat %%Z
)
It is quite probable that using 2 batch files is not necessary but I did it that way to fix some problem I was having.

The batch files work basically like this(if I remember correctly):
impmts looks to the location on the camcorder where the MTS files are stored and for each file there it runs the IMP.BAT file which sets the drive letter of drive where it started from (usually c:) to an environment variable called startdrv.

A directory listing of the MTS files is written to a file in c:\temp\x.x
information from that file is fed to more environment variables.
The MTS file date and time is retrieved and set to an environment variable FileDateTime.
The current date is set to a variable called dirdate.
The batch file then looks to see if the folder is already there, if it is it skips creating it, if not it creates it.
It then opens the new folder in a window.
It then looks to see if the new file it wants to write is already there if it is it skips copying that file from the camcorder.
If the file does not exist it copies the mts file from the camcorder to the destination with the correct name format of YYYYMMDDHHMM.mt2s
Then it deletes the x.x file from c:\temp
Control returns to IMPMTS.BAT and repeats until all files are processed.

There is not much error handling.

you may find strange characters in the batch file at the end of lines that are not in my code on this page, if those characters are there the files will not work right until they are removed. I am not sure where they come from and they are not always there. Just letting you know it might happen.

If you use these batch files and your videos are lost I am not responsible. They shouldn't be lost because it does not delete anything from the camcorder.


I cannot, and will not provide help on editing the batch files to work for your system.

11/27/2019

Slow Transfers QNAP NAS on a Gigabit Network

For several months or possibly years transfer rates from my QNAP nas TS-231 have been very slow about 12.5MBps to 15MBps (that's megabytes per second). I have a gigabit network and transfer rates should be above 50MBps.

I won't go in to all the ridiculous things I tried based on other people having the same issue, here is what fixed mine:

After opening a ticket with qnap 2 months ago and dealing with their SLOW response times I finally got a resolution to my problem.

The last thing they asked me to do was to disable server signing. No explanation of what exactly they were referring to, no information on where to find this setting. nothing useful.

I spent a couple of hours googling how to disable server signing on a qnap with nothing useful being found. I tried editing the smb.conf (this appears to be where the setting is), but the qnap changed my settings back upon a reboot of the server.

after much more googling I kept finding references to server signing with windows, which led me to try something.

My qnap was set as an Active directory domain controller, I did that because I kept having problems getting access to my own files.

I turned off AD domain controller and of course that broke access to my files.

I also had to disable Windows ACL support since I could not access my files, take ownership of them or anything, I enabled Advanced Folder Permissions.

I did manage to join the qnap to the domain, something that never worked before. I do not know why it is working now.

I was then able to set permissions of my files in the qnap webpage and finally access them.

I noted that server signing is now disabled in the smb.conf file (not by me).

I tested copying files and wow look at that transfer rates of about 60MBps.

It only took over 2 months and countless hours googling the issue. Was it server signing? was it my qnap being a domain controller? not sure but it's working now.

10/30/2019

SYSTEM_SERVICE_EXCEPTION 0x0000003b termdd.sys BSOD and possible cause

Starting a few days ago I began getting Blue screen of death with my Windows 7. The error was as below
SYSTEM_SERVICE_EXCEPTION 0x0000003b
00000000`c0000005

Sometimes the cause (per bluesreenviewer) was either termdd.sys or ntoskrnl.exe. Initially it was a lot of ntoskrnl.exe but then lots of termdd.sys began showing up.

now I had googled the issue and there was the standard "it's your memory", "bad video drivers", or "run SFC /SCANNOW" guesses at fixes for people.

I updated my video drivers.
I did a malware scan and found nothing.
I did a memory test and found nothing wrong (memory test are mostly useless).
I did SFC /SCANNOW (this is what people tell you to do when they don't know how to help) it also found no major problem just one unrelated corrupt dll.
I installed all current updates.
I restored my computer to a couple of days before the problem occurred.
Nothing worked.
I then did some thinking and realized that most of the issues were with termdd.sys, well I had my Remote desktop open to the internet. I remembered that my port 3389 is often hammered from china So I closed port 3389 on my firewall and the issue disappeared.

After further research I found that there is a vulnerability that is supposed to have been patched for windows RDP, but apparently not.


9/16/2019

EnGenius Wireless Access point stops working

If you have an EnGenius Wireless Access Point wifi that stops working properly and has to be reset frequently this may solve your problem. You may login to the device and everything appears to be fine yet nothing will connect to it or it may not even show as a device to connect to.

The cause:
Many EnGenius WAP's have a problem where after several days or even hours of use the access points are not freeing up some resource internally. I do not know exactly what. I found a forum post many months ago that explained it but I cannot find it again.

The solution:
Upgrading the firmware does not help and on some models they are End Of Life and updates are not available. You can put them on a timer that disconnects power for a short time every night when they are not used, or you can write a script that reboots them.

You will need:
TST10.EXE
A folder under C:\windows called script
put tst10.exe in C:\windows\script\
Create a text file for each device you want to reboot.
C:\windows\script\ecbcom.txt

the contents of the file should be:
x.x.x.x 23 replace the x's with you devices IP keep the space and 23
WAIT "Name:"
SEND "admin\m"
WAIT "Password:"
SEND "youradminpassword\m"
WAIT "cmd>"
SEND "reboot\m"
WAIT "cmd>"

Create a batch file in C:\windows\script called tst.bat
the contents of that file should be:
c:
cd\windows
cd script
call tst10 /r:ecbcom.txt

Create a task schedule to run and execute the tst.bat file at the time you want to reboot the access point. I tried the timer method but that was causing problems with my "smart" thermostat, the batch file method is faster and my thermostat does not complain as the reboot happens very quickly. Since implementing this (9 months ago) I have only had to physically power off and on the access point once. My reboots happen every Monday, Wednesday, and Saturday at 4am.

9/11/2019

BSA Red Dot RD3022SB Gummy Sticky problem

Recently I happened across my BSA Red Dot  RD3022SB site which I had not used in many years. It was stuck in a drawer in my work room. I went to pick it up and it was horribly sticky. It seems it was coated with some kind of non slip compound that for unknown reasons had turned gooey.

Using my googlefu I found many forums with people reporting the same issue. most of them just got rid of the site saying it was impossible to clean. Other people reported it could be cleaned with alcohol but that was very laborious. Many people reported that Acetone did not work.

Here is what I did to clean mine.

You will need:
Real Acetone (your wife or girlfriends fingernail polish remove is NOT acetone).
Denatured Alcohol.
Thick Nitrile or Rubber gloves (5 mil or thicker).
rough paper towels.
q-tips.
a respirator or work outside.
Patience.

Put on the gloves and respirator (acetone is not good to breath or have on your skin).
If you have the lens caps put those on so you don't get acetone on the lenses.
Pour a liberal amount of acetone on a folded up paper towel and begin soaking and scrubbing the goo off. It will take several passes to remove it. You will know the gunk is removed when you see the greenish black anodizing under it. I was able to go over all the surfaces and no paint or anything was removed that I did not want removed.

Now go over all the cracks and crevices with q-tips until no more black stuff comes off on to the q-tips.

Remove the lens caps and using q-tips carefully clean around the area that was covered by the lens caps and around the lenses (avoiding contact with the lenses).

Next put the lens caps back on and drench everything with the alcohol and wipe that off. clean the lenses with soap and water. You are done.


9/09/2019

Clock Vacuum Fluorescent Display Cross Reference

Here is a list of clocks that use Vacuum fluorescent displays, the type of clock chip, the make and model of the VFD, and display features.

Cosmo Time E-508, Clock chip LM8361 G4 (same pinout as a TMS1943N2l or NTE2060) , VFD Futaba 5-LT-16, 4 digit 12 hour only colon AM PM.


Sunbeam (unknown model), clock chip TMS3451NL, VFD Futaba 5-LT-79ZS/81, 4 digit can display 24 hour AM PM sleep alarm dot after last digit.

General Electric 7-4265A AM/FM/Cassette under cabinet clock radio, clock chip TMS3451NL, VFD Futaba 5-LT125Z, 4 digit can display 24 hour colon AM PM dot after last digit.

General Electric AM/FM clock radio 7-4642A, clock chip 8RS8600 (possibly same pinout as TMS1943N2l or NTE2060) , VFD NEC FIP5K15S 4 digit can display 24 hour colon AM PM alarm indicator.
  
If you have information on a VFD display that you would like to add, please leave a comment on where I can get:
Pictures of the front and back of the display
Manufacturer and model number of the device it came out of.

6/24/2019

The Worst Car Radio/Stereo in the World

I have a 1989 Chevrolet c2500 that someone took out the original stereo and head unit and replaced it with (what I would describe as) the worst radio I have ever used.

The radio was a Pioneer DEH P400UB I hate this thing with the hate of a thousand suns. Attempting to do anything with it while driving results in nearly wrecking the truck.

Replacing the OEM unit appears to be more trouble than it would be worth.


After lots and lots of searching I finally found a good simple to use stereo.

I got a used stereo from a 1998 Subaru Legacy. It was one of the few stereos I could find that also had lots of information online. 20 watts per channel, 4 channels, cassette tape, lcd display and simple easy to use controls.


The unit looks brand new inside and out, mounted it this morning and was able to drive around manipulate the controls with out hardly looking at it and never once came close to wrecking as with the Pioneer.

Also sound real good not quite as sensitive as the one in my 2015 forester. Made by Panasonic.

I have a cassette tape that can connect to an external device, a cassette that can do bluetooth, and a cassette that can play mp3's.
bluetooth
https://youtu.be/qBDZghOVnsM
mp3
https://youtu.be/HtoP7a615EA




I took the Pioneer radio and put it on my bench to mess with it. Even sitting on my bench where I can give it my full attention I cannot control it easily. It has a single knob that is also a joy stick and a button. It has a remote control but that still does not make it easier.

It works like this when in tuner mode:
the knob is rotated for volume
you move the knob left and right to tune a station
moving the knob up and down selects presets.
the problem is when you try to do this while driving you have to remember what does what and the slightest wrong movement will result in changing the station or moving it off frequency.

Then there is the problem of mistakenly enabling demo mode. if that happens the radio can't be turned off and you have to consult the manual to do that but the manual skips steps and is badly written.

then the other buttons on the radio have multiple functions which change depending on what you are doing. The Pioneer DEH P400UB is a $200 driving hazard distraction radio from hell. Though it does sound good it does not belong in a car.

Don't get me started on the trouble it is just to change balance, fader, and tone controls.

4/08/2019

I built a spot welder

Using a car battery and other stuff