RTP Live video streaming
Added by George McFie almost 7 years ago
Hi,
I would like to include RTP video streaming into my Wt-4 server, and was hoping that I could get some guidance on how to achieve this.
In my particular instance the web server will only ever be accessed from a browser running on the same (Linux) machine as the web server itself. In other words, I could just implement this as a stand-alone GUI application, but for a variety of other reasons I would prefer to use Witty.
I see from previous questions on the subject that Wt-4 doesn't support RTP directly, but perhaps there is another way - i.e. by embedding a third party video player into the webpage?
Any comments, suggestions, references, or observations would be welcome.
Thank you in advance.
Replies (2)
RE: RTP Live video streaming - Added by Wim Dumon almost 7 years ago
George,
As far as I know, there's no way to receive UDP in JS. The closest thing would be WebRTC.
Also for plugins, as far as I know NPAPI is getting much less love lately, so I guess the options will be very limited.
Maybe we actually have to go through the effort of finding out how to stream live video through WebRTC in a browser using Wt :)
Wim.
RE: RTP Live video streaming - Added by Cemal DEMİR almost 7 years ago
ffmpeg.exe set source ip camera and set output the hls file with playlist.
ffmpeg -i rtsp://username:password
192.168.1.64:554/Streaming/Channels/101 -c:a aac -c:v copy -hls_list_size 65535 -hls_time 2 -f segment -segment_time 1 -segment_format mpegts -segment_list_flags +live -segment_list test/test2.m3u8 -segment_list_type m3u8 test/streamX%%01d.ts@
this script is run ffmpeg.exe and generating a lot of .ts file and indexed it in.m3u8. now you can link *.m3u8 file in your Wt Application.
Actually I create an application that is controlling ffmpeg.exe command line arg and you can run multiple ffmpeg.exe. args is stored in database check it per minute for start real time streaming.