Giter Club home page Giter Club logo

Comments (4)

jg-development avatar jg-development commented on May 30, 2024 1

Hi,
I want to use the container as a permanent container too. Maybe it is possible to add another tag,
with a permanent CMD like "CMD exec /bin/bash -c "trap : TERM INT; sleep infinity & wait"".
The background for me is the convert of a list of files found by the "find" command.
For now, this does not work very easy.
Greetings jan

from ffmpeg.

tuomas2 avatar tuomas2 commented on May 30, 2024

ffmpeg is a command line application, not a service.

Here is how I run it

#!/bin/sh
docker run -it -v=$(pwd):/tmp/workdir jrottenberg/ffmpeg:latest $@

-> then use it like ffmpeg was installed on your machine normally.

from ffmpeg.

sidgrafix avatar sidgrafix commented on May 30, 2024

Thank you for the response (had my hopes up) - but that pretty much did the same. Started, then exited!

I understand ffmpeg is a command line application - I have it installed on a dedicated server which is used by one of the sites hosted on that server to transcode uploaded video via Drupal 7 (which works wonderfully, and has been active for several years now.

I'm trying to get everything from that server into docker and I'm down to this last hickup - ffmpeg

I appreciate the help, but looks like I'm just going to have to compile and install ffmpeg directly to the VM - seams this will be the only way to get the results I need, which is unfortunate being I wanted everything portable and instantly deploy-able.

I've even tried a few of the other docker containers out there for ffmpeg with the same results (starts, then exits and the site can't see it. The qt-faststart image I found runs and the site can connect to that, but no ffmpeg containers I've tried doesn't seam to work - as I would expect ffmpeg to work)

Was hoping someone had the magic info here! From what I see with this ffmpeg container is it needs to be executed with when you want to transcode and isn't listening otherwise at least from the documentation examples, that is the feeling I've gotten. Either that or I'm completely missing something (which is possible considering I've been stuck in a terminal for days trying to work this out)

If you have any other suggestions, I'm all ears!

Thanks again..

from ffmpeg.

GnaphronG avatar GnaphronG commented on May 30, 2024

Hi @sidgrafix,
If you want to have the ffmpeg container running all time and being able to pass it parameters you might want to look at :https://github.com/alexellis/faas

I listen over HTTP and pass parameters to a command line tool.

from ffmpeg.

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.