Skip to content

Instantly share code, notes, and snippets.

@dmoo1790
dmoo1790 / gist:507582
Created August 4, 2010 03:17
Script to cut MythTV recordings
#!/bin/bash
# MYTHCUTKEY Version 0.1
# This script cuts myth recordings at key frames using the MythTV seek table.
# Why? No external programs required, lossless and fast.
# Updates the myth database with sql calls including rebuilding the seek table.
# Output files may NOT be easily editable again and may have glitches at cut points.
#
# Undo option allows restoration of original recording and associated database
# records including seek table and markup table.
#!/bin/bash
# MYTHCUTNZ Version 0.1
# This script tries to transcode and/or cut myth recordings.
# Why? LATM AAC audio used in most NZ broadcasts causes problems for
# programs like ffmpeg when you try to edit/cut them.
# Uses cvlc to transcode the LATM AAC audio if the recording has no AC3 audio.
# If the recording does have AC3 audio then cvlc is not used.
# Uses ffmpeg to cut the recording using cut list and/or commercial skip list.
# Updates the myth database with sql calls except for rebuilding the seek table.