Git Product home page Git Product logo

Comments (6)

tieleman avatar tieleman commented on July 21, 2024

Hi, glad you find it useful!

As for monitoring a folder, you would have to write a script yourself to watch a folder for any changes and then create a job for each new file. Then, after the job has completed you can remove the source file. Codem does not provide this functionality by itself, most people want to integrate it in their own workflow where they already have other processes taking care of ingest and/or delivery.

For example, both Ruby and NodeJS provide easy ways to hook into filesystem events so you get notified if anything changes. For Ruby, check out the "listen" gem (https://github.com/guard/listen), for NodeJS, check out fs.watch (http://nodejs.org/api/fs.html#fs_fs_watch_filename_options_listener).

from codem-transcode.

deedos avatar deedos commented on July 21, 2024

Ok, thanks.

Some other thing: I need to execute a filter-complex action with ffmopeg, which requires 2 files as inputs (.mov and .png). How could I do that with transcodem ?

thanks again

from codem-transcode.

tieleman avatar tieleman commented on July 21, 2024

It might, but depends on the kind of command you are using. Can you post the ffmpeg command? I presume you mean to use it as some kind of watermark/overlay?

from codem-transcode.

deedos avatar deedos commented on July 21, 2024

Sure:

ffmpeg -i input.mp4 -i my-overlay.png -filter_complex '[0:v][1]overlay=0:0[outv]' -map [outv] -map 0:a -c:a aac -ab 192k -vcodec libx264 -vb 9000k -strict experimental $file.mp4

from codem-transcode.

deedos avatar deedos commented on July 21, 2024

I did try a curl command with that, ffmpeg completed the job but the overaly was not apllied: I used:

curl -d '{"source_file": "myfile.mp4","destination_file":"myout.mp4","encoder_options": "-i my-overlay.png -filter_complex '[0:v][1]overlay=0:0[outv]' -map [outv] -map 0:a -c:a aac -ab 192k -vcodec libx264 -vb 9000k -strict experimental"}' http://localhost:8080/job

I do have another two question about the codem-schedule:
1 - When i call jobs from curl, like these one above, it does not show it in the dashboard.
2 - I do create a new job though the we browser and it shows as "scheduled" in the dashboadr bit it never starts.. how do i trigger it ? Already have a working host in it. Is there other documentaion about the schedule ?

many thanks in advance

from codem-transcode.

deedos avatar deedos commented on July 21, 2024

Hi again..

I did suceed with all 3 tasks..

For the overlay, using the preset without quotes did the trick: -i /media/dados/md.png -filter_complex [0:v][1]overlay=0:0[outv] -map [outv] -map 0:a -acodec libfaac -ab 192k -vcodec libx264 -vb 9000k

for 1: using the codem script documented here I could achieve! http://transcodem.com/documentation/codem.html
for 2 : I did realize how to trigger actions and updates with the curl command in cron ;)

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.