C920 webcam h264 hardware encoder setting - javascript

I have webcam C920 that can output h264 (constrained baseline).
I want to stream this C920s h264 video to browser.
I use h264_live_player for streaming video.
h264_live_player is javascript library for h264 streaming to browser, but it can only decode baseline profile.
so I want to know how to change C920s output h264 profile.
if i can't change C920s output profile, please tell me how to streaming to browser from C920 no reencoding.

Try using motion. Look at this tutorial. If you do not need to stream to a web browser then VLC will also work and VLC is also cross platform. Look at this thread for instructions to use VLC.

Related

Record webRTC stream in mp4 using kurento media server

I am working on recording the video stream using WebRTC and Kurento Media server. The recording is working fine, but I am facing an issue.
The browser is storing the media in Webm format, which does not keep the metadata information. If I am recording a mobile webRTC stream in portrait mode, then the Kurento is recording that stream, but when I am playing that video, it's being played in landscape mode everywhere.
I have done some R&D on it and found the Webm does not keep the metadata information, so I have record the video in mp4 format.
I have read the documentation of the Kurento media server but didn't found anywhere that how to record the video in mp4 format.
Can anybody tell me how we can do that?
I have tried the following things
- Changed the file extension to mp4
Please try mentioning the recorder end-point profile spec (webm, MP4, MKV)
You can post your code as well so that corrections can be suggested.
You can also follow this code https://github.com/Kurento/kurento-tutorial-js/blob/master/kurento-recorder/js/index.js
At line number 112 you can include profile based on the specs used in kurento-utils.js

How to see a livestream file with webrtc into html5 page

I need to embed a live video with url rtsp. I'm using webrtc, but I'm able to get just local camera live video. I'm streaming with vlc server several files, and I need to receive this video with rtsp live protocol due to network latency. How can I put it into html5 page using webrtc api?
I think webRTC is not the technology you are looking for.
What you need is just to use a HTML5 video element to receive the streaming. Take a look at https://github.com/Streamedian/html5_rtsp_player/wiki/HTML5-RTSP-Player

Show a RTSP stream in html

I want to show a stream of an IP camera in html website.IP camera send data with RTSP protocol. I used some codes like html5 RTSP && Google WebRTC. But I feeled these codes can't receive and show RTSP streams and not worked for me. I tested some methods that uses VLC but I wan't to show stream without using VLC and I want to implement this program as client side program.
There is no simple and good way to play RTSP directly in browser. It is possible to do it on old Android devices, on some STB or with VLC plugin which is not a good way to go.
You will have to install media server that will convert your RTSP to something for browser.
It is possible to take ffmpeg that will convert your rtsp to hls and have a live video translation from camera, but if you want more feature like stream management or recording you can look at commercial options like Flussonic (I'm working on it) or Wowza.
You can also google something like "streaming server" and look for RTSP and HLS/RTMP protocols in specification.
There has media source extensions(MSE) can support live h264 with very low latency(Chrome Firefox Safari below 1s). but there need a gateway to convert RTSP to fragmented MP4.

Embed video in HTML page

I have an IP CAM which provides access to the audio/video using RTSP protocol. I can see the video using VLC player but I would like to be able to embed this video in a HTML5 page.
I know most browsers cant handle RTSP with HTML5. So I was wondering: is there any PHP code that I can use to parse RTSP video and output a compatible Chrome video format that I can play using <video> tag? Is there someway PHP output some stream of data so I can send it to the browser parse it into HTML5 video container?
You could use ffmpeg to trascode from RTSP and HLS and then display that in a browser which supports it:
Something like this will give you a starting point, though you may need to tune it. If you're going off your own local network though you may need to use a 3rd party streaming solution like Azure Media Services or Wowza
ffmpeg -i rtsp:<stream> -fflags flush_packets -max_delay 1 -an -flags -global_header -hls_time 1 -hls_list_size 3 -hls_wrap 3 -vcodec copy -y <file>.m3u8

Transcode RTSP for HTML5 Video tag in browser

I have an rtsp stream with MP4 video codec and G711 audio codec. I need to get it work without FlashPlugins.
Video stream in WEB is a frustrating thing.
Is there a possibilty to convert in browser with javascript my Mp4 video and G711 audio in a webm or a h264 codec on fly to use it as a stream for video html5 element or any player!
The problem is, flowplayer does not support rtsp stream, vlc does not work in chrome and flash does not support into android.
so there are many many problems to get it work.
So if there is a possbility to transocde the rtsp stream on the client perhapse there is a possibility to resolve this problems.
thx
Firstly - MP4 is not a video codec but a container. So the question is the RTSP server really streaming MP4 (which I doubt but it might) or maybe you have confused MP4 with H.264.
Chrome and Firefox both accept live video streams in the fragmented MP4 and WebM (which is irrelevant in this case) video containers. So if you really already have MP4 payload you can simply unpack it from the RTSP stream and forward to the browser. If you have H.264 you will have to perform muxing of the raw H.264 video stream into an MP4 container together with the audio (I am not sure if G711 is supported by browsers, I doubt it so audio might need to be transcoded). The free option is to setup FFmpeg to transcode rtsp to fragmented MP4 (there are lots of examples for this, just Google) or if you are looking for a commercial product our company has just released an video surveillance product that can offer HTML5 compatible live streaming from RTSP cameras. If you have any interest in the commercial product leave a comment.

Categories