Hi
I am setting up HTTP live streaming for iOS. It is a RTSP stream that I will get on UDP and pass it on to the MediaStreamSegmenter. My questions are:
-Do I need a Mac based server so that mediastreamsegmenter tool can actually do it job? If yes then do I have any alternatives?
-Can pass a remote machine address to mediastreamsegmenter to store the segmented files and Index file?
I cant really afford a server and a Mac server for that matter....
Replies appreciated.
You don't need a Mac server. In fact, if you use Amazon S3, you can combine that with cloudfront to do RTMP streaming of your files from S3 to the user. check it out: http://aws.amazon.com/cloudfront/#highlights
You can simply pass the stream address to the media stream segmenter, and you're good to go.
I found a cheap and easy way of doing it using VLC player. I had to compile VLC for this but you can look for latest nightly builds to get the LIVEHTTP plugin.
Related
I am tring to create a vehicle tracking system based on GPS & GMS using Teltonika FMB920 tracking device. I am a bit confused on following things:
How to setup the server for communicating with the device.
How to save the data sent from the device on the server.
Can I use any cloud platform like Azure or AWS IoT features for this purpose.
Any guidance in this regard will be really helpful for me.
How to setup the server for communicating with the device.
Teltonika fmbxxx typically send data using websockets TCP or UDP protocol. To setup the server correctly, the port that will be listening for data needs to be opened in the server and the server address and port need to be configured on the device with the teltonika configurator tool
how to update server settings in configurator tool
How to save the data sent from the device on the server.
This depends on your use case but a good idea could be to use nosql database to save the data from device received by the server since its easier to scale when data size grows and easy to query and read the data
Can I use any cloud platform like Azure or AWS IoT features for this purpose.
AFAIK yes you can. essentially what is need is server instance with a websocket client application that can receive data from tcp/udp protocol
I am trying to DDoS a local server on my PC in order to test out some anti-DDoS methods on my local server. I am trying to simulate several IoT devices that will do a http GET request to my server on loop, trying to attck the server, I have already written the code (a simple js GET request) and it does work on a physical IoT Device. I need to scale it up to multiple in an IoT network environment, and I have been trying to use IoTify.io, but i cant quite understand the template creation phase. Can someone explain or point me at a tutorial/documentation that could help. P.S. I have read through the documentation provided already and I do require more Info. Thank you.
I'm trying to stream video via RTSP in my ubuntu PC.
The video file to be streamed big_buck_bunny_h264.mov is located in following location of my PC :home/user/Downloads/
I'm using gstreamer to stream the video.
Below is the gstreamer command I'm trying :
gst-launch-1.0 rtsprc
location=rtsp://127.0.0.1:9000/home/user/Downloads/big_buck_bunny_h264.mov
latency=0 ! decodebin ! autovideosink
But I'm getting following error on terminal:
System error 111 (connection refused) , Failed to connect
Also I tried streaming via RTSP using VLC player . (open VLC -> Media -> Open Network Streaming -> Enter the url -> Play )
Im getting following error message:
Connection Failed, VLC could not connect to 127.0.0.1:9000. VLC is unable to open the URL.
From the above 2 scenarios (Gstreamer and VLC) , I assume there is something issue with the networking/network interface.
The Current OS I'm using is guest OS Ubuntu 14.04. (I'm acessing ubuntu via VMware Player from windows PC). Network is bridged between windows and ubuntu.
So is this the reason , why RTSP streaming is not working fine in my case ?
Is there any alternative ?
Also kindly tell me , whether I'm using the correct command and file path to stream the video via RTSP.
Do I need to setup LIVE555 streaming server to start streaming video at transmitter ?
Sorry but you have that all wrong..
To use rtspsrc does not mean you are streaming.. it means you are opening an existing stream(as client), as Florian mentioned you have to have running rtsp server which is serving the files to clients..
Clients can be - as you already tried - a vlc or gstreamer pipe with rtspsrc element, or some other players like mplayer(smplayer has also nice user interface for that imho) etc..
There are various options for rtsp servers: gstreamer rtsp server (mentioned here ), crtmpserver, also vlc (but not the way you used it, check this ) and you will find more..
You can also read this nice article about rt*p family of protocols.
Yes you can use live555 as rtsp server at Ubuntu VM and access it from your windows with vlc as you already tried..
Also keep in mind that you usualy do not use full system path (home/etc/etc) to access rtsp files but rather rtsp access point. That means dedicated folder which contains your media files you will access it for example like rtsp://192.168.1.123/vod/file.mp4 where vod is this access folder (or whatever it is called).
HTH
i have a problem with local network connection. i'm writing an iphone application and i need to read/write files to a computer. Both devices connected on the same network.
if it's possible, i want to get connected computers ip list, select one of them and read/write files like pdf, doc, txt etc.. if it's not possible to do, i will write the computer ip which i want to connect. There is no problem, both of solution is OK.
But i dont know what do i do after get the computer's ip ?
i found this chat client/server on local, but i got it very complicated.
Anyone have any idea about this ?
You'll need to have a server running on the computer, which can show files and allow for files to be read and created.
Easiest is to run a webdav service on the computer, Apache provides the mod_dav module for this purpose.
The iPhone app then becomes the client. I'd suggest using neon for this purpose. It's a C library that provides listing, reading and writing files on a remote webdav server.
That's how I would do it.
1) Find the network address of the computer you want to connect to. For this you can make use of Bonjour. It's very easy to setup because Bonjour handles the resolving of address for you.
You just have to publish a service (e.g. _myprotocol._tcp) via the ´NSNetService` class which is available on iOS and OS X (Windows too)- in your case you would publish the service on your computer.
Then you search for the service with the NSNetServiceBrowser class.
When you found a service you can then resolve it. This actually gives you the network name of the other device.
2) Connect to the other device via a tcp socket. The CocoaAsyncSocket library is very good at this. This project also includes some examples. One example already provides a bonjour server and client implementation.
i found exactly what i want. The solution is here
I would like to implement HTTP live streaming for iPhone/iPad. I am following the apple standards and tools for same.
As of now my video source is one giving me live video from rtsp://123.123.123.123:554/mpeg4 (sample IP). but as HTTP live streaming and mediastreamsegmenter required to pass source over UDP network so i have twisted way bit.
So that i have used VLC player and first stream RTSP to UDP.
For example, i have stream video source from rtsp://123.123.123.554/mpeg4 and redirected it to
udp://#123.123.123.17:1234 (sample ip). i have tested this with two instance of VLC on same machine to check whether live streaming is played or not. it is working fine on VLC.
now I am user MAC OS 10.6.x (Snow leopard). and use latest tools (downloaded from Apple) fro HTTP Live Streaming
I am executing the following command from terminal
mediastreamsegmenter -b http://demo.dummy.com/stream -s 3 -D -f /Desktop/StreamParts 123.123.123.17:1234
here
http://demo.dummy.com/stream - server
/Desktop/StreamParts - Local Folder for saving .ts files
123.123.123.17:1234 - UDP url (from where live streaming is done)
But the problem is when i execute this command. it is giving me error like
no start access unit
error in pid 44(video) -- cc value should be 9 is 10, 1 is 2, 5 is 6, etc.
any idea? what is going wrong here? and what this error message is showing?
My hunch would be that the transport is incompatible. Apple's tools (i.e. mediastreamsegmenter) are expecting an MPEG2 transport stream over UDP, not just RTSP sent over UDP. The problem I have, which I'm afraid will be your next question, is how to correctly generate a MPEG2 transport stream.