rtsp

Decoding Raw H264 stream in android?

喜你入骨 提交于 2019-11-27 06:03:13
I have a project where I have been asked to display a video stream in android, the stream is raw H.264 and I am connecting to a server and will receive a byte stream from the server. Basically I'm wondering is there a way to send raw bytes to a decoder in android and display it on a surface? I have been successful in decoding H264 wrapped in an mp4 container using the new MediaCodec and MediaExtractor API in android 4.1, unfortunately I have not found a way to decode a raw H264 file or stream using these API's. I understand that one way is to compile and use FFmpeg but I'd rather use a built

RTSP to RTMP streaming

会有一股神秘感。 提交于 2019-11-27 05:29:14
问题 I have an IP camera which is streaming via RTSP and RTP. Ideally I would like to convert RTSP to RTMP to stream it to LiveStream or similar streaming services. Can anyone please let me know how may I convert RTSP to RTMP and then stream it to streaming services? 回答1: Using FFMPEG you can convert rtsp stream to rtmp For Example ffmpeg -i "[your rtsp link]" -f flv -r -s -an "[Your rtmp link]" run the above syntax on ubuntu or linux os . it will convert your rtsp stream to rtmp stream 回答2: After

Get RTSP URL from Youtube

心已入冬 提交于 2019-11-27 01:33:45
问题 I have a video URL like http://www.youtube.com/watch?v=AAAAAAAAAA How can I get a RTSP URL for this video? 回答1: EDIT: Seems like Youtube stopped supporting this method. Go to: http://gdata.youtube.com/feeds/api/videos/{video-id} For example: If we want to get the RTSP link for this video: https://www.youtube.com/watch?v=rUDm2xatms4&list=PLA9nd26sR8HD62LClHOBU93tuDKnJsfKa&feature=player_detailpage#t=0 We'd use: http://gdata.youtube.com/feeds/api/videos/rUDm2xatms4 This will download an XML

Java RTSP client/server library

青春壹個敷衍的年華 提交于 2019-11-27 01:23:32
问题 Is anyone aware about good RTSP client/server Java library? Search on Google reveals JMF, which is very outdated. Thanks. 回答1: If you're still interested, Netty provides RTSP support since version 3.2. 回答2: You can use Netty NIO framework to write your own RTSP server / client implementation. 回答3: You can try using FMJ. It's a set of libraries that wrap a lot of modern codecs in Java interfaces. 回答4: There is no java implementation of RTSP protocol. You must do it yourself using a NIO

Turning an iPhone or iPod into a wireless webcam

╄→гoц情女王★ 提交于 2019-11-27 01:10:35
问题 I'd like to stream video from the camera on an iOS device to a receiver via wifi, in effect turning the device into a wireless webcam. Is there a way to build a small app that captures video input on an iOS app and sends it via an RTSP stream or similar? As this is an ad hoc experiment, I'm not concerned about App Store guidelines and can jailbreak if necessary. 回答1: If I interpret your question correctly you more or less need to solve four problems: Get the camera feed. Convert/encode this

Receiving RTSP stream using FFMPEG library

大兔子大兔子 提交于 2019-11-27 00:06:28
I have an IPCamera on my LAN streaming video using RTSP. I have been able to capture and display it successfully using ffplay command: ffplay rtsp://admin:123456@192.168.2.50:7070 (with authentication) So I would like to achieve the same using programming in C/C++ using ffmpeg library. I guess this must be possible. So let me phrase two simple questions : How do I receive the stream in a C/C++ program using FFMPEG library? (just provide some URL/tutorial, as google was not helpful) How do I display the received video? (same here, some good URL to direct me). For rtsp streams the following is

Video streaming using RTSP: Android

偶尔善良 提交于 2019-11-26 21:59:34
I'm trying to install a Wowza server on my Linux machine to enable the RTSP streaming for my Android application. On Android client side what sort of changes do I need to make in my application? I'm using Videoview to simply play a video file stored locally. Now I want to get the video content get streamed through the server that I've installed. If necessary I can move to any other streaming server as right now I'm doing a research on streaming servers. For rtsp streaming you can also try following servers: Darwin Streaming Server - linux package is available Windows Media Services - can be

FFmpeg can't decode H264 stream/frame data

◇◆丶佛笑我妖孽 提交于 2019-11-26 19:45:29
问题 Recently I had chance to work with two devices that are streaming the H264 through RTSP. And I've ran into some problem trying to decompress this stream using FFmpeg library. Every time the " avcodec_decode_video2 " is called - FFmpeg just says something like: [h264 @ 00339220] no frame! My raw H264 stream I frame data starts like this: " 65 88 84 21 3F F8 F8 0D..." (as far as I understand this 0x65 indicates that it's a IDR frame?) Other frames for one device starts like: " 41 9A 22 07 F3 4E

Detect MPEG4/H264 I-Frame (IDR) in RTP stream

我是研究僧i 提交于 2019-11-26 18:54:37
问题 I need to detect MPEG4 I-Frame in RTP packet. I know how to remove RTP header and get the MPEG4 frame in it, but I can't figure out how to identify the I-Frame. Does it have a specific signature/header? 回答1: Ok so I figured it out for h264 stream. How to detect I-Frame: remove RTP header check the value of the first byte in h264 payload if the value is 124 (0x7C) it is an I-Frame I cant figure it out for the MPEG4-ES stream... any suggestions? EDIT: H264 IDR This works for my h264 stream (

How to dump raw RTSP stream to file?

余生长醉 提交于 2019-11-26 18:52:44
问题 Is it possible to dump a raw RTSP stream to file and then later decode the file to something playable? Currently I'm using FFmpeg to receive and decode the stream, saving it to an mp4 file. This works perfectly, but is CPU intensive, and will severely limit the number of RTSP streams I can receive simultaneously on my server. I would like to save the stream to file without decoding it, and delay the decoding part to when the file needs to be opened. Is this possible? I have tried VLC, which