Can use AVCaptureMoiveFileOutput send stream video to the Network? - objective-c

I need to send screen video in real-time from Mac to a multicast group,like"239.1.1.110:46110".
I know the AVCaptureMovieFileOutput has a method"startRecordingToOutputFileURL: recordingDelegate:".
I just want to know the parameter of URL can be a multicast group address? Or if is no,what can I do to send the stream video to the multicast group?
Someone said using ffmpeg,but I nothing about that.Could anybody give some sample demo?
Any help is appreciated.Thanks a lat in advance.

Have you looked at this project provided by Apple - AVFoundationQueuePlayer

Related

streaming webcam output over the internet using UDP protocol

I want to stream webcam output over the internet using UDP protocol (RTP to be specific). But I don’t have any ideas how to start to do so.
I have already tried using Microsoft DirectShow to get every frame as a jpeg file. I tried to send it using UDP but it was very slow.
I hope you could point me to the right direction .Also, if there are open source applications in java or c# that does this I will be very happy to work on them.
Thanks in advance
I am pretty sure that VLC (http://www.videolan.org/vlc/index.html) can do RTP.
Media menu
Stream...
Capture device tab
Set up as appropriate
Stream button
Next button
Change the "new destination" drop down to one of the RTP options
after this, I don't know, because I've never used RTP.
Good luck!

How to handle ethernet frames in ns3

I know there is some kind of callback procedure.I just want to tell to all net devices that every time something comes from ethernet I want to handle it myself.I also want to be able to send ethernet frames myself through that code.
ns3::Node::RegisterProtocolHandler is your friend.
See the documentation: http://www.nsnam.org/docs/release/3.17/doxygen/classns3_1_1_node.html#af713f0e7ea5c49b4fa0b3613405c45fa

zte voice modem problem

we are using zte usb modem. we try to call by AT command (ATD) successfully. But there is no sound when remote device answered.
Does anyone have any idea?
My problem was associated with ZTE usb modem.
I solved the problem.
i can receive and send voice separately to voice port now. But i can not get clean sound like WCDMA UI.
how can i receive and send data with high quality?
Please look at my source code. [http://serv7.boxca.com/files/0/z9g2d59a8rtw6n/ModemDial.zip]
Does anyone now where is my error?
Thank you for your time.
a) Not all zte usb modems supports voice, to detect if modem supports check for ZTE voUSB Device in your ports list.
b) If port present, voice will go through it in pcm format, with 64kbps frequency (8000 samples per sec, 8 sample size).
In your own program, you should read audio stream from there.
stream is additionaly encoded with g.711, so you need to decode it before sending to audio device
It is fairly common to shut off the speaker after connection. Try sending ATM2, that should make the speaker always on.
Basic hayes command set:
M2
Speaker always on (data sounds are heard after CONNECT)
I'm trying to use asterisk's chan_dongle module on ZTE MF180 Datacard model with activated voices abilities.
Originally chan_dongle using raw PCM format on voice data.
But i was discover, that ZTE using ulaw format on sending and recciving voice data.
You can get voice data and save file in this format for learn by using standard Asterisk's Record(filename:ulaw) command in dialplan.
My voice data, dumped from ZTE modem in the same format.
I check it. ZTE dumped data was successefully played by Asterisk's command Playback(dumped)

Mac app UDP data over its own IP

Is it possible for an objective-c mac app to send UDP data to its own IP address?
If so, can someone show me an example? code?
Thanks!
Have a look at http://code.google.com/p/polkit containing Objective-C UDPSocket sample code and MiniUDPSocket to send and receive network data over UDP:
polkit-read-only/Apple-Networking/UDPSocket.h
polkit-read-only/Apple-Networking/UDPSocket.m
polkit-read-only/Networking/MiniUDPSocket.h
polkit-read-only/Networking/MiniUDPSocket.m

How to get NMEA from the GPS Device?

im trying to read the current position of GPS Device...using N95 from Nokia.
I read tht i will need my device to return the NMEA lines to the serialport and then i will parse/split it to get things I want but all along I dont know what to write to the serialport to make device return the NMEA ?
Like There are other commands of AT for messaging etc...Is there any specific command to send to serialport to get NMEA ???
I found this site site which seems to guide you through everything you need to do.
I am not sure how it works in the N95, but in my HTC phone you cannot send commands to the GPS device to have it behave in a certain manner. Once I am connected to the serial port that the GPS device uses I can read a stream of data coming from it, which happens to be NMEA data. There is no way that I have found to send commands to the device to tell it how to behave.
I haven't used that specific GPS device before, but for mine, I just have to open the port and I start receiving the NMEA data immediately.
I have an N82, and as far as I know it doesn't speak NMEA directly. I use a script from this page - specifically one the titled "# Turn your S60 phone with an internal GPS (eg your N95) into a Bluetooth GPS" - to get NMEA strings.
Ahh oki so I need to run some script.Oki I think i should buy a specific GPS Device for it.
Which device will do my job in cheapest manner ?
I've never worked specifically with the N95, but most GPS devices will just start spitting out NMEA as soon as they're powered up, regardless of whether or not they have a lock. I don't know how the N95 is designed, but I'll bet it probably wasn't designed to give you access to the raw NMEA data from the GPS. You'll probably need some pretty fancy trickery to get it to do that.
If you don't need to use the N95, you might find it easier to just get a GPS module and use that instead. I've always purchased mine from SparkFun. They have some good evaluation boards boards and tutorials to help you get started.
A great way of doing this in Java ME is to use JSR 179: the Location API. Your app needs to create an implementation of LocationListener, then set it on the default LocationProvider. When your listener's locationUpdated method gets called, call:
location.getExtraInfo("application/X-jsr179-location-nmea");
This will provide access to the NMEA sentences.
You can send this over a serial port by using the Java ME commports mechanism (use:
System.getProperty("microedition.commports");
as described here).
Hope this helps,
funkybro