GithubHelp home page GithubHelp logo

Comments (4)

scottf-tvw avatar scottf-tvw commented on June 27, 2024

So I made the changes to job.js for those who want to know how to do concat.
prepare:

if (job.parsedOpts()['source_file'] == 'concat'){
          callback("hasInput");
      }else{
          fs.stat(job.parsedOpts()['source_file'], function(err, stats) {
              if (err) {
                  job.exitHandler(-1, "unable to read input file (" + job.parsedOpts()['source_file'] + ").");
              } else {
                  if (stats.isFile()) { job.filesize = stats.size || Number.NaN };
                  callback("hasInput");
              }
          });

and spawn:

if (job.parsedOpts()['source_file'] != 'concat'){
            args.push('-i', this.parsedOpts()['source_file']);
          }

send the string "concat" as the input file, then in your "encoder_options" format your options as specified in the ffmpeg documentation for concat.
simple usage: -f concat -i yourfileslist.txt -c copy

from codem-transcode.

tieleman avatar tieleman commented on June 27, 2024

Hi Scott, glad you got it working with the concat filter. I'm going to refer to what I just wrote at #31 as well (check it out if you will): Codem was initially built with the one file in, one file out philosophy. That doesn't seem always viable anymore, so we are considering other options, but we don't have any short-term plans to implement these features. We need to rewrite a considerable amount of code to support these features properly.

from codem-transcode.

scottf-tvw avatar scottf-tvw commented on June 27, 2024

Thanks for responding, after looking at your code I would agree that in conjunction with the scheduler it would indeed take a lot of code refactoring. The standard tee is a much different animal than the HLS outputs mentioned in issue #31. Since the transcoder js code alone could be easily refactored to allow for multiple predictable outputs by simply implementing an output array+loop in a few places, I am going to work on it a little bit. The scheduler however... ruby is new to me. like since last week.. To get around it I will implement a similar 'hack' if you will, in the filters or directly with json for the output in the jobs table until my project settles down and I will start to learn ruby properly. Nice work btw. even with the tweaks, this project is saving me from re-inventing the wheel.

from codem-transcode.

jbankston avatar jbankston commented on June 27, 2024

I agree. We were going to build out an internal solution from scratch. This
is great work.

Julian Bankston
(615) 669-3057
Founder
Britevid
Mave Media LLC

On Thu, Jul 24, 2014 at 9:34 AM, Scott Freeman [email protected]
wrote:

Thanks for responding, after looking at your code I would agree that in
conjunction with the scheduler it would indeed take a lot of code
refactoring. The standard tee is a much different animal than the HLS
outputs mentioned in issue #31
#31. Since the
transcoder js code alone could be easily refactored to allow for multiple
predictable outputs by simply implementing an output array+loop in a few
places, I am going to work on it a little bit. The scheduler however...
ruby is new to me. like since last week.. To get around it I will implement
a similar 'hack' if you will, in the filters or directly with json for the
output in the jobs table until my project settles down and I will start to
learn ruby properly. Nice work btw. even with the tweaks, this project is
saving me from re-inventing the wheel.


Reply to this email directly or view it on GitHub
#30 (comment)
.

from codem-transcode.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.