Sunday, September 27, 2009

StreamZap Remote Control Blue Button in MythTV


I mapped the blue key to "End" on the StreamZap remote control in MythTV by modifying the ~/.mythtv/lircrc file. I added the snippet below to the end of the file and restarted MythTV frontend. The "End" key tells Myth Music to advance to the next track and when in MythTV Playback it skips commercials (if mythcommflag has previously flagged the recording).



begin
remote = Streamzap_PC_Remote
prog = mythtv
button = BLUE
config = End
repeat = 0
delay = 0
end

Wednesday, September 23, 2009

Media Info Command

Below is output from the mediainfo command. I ran it on an episode of FOX's Fringe and CBS's NCIS. It is interesting to see the difference between a prime-time FOX and CBS production. These were recorded by Ubuntu 8.10 MythTV from a HDHomerun receiving over the air content. Differences of note are: The size from FOX was 1280x720 and CBS was 1920x1080. The frames per second were higher on FOX (59) than CBS (29). Scan type on FOX was progressive and CBS was interlaced. Both included Dolby audio and closed captions.

Fringe



General
ID : 9FF
Complete name : Fringe - 2009-09-17, 9-00 PM - A New Day in the Old Town.mpg
Format : MPEG-TS
File size : 6.33 GiB
Duration : 59mn 55s
Overall bit rate : 15.1 Mbps

Video
ID : 51 (0x33)
Menu ID : 1 (0x1)
Format : MPEG Video
Format version : Version 2
Format profile : Main@High
Format settings, Matrix : Default
Duration : 59mn 55s
Bit rate mode : Variable
Bit rate : 13.6 Mbps
Nominal bit rate : 19.0 Mbps
Width : 1 280 pixels
Height : 720 pixels
Display aspect ratio : 16:9
Frame rate : 59.940 fps
Colorimetry : 4:2:0
Scan type : Progressive
Bits/(Pixel*Frame) : 0.247
Stream size : 5.71 GiB (90%)

Audio
ID : 52 (0x34)
Menu ID : 1 (0x1)
Format : AC-3
Format/Info : Audio Coding 3
Duration : 59mn 55s
Bit rate mode : Constant
Bit rate : 448 Kbps
Channel(s) : 6 channels
Channel positions : Front: L C R, Surround: L R, LFE
Sampling rate : 48.0 KHz
Stream size : 192 MiB (3%)
Language : English

Text
ID : 51 (0x33)608-1
Menu ID : 1 (0x1)
Format : EIA-608
Duration : 59mn 55s
Language : English
MuxingMode : MPEG Video / EIA-708
MuxingMode_MoreInfo : Muxed in Video #1

NCIS



General
ID : 9FB
Complete name : NCIS - 2009-09-22, 8-00 PM - Truth or Consequences.mpg
Format : MPEG-TS
File size : 6.68 GiB
Duration : 59mn 56s
Overall bit rate : 15.9 Mbps

Video
ID : 49 (0x31)
Menu ID : 1 (0x1)
Format : MPEG Video
Format version : Version 2
Format profile : Main@High
Format settings, Matrix : Default
Duration : 59mn 56s
Bit rate mode : Variable
Bit rate : 14.5 Mbps
Nominal bit rate : 65.0 Mbps
Width : 1 920 pixels
Height : 1 080 pixels
Display aspect ratio : 16:9
Frame rate : 29.970 fps
Colorimetry : 4:2:0
Scan type : Interlaced
Scan order : Top Field First
Bits/(Pixel*Frame) : 0.233
Stream size : 6.05 GiB (91%)

Audio
ID : 52 (0x34)
Menu ID : 1 (0x1)
Format : AC-3
Format/Info : Audio Coding 3
Duration : 59mn 56s
Bit rate mode : Constant
Bit rate : 384 Kbps
Channel(s) : 6 channels
Channel positions : Front: L C R, Surround: L R, LFE
Sampling rate : 48.0 KHz
Stream size : 165 MiB (2%)
Language : English

Text #1
ID : 49 (0x31)608-1
Menu ID : 1 (0x1)
Format : EIA-608
Duration : 59mn 56s
MuxingMode : MPEG Video / EIA-708
MuxingMode_MoreInfo : Muxed in Video #1

Text #2
ID : 49 (0x31)608-0
Menu ID : 1 (0x1)
Format : EIA-608
Duration : 59mn 56s
Language : English
MuxingMode : MPEG Video / EIA-708
MuxingMode_MoreInfo : Muxed in Video #1

Text #3
ID : 49 (0x31)1
Menu ID : 1 (0x1)
Format : EIA-708
Duration : 59mn 56s
Language : English
MuxingMode : MPEG Video / EIA-708
MuxingMode_MoreInfo : Muxed in Video #1


Sunday, September 20, 2009

Fun with the Gphoto2 Command

I read about another powerful package of free and open source software (FOSS) today. This software application can control over 1,100 different cameras. The command is gphoto2. With this command you can instruct a camera to take a picture, retrieve pictures, list files on the camera, delete files off the camera, etc...


I like birdwatching and taking pictures of birds. I could never get close enough to take a good picture until now. With gphoto2 I can set my camera on a tri-pod in my backyard right in front of my bird feeders. I connect the camera via USB to a netbook. The netbook sits under the camera on the tri-pod. The netbook is connected to my wireless router via Wi-Fi. I have a computer in the living room that has a window view of my feeders. I remotely connect to my netbook using the ssh command. When a bird comes in to feed I execute the gphoto2 command on the netbook and now I've got an up-close-and-personal photo of the bird.


Here is the command syntax I'm using on my netbook running Ubuntu 9.04 operating system:

gphoto2 --capture-image --get-file capt0000.jpg --folder /store_00010001 --hook-script test-hook.sh --force-overwrite

The gphoto2 command above tells the netbook to instruct the camera to take a photo, get the file from the camera and display it. I can then decide whether or not it is a keeper. If it is a keeper I copy the file from the netbook to my computer in the living room with the following command:

scp 192.168.111.2:/home/htplainf/capt0000.jpg capt0009.jpg

The command scp above performs a secure copy from the netbook to the computer in the living room.


I didn't get to spend much time taking pictures due to the inclement weather but I did iron out my work flow. Below are a couple shots of up-close-and-personal cardinals. Click on the photos to enlarge.










I'm frequently amazed by the free and open source Linux operating system Ubuntu. If it can be done with software it can be done on Linux and at no cost to the user.


Saturday, September 19, 2009

Fun with the Mencoder Command

On July 14, 2005 the cities of Charleston and Mt Pleasant SC celebrated the opening of the Arthur Ravenel Jr Bridge with a magnificent fireworks show. I snapped over 400 pictures that night. I published the photos to my website PatrickArchibald.com. The next day the photos went viral. The site went down for a few hours while I negotiated extra bandwidth with my web hosting provider. Good times.



Recently while exploring video encoding on my Ubuntu 8.10 Linux computer I ran across the mencoder command. One of the many things you can do with the mencoder command is create videos from images.



My 400 fireworks photos are compiled at 15 per second in the video below. Enjoy the next 28 seconds.






Below is the command syntax I used to create this video.


mencoder "mf://*.jpg" -mf fps=15 -o output.avi -ovc lavc -lavcopts vcodec=mpeg4


I'm frequently amazed by the free and open source Linux operating system Ubuntu. If it can be done with software it can be done on Linux and at no cost to the user.


Thursday, September 10, 2009

us.archive.ubuntu.com

us.archive.ubuntu.com must have been undergoing maintenance. Here is another screen shot of the mtr us.archive.ubuntu.com command.

Why does us.archive.ubuntu.com reside in London? Below is the output from mtr us.archive.ubuntu.com command. I was trying run updates on my Ubuntu boxes and was receiving some timeouts. I start investigating with the mtr command. Does us.archive.ubuntu.com actually reside in London or are there servers in the US undergoing maintenance?

Monday, September 7, 2009

Conky with Identi.ca Dents

Below is my latest Conky screen from my Ubuntu 8.10 MythTV back-end server. I recently added Identi.ca updates at the bottom. I have room for 3 dents.