h.264

H.264 over RTP/RTSP (iPhone)

守給你的承諾、 提交于 2019-11-27 10:11:33
问题 Is it possible to view video stream (H.264 live feed) over RTP/RTSP in iPhone natively? If not, is it possible to write an application for this purpose? 回答1: Sure it is possible, in fact others have done it already, see e.g. IPVision from TTrix. Seems that the Live555 libraries can be compiled for iOS. See this SO question: How to configure live555 framework for iphone app devleopment? 回答2: Sure it is possible now. Previously, RTSP is not allowed in AppStore, though someone migrated VLC to

Problem to Decode H264 video over RTP with ffmpeg (libavcodec)

旧街凉风 提交于 2019-11-27 09:38:19
问题 I set profile_idc, level_idc, extradata et extradata_size of AvCodecContext with the profile-level-id et sprop-parameter-set of the SDP. I separate the decoding of Coded Slice, SPS, PPS and NAL_IDR_SLICE packet : Init: uint8_t start_sequence[]= {0, 0, 1}; int size= recv(id_de_la_socket,(char*) rtpReceive,65535,0); Coded Slice : char *z = new char[size-16+sizeof(start_sequence)]; memcpy(z,&start_sequence,sizeof(start_sequence)); memcpy(z+sizeof(start_sequence),rtpReceive+16,size-16);

How to use hardware accelerated video decoding on Android?

守給你的承諾、 提交于 2019-11-27 09:09:54
问题 I need hardware-accelerated H.264 decoding for a research project, to test a self-defined protocol. As I have Search on the web, I have found a few ways to perform hardware-accelerated video decoding on Android. Use ffmpeg libstagefright (overview of libstagefright) or use libstagefright in the OS directly, like here. Use OpenMax on specific hardware platform. like here about samsung device and here about Qualcomm Snapdragon series Some people mentioned PVplayer , Some people "say"

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

How to reduce latency in MediaCodec video/avc decoding

梦想与她 提交于 2019-11-27 05:12:40
I performed some simple timing of MoviePlayer.java in the Grafika MediaCodec sample code running on a Nexus 5. I put a log statement at these locations: At line 203 just before decoder.queueInputBuffer At line 244 after decoder.dequeueOutputBuffer I correlated the log statements using presentationTimeUs . Here is an excerpt from logcat: 01-29 10:56:43.295: I/Grafika(21286): queueInputBuffer index/pts, 2,0 01-29 10:56:43.305: I/Grafika(21286): queueInputBuffer index/pts, 0,33100 01-29 10:56:43.315: I/Grafika(21286): queueInputBuffer index/pts, 3,66466 01-29 10:56:43.325: I/Grafika(21286):

What does this H264 NAL Header Mean?

老子叫甜甜 提交于 2019-11-27 05:08:05
问题 0000 0109 1000 0001 6742 0020 e900 800c 3200 0001 68ce 3c80 0000 0001 6588 801a As far as I know, 0000 01 is the start prefix code to identify a NAL Unit. What does "09 .... " mean? Is it the header type byte? 回答1: 0x000001 is the NAL start prefix code (it can also be 0x00000001, depends on the encoder implementation). 0x09 is 0b00001001, which means F=0, NRI = 0, and type is 0b01001. That particular type is an access unit delimiter. Notice that it is immediately followed by another NAL unit

How to enable H264 support in CEF3 latest version ?

只愿长相守 提交于 2019-11-27 04:34:18
I have known that cef3's older version like 2623 can enable H264 support through modify chromium\src\cef\cef.gypi file. But in recent versions like 3071 or 3029, cef3 has removed cef.gypi file. I have googled this, but what I found is still through modify the cef.gypi file. Since this methold is only valid for older versions. Is there another way that I can make newer version enable H264 support ? Thanks very much! Indeed the compile option to support proprietary codecs was moved. the magic now happens here: set GN_DEFINES=is_official_build=true proprietary_codecs=true ffmpeg_branding=Chrome

How to use MediaCodec without MediaExtractor for H264

ぃ、小莉子 提交于 2019-11-27 03:06:27
I need to use MediaCodec without the MediaExtractor and I'm reading the file using a FileInputStream. Currently it is not working, it is showing a greenish scrambled image on the screen. This is the whole source code: FileInputStream in = new FileInputStream("/sdcard/sample.ts"); String mimeType = "video/avc"; MediaCodec decoder = MediaCodec.createDecoderByType(mimeType); MediaFormat format = MediaFormat.createVideoFormat(mimeType, 1920, 1080); byte[] header_sps = { 0, 0, 0, 1, 103, 100, 0, 40, -84, 52, -59, 1, -32, 17, 31, 120, 11, 80, 16, 16, 31, 0, 0, 3, 3, -23, 0, 0, -22, 96, -108 }; byte[

H.264 encoded MP4 presented in HTML5 plays on Safari but not iOS devices

三世轮回 提交于 2019-11-27 02:09:44
问题 I'm using Adobe Media Encoder CS5 to encode a FLV file to H.264 to present on the web via HTML5 and the video file plays just fine in Safari in OS X (and in Firefox encoded to OGG) but on any iOS device (iPad, iPhone) I get the play icon with the slash running through it. Has anyone encountered this before and if so, any ideas as to why? Thanks. 回答1: We had this problem and found that encoding the files in accordance with iPhone's webview's standards created files that played fine. Not all H

Minimum SDP for making a H264 RTP stream?

随声附和 提交于 2019-11-27 01:57:49
问题 I'm looking for an example of a minimum necessary SDP for setting up a H264 video stream.| The assumption is that the receiver can play H264 as long as it gets the required parameters through SDP. I have found a related document herehowever it uses lots of optional parameters in the examples, and I'm looking for the bare required minimum. 回答1: Here is the bares minimum SDP. It is a file called test.sdp which has the following content: c=IN IP4 10.5.110.117 m=video 5004 RTP/AVP 96 a=rtpmap:96