wtv2m2t – windows media center recordings to m2t format

Hi,

so i am on a journey from windows to linux an one of my encounters it the history of windows media center files, in my case wtv-files.

I would like to process them like all my DVB-T recordings with DVBCUT, therefore i need an m2t file to proceed.

Solution: wtv_2_m2t.sh (using ffmpeg)

#!/bin/bash

echo "WTV2M2T..."

[ -z "$1" ] && {

   echo "usage: $0 <wtv-inputfile> [<m2t-outpufile>|default:\$1.m2t]"
   exit 1
   
}

[ -z "$2" ] && OUTPUT="$1.m2t" || OUTPUT="$2"

ffmpeg -i "$1" -vcodec copy -acodec copy "${OUTPUT}"


Enjoy.
Advertisements
This entry was posted in IT, Uncategorized, windows2linux and tagged , , , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s