bairav

bairav

How to handle(long running) chunked post request

We are developing ffmpeg processes monitor, in that , what is the best way to handle long running chunked post request.

from FFMPEG manpage:-
-progress url ( global )

Send program-friendly progress information to url.

Progress information is written approximately every second and at the end of the encoding process. It is made of “key=value” lines.

I captured HTTP request that ffmpeg performs for progress:

POST /progress.php HTTP/1.1
Transfer-Encoding: chunked
User-Agent: Lavf54.29.104
Accept: /
Connection: close
Host: localhost

8f
frame=91
fps=0.0
stream_0_0_q=23.0
total_size=205437
out_time_ms=4388571
out_time=00:00:04.388571
dup_frames=1
drop_frames=0
progress=continue

92
frame=210
fps=209.5
stream_0_0_q=11.0
total_size=569264
out_time_ms=9357642
out_time=00:00:09.357642
dup_frames=1
drop_frames=0
progress=continue

92
frame=368
fps=244.8
stream_0_0_q=4.0
total_size=814739
out_time_ms=15952109
out_time=00:00:15.952109
dup_frames=1
drop_frames=0
progress=continue

94
frame=440
fps=219.0
stream_0_0_q=10.0
total_size=1921815
out_time_ms=18924263
out_time=00:00:18.924263
dup_frames=1
drop_frames=0
progress=continue

Where Next?

Popular in Questions Top

9mm
I am constructing a JSON object (map) and I need to conditionally set a field. I’m trying to write proper elixir-way code… and I’m at a l...
New
Tee
can someone please explain to me how Enum.reduce works with maps
New
belgoros
I’m not a pro in using Regex and can’t figure out why the following behaviour happens, especially if we take into account the difference ...
New
JulienCorb
I am trying to implement my new.html.eex file to create new posts on my website. new.html.eex: <h1>Create Post</h1> <%= ...
New
RisingFromAshes
I’ve read in another post that it may be possible with a router helper - but I couldn’t find an appropriate one, and tbh, I’m still just ...
New
fayddelight
I tried installing elixir 1.11.2 erlang 23.3.4 via asdf in my zsh shell. Enabled the versions locally and globally. When I list them ...
New
chensan
I have a User schema with a :from_id field set to type :string: defmodule TweetBot.Repo.Migrations.CreateUsers do use Ecto.Migration ...
New
rms.mrcs
Hi, I need to transform a list of numbers into a map where the keys are the indexes and the values are the original values of the list. ...
New
Brian
What is the proper way to load a module from a file in to IEX? In the python world, doing something like this pretty standard: from ....
New
dotdotdotPaul
Okay, I’m having a heck of a time trying to figure out how to best handle the validation of belongs_to associations in Ecto. I’m sure I’...
New

Other popular topics Top

9mm
I am constructing a JSON object (map) and I need to conditionally set a field. I’m trying to write proper elixir-way code… and I’m at a l...
New
sen
Hi All, I set a environment variables in dev.exs , like below code. when i start server, how can i set the ${enable} value? thanks. d...
New
skosch
To my knowledge, put_in, Map.update etc. all have the one limitation of not automatically creating intermediate keys when needed (for exa...
New
jononomo
I am trying to figure out how Mix knows whether the environment is test, dev, or prod – where is this set? Thanks.
New
Fl4m3Ph03n1x
About me? ( if you have nothing better to do than reading about some random guy in the internet :stuck_out_tongue: ) Hello all, this is ...
New
vonH
When I run the Plug and I recompile I wind up having to use Ctrl C to quit iex and start again. Witht the help of rlwrap I can use the cu...
New
aalberti333
As the title describes, I’m trying to run Enum.map() over a list of key/value pairs, where the value is a map. My data looks like this: ...
New
klo
Got a question about when to concat vs. prepending items to list then reversing to achieve appending. So i know lists boil down to [1 | ...
New
Brian
What is the proper way to load a module from a file in to IEX? In the python world, doing something like this pretty standard: from ....
New
JorisKok
I have a server on AWS, and was running a load test using artillery. When looking at the Phoenix dashboard I see the Ports going to 100% ...
New

We're in Beta

About us Mission Statement