Linux server vlc to restream rtsp feed from ip cam - streaming

Im new i streaming so sorry for stupid questions, I tried to find info in web but nothing seems to work.
What Im trying to do
I have IP Cam that puts out RTSP stream to internet its IP is: rtsp://89.79.16.127:2550
When Im accessing that stream in windows VLC (win xp) every thing works (you can tryit for yourself)
Now I have dedicated linux debian serwer with ip: 109.95.153.133
I want to setup VLC serwer that will grap rtsp feed from camera IP and restream it via my serwer, so I can show that stream on my website (located on that dedicated serwer)
Can You help mi accomplish that?

Open VLC, select Open location from clipboard
Enter the proper camera url. For example, the axis M7014 streams in H264 so its url will look like rtsp://Camera-IP/axis-media/media.amp?codec=h264
Enter the login at the prompt or encode it to the rtsp link
rtsp://user:pass#Camera-IP/axis-media/media.amp?codec=INFO.)
If the stream is playing on the screen it means you support this codec. If not, then you shouldn't try to transcode it. For example, the axis M7014 uses an H264 variant that only quicktime fully supports.
The previous steps were to determine if you can transcode or if you should just forward the traffic.
Menu-Stream, select your RTSP as a source, then add an RTSP destination and stream. If you cant see the video play you can only forward it to a player that can. beware, some RTSP headers might get tweaked and disable the ability to pause video. I can looking for a fix right now.

Related

How do I record video from a remote webrtc camera?

I have a raspberry pi which has webrtc via uv4l2. It is awesome! I want to record the video from the camera on a server. It's your basic surveillance camera setup... central linux server with lots of storage space, remote IP cameras, etc. I've read dozens of pages and still can't figure it out. I tried all this kurento mumbo jumbo but it's all wretch an no vomit. It never gets there. What's the command to grabthe rpi video and dump it to disk? Please help!!!
UV4L already supports audio+video recording on the server (other than on the client), if you use it with Janus WebRTC. Have a look at the bottom of the Video Conference DEMO OS page for more details. At the moment, you will have to use the REST API to login into a Janus room and turn on/off the recording. The REST API is ideal if you want to control UV4L from a custom application, but there is also a panel which allows you to dynamically send REST requests to the UV4L server.

Need troubleshooting advice for H.264 stream (works in PC VLC, but not on CumulusTV App)

I have an HDMI source connected to a Chinese HD HDMI Encoder box. Playback to VLC on my PC works (open network stream http://192.168.0.150:80/hdmi)
Stream is NOT leaving my local network (on purpose)
I cannot get a signal to display on my Google Nexus Player or my NVidia Shield via Cumulus TV app. (The point being to integrate the feed into the Google Live Channels app) I have tried adjusting several of the settings to no avail. Should I be trying a specific format? I tried the Fiddler (didn't see anything descriptive in that tool) but still have no definitive answers. I am pretty sure this device only produces a H.264 bitstream, which works in the PC version of VLC, but I have no luck on my androidTV devices (to include VLC). I can also get playback on my android PHONE in VLC...
seeking help/ troubleshooting advice...
main stream settings are:
H.264 Level: high profile Encoding frame rate: 30[5-30]
Bitrate control:vbr Key interval: 30[5-200]
Encoded size: auto MinQp: 3[1-51] MaxQp: 32[MinQp-51]
MaxBitrate: 8000[16-12000]
Audio bitrate:192000 Audio channel:L+R
Audio Codec:AAC Resample:Disable Package:B HTTP: Enable /hdmi (begin with "/")
HTTP Port:80[1-65535] Change TS ID:Disable
transport_stream_id: 300[256-3800]pmt_start_pid: 480[256-3800]
stream_start_pid: 481[256-3800]RTSP: Disable Multicast IP: Disable
RTMP server ip: Disable ONVIF:Disable Enable
It looks like your encoder can stream three different formats:
Http - probably HLS
RTMP
RTP/RTSP
Now the question is which formats do your clients support and is the format on the above list.
You could install Fiddler on your PC (web app debugger) to verify that your streaming box actually serves HLS.
Since you know that VLC plays your stream you could try to install VLC on your Google Nexus player: https://play.google.com/store/apps/details?id=org.videolan.vlc

convert h.264 live stream to mjpeg live stream

most browsers can directly display a HTTP MJPEG Stream... while they can´t display h.264 via RTSP without the help of plugins...
I have a security cam that can only stream h.264 via RTSP so I can´t view the live video on my browser (nor iPhone etc.) and I do not want to install any APPs or Plugins...
But I have a Linux Server... I would like to retrieve the h.264 on my server and restream it in MJPEG, so I can browse to my server and see the MJPEG stream via HTTP...
After three days googling around and trying a lot with live555, ffmpeg, VLC and other tools I still did not get it running...
What is the right way to achieve my goal (with free tools like ffmpeg, live555 or whatsever needed...)?
thanks for any help.
I found the answer by myself... using vlc it was important to use quotation marks :sout'....' which I did not know... now it works as expected..

how does Webcam stream is usually done?

I am currently doing a small project and one of the components is to capture the webcam stream from one side to the other (Client-->Server). right now i have the stream from the Server as bytes and as far as i know i should transfer these bytes using UDP. My question is how to do that,
is it should be enclosed into a file and then transferred?
should i transfer the raw bytes?
should i create a buffer at the client side and when it gets full show it on the screen?
in short i would like to know how to implement the transfer of the stream from the server to the client (i need just on side).
You can stream a webcam to a client via multiple ways.
use Windows media Server/ Flash media Server. Push your webcam to the server by Windows Media Encoder or flash media encoder, and use the server live link to playback on the client(windows /Web).
Use Windows Media Encoder to stream your webcam to anyone without a server involved. when your encoder starts, you will get a URL to view your stream, which you can use to playback on the client(windows /Web).
use third party streaming services, where they give you a publishing point to publish your webcam stream, and use the link provided by them to playback on the client(windows /Web).. (check with brighcove or Mogulus by LiveStream
Hope this helps.

Mac/iPhone:Streaming video file to iPhone

I have a http streaming link which gives me .flv streaming feed. I want to convert that and access in my iPhone program. How can i do that? I want to have a desktop software like VLC and input this streaming feed URL and convert to iPhone supported and stream again to iPhone. I tried VLC with H.264 and Mpeg-1 audio, but seems to be it doesn't give the supported format, so as iPhone program doesn't play the video.
Could someone please guide me how can i setup a desktop software which can stream iPhone supported file?
Thanks in advance.
I think even the great VLC can't convert FLV on the fly...(or even do anything with FLV). As far as streaming goes, you'll probably be limited to the local network (Wi-Fi). I'd start with the simple way—create an ad-hoc file server on the desktop, then use AVPlayer's initWithURL method to find that video.
On the desktop, you could query the IP address of the computer, and ask the user to enter that URL (along with an optional port assignment and file component, like http://192.168.0.2:2234/streamingVideo.mp4) onto the iDevice, then convert to NSURL.
What exactly is the http streaming link? This matters a lot as in order to stream to the iPhone you need to use HTTP Live Streaming which requires some different bits than a typical flash media, or more properly RTMP, server. Typically you need two different streaming architectures or some expensive boxes.