video-streaming

How to calculate Packet loss, Jitter and QoS parameters of video over an IP connection?

不打扰是莪最后的温柔 提交于 2020-01-01 16:53:10
问题 I came across a mobile application which performs voice and video quality test to give a measure of the quality of voice/video experience over an IP connection. The test calculates the values of Jitter, Packet loss etc. for the remote stream. I am curious to know how this is being done? What would it take to write such an Mobile application? Help in any form is appreciated. Thanks. 回答1: The easiest way to do this is to send data from a device through the network being tested and then receive

UDP Video Streaming on Android

末鹿安然 提交于 2020-01-01 10:02:08
问题 I have an Android project where I need to build a client app to receive UDP or RTP unicast video streams and play them back. Unfortunately, I cannot seem to get this working and have searched extensively for a solution! I have being testing on a Xoom (Android 3.2) and a Nexus S (Android 2.3.6) and know that they can play the content when using MX Player (a third-party media player app) as the client but I can't get the native media player to play back the content. I have tried using both a

How can i change AVPlayer Video Quality while playing

故事扮演 提交于 2020-01-01 06:56:29
问题 I used this library for playing video from URL , and I am able to play video. Now I want to change the currently playing video quality like (low, medium, high) . Library uses AVPlayer and how can i change quality with AVPlayer? I listen about preferred​Peak​Bit​Rate but I have no idea about it. Please help me how can i do that? 回答1: You cannot set video quality directly on the AVPlayer , however, you can do this by accessing videoComposition property on AVPlayerItem which is then supplied to

How to implement Video Seek support with an embedded HTTP server on iOS?

不打扰是莪最后的温柔 提交于 2020-01-01 05:42:10
问题 I have a client iOS application that uses GCDWebServer to serve images and videos stored in the NSSearchPathDirectory.DocumentDirectory folder of the app on my device. Upon app startup, I start an instance of GCDWebServer and add a file response handler for my requests: self.addDefaultHandlerForMethod("GET", requestClass: GCDWebServerFileRequest.self) { request in return GCDWebServerFileResponse(file: self.filePathForResponse(request.URL)) } I can verify that while the app is running I can

how to implement video chat in iphone

混江龙づ霸主 提交于 2020-01-01 05:18:20
问题 Can anyone please tell me the way to do video chat in iphone? I tried to search it on many website but in vain. I found this link: http://code.google.com/p/xmppframework/wiki/iPhone I am not sure if this works for the video chat too? Thanks, Naveed 回答1: I don't have experience with XMPP, but I think you would have to add your own video solution on top of it. This is definitely not a straightforward task to accomplish - but this might be useful for you: 1) http://code.google.com/p/idoubs/ -

Using VLC to host a stream of an infinite video loop

时光毁灭记忆、已成空白 提交于 2020-01-01 04:53:27
问题 I want to offer a video stream from my pc with a VLC player trough a WIFI network to smartphones for regression testing. The video should automatically restart at the beginning after being finished on the smartphone. I'm currently using rtsp as protocol and the loop option, but this is no mandatory. The problem is, that every time the video restarts a new rtsp handshake is necessary. Since most of the smartphone apps I tested don't support reconnecting the stream automatically after being

MediaCodec Video Streaming From Camera wrong orientation & color

早过忘川 提交于 2020-01-01 03:44:47
问题 I'm trying to stream video capturing directly from camera for android devices. So far I have been able to capture each frame from android camera's onPreviewFrame (byte[] data, Camera camera) function, encode the data & then successfully decode the data and show to the surface. I used android's MediaCodec for the encoding & decoding. But the color & the orientation of the video is not correct [ 90 degree rotated ]. After searching a while I have found this YV12toYUV420PackedSemiPlanar function

transport stream & mpeg file format

帅比萌擦擦* 提交于 2019-12-31 17:56:25
问题 I would like to convert a TS file to mpeg file. Is there any documents describing such process? I know the TS architecture, but I don't know mpeg's file architecture. Any info on this subject will highly appreciated. Thank you. 回答1: What you are probably wanting to do is convert from MPEG-TS (Transport Stream) to MPEG-PS (Program Stream). MPEG-PS is the format of a standard .mpg file as well as the format DVD video uses. You probably should get a hold on the standard which is ISO/IEC 13818-1.

Decoding h264 in iOS 8 with video tool box

时光怂恿深爱的人放手 提交于 2019-12-31 12:09:21
问题 Need to decode h264 stream and get the pixel buffers I know its possible with video tool box on iOS 8 1.How do I convert the h264 stream to CMSampleBufferRef ? 2.How do I use the video tool box to decode? 回答1: I assume you get the stream in Annex B format, if it is already in AVCC format (read MP4), then you can you the AssetReader and do not need to do much. For an Annex B stream (this is what ppl. often call raw h264 stream). extract SPS/PPS NAL units and create a parameter set from then.

Decoding h264 in iOS 8 with video tool box

▼魔方 西西 提交于 2019-12-31 12:09:17
问题 Need to decode h264 stream and get the pixel buffers I know its possible with video tool box on iOS 8 1.How do I convert the h264 stream to CMSampleBufferRef ? 2.How do I use the video tool box to decode? 回答1: I assume you get the stream in Annex B format, if it is already in AVCC format (read MP4), then you can you the AssetReader and do not need to do much. For an Annex B stream (this is what ppl. often call raw h264 stream). extract SPS/PPS NAL units and create a parameter set from then.