Fixing Transcodes and nuvexports

Use replex to fix them

It turns out that the raw stream isn’t quite compatible with the DVD standard. There is apparently a small glitch in some of the hardware encoding done by the chip on my PVR-150 encoder. As such, another round of processing needs to be done to detect these glitches and patch them. A command-line tool has been written which does just that: replex.

Here’s the syntax:

$replex -t DVD -k -o Out.mpg In.mpg

The above command would take an input file In.mpg, generated by nuvexport, and create a new, fully DVD compatible file Out.mpg. A slightly fancier command can be done to process all the .mpg files in a particular directory:

$find . -name '*.mpg' -print0 | xargs -0 -i replex -t DVD -k -o '{}'.replexed '{}'

This will take all input files as ending with the .mpg file extension, process them, and generate outputs that have the same base name but with ‘replexed’ appended as the new file extension.

MythTV Keybindings

Clear Key Bindings

Once and a while I really screw up my key bindings on my system. When this happends it’s nice to flush the key bindings from the database. From the command line type:

echo "delete from keybindings ;" | mysql -u mythtv -pmythtv mythconverg

Backup Key Bindings

It never hurts to backup your keybindings once and a while before your about to change them. From the command line type:

mysqldump -u mythtv -pmythtv --databases mythconverg --table keybindings > keybindings.sq

Restore from Backup of key bindings

Backups are not very good unless you can restore from the backup. Use the following command to restore a backup.

mysql -u mythtv -pmythtv mythconverg < keybindings.sql

Troubleshooting multipathd

At work I used linux  native multipathing MPIO provided via device mapper a lot.  I can be a bit hard to troubleshoot.  I have found the best way is to use the interactive console.   From there you can do a lot of things I’ll illustrate the three most common I use:

Show current config

# multipathd -k
>> show config

Reload changes to multipath.conf

#multipathd -k
>>reconfigure

Check paths

#multipathd -k
>>show paths

In addition the following command out puts a log of debug information that can really help.

multipathd -v4