[Req.] Script to merge mpeg2 .ts files

Come up with a useful post-processing script? Share it here!
Post Reply
notrain
Newbie
Newbie
Posts: 4
Joined: March 12th, 2008, 10:26 pm

[Req.] Script to merge mpeg2 .ts files

Post by notrain »

Hi,

I am looking for a script to automatically merge several chunks of mpeg2 .ts files to one large file and delete all the
chunks after merging them, leaving only the large file. Does anybody have something like that ?
doubledrat
Release Testers
Release Testers
Posts: 180
Joined: February 20th, 2008, 3:16 pm

Re: [Req.] Script to merge mpeg2 .ts files

Post by doubledrat »

I've already posted a solution to this.  have you tried searching?  (a solution for windows users, don't know what you're using...)
notrain
Newbie
Newbie
Posts: 4
Joined: March 12th, 2008, 10:26 pm

Re: [Req.] Script to merge mpeg2 .ts files

Post by notrain »

i did search for a couple of phrases (mpeg2 merge for instance) and got no results. I even tried to search for
posts from you just now, but I can't find what I am looking for.
If it's not too much to ask, could you post a link to what you are referring to? Seems I can't find it.
doubledrat
Release Testers
Release Testers
Posts: 180
Joined: February 20th, 2008, 3:16 pm

Re: [Req.] Script to merge mpeg2 .ts files

Post by doubledrat »

no problem.  the thread is http://forums.sabnzbd.org/index.php?topic=1271.0 (it gets on to joining at about the second page).  it's worth reading the conversation as the script below assumes you are placing your .ts files in a sub-directory

the code is

Code: Select all

set name=%3
set name=%name:"=%
set dirname=%1
set dirname=%dirname:"=%

copy /B "%dirname%\*.ts" "%dirname%\temp.newts" && del /q "%dirname%\*.ts" && rename "%dirname%\temp.newts" "%name%.ts" 
Post Reply