Results 1 to 7 of 7

Thread: Is it possible to convert multiple mkv files using mkvdts2ac3.sh?

  1. #1
    Join Date
    Oct 2012
    Beans
    5

    Is it possible to convert multiple mkv files using mkvdts2ac3.sh?

    How?

  2. #2
    Join Date
    Dec 2006
    Beans
    6,930

    Re: Is it possible to convert multiple mkv files using mkvdts2ac3.sh?

    You should be able to use this script in a for loop if the script itself will not accept multiple input files.
    You think that's air you're breathing now?

  3. #3
    Join Date
    Oct 2010
    Location
    London
    Beans
    481
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Is it possible to convert multiple mkv files using mkvdts2ac3.sh?

    Maybe paste the script in between [ code][/code] tags or, if it's too long for that, put it in an attachment?

    Andrew' suggestion is probably going to be the easiest, but we can't give any more useful information until we know how the script works, or at least its syntax. Give an example of how you would use the script for a single file, and a for loop would be trivial to construct.

  4. #4
    Join Date
    Jul 2009
    Location
    CyberspacEastEngland
    Beans
    Hidden!
    Distro
    Ubuntu 13.10 Saucy Salamander

    Re: Is it possible to convert multiple mkv files using mkvdts2ac3.sh?

    sorry had a thought but not useful here
    Last edited by shantiq; November 16th, 2012 at 10:12 AM.
    Linux is Latin for off-the-beaten-track [◄►] ● Is there Voodoo in the machine?
    ShanArt ● Mark as SolvedXmms

  5. #5
    Join Date
    Jul 2009
    Location
    CyberspacEastEngland
    Beans
    Hidden!
    Distro
    Ubuntu 13.10 Saucy Salamander

    Re: Is it possible to convert multiple mkv files using mkvdts2ac3.sh?

    hi there Andrew would you create the loop inside the script


    or outside? i thought outside once it has been placed in the folder where the mkvs are




    for f in *.mkv do ./mkvdts2ac3.sh "${f%.*}" ; done
    is not quite right is it?
    Last edited by shantiq; November 16th, 2012 at 10:44 AM.
    Linux is Latin for off-the-beaten-track [◄►] ● Is there Voodoo in the machine?
    ShanArt ● Mark as SolvedXmms

  6. #6
    Join Date
    Oct 2010
    Location
    London
    Beans
    481
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Is it possible to convert multiple mkv files using mkvdts2ac3.sh?

    That seems like a really overlong script, for what it does.

    If the standard usage is
    Code:
    ./mkvdts2ac3.sh input.mkv
    then
    Code:
    for f in *mkv; do mkvdts2ac3.sh "$f"; done
    No need for squiggly brackets, so far as I can see - you use those mostly for substitutions, i.e. changing 'mkv' to 'mp4' for a for loop containing ffmpeg - and you need a semicolon before the 'do'.

  7. #7
    Join Date
    Dec 2006
    Beans
    6,930

    Re: Is it possible to convert multiple mkv files using mkvdts2ac3.sh?

    Quote Originally Posted by shantiq View Post
    hi there Andrew would you create the loop inside the script


    or outside? i thought outside once it has been placed in the folder where the mkvs are
    With a very appreciative nod to the creator of this script I have to admit that for my own personal usage I would tend not to use such scripts. With a little work and experimentation it is possible to do most of this sort of work 'by hand'. But if using it I would use a method similar to that described by evilsoup.
    You think that's air you're breathing now?

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •