Go to TogaWare.com Home Page. GNU/Linux Desktop Survival Guide
by Graham Williams
Duck Duck Go

Converting the Transport Stream


Use dvbcut for a graphical tool to select regions (start and top segments) that can then be exported to standard mpeg format.

To join some streams together:

$ mpgtx -j c1.mpg c2.mpg c3.mpg -o cx.mpg

See http://wiki.dvbowners.com/index.php/Mencoder and http://www.linux2000.com/dvb.html.

Convert to MPEG: This simply puts a wrapper around the stream, with no additional encoding.

$ mencoder -of mpeg -ovc copy -oac copy -o news.mpg news.ts

Convert to AVI:

$ mencoder -ovc lavc -oac copy -o test.avi test.ts

To join two videos together:

$ mpgjoin s01.mpg s02.mpg -o all.mpg

To cut the beginning and end out of a video:

$ mpgjoin all.mpg [2:22-54:46] -o just.mpg


Copyright © 1995-2018 Togaware Pty Ltd
Support further development through the purchase of the PDF version of the book.
Brought to you by Togaware and the author of the open source software Rattle and wajig.
Also the author of Data Mining with Rattle and Essentials of Data Science.