http streaming using vlc, apache web server - apache

I was wondering if you could help me in the following scenario.
Currently I am receiving a udp stream in H.264 format and would like to use vlc to transcode it to a mobile device format and turn it into a stream file which I can then serve using an apache web server.
Does anyone have a tutorial on how to accomplish this?
Thank you.

Related

Apache + Nginx Server With RTMP Live Streaming

I am using CWP Pro (Control Web Panel)
I have selected webserver = Apache + Nginx
I want to install RTMP and want to live stream on my website with obs studio.
My queries are =
Do I need to install NGINX even if I am using Apache+Nginx server ?
Maximum tutorials / search results are showing NGINX + RTMP installation guide. Do I need to install NGINX too ? Or only RTMP module ?
After installing RTMP, I have created url for streaming (e.g. rtmp://my_ip_address/live/stream_key), and added it in OBS studio. Started OBS streaming. But I am stuck at Code To Embed this live streaming in my html page of my website. How Can I EMbed it with video player lie video.js or other suggestions ?
Please consider about this solution in two parts:
CWP, the admin control dashboard, to manage your system and live streams.
Media System, the live streaming system, to publish by OBS, to play the live stream by some proper protocols.
Generally, there are some HTTP Callback and HTTP-API between the two system, so it's better to deploy and build them separately.
For Media System, the generally workflow is:
Generate the live stream URL by your CWP system, like the RTMP url you mentioned.
Use encoder, OBS as such, to publish the RTMP stream. RTMP is the widely used protocol by encoder, SRT is an optional, WebRTC is also able to publish live stream now, see this post.
Depends on your scenarios, H5 or Mobile, use some players to play the live stream. Well, it's complex, but RTMP definitely doesn't work, please use HLS/HTTP-FLV/DASH/WebRTC, see this post.
There are some commercial solutions too, which does the same things.

python - Gstreamer live video feed to webpage

What I am trying to do:
I have a live stream coming from my raspberry pi and I would like to view it on a webpage being served from a server which consumes the stream from the r_pi. What would be the best way to accomplish this?
Also It is preferred to have low latency.
I have looked at:
https://gist.github.com/vo/a0cc9313861888ad5180f442a4b7bf48
which works but there is a large latency and doesn't work on chrome. Any ideas?
This also is an option:
https://blog.miguelgrinberg.com/post/video-streaming-with-flask
But it uses mjpeg. I am curious if I can directly consume a stream either on the server or on the client.
I guess I can do client side consumption by having the server feed the client the html page directly (although I don't know the implications of having a gstream pushing video to a tcpserver [tcpserversink]).
Could I just take the stream convert it to a webm and feed this webm to the client?

How to record video using Kurento in Easyrtc?

I'm new to Webrtc and Javascript. I'm trying to build a video chat application with recording functionality on the server. Currently, I use Easyrtc as Webrtc wrapper to provide the video chat functionality and it's working great. I also setup TURN server on the cloud using Coturn and use this on Easyrtc config.
I would now like to add video recording on the server and learned that this is achieved via media server. I'm keeping an eye on Kurento for this.
I'm just confused with media server in general.
Can Media Server replace TURN Server?
If TURN and Media server are required, can Kurento be installed on the same server as Coturn?
Can I have Easyrtc and add Kurento for video recording? If yes, how can Kurento record the video stream from Easyrtc/Coturn? Would appreciate pseudocode if possible.
Am I on right track? Any other advice to consider?
Should highly appreciate your comments.
Thank you!

How connect OBS with VPS which has ffmpeg for live streaming?

Helo I've a VPS on Centos 7 with Apache and ffmpeg.
How can I do live streaming on this server using OBS on my local PC to encode and publish to this server and after embed this live video in my wordpress website to allow every device to watch the live video?
Thank you all
OBS is using RTMP protocol. You would need a server that can serve RTMP, Nginx web server has a plugin that let's you do that. There is no need to use Apache or FFMPEG, Nginx would be alot easier.

RTSP over SSL (RTSPS)

We have a video streaming (video on demand) server implemented using wowza streaming engine. Clients (android application, web browser) access the stream using RTMP (web browser) and RTSP (android application). As we have requirement that the streaming should be over SSL, as web browser's player (jw player) supports RTMPS, I have configured wowza to support RTMPS and tested the functionality. But we also need to support RTSP over SSL (RTSPS). I have read that wowza doesn't support RTSPS (ref: https://www.wowza.com/forums/showthread.php?34002-RTP-RTSP-over-SSL). Then we need to terminate the SSL on ELB itself(our video streaming server is behind an ELB).
We are using ffmpeg player in android player. Under this link there is nothing mentioned regarding RTSPS or RTSP over SSL. Just I am wondering whether such a protocol exists ?. If so, is there any android player or any other player I can use for testing RTSPS ?
Please go through the below link to configure your server to accept secured connection
[https://www.wowza.com/docs/how-to-get-ssl-certificates-from-the-streamlock-service#rtmpsPlayback][1]
Cross compile your ffmpeg to support openssl library.
Push your video stream to wowza using "rtsps"
eg:
ffmpeg -re -i -acodec copy -vcodec copy -f rtsp
rtsps://username:password#:443/live/myStream
I was recommend place a LB infront of my Wowza for SSL offloading so you can load the m3u8 over SSL. I was also told you can do that quite easily using HA Proxy for example. It is explained how to accomplish this here for RTMP but the same can obviously done with HTTP:
https://github.com/arut/nginx-rtmp-module/issues/457#issuecomment-250783255
Note, I have not tried this yet and I am unclear on exactly the proper use scenario. Hope this is helpful.
You can add a hostport to enable Streaming RTP/RTSP over SSL
<HostPort>
<Name>Default Secure Streaming</Name>
<Type>Streaming</Type>
<ProcessorCount>${com.wowza.wms.TuningAuto}</ProcessorCount>
<IpAddress>*</IpAddress>
<Port>1937</Port>
<HTTPIdent2Response></HTTPIdent2Response>
<SSLConfig>
<KeyStorePath>${com.wowza.wms.context.VHostConfigHome}/conf/keystore.jks</KeyStorePath>
<KeyStorePassword>somePassword</KeyStorePassword>
</SSLConfig>
...
</HostPort>
You can playback over RTSPS with Wowza Streaming Engine.
With your SSL certificate in place, try this to test playback using the sample file provided in [install-dir]/content/sample.mp4 and the provided vod application.
ffplay rtsps://[your-wowza/cert-domain]:443/vod/mp4:sample.mp4