Log in

View Full Version : Mpeg2Repair command line util


JeffAlso
24th December 2006, 10:12
I recently wrote a little command line app so that I could use mpeg2repair from a batch script, via the command line. I dont know how many people use mpeg2repair (I've found it extremely usefull for fixing firewire caps), but I figured I'd share it if anyone else is interested.

Bueller??

Guest
24th December 2006, 14:27
Thank you but you forgot the link to your utility.

JeffAlso
30th December 2006, 02:48
Woops, sorry about that. Heres the link:

http://www.shuberg.org/utils/mpeg2repairCLI.zip

Pookie
31st December 2006, 22:21
Thanks a lot, JeffAlso. Seems to work quite nicely.

JeffAlso
1st January 2007, 02:19
Thanks!!

If anyone would like me to add support for multiple program/audio/video tracks, just let me know. All I'd need is a sample ts file to test with.

Pookie
10th January 2007, 01:55
Jeff - check your PM.

tbk
29th November 2007, 05:25
I am ridiculously interested in being able to use this CLI. I've been able to automate every other bit of my workflow apart from this step.

I'm trying to get it at the address advertised which is timing out for me.

Is it still available or does someone have it who's in a position to make it available for me?

Many thanks

Josh

Pookie
30th November 2007, 06:30
http://www.bestsharing.com/files/ZVB91X374264/mpeg2repairCLI.zip.html


There are also some functional equivalents out there:

http://www.boling.us/ebs/apps/mpeg2repair/

tbk
30th November 2007, 07:04
Thanks Pookie - you're a champ!

Searches didn't turn up any equivalents for me and it looks like I need an equivalent as I'm after the ability to log only, which it appears mpeg2repaircli doesn't manage yet.

Thanks again!

Rectal Prolapse
28th April 2009, 04:29
Alternative mpeg2repair automation script (AutoIt) that is for logging only:

http://pastebin.com/f4007dcb6

Download the .au3 file here:

http://pastebin.com/pastebin.php?dl=f4007dcb6

This should be run as a command-line. Only one argument needed, the input file. mpeg2repair will automatically add a .txt to the filename.

A lot of the code I wrote dealt with possible error messages or sudden closing of the window. I also made sure you can run more than one instance of this script.

You should also be sure to get the latest version of AutoIt here: http://www.autoitscript.com/autoit3/index.shtml

I suggest using the AutoIt compiler to convert the .au3 file to an executable - but make sure you have the CONSOLE option set!

I hope this works for you - let me know if you find problems!

Temporary link to the EXE and script in a zip file:

http://www.sendspace.com/file/ofdvae

It will likely expire in a few weeks. Sorry about that - maybe someone else can host it - assuming it works properly.

Rectal Prolapse
28th April 2009, 04:46
BTW, if you use the EXE you don't need to install AutoIt.

buzzqw
28th April 2009, 07:11
mirror http://www.64k.it/andres/data/m/mpeg2auto.zip

BHH

Rectal Prolapse
28th April 2009, 16:57
Thanks buzzqw! Have you had a chance to test it?

buzzqw
28th April 2009, 19:15
yes
there was a little gitch, for me, it search mpeg2repair.exe into "c:\program files\mpeg2repair\mpeg2repair.exe" , and i use a different path

would be easier to search mpeg2repair.exe on current path (or system path) ?

BHH

Rectal Prolapse
2nd May 2009, 03:23
ahhh sorry buzzqw, I forgot to mention that. I'll modify it for current path.

Rectal Prolapse
2nd May 2009, 03:28
New script, which only tries to run mpeg2repair.exe, and not use an absolute path:

http://pastebin.com/f3aa5b831

Executable:

http://www.sendspace.com/file/j2hnl2

I hope this works!

buzzqw
2nd May 2009, 06:03
now better, thanks!

mirror http://www.64k.it/andres/data/m/mpeg2auto_V2.zip

BHH

Rectal Prolapse
4th May 2009, 01:57
Thanks for the mirror!

SANGER_A2
7th June 2011, 19:46
Hi guys

I hope I'm not treading on anyone's toes here, but I edited the au3 files and make exes from them to better fit my purposes.

I wanted the command-line version to take in TWO filenames (the input and output file) and create a repaired TS file. I also didn't care about the logging, so instead of ticking that box, it ticks the repair box. I've tested it all and it works fine.

I also have another version (which I use instead) that runs MPEG2Repair in LOW priority instead of normal. It runs on my PVR box that doesn't have a lot of resources and I don't want the encoding process to stop it recording from TV! It runs brilliantly from my postprocessing.bat in NextPVR.

You can download my two versions here (http://sangera2.com/main/misc/mpeg2auto.html) (the EXE and AutoIt files). I've also mirrored the original two versions on my site too.

CruNcher
7th June 2011, 23:42
Is there a programm which not only shows you how much errors where in the stream but actually where the errors happened frame/timecode ?

SANGER_A2
8th June 2011, 12:11
Is there a programm which not only shows you how much errors where in the stream but actually where the errors happened frame/timecode ?
MPEG2Repair can also just log the errors instead of cut them out. One of the other command-line versions on the link I posted does that. I haven't tried it though as I just wanted to get rid of dodgy frames etc before encoding using handbrake! :devil:

CruNcher
8th June 2011, 22:43
MPEG2Repair can also just log the errors instead of cut them out. One of the other command-line versions on the link I posted does that. I haven't tried it though as I just wanted to get rid of dodgy frames etc before encoding using handbrake! :devil:

Yes but it doesn't show where, the log just shows that x errors where found but nothing about where. Though i realize that only a Video Quality Analyzer or your own eyes can do that not really a stream fixer like Mpeg2repair, or Projectx, VideoRedo or any other of this family of Software.

SANGER_A2
9th June 2011, 17:13
Yes but it doesn't show where, the log just shows that x errors where found but nothing about where. Though i realize that only a Video Quality Analyzer or your own eyes can do that not really a stream fixer like Mpeg2repair, or Projectx, VideoRedo or any other of this family of Software.
Oh sorry. I assumed it did. I've never used the logging as all I want to do is get rid of the bad frames etc. ProjectX seems to just munch up my TS files & spit out garbage. This works, so I'm sticking with it! :)

Maybe go through the sofware in this (http://www.videohelp.com/tools/sections/digitaltv-dvb-hdtv) list.