20.11.07
21:19 Burn TS to DVD (on Linux) (
,
,
,
)
Sometimes I don't have time to watch a movie, so I record it with my DVB card on my PC and watch it later. But my current PC has only a small hard disk (40GB), and it can takes weeks before I have time to watch the movie, or I prefer to watch it on my television, so I need a DVD.
This is as simple script to burn a TS file on DVD. It use projectX, mplex, dvdauthor and growisofs. Everything should be available in your Linux distribution (has only been tested on OpenSuse 10.3).
Adjust the following parameters:- maybe your ts file ends with .m2t (kaffeine) so read this file instead if ts at the beginning
- path to projectX.jar file
- your dvd drive, mine is /dev/sr1
Then just execute the script, the only parameter is the TS file name (without the extension), and be sure to place an empty DVD into your DVD drive.
#!/bin/sh echo Burning $1 to DVD
rm -R ./tempDir mkdir ./tempDir
echo Demultiplexing and cleaning $1 java -jar /usr/share/java/ProjectX.jar -out ./tempDir $1.ts
echo Remultiplexing $1 to MPEG mplex -f 8 ./tempDir/$1.m2v ./tempDir/$1.mp2 -o ./tempDir/film.mpg
echo Create DVD rm -R ./dvd_output dvdauthor -x dvdauthor.xml
# Backup mpeg file echo Make mpeg backup mkdir mpegs mv ./tempDir/film.mpg ./mpegs/$1.mpg
echo Burn DVD growisofs -dvd-compat -Z /dev/sr1 -dvd-video ./dvd_output
echo cleaning... rm -R ./dvd_output rm -R ./tempDirv
You also need this .dvdauthor.xml file. Here you might adjust the dvd video parameters (nts/pal, 16:9...)
Hope this is helpful to someone else..Labels: Linux
posted by Jean-Marc Autexier |
0 comments | Permalink | Send to Friends | Google it!
|
 |
|
 |
 |