How to play audio and video file together in SIPp - sip

Can SIPp support play audio and video file together in a call? Thanks.
I am able to initiate a sip audio call. What I want to achieve is, after the callee picks the call, play a audio and video file together.
I want to achieve this using the command line arguments. Has someone done this before?

You should be able to do it the same way you are playing a pre-recorded audio file. Please see the relevant section in the SIPp document:
PCAP (media) commands
PCAP play commands (specified using play_pcap_audio / play_pcap_video attributes) allow you to send a pre-recorded RTP stream using the pcap library.
Choose play_pcap_audio to send the pre-recorded RTP stream using the "m=audio" SIP/SDP line port as a base for the replay.
Choose play_pcap_video to send the pre-recorded RTP stream using the "m=video" SIP/SDP line port as a base.
The play_pcap_audio/video command has the following format: play_pcap_audio="[file_to_play]" with:

Related

How to broadcast mp4 stream

I have mp4 stream available over HTTP to single client
How to broadcast it to multiple clients?
I can write code that will read MP4 stream over HTTP and copy to multiple clients.
But is there some initial frame, header in MP4 stream?
May be some framework or existing server can broadcast mp4 stream?
Use VLC, it has nice streaming possibilities (VLC is for Video Lan Client, by the way).
Just fire up VLC, go to File->Stream..., select the source you want to distribute, choose e.g. http as method, transcode (or don't), and select the port to listen on. From there on, your clients can connect :)

Saving RTSP stream with VLC

I'm trying to save 5 seconds .mov segments of an RTSP stream with VLC. First I tried openRTSP and ffmpeg but both of them gives incorrect output (Index missing etc). I've read a lot of the VLC cli, but havn't had any luck of saving an RTSP stream as segments.
If I use the VLC GUI I can both save segments as saving snapshots (PNGs) but I need to do this via CLI.
mov files are not streamable. [they are right in saying index file missing]. I don't even know how you are sending them over rtsp there is no rtp payloader i am aware of for mov/mp4 format.

how to stream high quality video and audio from iPhone to remote server through Internet

I am seeking the following three items, which I cannot find on STACKOVERFLOW or anywhere:
sample code for AVFoundation capturing to file chunks (~10seconds) that are ready for compression?
sample code for compressing the video and audio for transmisison across the Internet?
ffmpeg?
sample code for HTTP Live Streaming sending files from iPhone to Internet server?
My goal is to use the iPhone as a high quality AV camcorder that streams to a remote server.
If the intervening data rate bogs down, files should buffer at the iPhone.
thanks.
You can use AVAssetWriter to encode a MP4 file of your desired length. The AV media will be encoded into the container in H264/AAC. You could then simply upload this to a remote server. If you wanted you could segment the video for HLS streaming, but keep in mind that HLS is designed as a server->client streaming protocol. There is no notion of push as far as I know. You would have to create a custom server to accept pushing of segmented video streams (which does not really make a lot of sense given the way HLS is designed. See the RFC Draft. A better approach might be to simply upload the MP4(s) via a TCP socket and have your server segment the video for streaming to client viewers. This could be easily done with FFmpeg either on the command line, or via a custom program.
I also wanted to add that if you try and stream 720p video over a cellular connection your app will more then likely get rejected for excessive data use.
Capture Video and Audio using AVFouncation. You can specify the Audio and Video codecs to kCMVideoCodecType_H264 and kAudioFormatMPEG4AAC, Frame sizes, Frame rates in AVCaptureformatDescription. It will give you Compressed H264 video and AAC aduio.
Encapsulate this and transmit to server using any RTP servers like Live555 Media.

Free ASF (2 video streams and 1 audio stream) to FLV converter?

I have .asf files. All of them have 2 video streams and 1 audio stream in it. I need to extract that .asf into 2 .flv files (first one is video stream, second one is second video + audio stream).
Is there some free program with funcitonality like this where I can choose which streams I want to extract/convert to .flv. I've tried at least 15 programs and all of them open my .asf file and offer me to convert it but none of them "knows" about that second video stream. Some programs opens my .asf and in external window open second video stream but not offering any functionallity to it. It's like they aren't aware of that second video stream.
I don't want to write my own program with Xuggle if I don't need to.
Thank You,
Dino
Let me answer this old question. On Windows download the program Haali Muxer and split the file as you want. Then there are many converters to .flv format but now there is only one video and audio stream in source file after splitting it with Haali Muxer.

Save audio stream into file with MPMoviePlayerController

I've some trouble with audio streaming using MPMoviePlayerController.
I want to know if it's possible to save the data streaming info to a file while MPMoviePlayer is playing that file.
Is there a simple way to do this?
Does anyone have an idea?
According to apple (http://developer.apple.com/library/ios/#codinghowtos/AudioAndVideo/_index.html) for streaming audio you connect to a network stream using CFNetwork interfaces from CoreFoundation, then parse the network packets into audio packets using Audio File Stream Service (AudioToolbox/AudioFileStream.h) and then play the audio packets using Audio Queue Services (AudioToolbox/AudioQueue.h) ….
Now my idea is that if we can find some way to write the audio packets to the file in between sending the packets to the audio queue then we can save the audio stream while playing them…
Its just an idea that needs implementation and don't know weather it will work for video stream or not.