[bash] autsmuxer - mkv2vob for *nix.

Come up with a useful post-processing script? Share it here!
Jeegan
Newbie
Newbie
Posts: 11
Joined: November 28th, 2010, 9:13 pm

Re: [bash] autsmuxer - mkv2vob for *nix.

Post by Jeegan »

Ah, I thought I had updated that but apparently not. That seems to have fixed the problem. The other question I have is, the old mediamux could move the finished file up on directory and del the old directory it was stored in, can the new autsmuxer do this? Thanks again for all of the help.
sweetie
Full Member
Full Member
Posts: 117
Joined: May 10th, 2009, 10:47 am

Re: [bash] autsmuxer - mkv2vob for *nix.

Post by sweetie »

Yeah, you just need to run:

Code: Select all

autsmuxer dir -o . && rm -rf dir
Where dir is directory containing mkvs; '-o .' should drop resulting m2ts files in current directory.
Jeegan
Newbie
Newbie
Posts: 11
Joined: November 28th, 2010, 9:13 pm

Re: [bash] autsmuxer - mkv2vob for *nix.

Post by Jeegan »

That does work, thank you again. But is there anyway to add the previous option which moved the muxed file one up in the directory chain and renamed the file to the name of the directory which the muxed file resided?
Jeegan
Newbie
Newbie
Posts: 11
Joined: November 28th, 2010, 9:13 pm

Re: [bash] autsmuxer - mkv2vob for *nix.

Post by Jeegan »

Well, I spoke too soon. I seem to be getting an error with random .mkv files, some work, some give this error:

Error: Invalid track ID/file name specification in argument

Any ideas? I have the latest MKVtoolnix.
tcr
Newbie
Newbie
Posts: 2
Joined: November 23rd, 2012, 11:45 am

Re: [bash] autsmuxer - mkv2vob for *nix.

Post by tcr »

Great script Sweetie - thanks for sharing.

Small issue you may like to fix;
In each of the lines that write the filename to {3}.meta - the ${1} should be \"${1}\" to allow filenames with commas in them to be processed successfully. I stumbled across this with Lost S02E01 - Man of Science, Man of Faith for example.

Thanks again!
tcr
Newbie
Newbie
Posts: 2
Joined: November 23rd, 2012, 11:45 am

Re: [bash] autsmuxer - mkv2vob for *nix.

Post by tcr »

Jeegan wrote:Well, I spoke too soon. I seem to be getting an error with random .mkv files, some work, some give this error:

Error: Invalid track ID/file name specification in argument

Any ideas? I have the latest MKVtoolnix.
I'm using mkvinfo v5.8.0 ('No Sleep / Pillow') built on Sep 2 2012 14:52:4 - It picks out the info just fine.
Check you haven't got two versions of mkvinfo in your path maybe? The reason I say this is that the output format changed a while back.
Probably worth posting the output from mkvinfo <filename>
sweetie
Full Member
Full Member
Posts: 117
Joined: May 10th, 2009, 10:47 am

Re: [bash] autsmuxer - mkv2vob for *nix.

Post by sweetie »

tcr wrote:Great script Sweetie - thanks for sharing.

Small issue you may like to fix;
In each of the lines that write the filename to {3}.meta - the ${1} should be \"${1}\" to allow filenames with commas in them to be processed successfully. I stumbled across this with Lost S02E01 - Man of Science, Man of Faith for example.

Thanks again!
Thanks for pointing that out, sorted it now.
Post Reply