geeksville / Micro-RTSP

A RTSP video server intended for very small CPUs (ESP32 etc)
MIT License
789 stars 203 forks source link

Stream to ip address #46

Open filzek opened 2 years ago

filzek commented 2 years ago

Hi, How could we stream from esp32 to a ip address?

Like I want the esp32 cam to stream to myfeedvideo.io

How could IRTSP to a particular address?

V45370 commented 2 years ago

I used https://github.com/easytarget/esp32-cam-webserver to do this. You need a domain to point to your static ip address. If you use a router you need port forwarding to (ESP32CAM-IP-ADDRESS):(PORT(default is 81)) and you are done.

filzek commented 2 years ago

I took a read on https://github.com/easytarget/esp32-cam-webserver but I don't find where it it show how to send the video to an IP it doesn't have that option there.

What I mean is not to a externa cliente connect to the esp32 but that esp32 create a video broadcast to an external IP.

Like you program esp32 to broadcast the video a cliente ip:port, to if you open the application in the wild (internet) you will get the video feed.

Did you understand ?

Em sex., 11 de mar. de 2022 10:46, V45370 @.***> escreveu:

I used https://github.com/easytarget/esp32-cam-webserver to do this. You need a domain to point to your static ip address. If you use a router you need port forwarding to :<PORT(default is 81)> and you are done.

— Reply to this email directly, view it on GitHub https://github.com/geeksville/Micro-RTSP/issues/46#issuecomment-1065128368, or unsubscribe https://github.com/notifications/unsubscribe-auth/AG7JIU3CT2LMLZ7ROYOVJR3U7NFCVANCNFSM5QOF37UQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you authored the thread.Message ID: @.***>

Bra1nK commented 2 years ago

That's not how streaming works, you receive not send, perhaps if you explained what you were trying to achieve.

On 11 March 2022 16:08:23 GMT, filzek @.***> wrote:

I took a read on https://github.com/easytarget/esp32-cam-webserver but I

don't find where it it show how to send the video to an IP it doesn't have

that option there.

What I mean is not to a externa cliente connect to the esp32 but that esp32

create a video broadcast to an external IP.

Like you program esp32 to broadcast the video a cliente ip:port, to if you

open the application in the wild (internet) you will get the video feed.

Did you understand ?

Em sex., 11 de mar. de 2022 10:46, V45370 @.***>

escreveu:

I used https://github.com/easytarget/esp32-cam-webserver to do this. You

need a domain to point to your static ip address. If you use a router you

need port forwarding to :<PORT(default is 81)> and you are done.

Reply to this email directly, view it on GitHub

https://github.com/geeksville/Micro-RTSP/issues/46#issuecomment-1065128368,

or unsubscribe

https://github.com/notifications/unsubscribe-auth/AG7JIU3CT2LMLZ7ROYOVJR3U7NFCVANCNFSM5QOF37UQ

.

Triage notifications on the go with GitHub Mobile for iOS

https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675

or Android

https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you authored the thread.Message ID:

@.***>

-- > Reply to this email directly or view it on GitHub:

https://github.com/geeksville/Micro-RTSP/issues/46#issuecomment-1065255840

You are receiving this because you are subscribed to this thread.

Message ID: @.***> -- Sent from my Samsung S9 Plus with K9 Mail

V45370 commented 2 years ago

If only 1 person is going to view the stream, you can do it as I explained above. Right now I am viewing my stream with mydomain.com:81/view. However if you need to stream to more people I guess you could use ffmpeg from another PC in the network to upload to youtube for example. This https://gist.github.com/olasd/9841772 seems promising but I haven't tested it.

filzek commented 2 years ago

So, do you think its possible to do it?

Like an app open in the smartphone over 4g or wifi it do a websocket to keep the IP and PORT open for external access, send to the cloud its IP address and a request. The device receive the mqtt or a get/post to the cloud and receive the IP address and video feedr equest. the device start to broadcast to the IP address and port of the smartphone.

so its quite simple and works under any condition.

Erick MacDonald Filzek Phone / WhatsApp: +55 (19) 981416414

On Fri, Mar 11, 2022 at 1:44 PM Brian Kelly @.***> wrote:

That's not how streaming works, you receive not send, perhaps if you explained what you were trying to achieve.

On 11 March 2022 16:08:23 GMT, filzek @.***> wrote:

I took a read on https://github.com/easytarget/esp32-cam-webserver but I

don't find where it it show how to send the video to an IP it doesn't have

that option there.

What I mean is not to a externa cliente connect to the esp32 but that esp32

create a video broadcast to an external IP.

Like you program esp32 to broadcast the video a cliente ip:port, to if you

open the application in the wild (internet) you will get the video feed.

Did you understand ?

Em sex., 11 de mar. de 2022 10:46, V45370 @.***>

escreveu:

I used https://github.com/easytarget/esp32-cam-webserver to do this. You

need a domain to point to your static ip address. If you use a router you

need port forwarding to :<PORT(default is 81)> and you are done.

Reply to this email directly, view it on GitHub

< https://github.com/geeksville/Micro-RTSP/issues/46#issuecomment-1065128368 ,

or unsubscribe

< https://github.com/notifications/unsubscribe-auth/AG7JIU3CT2LMLZ7ROYOVJR3U7NFCVANCNFSM5QOF37UQ

.

Triage notifications on the go with GitHub Mobile for iOS

< https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675

or Android

< https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub .

You are receiving this because you authored the thread.Message ID:

@.***>

-- > Reply to this email directly or view it on GitHub:

https://github.com/geeksville/Micro-RTSP/issues/46#issuecomment-1065255840

You are receiving this because you are subscribed to this thread.

Message ID: @.***>

Sent from my Samsung S9 Plus with K9 Mail

— Reply to this email directly, view it on GitHub https://github.com/geeksville/Micro-RTSP/issues/46#issuecomment-1065289880, or unsubscribe https://github.com/notifications/unsubscribe-auth/AG7JIUZUCBXQZLYUN66DIC3U7N2AJANCNFSM5QOF37UQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you authored the thread.Message ID: @.***>

Bra1nK commented 2 years ago

It probably varies with mobile phone providers but mine gives you a private ip address (10.0.0.0/8 range) which is normally not routable so you can't run a server reachable from the Internet. Like I said it usually works the other way round, the RTSP stream is the server and the mobile client connects to it.

On 11 March 2022 19:58:12 GMT, filzek @.***> wrote:

So, do you think its possible to do it?

Like an app open in the smartphone over 4g or wifi it do a websocket to

keep the IP and PORT open for external access, send to the cloud its IP

address and a request.

The device receive the mqtt or a get/post to the cloud and receive the IP

address and video feedr equest.

the device start to broadcast to the IP address and port of the smartphone.

so its quite simple and works under any condition.

Erick MacDonald Filzek

Phone / WhatsApp: +55 (19) 981416414

On Fri, Mar 11, 2022 at 1:44 PM Brian Kelly @.***>

wrote:

That's not how streaming works, you receive not send, perhaps if you

explained what you were trying to achieve.

On 11 March 2022 16:08:23 GMT, filzek @.***> wrote:

I took a read on https://github.com/easytarget/esp32-cam-webserver but I

don't find where it it show how to send the video to an IP it doesn't have

that option there.

What I mean is not to a externa cliente connect to the esp32 but that

esp32

create a video broadcast to an external IP.

Like you program esp32 to broadcast the video a cliente ip:port, to if you

open the application in the wild (internet) you will get the video feed.

Did you understand ?

Em sex., 11 de mar. de 2022 10:46, V45370 @.***>

escreveu:

I used https://github.com/easytarget/esp32-cam-webserver to do this.

You

need a domain to point to your static ip address. If you use a router

you

need port forwarding to :<PORT(default is 81)> and you are done.

Reply to this email directly, view it on GitHub

<

https://github.com/geeksville/Micro-RTSP/issues/46#issuecomment-1065128368

,

or unsubscribe

<

https://github.com/notifications/unsubscribe-auth/AG7JIU3CT2LMLZ7ROYOVJR3U7NFCVANCNFSM5QOF37UQ

.

Triage notifications on the go with GitHub Mobile for iOS

<

https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675

or Android

<

https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub

.

You are receiving this because you authored the thread.Message ID:

@.***>

-- >

Reply to this email directly or view it on GitHub:

https://github.com/geeksville/Micro-RTSP/issues/46#issuecomment-1065255840

You are receiving this because you are subscribed to this thread.

Message ID: @.***>

--

Sent from my Samsung S9 Plus with K9 Mail

Reply to this email directly, view it on GitHub

https://github.com/geeksville/Micro-RTSP/issues/46#issuecomment-1065289880,

or unsubscribe

https://github.com/notifications/unsubscribe-auth/AG7JIUZUCBXQZLYUN66DIC3U7N2AJANCNFSM5QOF37UQ

.

Triage notifications on the go with GitHub Mobile for iOS

https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675

or Android

https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you authored the thread.Message ID:

@.***>

-- > Reply to this email directly or view it on GitHub:

https://github.com/geeksville/Micro-RTSP/issues/46#issuecomment-1065458158

You are receiving this because you commented.

Message ID: @.***> -- Sent from my Samsung S9 Plus with K9 Mail

garudaonekh commented 2 years ago

Hello, I am also finding solution for this---stream to a public IP.

For example, I can setup an RTSP server and let the ESP32-Cam to stream to that server.

wiwidnadw commented 2 years ago

Here i have project example to stream (esp32cam) into ip address. So this one called as IPCamera, but i using other interface (VB.net). Hope it refresh viewpoint

https://youtu.be/mogghaQbEy8

filzek commented 2 years ago

This is not what the subject are asking ti.

You are posting a request to the esp32, what we want is that a esp32 send the images to an IP address and port without receiving any request!

Em ter., 4 de out. de 2022 19:29, wiwidnadw @.***> escreveu:

Here i have project example to stream (esp32cam) into ip address. So this one called as IPCamera, but i using other interface (VB.net). Hope it refresh viewpoint

https://youtu.be/mogghaQbEy8

— Reply to this email directly, view it on GitHub https://github.com/geeksville/Micro-RTSP/issues/46#issuecomment-1267661070, or unsubscribe https://github.com/notifications/unsubscribe-auth/AG7JIUZZFLN26ABWAQPJ7MTWBSVV5ANCNFSM5QOF37UQ . You are receiving this because you authored the thread.Message ID: @.***>