Page 1 of 1
[Req.] Script to merge mpeg2 .ts files
Posted: June 12th, 2009, 7:30 am
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 ?
Re: [Req.] Script to merge mpeg2 .ts files
Posted: June 12th, 2009, 12:58 pm
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...)
Re: [Req.] Script to merge mpeg2 .ts files
Posted: June 12th, 2009, 3:14 pm
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.
Re: [Req.] Script to merge mpeg2 .ts files
Posted: June 13th, 2009, 5:25 am
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"