Problems with pyTivo ffmpeg and ac3

I kept getting errors when trying to use pyTivo to stream shows to my Tivo HD.
Unsupported codec (id=86020) for input stream #0.0

After researching this it seems that this is due to lack of ac3 support in ffmpeg. After examaning ffmpeg it looked like it was compiled correctly, but it still would not work. I uninstalled the rpm and compiled it manually. This made things worse, the shows did not even show up on the Tivo for tranfser. Finally I realized that a52dec and ffmpeg were installed from different repositories. The packages from the livna repository work, but packages from atrpms do not work. So in order to fix this, remove ffmpeg and transcode and all their dependancies with rpm -e. Then install ffmpeg and transcode with yum while disabling the atrpms repository.

yum --disablerepo=atrpms install ffmpeg transcode

Now if I could just increase the transfer speed.

P.S. I’m working on a python script that will download, decode and play shows from the tivo all at once, so shows play instantly.

Reboot a windows box from Linux

Occasionally I have the need to reboot a windows box from Linux. Here is the command I use to do this.
net -I {IP Address} -U Administrator rpc shutdown -r -f

The net command is part of the samba package and can be used for much more than rebooting, like adding or deleteing users, etc.  Read the man file for more info.

convert is awesome

Someone was asking how to convert PDFs to JPGs and I thought to myself, surely there is a Linux utility to do this. Well ImageMagick comes with a utility called convert and the syntax is really easy.

convert test.pdf test.jpg

This will create a jpeg for each page of the pdf.  Simple right?  Plus it supports many input and output formats.

Accessing MSSQL from PHP on Linux

Need to access a MSSQL database from php on Linux? The remi repository has php-mssql and all the dependencies.  Look for the yum configuration link on the home page.  Very easy.

http://remi.collet.free.fr/

They also have a link to an IT asset management program called GPLI, I haven’t used it but the demo looks pretty nice.  The functionality seems to be there, but interface could use a little polishing, IMHO.

Screen

If you haven’t used screen yet, then you should really check it out. It’s great for running those long jobs (or bittorrent, for legit purposes of course) and coming back to it at a later time. Anyway I always wished that I could share a screen session with another user. Well I should have read the man file because it is already there.

screen -x Attach to a not detached screen. (Multi display mode).

Now if they would just allow scrolling back through the history with <shift><pgup>.