Live data from Hacker News

StreamPot: Run FFmpeg as an API with fluent-FFmpeg compatibility, queues and S3

github.com

1–10 of 37 posts

Re: StreamPot: Run FFmpeg as an API with fluent-FFmpeg compatibility, queues and S3

#2
Seeing the need for polling the job status is off putting, especially for a js api that already is using async. If you _need_ to use polling, at least provide a convenience method I can just await. Better yet, add some signaling to the http api via eventsource or something.

Re: StreamPot: Run FFmpeg as an API with fluent-FFmpeg compatibility, queues and S3

#3

Seeing the need for polling the job status is off putting, especially for a js api that already is using async. If you _need_ to use polling, at least provide a convenience method I can just await. Better yet, add some signaling to the http api via eventsource or something.

Thank you! We do have one - `runAndWait`. I will shortly update the docs and I agree that using SSE would be more efficient than polling. Will add that next!

Re: StreamPot: Run FFmpeg as an API with fluent-FFmpeg compatibility, queues and S3

#4
post #3

Seeing the need for polling the job status is off putting, especially for a js api that already is using async. If you _need_ to use polling, at least provide a convenience method I can just await. Better yet, add some signaling to the http api via eventsource or something.

Thank you! We do have one - `runAndWait`. I will shortly update the docs and I agree that using SSE would be more efficient than polling. Will add that next!

Long polling would be cool!

Re: StreamPot: Run FFmpeg as an API with fluent-FFmpeg compatibility, queues and S3

#6

Seeing the need for polling the job status is off putting, especially for a js api that already is using async. If you _need_ to use polling, at least provide a convenience method I can just await. Better yet, add some signaling to the http api via eventsource or something.

Highly prefer and recommend websocket connections for polling. This is what I ended up doing for my side project's video encoding needs[1]. It lets me get silky smooth progress indicators on multiple encoding resolutions at once.

[1] https://github.com/jjcm/nonio-video-cdn/blob/master/route/en...

Re: StreamPot: Run FFmpeg as an API with fluent-FFmpeg compatibility, queues and S3

#7
post #5

Looks really cool. I've thought about building a business around ffmpeg myself. Btw, your self hosting link is broken.

Thanks! Oops, good spot. Updated it. This is where it was supposed to go https://docs.streampot.io/installation.html

Re: StreamPot: Run FFmpeg as an API with fluent-FFmpeg compatibility, queues and S3

#9
post #6

Seeing the need for polling the job status is off putting, especially for a js api that already is using async. If you _need_ to use polling, at least provide a convenience method I can just await. Better yet, add some signaling to the http api via eventsource or something.

Highly prefer and recommend websocket connections for polling. This is what I ended up doing for my side project's video encoding needs[1]. It lets me get silky smooth progress indicators on multiple encoding resolutions at once. [1] https://github.com/jjcm/nonio-video-cdn/blob/master/route/en...

Do you mean over* polling (instead of polling)? Polling (repeatedly asking the server) and pushing (the server telling you directly) are two different things; polling over WebSocket seems sort of weird.

Re: StreamPot: Run FFmpeg as an API with fluent-FFmpeg compatibility, queues and S3

#10
Somebody please bring fully functional ffmpeg to Android via F-Droid please, one which is not compiled against /storage/emulated/0/ like Termux, etc, are. Many users rely on multiple profiles and don't run anything in the primary profile. I know of nothing right now like this. No FFshare doesn't work for purpose as outlined.

Bonus if all of Termux can be fixed for secondary Android profiles,

Post reply on HN