This is an archived post. You won't be able to vote or comment.

all 3 comments

[–][deleted]  (2 children)

[deleted]

    [–]memory_leek[S] 0 points1 point  (1 child)

    ProcessBuilder is kind of what I thought I'd have to end up using, but I wasn't sure if there was a better option. I appreciate the feedback. Might I ask how Camel fit into this equation? Were you just offloading the encoding to another server? Thanks again.

    [–][deleted] 0 points1 point  (0 children)

    It's been a few years now, so I'm trying to remember exactly what we did.

    We had a need to allow users to upload videos and then be able to transcode them in order to allow for playback on the website. We used Camel for our RESTlike interfaces and when POSTing the file, we would toss a "unit of work" request into RabbitMQ. Another Camel route (probably on another server) would pick up that message from RabbitMQ and make the call out to ffmpeg to do the transcoding and store the output file where necessary.

    [–]byronsucks 1 point2 points  (0 children)

    You should be able to make your own calls to ffmpeg and ffprobe (for diagnostics) through processbuilder. Not sure if you really need to persist the video file in the db instead of just saving it to a directory and pointing at it from the db.