Script to split mpegs on the server needed

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jovigirl
    Confirmed User
    • Apr 2003
    • 1796

    #1

    Script to split mpegs on the server needed

    Let's say I have like 25 gigs of mpegs already on the server and need to split them in chunks
    I need a script that can do that without the need to reupload everything
    Can be an ssh command, php or whatever works.
    I need to clip them into 10mb chunks, that will be saved in the same folder and named like originalfilename_part1.mpg ...

    Anybody willing to code it for me?
    ICQ :333-548-380
  • mortenb
    Confirmed User
    • Jul 2004
    • 2203

    #2
    get mpgtx (http://mpgtx.sourceforge.net/) installed on your server and run mpgtx -s filename {10M}

    Comment

    • jovigirl
      Confirmed User
      • Apr 2003
      • 1796

      #3
      thanks
      works fine
      ICQ :333-548-380

      Comment

      • mortenb
        Confirmed User
        • Jul 2004
        • 2203

        #4
        :-)
        well.. it doesn't meet your requirements 100%.. instead of naming the chunks filename1.mpg, filename2.mpg it names them filename001.mpg, filename002.mpg and so on..

        Comment

        • jovigirl
          Confirmed User
          • Apr 2003
          • 1796

          #5
          nah I don't care about that
          but I don't seem to find an option that makes 10mb files
          your option makes a part-1.mpg 10 Mb big, and then a part-2.mpg with the rest of the file only.
          I can specify the number of chunks though and it makes lets say 15 equal size parts
          so it does the work anyway
          but it's weird because there seem to be so many config options ...
          there should be a working one that makes x-sized chunks

          or maybe I m just too dumb lol
          ICQ :333-548-380

          Comment

          • mortenb
            Confirmed User
            • Jul 2004
            • 2203

            #6
            hmm..
            what about running "mpgtx -xxx filename -b mychunk" and just changing the xxx with the number of files to generate.. filesize/10..

            Comment

            • jovigirl
              Confirmed User
              • Apr 2003
              • 1796

              #7
              sure it works specifying the number of files to generate
              but not the size for an undetermined amount of files
              nevermind don't worry about it anymore
              I can use it this way
              ICQ :333-548-380

              Comment

              • woj
                <&(©¿©)&>
                • Jul 2002
                • 47882

                #8
                It's probably one of the options somewhere, but if it's not you can always write a quick script to do it recursively... (keep splitting it up, untill left over file is under 10 megs)
                Custom Software Development, email: woj#at#wojfun#.#com to discuss details or skype: wojl2000 or gchat: wojfun or telegram: wojl2000
                Affiliate program tools: Hosted Galleries Manager Banner Manager Video Manager
                Wordpress Affiliate Plugin Pic/Movie of the Day Fansign Generator Zip Manager

                Comment

                Working...