Thursday, December 24, 2009

Mythtv File Parsing for Metadata

From
http://www.mythtv.org/wiki/MythVideo_File_Parsing

Filenames

  • A Movie Title.mpg
  • Title s01e01 Subtitle.mpg
  • Title 1x01 Subtitle.mpg
  • Title Season 1 Episode 1 Subtitle.mpg

Filename/Path combinations

  • Title/Season 1/01 Subtitle.mpg
  • Title/Season 1/s01e01 Subtitle.mpg
  • Title/Season 1/1x01 Subtitle.mpg
  • Title/Season 1/Title s01e01 Subtitle.mpg
  • Title/Season 1/Title 1x01 Subtitle.mpg
  • Title/Season 1/Episode 1 Subtitle.mpg
  • Title/Season 1/Season 1 Episode 1 Subtitle.mpg
  • Title Season 1/01 Subtitle.mpg
  • Title Season 1/s01e01 Subtitle.mpg
  • Title Season 1/1x01 Subtitle.mpg
  • Title Season 1/Title s01e01 Subtitle.mpg
  • Title Season 1/Title 1x01 Subtitle.mpg
  • Title Season 1/Episode 1 Subtitle.mpg
  • Title Season 1/Season 1 Episode 1 Subtitle.mpg

Sunday, December 13, 2009

Ubuntu squeezeserver audio transcoding support

To add a few more transcoding/decoding dependencies for your ubuntu squeezeserver install:
sudo apt-get install faad flac lame mplayer ffmpeg alac-decoder sox wavpack shntool

Tuesday, December 08, 2009

Linux process listening on a port

Command-line:

sudo netstat --tcp --udp --listening --program



http://www.go2linux.org/which_service_or_program_is_listening_on_port

Sorting DU results

A quick 'one-liner' to sort the results of a du by size.

from: http://ubuntuforums.org/showthread.php?t=885344


sudo du -hx --max-depth=1 / | perl -e '%byte_order = ( G => 0, M => 1, K => 2 ); print map { $_->[0] } sort { $byte_order{$a->[1]} <=> $byte_order{$b->[1]} || $b->[2] <=> $a->[2] } map { [ $_, /([MGK])/, /(\d+)/ ] } <>'