alexmb7 2022-08-08 11:23:39
but
djdisodo1 2022-08-08 11:23:42
so what i’m going to do is
alexmb7 2022-08-08 11:23:51
u need somehow one ffmpeg not 100
djdisodo1 2022-08-08 11:24:09
if i connect the page
djdisodo1 2022-08-08 11:24:17
i mean
djdisodo1 2022-08-08 11:24:23
if i connect to the http link
alexmb7 2022-08-08 11:24:28
ye
djdisodo1 2022-08-08 11:24:35
that http link looks like a normal mp4 file
djdisodo1 2022-08-08 11:24:45
but actually mp4 file is nonexistence
alexmb7 2022-08-08 11:25:00
we can try
djdisodo1 2022-08-08 11:25:00
and data is coming from encoded video of your real-time screen
alexmb7 2022-08-08 11:25:34
we can do very simple httpd
thats sends on every request this, not just on specific url
thats sends on every request this, not just on specific url
.. once it works
djdisodo1 2022-08-08 11:26:06
alexmb7 2022-08-08 11:25:34
we can do very simple httpd
thats sends on every request this, not just on specific url
thats sends on every request this, not just on specific url
.. once it works
since ffmpeg output is single stream
djdisodo1 2022-08-08 11:26:17
i don’t think it will allow multiple connections
alexmb7 2022-08-08 11:26:19
so, u need a listener
a parser minimally
and a ffmpeg cmd
a parser minimally
and a ffmpeg cmd
djdisodo1 2022-08-08 11:26:25
and i don’t need multiple connections
alexmb7 2022-08-08 11:26:29
k
djdisodo1 2022-08-08 11:27:14
so i have to first figure out why my netcat webserver failed
djdisodo1 2022-08-08 11:27:28
it can download a video
djdisodo1 2022-08-08 11:27:35
but can’t play while downloading
alexmb7 2022-08-08 11:31:22
probably some ffmpeg opt missing
alexmb7 2022-08-08 11:31:35
a ‘make it streamable’ one
djdisodo1 2022-08-08 11:31:58
i don’t think so
djdisodo1 2022-08-08 11:32:07
so i’ll test the same file http://techslides.com/demos/sample-videos/small.mp4
djdisodo1 2022-08-08 11:32:14
this one on my netcat webserver
djdisodo1 2022-08-08 11:33:41
alexmb7 2022-08-08 11:31:35
a ‘make it streamable’ one
$ cat header
HTTP/1.1 200 OK
PC@DESKTOP-S799JDR ~
$ cat header a.mp4 | nc -l -p 1500 -c
djdisodo1 2022-08-08 11:33:54
this is the command i ran to host video to http
alexmb7 2022-08-08 11:34:47
ih
alexmb7 2022-08-08 11:34:52
u need headers
djdisodo1 2022-08-08 11:34:57
oh this one works
alexmb7 2022-08-08 11:35:04
Content-Type: bla/mp4
djdisodo1 2022-08-08 11:35:05
maybe video is too small to test
djdisodo1 2022-08-08 11:35:10
let me get other mp4 file
alexmb7 2022-08-08 11:35:12
dunno which code, file tool knows
djdisodo1 2022-08-08 11:35:37
alexmb7 2022-08-08 11:35:12
dunno which code, file tool knows
and also