Media objects

class MediaObject (**kwargs)

  • protocols – depreciated
  • platforms – depreciated
  • bitrate
  • aspect_ratio
  • audio_channels
    2 = stereo, 6 = 5.1
  • audio_codec
  • video_codec
  • video_resolution
  • container
  • video_frame_rate
  • duration
  • width
  • height
  • protocol
  • optimized_for_streaming

Plex Framework: Constants

Contants

  • CACHE_1MINUTE = 60
  • CACHE_1HOUR = 3600
  • CACHE_1DAY = 86400
  • CACHE_1WEEK = 604800
  • CACHE_1MONTH = 2592000

 

ClientPlatforms

  • ClientPlatform.MacOSX
  • ClientPlatform.Linux
  • ClientPlatform.Windows
  • ClientPlatform.iOS
  • ClientPlatform.Android
  • ClientPlatform.LGTV
  • ClientPlatform.Roku

Protocols

  • Protocol.DASH
  • Protocol.HTTP
  • Protocol.HLS
  • Protocol.RTMP

Protocols (Old)

  • Protocol.Shoutcast
  • Protocol.WebKit
  • Protocol.HTTPStreamingVideo
  • Protocol.HTTPStreamingVideo720p
  • Protocol.HTTPMP4Video
  • Protocol.HTTPMP4Video720p
  • Protocol.HTTPVideo
  • Protocol.HTTPMP4Streaming

AudioCodecs

  • AudioCodec.AAC
  • AudioCodec.DCA
  • AudioCodec.MP3
  • AudioCodec.WMA
  • AudioCodec.WMAP
  • AudioCodec.VORBIS
  • AudioCodec.FLAC

VideoCodecs

  • VideoCodec.H263
  • VideoCodec.H264
  • VideoCodec.VP6
  • VideoCodec.WVC1
  • VideoCodec.DIVX
  • VideoCodec.DIV4
  • VideoCodec.XVID
  • VideoCodec.THEORA

Containers

  • Container.MKV
  • Container.MP4
  • Container.MPEGTS
  • Container.MOV
  • Container.AVI
  • Container.MP3
  • Container.OGG
  • Container.FLAC
  • Container.FLV

Dell XPS M1210 + Windows 10

My Dell XPS M1210 is still alive and it is will 8 years old soon. It is on its 3rd battery. Swapped in an SSD.

Brief Specs:

  • CPU: Ghz Intel Core2 Duo T7200
  • RAM: 4GB DDR SDRAM
  • GPU: GeForce Go 7400
  • Camera: Integrated Logitech Camera
  • Storage: Upgraded to 120GB SSD
  • WiFi: Intel 3945ABG upgraded to Intel 4965AGN

It started off with Windows XP, then Vista, 7 and finally 10. Dell officially supports Windows XP and Vista, but not 7 and above.

Almost everything is detected on Windows 10 except:

 

PC History

Dad’s Past PCs – Retired
1992? – AMD 386 (Acer Power 386SX?)
1997? – Intel Pentium MMX 233Mhz (Packard Bell)

1999? – First DIY PC – Retired
CPU: Intel Celeron 433Mhz (Socket 370 + Adapter)
RAM: 128MB? RAM
Motherboard: Gigabyte GA-6VXE+ (VIA Apollo Pro, Slot 1)
GPU: Nvidia RIVA TNT2 AGP 4x

2002? – Upgraded First DIY PC – Retired
CPU: Pentium 3 500Mhz
RAM: 256MB? SDRAM
Motherboard: Gigabyte GA-6VXE+  (VIA Apollo Pro, Slot 1)
GPU: Nvidia Geforce4 MX 440

2004 – College PC (DIY) – At parent’s home, different motherboard & dead.
Intel Pentium 4 HT 2.6C (Northwood)
RAM: 512MB DDR SDRAM
Motherboard: Abit AI7 (something else now, but dead.)
GPU: Asus Radeon 9600XT VIVO 128MB

2007 – First Laptop (Dell) – This pc is still running after 3rd battery change.
CPU: Core2 Duo T7200
RAM: 4GB RAM
GPU: GeForce Go 7300
160GB 5400rpm -> 320GB WD Black -> 128GB SSD

2008 – Salvaged PC1 (DIY) – Parts sold off
CPU: Intel Pentium 4 3.2Ghz
Motherboard:  Asus P4P800
GPU: Nvidia NV6600
Case: CM Stacker 832

2009 – Salvaged PC2 (DIY) – Parts sold off
CPU: Core 2 Duo 2.2 ghz
Motherboard: EVGA nForce 680i SLI
RAM: 4GB OCZ NVIDIA SLI_Ready DDR2 800 (2009)
GPU: PNY XLR8 GeForce 9800 GT EE 512MB (2009) / Quadro FX570 (2010)
PSU: OCZ 600MXSP (2009)
Case: CM Stacker 832 (2008)

Current PC (2012+)
Intel i5-3570K Quad Core (2012)
Motherboard: ASRock Z77 Pro4-M
RAM: 32gb Corsair Vengence DDR3 1600 (2012/2013)
GPU: Sapphite Radeon 7850 2GB (2012)
Case: CM Stacker 832 (2008)
PSU: OCZ 600MXSP (2009)
Multiple SSDs+HDDs

Plex

Plex is one of my favorite Media Server & Client software. I have been actively using it and I highly recommend it for organizing your media files.

Plex Media Server is running 24/7 on my desktop computer, and contents are streamed to my TV via Roku, to my Android phone and iPad locally or remotely. Besides that, I can access my contents online via Plex.tv web interface.

Server: Plex Media Server runs on:

  • Windows
  • Mac OSX
  • Linux
  • FreeBSD
  • NAS (with limited capabilities)

Client: Plex Home Theater (formerly Plex Media Center) runs on:

  • Windows
  • Mac OSX
  • Linux

Client: TV and streaming devices

  • Chromecast (Plex Pass members only)
  • Roku
  • GoogleTV
  • Samsung Smart TV

Client: Mobile Apps

  • Android
  • iOS
  • Windows

Got more information at: https://plex.tv/

Virtual Router / Wireless Hotspot using your PC

To host a Virtual Router / Access Point with your PC, you need a compatible Wireless Adapter that supports Hosted Network.

 

Requirement:

  • Windows 7 or later
  • Wireless Network adapter with HostedNetwork support.

 

Check for hosted network support by running this in Command Prompt:

netsh wlan show drivers

netsh_wlan-show-drivers

If it says No, your network card does not support Hosted Network, or you need to update your drivers.

 

Configure the wireless Hosted Network settings:

netsh wlan set hostednetwork ssid=MySSID key=MyWiFiKey

You will only need to do this once. It will retain this settings even if you reboot your PC.

 

Start the wireless Hosted Network (Run as Administrator):

netsh wlan start hostednetwork

 

Stop the wireless Hosted Network:

netsh wlan stop hostednetwork

 

Set up Internet Connection Sharing (ICS)

Next, bring up the properties window of the Network Adapter that has Internet Connection.

Local-Area-Connection

Check “Allow other network users to connect through this computer’s Internet connection”. Now select the Network Adapter to share to (in my case, HostedNetwork).

Local-Area-Connection-Sharing

Once properly configured, your Hosted Network Status should show Internet connectivity.

Hosted-Network-Status-Internet

 

Supported Devices

Supported Network Adapters
Intel® Centrino® Wireless-N 1030
Intel® Centrino® Wireless-N 1000
Intel® Centrino® Advanced-N + WiMAX 6150
Intel® Centrino® Advanced-N 6230
Intel® Centrino® Advanced–N + WiMAX 6250
Intel® Centrino® Advanced–N + WiMAX 6250
Intel® Centrino® Advanced–N + WiMAX 6250
Intel® Centrino® Advanced-N 6200
Intel® Ultimate N WiFi Link 5300
Intel® WiFi Link 5100

 

Not Supported Devices

Unsupported Network Adapters
Intel® PRO/Wireless 3945ABG Network Connection
Intel® Wireless WiFi Link 4965AGN
Intel® Centrino® Wireless-N 100
Intel® Centrino® Wireless-N 130

 

More Information

Excel VBA: RsLinx DDE example

'Initialize DDE
channelNumber = Application.DDEInitiate("RSLinx", "SomeTopicName")

'Read from PLC5
readValue = DDERequest(channelNumber, "N20:1")
'Read from ControlLogix
readValue = DDERequest(channelNumber, "ControlLogixTag[1]")

'Write to PLC
Set rangeToPoke = Worksheet("Sheet1").Range("A1")

'Write to PLC5
Application.DDEPoke channelNumber, "N20:2", rangeToPoke
'Write to ControlLogix
Application.DDEPoke channelNumber, "ControlLogixTag[1]", rangeToPoke

'End DDE
Application.DDETerminate channelNumber

Excel VBA: Excel Version

Use Application.Version property to find out the version of Microsoft Excel. Useful to check for Microsoft Excel version to test the number of rows.

Example Syntax:

MsgBox (Application.Version)

Version Number:

  • 15.0 – 2013
  • 14.0 – 2010
  • 12.0 – 2007
  • 11.0 – 2003

iFix

Known Names & Versions

  • Intellution FIX32 v6.15
  • Intellution FIX32 v7.0
  • Intellution iFix 2.21
  • Intellution iFix 2.5/2.6
  • Intellution iFix 3.0
  • GE FANUC iFix 3.5
  • GE FANUC iFix 4.5
  • GE Intelligent Platforms Proficy HMI/SCADA iFix 5.0
  • GE Intelligent Platforms Proficy HMI/SCADA iFix 5.1
  • GE Intelligent Platforms Proficy HMI/SCADA iFix 5.5

External Links: